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
Creates a new NearAction
public NearAction(String name, int direction, int magnitude, boolean localize) { super(localize ? Localizer.localize("GefBase", name) : name); this.direction = direction; this.magnitude = magnitude; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NearAction(String name, int direction) {\r\n this(name, direction, 1, false);\r\n }", "public NearAction(String name, int direction, int magnitude) {\r\n this(name, direction, magnitude, false);\r\n }", "public NearAction(String name, int direction, boolean localize) {\r\n this(name, direction, 1, localize);\r\n }", "Action createAction();", "Action createAction();", "Action createAction();", "public NearAction(String name, Icon icon, int direction, int magnitude) {\r\n this(name, icon, direction, magnitude, false);\r\n }", "public NearAction(String name, Icon icon, int direction) {\r\n this(name, icon, direction, 1, false);\r\n }", "SendAction createSendAction();", "public NearAction(String name, Icon icon, int direction, int magnitude, boolean localize) {\r\n super(localize ? Localizer.localize(\"GefBase\", name) : name, icon);\r\n this.direction = direction;\r\n this.magnitude = magnitude;\r\n }", "public NearAction(String name, Icon icon, int direction, boolean localize) {\r\n this(name, icon, direction, 1, localize);\r\n }", "protected Action makeAcceptAction() {\n\t\tAction myAction;\n\t\tmyAction = new Accept(getAgentID(),\n\t\t\t\t((ActionWithBid) opponentAction).getBid());\n\t\treturn myAction;\n\t}", "public void createAction() {\n }", "ForwardMinAction createForwardMinAction();", "NoAction createNoAction();", "ActionDefinition createActionDefinition();", "ActionBlock createActionBlock();", "public static Action push() {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.getGrid().isValid(a.getLocation().getAdjacentLocation(a.getDirection()))) {\n Actor b = a.getGrid().get(a.getLocation().getAdjacentLocation(a.getDirection()));\n if(b instanceof Movable && b instanceof DestructibleActor) {\n DestructibleActor c = (DestructibleActor) b;\n c.setDirection(a.getDirection());\n if(c.canMove()) {\n c.move();\n a.move();\n a.energy = a.energy - getCost();\n }\n\n }\n }\n }\n\n @Override\n public int getCost() {\n return 10;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"Push()\";\n }\n };\n }", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public Agent createNewAgent() throws MaceException{\r\n\t\tAgent agent = new Agent(\"n\" + maxAgentId, Agent.AGENT_BUYER);\r\n\t\taddAgent(agent);\r\n\t\tmaxAgentId++;\r\n\t\treturn agent;\r\n\t}", "public CreateIndividualPreAction() {\n }", "Builder addPotentialAction(Action value);", "public GetIndividualsFullAction() {\n super();\n }", "ActionNew()\n {\n super(\"New\");\n this.setShortcut(UtilGUI.createKeyStroke('N', true));\n }", "public NewAction() {\n\t\tsuper(\"New...\", null);\n\t\tputValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, MAIN_MENU_MASK));\n\t}", "public NewNetworkAction(IWorkbenchWindow window) {\r\n\t\t// this.window = window;\r\n\t\tsetId(ID);\r\n\t\tsetText(\"&New\");\r\n\t\tsetToolTipText(\"Opens dialog to get network configuration file\");\r\n\t\tActionContainer.add(ID, this);\r\n\t}", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "protected IAction createAction(IEvent event, String label, String assign)\n\t\t\tthrows RodinDBException {\n\t\tIAction action = event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t\taction.setLabel(label, null);\n\t\taction.setAssignmentString(assign, null);\n\t\treturn action;\n\t}", "public Action newAction(Object data) throws Exception;", "public PlaceAndMoveAction(Game game, ModelPlayer player, Direction direction) {\n this.direction = direction;\n this.player = player;\n }", "public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}", "private Action initializeAction(final String classname) {\n\t\tAction action = null;\n\t\tif (classname != null && !\"\".equals(classname)) {\n\t\t\tClass<?> clazz = null;\n\t\t\ttry {\n\t\t\t\tclazz = Class.forName(classname);\n\t\t\t\taction = (Action) clazz.newInstance();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.error(\"Cannot instantiate action class: \" + classname);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.error(\"Not privileged to access action instance: \"\n\t\t\t\t\t\t+ classname);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlog.error(\"Cannot load action class: \" + classname);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (action == null) {\n\t\t\t// Instantiate a mock action such that menu item can\n\t\t\t// be displayed.\n\t\t\taction = new DummyAction();\n\t\t\tlog.warn(\"Instantiated mock action class.\");\n\t\t}\n\t\treturn action;\n\t}", "ForwardAction createForwardAction();", "Builder addPotentialAction(Action.Builder value);", "public Action newAction(String command) {\n\t\tif (command == null)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"No legal command string passed!\");\n\t\tif (super.containsKey(command))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\taction.putValue(Action.ACTION_COMMAND_KEY, command);\n\t\tsuper.put(command, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "public SearchContestsManagerAction() {\r\n }", "ActionType createActionType();", "TurnAction createTurnAction();", "public static Action place(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation()) {\n if(!a.isFacing(Actor.class)) {\n if(a.isHolding(e)) {\n try {\n ((Placeable) e.newInstance()).place(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n a.removeItem(e);\n } catch(InstantiationException e) {\n e.printStackTrace();\n } catch(IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n }\n\n @Override\n public int getCost() {\n return 0;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Place(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public MemberAction() {\n\t\tsuper();\n\t}", "DomainAction createDomainAction();", "public InitiateAttackNonCreatureAction() {\n super(new CreatureAttacksNonCreatureRule());\n }", "public Action newAction(Object key) {\n\t\tif (key == null)\n\t\t\tthrow new IllegalArgumentException(\"No legal key passed!\");\n\t\tif (super.containsKey(key))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\tsuper.put(key, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}", "public VisitAction() {\n }", "public AETinteractions() {\r\n\t}", "protected abstract Intent createOne();", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "@Override\n\tpublic void newAction() {\n\t\t\n\t}", "protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}", "Builder addPotentialAction(String value);", "@Override\n protected Action[] createActions() {\n return new Action[0];\n }", "protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }", "private PSAAClientActionFactory()\n {\n }", "private AliasAction() {\n\n\t}", "CustomAction(String actionType, String color, double startX, double startY){\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n action.put(\"Action\", attributes);\n }", "protected void pushAction(iNamedObject node)\n\t{\n\t}", "public UpcomingContestsManagerAction() {\r\n }", "public GetMarkerSetMembershipAction() {\n }", "public void action() throws Exception {\n // Cop move to another place\n move();\n\n // Search for agents nearby\n ArrayList<Position> occupiedNeighbor = this.getPosition().getOccupiedNeighborhood();\n ArrayList<Agent> arrestList = new ArrayList<>();\n for (Position neighbor : occupiedNeighbor) {\n Person person = neighbor.getOccupiedPerson();\n String className = person.getClass().getName();\n // if this is a agent and is active\n if (className.equals(Person.AGENT)) {\n if (((Agent) person).isActive()) {\n arrestList.add((Agent) person);\n }\n }\n }\n\n // If there at least one agent nearby\n if (0 != arrestList.size()) {\n // Randomly pick active agent to jail\n Random random = new Random();\n int maxIndex = arrestList.size();\n int randomIndex = random.nextInt(maxIndex);\n Agent arrestAgent = arrestList.get(randomIndex);\n int jailTerm = random.nextInt(getPersonEnvironment().getMaxJailTerm());\n arrestAgent.beArrested(jailTerm, this);\n }\n }", "protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n int UPDATE_INTERVAL = 1000 * 60 * 5;\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n int FASTEST_INTERVAL = 5000;\n mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n int DISPLACEMENT = 20;\n mLocationRequest.setSmallestDisplacement(DISPLACEMENT); // 20 meters\n }", "public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "public NamedAction createNamedAction(String name) {\n NamedActionImpl action = new NamedActionImpl();\n action.setName(name);\n return action;\n }", "protected abstract void createTriggerOrAction();", "public NormalRoom(String description, Action... action) {\n\t\tsuper(description, action);\n\t}", "public NewTunnelAction() {\r\n putValue(Action.NAME, \"New Tunnel\");\r\n putValue(Action.SMALL_ICON,\r\n new ResourceIcon(ActiveTunnelsSessionPanel.class,\r\n \"add.png\"));\r\n putValue(Action.SHORT_DESCRIPTION, \"New Tunnel\");\r\n putValue(Action.LONG_DESCRIPTION,\r\n \"Create a new secure tunnel\");\r\n putValue(Action.MNEMONIC_KEY, new Integer('n'));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_T, Keyboard_Modifier));\r\n putValue(Action.ACTION_COMMAND_KEY, \"new-tunnel-command\");\r\n putValue(StandardAction.ON_MENUBAR, new Boolean(true));\r\n putValue(StandardAction.MENU_NAME, \"Tunnel\");\r\n putValue(StandardAction.MENU_ITEM_GROUP, new Integer(50));\r\n putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(10));\r\n putValue(StandardAction.ON_TOOLBAR, new Boolean(true));\r\n putValue(StandardAction.TOOLBAR_GROUP, new Integer(5));\r\n putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(5));\r\n putValue(StandardAction.HIDE_TOOLBAR_TEXT, new Boolean(false));\r\n putValue(StandardAction.ON_CONTEXT_MENU, new Boolean(true));\r\n putValue(StandardAction.CONTEXT_MENU_GROUP, new Integer(5));\r\n putValue(StandardAction.CONTEXT_MENU_WEIGHT, new Integer(5));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_N, Keyboard_Modifier));\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }", "public BattleWeaponsSegmentAction() {\n }", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "public static BucketbotTask createTaskMOVE(Circle c) {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.MOVE;\r\n\t\tt.destination = c;\r\n\t\treturn t;\r\n\t}", "MoveActionController createMoveActionController();", "protected PMBaseAction() {\r\n super();\r\n }", "public Place goNorth();", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "public Action(String name) {\n this.name = name;\n }", "public ExecuteAction()\n {\n this(null);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "public static Action buildShip(int id, char type) {\n\t\treturn new Action(id, type);\n\t}", "Oracion createOracion();", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "public void createFriend(ActionEvent actionEvent) {\n Friend f = new Friend(getName.getText(),getPhone.getText());\n listFriends.getItems().add(f);\n getName.clear();\n getPhone.clear();\n }", "public void createLocationRequest(){\n locationRequest = new LocationRequest();\n locationRequest.setInterval(1000);\n locationRequest.setFastestInterval(500);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }", "public ScheduledActionAction() {\n\n }", "public ElementAction(String label) {\r\n\t\tthis(label, true);\r\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }" ]
[ "0.67906517", "0.6518271", "0.6129316", "0.6085668", "0.6085668", "0.6085668", "0.60802734", "0.60486925", "0.5966385", "0.5695938", "0.5693334", "0.5376089", "0.53672296", "0.527376", "0.52572304", "0.5240696", "0.5210045", "0.51803356", "0.5179967", "0.5153246", "0.5138728", "0.51373243", "0.5135538", "0.50741774", "0.5045289", "0.49932677", "0.49925372", "0.49901903", "0.49828088", "0.4973183", "0.49699923", "0.49353915", "0.4927623", "0.49263388", "0.4922202", "0.48882684", "0.48724607", "0.4848348", "0.48288974", "0.48078147", "0.47887132", "0.47810453", "0.47762403", "0.47731912", "0.47719216", "0.4763119", "0.47615534", "0.47590506", "0.47566912", "0.4755984", "0.47477093", "0.47269744", "0.47239125", "0.47224662", "0.47152907", "0.47147548", "0.47140974", "0.47072875", "0.47054154", "0.46991804", "0.469895", "0.46987176", "0.4695933", "0.46860513", "0.46704093", "0.46694043", "0.46669757", "0.46568853", "0.46560007", "0.46426898", "0.46293563", "0.4619209", "0.4619209", "0.46174112", "0.46154416", "0.46135107", "0.46126878", "0.46030328", "0.46025032", "0.46007404", "0.45954913", "0.45952007", "0.45827928", "0.45755062", "0.45755062", "0.45755062", "0.45755062", "0.45755062", "0.4565811", "0.4564256", "0.45585993", "0.45565352", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595" ]
0.5815725
9
Creates a new NearAction
public NearAction(String name, Icon icon, int direction, boolean localize) { this(name, icon, direction, 1, localize); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NearAction(String name, int direction) {\r\n this(name, direction, 1, false);\r\n }", "public NearAction(String name, int direction, int magnitude) {\r\n this(name, direction, magnitude, false);\r\n }", "public NearAction(String name, int direction, boolean localize) {\r\n this(name, direction, 1, localize);\r\n }", "Action createAction();", "Action createAction();", "Action createAction();", "public NearAction(String name, Icon icon, int direction, int magnitude) {\r\n this(name, icon, direction, magnitude, false);\r\n }", "public NearAction(String name, Icon icon, int direction) {\r\n this(name, icon, direction, 1, false);\r\n }", "SendAction createSendAction();", "public NearAction(String name, int direction, int magnitude, boolean localize) {\r\n super(localize ? Localizer.localize(\"GefBase\", name) : name);\r\n this.direction = direction;\r\n this.magnitude = magnitude;\r\n }", "public NearAction(String name, Icon icon, int direction, int magnitude, boolean localize) {\r\n super(localize ? Localizer.localize(\"GefBase\", name) : name, icon);\r\n this.direction = direction;\r\n this.magnitude = magnitude;\r\n }", "protected Action makeAcceptAction() {\n\t\tAction myAction;\n\t\tmyAction = new Accept(getAgentID(),\n\t\t\t\t((ActionWithBid) opponentAction).getBid());\n\t\treturn myAction;\n\t}", "public void createAction() {\n }", "ForwardMinAction createForwardMinAction();", "NoAction createNoAction();", "ActionDefinition createActionDefinition();", "ActionBlock createActionBlock();", "public static Action push() {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.getGrid().isValid(a.getLocation().getAdjacentLocation(a.getDirection()))) {\n Actor b = a.getGrid().get(a.getLocation().getAdjacentLocation(a.getDirection()));\n if(b instanceof Movable && b instanceof DestructibleActor) {\n DestructibleActor c = (DestructibleActor) b;\n c.setDirection(a.getDirection());\n if(c.canMove()) {\n c.move();\n a.move();\n a.energy = a.energy - getCost();\n }\n\n }\n }\n }\n\n @Override\n public int getCost() {\n return 10;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"Push()\";\n }\n };\n }", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public Agent createNewAgent() throws MaceException{\r\n\t\tAgent agent = new Agent(\"n\" + maxAgentId, Agent.AGENT_BUYER);\r\n\t\taddAgent(agent);\r\n\t\tmaxAgentId++;\r\n\t\treturn agent;\r\n\t}", "public CreateIndividualPreAction() {\n }", "Builder addPotentialAction(Action value);", "public GetIndividualsFullAction() {\n super();\n }", "ActionNew()\n {\n super(\"New\");\n this.setShortcut(UtilGUI.createKeyStroke('N', true));\n }", "public NewAction() {\n\t\tsuper(\"New...\", null);\n\t\tputValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, MAIN_MENU_MASK));\n\t}", "public NewNetworkAction(IWorkbenchWindow window) {\r\n\t\t// this.window = window;\r\n\t\tsetId(ID);\r\n\t\tsetText(\"&New\");\r\n\t\tsetToolTipText(\"Opens dialog to get network configuration file\");\r\n\t\tActionContainer.add(ID, this);\r\n\t}", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "protected IAction createAction(IEvent event, String label, String assign)\n\t\t\tthrows RodinDBException {\n\t\tIAction action = event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t\taction.setLabel(label, null);\n\t\taction.setAssignmentString(assign, null);\n\t\treturn action;\n\t}", "public Action newAction(Object data) throws Exception;", "public PlaceAndMoveAction(Game game, ModelPlayer player, Direction direction) {\n this.direction = direction;\n this.player = player;\n }", "public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}", "private Action initializeAction(final String classname) {\n\t\tAction action = null;\n\t\tif (classname != null && !\"\".equals(classname)) {\n\t\t\tClass<?> clazz = null;\n\t\t\ttry {\n\t\t\t\tclazz = Class.forName(classname);\n\t\t\t\taction = (Action) clazz.newInstance();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.error(\"Cannot instantiate action class: \" + classname);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.error(\"Not privileged to access action instance: \"\n\t\t\t\t\t\t+ classname);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlog.error(\"Cannot load action class: \" + classname);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (action == null) {\n\t\t\t// Instantiate a mock action such that menu item can\n\t\t\t// be displayed.\n\t\t\taction = new DummyAction();\n\t\t\tlog.warn(\"Instantiated mock action class.\");\n\t\t}\n\t\treturn action;\n\t}", "ForwardAction createForwardAction();", "Builder addPotentialAction(Action.Builder value);", "public Action newAction(String command) {\n\t\tif (command == null)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"No legal command string passed!\");\n\t\tif (super.containsKey(command))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\taction.putValue(Action.ACTION_COMMAND_KEY, command);\n\t\tsuper.put(command, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "public SearchContestsManagerAction() {\r\n }", "ActionType createActionType();", "TurnAction createTurnAction();", "public static Action place(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation()) {\n if(!a.isFacing(Actor.class)) {\n if(a.isHolding(e)) {\n try {\n ((Placeable) e.newInstance()).place(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n a.removeItem(e);\n } catch(InstantiationException e) {\n e.printStackTrace();\n } catch(IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n }\n\n @Override\n public int getCost() {\n return 0;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Place(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public MemberAction() {\n\t\tsuper();\n\t}", "DomainAction createDomainAction();", "public InitiateAttackNonCreatureAction() {\n super(new CreatureAttacksNonCreatureRule());\n }", "public Action newAction(Object key) {\n\t\tif (key == null)\n\t\t\tthrow new IllegalArgumentException(\"No legal key passed!\");\n\t\tif (super.containsKey(key))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\tsuper.put(key, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}", "public VisitAction() {\n }", "public AETinteractions() {\r\n\t}", "protected abstract Intent createOne();", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "@Override\n\tpublic void newAction() {\n\t\t\n\t}", "protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}", "Builder addPotentialAction(String value);", "@Override\n protected Action[] createActions() {\n return new Action[0];\n }", "protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }", "private PSAAClientActionFactory()\n {\n }", "private AliasAction() {\n\n\t}", "CustomAction(String actionType, String color, double startX, double startY){\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n action.put(\"Action\", attributes);\n }", "protected void pushAction(iNamedObject node)\n\t{\n\t}", "public UpcomingContestsManagerAction() {\r\n }", "public GetMarkerSetMembershipAction() {\n }", "public void action() throws Exception {\n // Cop move to another place\n move();\n\n // Search for agents nearby\n ArrayList<Position> occupiedNeighbor = this.getPosition().getOccupiedNeighborhood();\n ArrayList<Agent> arrestList = new ArrayList<>();\n for (Position neighbor : occupiedNeighbor) {\n Person person = neighbor.getOccupiedPerson();\n String className = person.getClass().getName();\n // if this is a agent and is active\n if (className.equals(Person.AGENT)) {\n if (((Agent) person).isActive()) {\n arrestList.add((Agent) person);\n }\n }\n }\n\n // If there at least one agent nearby\n if (0 != arrestList.size()) {\n // Randomly pick active agent to jail\n Random random = new Random();\n int maxIndex = arrestList.size();\n int randomIndex = random.nextInt(maxIndex);\n Agent arrestAgent = arrestList.get(randomIndex);\n int jailTerm = random.nextInt(getPersonEnvironment().getMaxJailTerm());\n arrestAgent.beArrested(jailTerm, this);\n }\n }", "protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n int UPDATE_INTERVAL = 1000 * 60 * 5;\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n int FASTEST_INTERVAL = 5000;\n mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n int DISPLACEMENT = 20;\n mLocationRequest.setSmallestDisplacement(DISPLACEMENT); // 20 meters\n }", "public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "public NamedAction createNamedAction(String name) {\n NamedActionImpl action = new NamedActionImpl();\n action.setName(name);\n return action;\n }", "protected abstract void createTriggerOrAction();", "public NormalRoom(String description, Action... action) {\n\t\tsuper(description, action);\n\t}", "public NewTunnelAction() {\r\n putValue(Action.NAME, \"New Tunnel\");\r\n putValue(Action.SMALL_ICON,\r\n new ResourceIcon(ActiveTunnelsSessionPanel.class,\r\n \"add.png\"));\r\n putValue(Action.SHORT_DESCRIPTION, \"New Tunnel\");\r\n putValue(Action.LONG_DESCRIPTION,\r\n \"Create a new secure tunnel\");\r\n putValue(Action.MNEMONIC_KEY, new Integer('n'));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_T, Keyboard_Modifier));\r\n putValue(Action.ACTION_COMMAND_KEY, \"new-tunnel-command\");\r\n putValue(StandardAction.ON_MENUBAR, new Boolean(true));\r\n putValue(StandardAction.MENU_NAME, \"Tunnel\");\r\n putValue(StandardAction.MENU_ITEM_GROUP, new Integer(50));\r\n putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(10));\r\n putValue(StandardAction.ON_TOOLBAR, new Boolean(true));\r\n putValue(StandardAction.TOOLBAR_GROUP, new Integer(5));\r\n putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(5));\r\n putValue(StandardAction.HIDE_TOOLBAR_TEXT, new Boolean(false));\r\n putValue(StandardAction.ON_CONTEXT_MENU, new Boolean(true));\r\n putValue(StandardAction.CONTEXT_MENU_GROUP, new Integer(5));\r\n putValue(StandardAction.CONTEXT_MENU_WEIGHT, new Integer(5));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_N, Keyboard_Modifier));\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }", "public BattleWeaponsSegmentAction() {\n }", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "public static BucketbotTask createTaskMOVE(Circle c) {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.MOVE;\r\n\t\tt.destination = c;\r\n\t\treturn t;\r\n\t}", "MoveActionController createMoveActionController();", "protected PMBaseAction() {\r\n super();\r\n }", "public Place goNorth();", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "public Action(String name) {\n this.name = name;\n }", "public ExecuteAction()\n {\n this(null);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "public static Action buildShip(int id, char type) {\n\t\treturn new Action(id, type);\n\t}", "Oracion createOracion();", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "public void createFriend(ActionEvent actionEvent) {\n Friend f = new Friend(getName.getText(),getPhone.getText());\n listFriends.getItems().add(f);\n getName.clear();\n getPhone.clear();\n }", "public void createLocationRequest(){\n locationRequest = new LocationRequest();\n locationRequest.setInterval(1000);\n locationRequest.setFastestInterval(500);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }", "public ScheduledActionAction() {\n\n }", "public ElementAction(String label) {\r\n\t\tthis(label, true);\r\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }" ]
[ "0.67906517", "0.6518271", "0.6129316", "0.6085668", "0.6085668", "0.6085668", "0.60802734", "0.60486925", "0.5966385", "0.5815725", "0.5695938", "0.5376089", "0.53672296", "0.527376", "0.52572304", "0.5240696", "0.5210045", "0.51803356", "0.5179967", "0.5153246", "0.5138728", "0.51373243", "0.5135538", "0.50741774", "0.5045289", "0.49932677", "0.49925372", "0.49901903", "0.49828088", "0.4973183", "0.49699923", "0.49353915", "0.4927623", "0.49263388", "0.4922202", "0.48882684", "0.48724607", "0.4848348", "0.48288974", "0.48078147", "0.47887132", "0.47810453", "0.47762403", "0.47731912", "0.47719216", "0.4763119", "0.47615534", "0.47590506", "0.47566912", "0.4755984", "0.47477093", "0.47269744", "0.47239125", "0.47224662", "0.47152907", "0.47147548", "0.47140974", "0.47072875", "0.47054154", "0.46991804", "0.469895", "0.46987176", "0.4695933", "0.46860513", "0.46704093", "0.46694043", "0.46669757", "0.46568853", "0.46560007", "0.46426898", "0.46293563", "0.4619209", "0.4619209", "0.46174112", "0.46154416", "0.46135107", "0.46126878", "0.46030328", "0.46025032", "0.46007404", "0.45954913", "0.45952007", "0.45827928", "0.45755062", "0.45755062", "0.45755062", "0.45755062", "0.45755062", "0.4565811", "0.4564256", "0.45585993", "0.45565352", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595" ]
0.5693334
11
Creates a new NearAction
public NearAction(String name, Icon icon, int direction, int magnitude, boolean localize) { super(localize ? Localizer.localize("GefBase", name) : name, icon); this.direction = direction; this.magnitude = magnitude; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public NearAction(String name, int direction) {\r\n this(name, direction, 1, false);\r\n }", "public NearAction(String name, int direction, int magnitude) {\r\n this(name, direction, magnitude, false);\r\n }", "public NearAction(String name, int direction, boolean localize) {\r\n this(name, direction, 1, localize);\r\n }", "Action createAction();", "Action createAction();", "Action createAction();", "public NearAction(String name, Icon icon, int direction, int magnitude) {\r\n this(name, icon, direction, magnitude, false);\r\n }", "public NearAction(String name, Icon icon, int direction) {\r\n this(name, icon, direction, 1, false);\r\n }", "SendAction createSendAction();", "public NearAction(String name, int direction, int magnitude, boolean localize) {\r\n super(localize ? Localizer.localize(\"GefBase\", name) : name);\r\n this.direction = direction;\r\n this.magnitude = magnitude;\r\n }", "public NearAction(String name, Icon icon, int direction, boolean localize) {\r\n this(name, icon, direction, 1, localize);\r\n }", "protected Action makeAcceptAction() {\n\t\tAction myAction;\n\t\tmyAction = new Accept(getAgentID(),\n\t\t\t\t((ActionWithBid) opponentAction).getBid());\n\t\treturn myAction;\n\t}", "public void createAction() {\n }", "ForwardMinAction createForwardMinAction();", "NoAction createNoAction();", "ActionDefinition createActionDefinition();", "ActionBlock createActionBlock();", "public static Action push() {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.getGrid().isValid(a.getLocation().getAdjacentLocation(a.getDirection()))) {\n Actor b = a.getGrid().get(a.getLocation().getAdjacentLocation(a.getDirection()));\n if(b instanceof Movable && b instanceof DestructibleActor) {\n DestructibleActor c = (DestructibleActor) b;\n c.setDirection(a.getDirection());\n if(c.canMove()) {\n c.move();\n a.move();\n a.energy = a.energy - getCost();\n }\n\n }\n }\n }\n\n @Override\n public int getCost() {\n return 10;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return null;\n }\n\n @Override\n public String toString() {\n return \"Push()\";\n }\n };\n }", "public static Action spawn(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation() && a.getFacing() == null) {\n if(a.energy >= getCost()) {\n try {\n Actor b = (Actor) e.newInstance();\n b.putSelfInGrid(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n } catch(InstantiationException r) {\n r.printStackTrace();\n } catch(IllegalAccessException r) {\n r.printStackTrace();\n }\n a.energy = a.energy - 400;\n }\n }\n }\n\n @Override\n public int getCost() {\n return 400;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Spawn(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public Agent createNewAgent() throws MaceException{\r\n\t\tAgent agent = new Agent(\"n\" + maxAgentId, Agent.AGENT_BUYER);\r\n\t\taddAgent(agent);\r\n\t\tmaxAgentId++;\r\n\t\treturn agent;\r\n\t}", "public CreateIndividualPreAction() {\n }", "Builder addPotentialAction(Action value);", "public GetIndividualsFullAction() {\n super();\n }", "ActionNew()\n {\n super(\"New\");\n this.setShortcut(UtilGUI.createKeyStroke('N', true));\n }", "public NewAction() {\n\t\tsuper(\"New...\", null);\n\t\tputValue(ACCELERATOR_KEY, KeyStroke.getKeyStroke(KeyEvent.VK_N, MAIN_MENU_MASK));\n\t}", "public NewNetworkAction(IWorkbenchWindow window) {\r\n\t\t// this.window = window;\r\n\t\tsetId(ID);\r\n\t\tsetText(\"&New\");\r\n\t\tsetToolTipText(\"Opens dialog to get network configuration file\");\r\n\t\tActionContainer.add(ID, this);\r\n\t}", "public String actionCreateNew() {\r\n \t\tsetBook(new Book());\r\n \t\treturn \"new\";\r\n \t}", "protected IAction createAction(IEvent event, String label, String assign)\n\t\t\tthrows RodinDBException {\n\t\tIAction action = event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t\taction.setLabel(label, null);\n\t\taction.setAssignmentString(assign, null);\n\t\treturn action;\n\t}", "public Action newAction(Object data) throws Exception;", "public PlaceAndMoveAction(Game game, ModelPlayer player, Direction direction) {\n this.direction = direction;\n this.player = player;\n }", "public Command createInstance() {\n\t\t\n\t\tif(name == \"Direction\")\n\t\t\treturn new Direction();\n\t\t\n\t\tif(name == \"Gear\")\n\t\t\treturn new Gear();\n\t\t\n\t\tif(name == \"Pause\")\n\t\t\treturn new Pause();\n\t\t\n\t\treturn null;\n\t\t\n\t}", "private Action initializeAction(final String classname) {\n\t\tAction action = null;\n\t\tif (classname != null && !\"\".equals(classname)) {\n\t\t\tClass<?> clazz = null;\n\t\t\ttry {\n\t\t\t\tclazz = Class.forName(classname);\n\t\t\t\taction = (Action) clazz.newInstance();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\tlog.error(\"Cannot instantiate action class: \" + classname);\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\tlog.error(\"Not privileged to access action instance: \"\n\t\t\t\t\t\t+ classname);\n\t\t\t} catch (Throwable e) {\n\t\t\t\tlog.error(\"Cannot load action class: \" + classname);\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\tif (action == null) {\n\t\t\t// Instantiate a mock action such that menu item can\n\t\t\t// be displayed.\n\t\t\taction = new DummyAction();\n\t\t\tlog.warn(\"Instantiated mock action class.\");\n\t\t}\n\t\treturn action;\n\t}", "ForwardAction createForwardAction();", "Builder addPotentialAction(Action.Builder value);", "public Action newAction(String command) {\n\t\tif (command == null)\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"No legal command string passed!\");\n\t\tif (super.containsKey(command))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\taction.putValue(Action.ACTION_COMMAND_KEY, command);\n\t\tsuper.put(command, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "public SearchContestsManagerAction() {\r\n }", "ActionType createActionType();", "TurnAction createTurnAction();", "public static Action place(final Class<?> e) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n if(a.isFacingValidLocation()) {\n if(!a.isFacing(Actor.class)) {\n if(a.isHolding(e)) {\n try {\n ((Placeable) e.newInstance()).place(a.getGrid(), a.getLocation().getAdjacentLocation(a.getDirection()));\n a.removeItem(e);\n } catch(InstantiationException e) {\n e.printStackTrace();\n } catch(IllegalAccessException e) {\n e.printStackTrace();\n }\n }\n\n }\n\n }\n }\n\n @Override\n public int getCost() {\n return 0;\n }\n\n @Override\n public boolean isExclusive() {\n return true;\n }\n\n @Override\n public Object getData() {\n return e;\n }\n\n @Override\n public String toString() {\n return \"Place(\" + (e != null ? e.toString() : \"null\") + \")\";\n }\n };\n }", "public MemberAction() {\n\t\tsuper();\n\t}", "DomainAction createDomainAction();", "public InitiateAttackNonCreatureAction() {\n super(new CreatureAttacksNonCreatureRule());\n }", "public Action newAction(Object key) {\n\t\tif (key == null)\n\t\t\tthrow new IllegalArgumentException(\"No legal key passed!\");\n\t\tif (super.containsKey(key))\n\t\t\tthrow new IllegalArgumentException(\n\t\t\t\t\t\"Allready kontains a mapping for that key!\");\n\t\tAction action = new ActionForward();\n\t\tsuper.put(key, action);\n\t\tactionList.add(action);\n\t\treturn action;\n\t}", "@Override\n\tpublic void createAction(Model m) {\n\t\t\n\t}", "public VisitAction() {\n }", "public AETinteractions() {\r\n\t}", "protected abstract Intent createOne();", "@Override\n\tpublic Location newInstance() {\n\t\treturn new Location(this.X,this.Y,0);\n\t}", "@Override\n\tpublic void newAction() {\n\t\t\n\t}", "protected void createLocationRequest() {\n\t\tmLocationRequest = new LocationRequest();\n\t\tmLocationRequest.setInterval(UPDATE_INTERVAL);\n\t\tmLocationRequest.setFastestInterval(FATEST_INTERVAL);\n\t\tmLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n\t\tmLocationRequest.setSmallestDisplacement(DISPLACEMENT);\n\t}", "Builder addPotentialAction(String value);", "@Override\n protected Action[] createActions() {\n return new Action[0];\n }", "protected void createLocationRequest() {\n System.out.println(\"In CREATE LOCATION REQUEST\");\n mLocationRequest = new LocationRequest();\n mLocationRequest.setInterval(60 * 1000);\n mLocationRequest.setFastestInterval(5 * 1000);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n //mLocationRequest.setSmallestDisplacement(Utils.DISPLACEMENT);\n }", "private PSAAClientActionFactory()\n {\n }", "private AliasAction() {\n\n\t}", "CustomAction(String actionType, String color, double startX, double startY){\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"color\", color);\n attributes.put(\"startX\", startX);\n attributes.put(\"startY\", startY);\n action.put(\"Action\", attributes);\n }", "protected void pushAction(iNamedObject node)\n\t{\n\t}", "public UpcomingContestsManagerAction() {\r\n }", "public GetMarkerSetMembershipAction() {\n }", "public void action() throws Exception {\n // Cop move to another place\n move();\n\n // Search for agents nearby\n ArrayList<Position> occupiedNeighbor = this.getPosition().getOccupiedNeighborhood();\n ArrayList<Agent> arrestList = new ArrayList<>();\n for (Position neighbor : occupiedNeighbor) {\n Person person = neighbor.getOccupiedPerson();\n String className = person.getClass().getName();\n // if this is a agent and is active\n if (className.equals(Person.AGENT)) {\n if (((Agent) person).isActive()) {\n arrestList.add((Agent) person);\n }\n }\n }\n\n // If there at least one agent nearby\n if (0 != arrestList.size()) {\n // Randomly pick active agent to jail\n Random random = new Random();\n int maxIndex = arrestList.size();\n int randomIndex = random.nextInt(maxIndex);\n Agent arrestAgent = arrestList.get(randomIndex);\n int jailTerm = random.nextInt(getPersonEnvironment().getMaxJailTerm());\n arrestAgent.beArrested(jailTerm, this);\n }\n }", "protected void createLocationRequest() {\n mLocationRequest = new LocationRequest();\n int UPDATE_INTERVAL = 1000 * 60 * 5;\n mLocationRequest.setInterval(UPDATE_INTERVAL);\n int FASTEST_INTERVAL = 5000;\n mLocationRequest.setFastestInterval(FASTEST_INTERVAL);\n mLocationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n int DISPLACEMENT = 20;\n mLocationRequest.setSmallestDisplacement(DISPLACEMENT); // 20 meters\n }", "public Button(String command, String name)\n {\n //command that will activate the infrared remote on the pi when this is sent to the command line\n this.command = \"irsend SEND_ONCE \" + name + \" KEY_\" + command.toUpperCase(); \n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$CircuitCup$actions(this);\r\n }", "public NamedAction createNamedAction(String name) {\n NamedActionImpl action = new NamedActionImpl();\n action.setName(name);\n return action;\n }", "protected abstract void createTriggerOrAction();", "public NormalRoom(String description, Action... action) {\n\t\tsuper(description, action);\n\t}", "public NewTunnelAction() {\r\n putValue(Action.NAME, \"New Tunnel\");\r\n putValue(Action.SMALL_ICON,\r\n new ResourceIcon(ActiveTunnelsSessionPanel.class,\r\n \"add.png\"));\r\n putValue(Action.SHORT_DESCRIPTION, \"New Tunnel\");\r\n putValue(Action.LONG_DESCRIPTION,\r\n \"Create a new secure tunnel\");\r\n putValue(Action.MNEMONIC_KEY, new Integer('n'));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_T, Keyboard_Modifier));\r\n putValue(Action.ACTION_COMMAND_KEY, \"new-tunnel-command\");\r\n putValue(StandardAction.ON_MENUBAR, new Boolean(true));\r\n putValue(StandardAction.MENU_NAME, \"Tunnel\");\r\n putValue(StandardAction.MENU_ITEM_GROUP, new Integer(50));\r\n putValue(StandardAction.MENU_ITEM_WEIGHT, new Integer(10));\r\n putValue(StandardAction.ON_TOOLBAR, new Boolean(true));\r\n putValue(StandardAction.TOOLBAR_GROUP, new Integer(5));\r\n putValue(StandardAction.TOOLBAR_WEIGHT, new Integer(5));\r\n putValue(StandardAction.HIDE_TOOLBAR_TEXT, new Boolean(false));\r\n putValue(StandardAction.ON_CONTEXT_MENU, new Boolean(true));\r\n putValue(StandardAction.CONTEXT_MENU_GROUP, new Integer(5));\r\n putValue(StandardAction.CONTEXT_MENU_WEIGHT, new Integer(5));\r\n //Cerlane (ALT to CTRL)\r\n putValue(Action.ACCELERATOR_KEY,\r\n KeyStroke.getKeyStroke(KeyEvent.VK_N, Keyboard_Modifier));\r\n }", "protected void init_actions()\n {\n action_obj = new CUP$PCLParser$actions(this);\n }", "public BattleWeaponsSegmentAction() {\n }", "protected void init_actions()\n {\n action_obj = new CUP$Grm$actions();\n }", "CustomAction(String actionType, String message) {\n action.put(\"Object\", actionType);\n JSONObject attributes = new JSONObject();\n attributes.put(\"message\", message);\n action.put(\"Action\", attributes);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$CoolParser$actions(this);\n }", "public static BucketbotTask createTaskMOVE(Circle c) {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.MOVE;\r\n\t\tt.destination = c;\r\n\t\treturn t;\r\n\t}", "MoveActionController createMoveActionController();", "protected PMBaseAction() {\r\n super();\r\n }", "public Place goNorth();", "protected void init_actions()\r\n {\r\n action_obj = new CUP$Parser$actions(this);\r\n }", "public Action(String name) {\n this.name = name;\n }", "public ExecuteAction()\n {\n this(null);\n }", "protected void init_actions()\r\n {\r\n action_obj = new CUP$parser$actions(this);\r\n }", "public static Action buildShip(int id, char type) {\n\t\treturn new Action(id, type);\n\t}", "Oracion createOracion();", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$Parser$actions(this);\n }", "public void createFriend(ActionEvent actionEvent) {\n Friend f = new Friend(getName.getText(),getPhone.getText());\n listFriends.getItems().add(f);\n getName.clear();\n getPhone.clear();\n }", "public void createLocationRequest(){\n locationRequest = new LocationRequest();\n locationRequest.setInterval(1000);\n locationRequest.setFastestInterval(500);\n locationRequest.setPriority(LocationRequest.PRIORITY_HIGH_ACCURACY);\n }", "public ScheduledActionAction() {\n\n }", "public ElementAction(String label) {\r\n\t\tthis(label, true);\r\n\t}", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }", "protected void init_actions()\n {\n action_obj = new CUP$parser$actions(this);\n }" ]
[ "0.67906517", "0.6518271", "0.6129316", "0.6085668", "0.6085668", "0.6085668", "0.60802734", "0.60486925", "0.5966385", "0.5815725", "0.5693334", "0.5376089", "0.53672296", "0.527376", "0.52572304", "0.5240696", "0.5210045", "0.51803356", "0.5179967", "0.5153246", "0.5138728", "0.51373243", "0.5135538", "0.50741774", "0.5045289", "0.49932677", "0.49925372", "0.49901903", "0.49828088", "0.4973183", "0.49699923", "0.49353915", "0.4927623", "0.49263388", "0.4922202", "0.48882684", "0.48724607", "0.4848348", "0.48288974", "0.48078147", "0.47887132", "0.47810453", "0.47762403", "0.47731912", "0.47719216", "0.4763119", "0.47615534", "0.47590506", "0.47566912", "0.4755984", "0.47477093", "0.47269744", "0.47239125", "0.47224662", "0.47152907", "0.47147548", "0.47140974", "0.47072875", "0.47054154", "0.46991804", "0.469895", "0.46987176", "0.4695933", "0.46860513", "0.46704093", "0.46694043", "0.46669757", "0.46568853", "0.46560007", "0.46426898", "0.46293563", "0.4619209", "0.4619209", "0.46174112", "0.46154416", "0.46135107", "0.46126878", "0.46030328", "0.46025032", "0.46007404", "0.45954913", "0.45952007", "0.45827928", "0.45755062", "0.45755062", "0.45755062", "0.45755062", "0.45755062", "0.4565811", "0.4564256", "0.45585993", "0.45565352", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595", "0.4554595" ]
0.5695938
10
////////////////////////////////////////////////////////////// Action API Move the selected items a few pixels in the given direction. Note that the sign convention is the opposite of ScrollAction.
@Override public void actionPerformed(ActionEvent e) { super.actionPerformed(e); Editor ce = Globals.curEditor(); SelectionManager sm = ce.getSelectionManager(); if (sm.getLocked()) { Globals.showStatus("Cannot Modify Locked Objects"); return; } int dx = 0, dy = 0; switch (direction) { case LEFT: dx = 0 - magnitude; break; case RIGHT: dx = magnitude; break; case UP: dy = 0 - magnitude; break; case DOWN: dy = magnitude; break; } // Should I move it so that it aligns with the next grid? sm.translate(dx, dy); sm.endTrans(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private MoveAction moveInDirection(Direction direction) {\n\t\tposition.x += direction.x();\n\t\tposition.y += direction.y();\n\t\tmoveAllLists();\n\t\treturn new MoveAction(direction.moveCode());\n\t}", "private void moveSelection(int dx, int dy) {\n\t\tint y = getMoveSelectionY(dy);\n\t\tint x = getMoveSelectionX(dx);\n\n\t\tverticalScrollBar.setValue(y);\n\t\thorizontalScrollBar.setValue(x);\n\t}", "void scroll(int dir) {\n if (!isScrolling && selectedEgg - dir >= 0 && selectedEgg - dir < shopEggs.size()) {\n isScrolling = true;\n if (dir > 0) {\n setEggGoRight(selectedEgg);\n setEggGoRight(selectedEgg - 1);\n } else {\n setEggGoLeft(selectedEgg);\n setEggGoLeft(selectedEgg + 1);\n }\n selectedEgg -= dir;\n }\n }", "@Override\n\tpublic void drag(EditorInterface i, MouseEvent e) {\n\t\tfor(Clip elem :i.getSelection().getContents()) {\n\t\t\tCommandMove mv=new CommandMove( i,elem,e.getX()-pressed_x, e.getY()-pressed_y);\n\t\t\tlist.add(mv);\n\t\t\tmv.execute();\n\t\t}\n\t\tpressed_x = e.getX();\n\t\tpressed_y = e.getY();\n\t}", "public void setDirectionMove(double direction);", "@Override // see item.java\n\tpublic void move(Direction dir, Distance d) {\n\n\t}", "public void adjustItemCount(int direction, int count) throws JposException;", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int pos, long l) {\n move(view,pos);\n\n }", "public void selectOrMove(ME_ENUM me_enum, MouseEvent me) {\n if (me.getButton() != MouseEvent.BUTTON1 && ui_inter != UI_INTERACTION.SELECTING && ui_inter != UI_INTERACTION.MOVING) return;\n RenderContext myrc = (RenderContext) rc;\n if (myrc != null) {\n switch (me_enum) {\n case PRESSED: Set<String> sel = myrc.filterEntities(getRTParent().getSelectedEntities());\n\n\t\t // Figure what's under the mouse\n Set<String> under_mouse = underMouse(me);\n\n // If what's under the mouse is already selected, then cause it to be moving\n\t\t if (Utils.overlap(sel,under_mouse)) { ui_inter = UI_INTERACTION.MOVING; \n\t\t moving_set = sel; }\n else if (under_mouse.size() > 0 && \n\t\t (last_shft_down || last_ctrl_down)) { setOperation(under_mouse); }\n\t\t else if (under_mouse.size() > 0) { ui_inter = UI_INTERACTION.MOVING; \n\t\t getRTParent().setSelectedEntities(under_mouse);\n\t\t moving_set = under_mouse; }\n\t\t else { ui_inter = UI_INTERACTION.SELECTING; }\n\n\t\t initializeDragVars(me);\n\n\t\t repaint();\n\t\t break;\n case DRAGGED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING); repaint(); break;\n\tcase RELEASED: updateDragVars(me, ui_inter == UI_INTERACTION.MOVING);\n boolean no_move = false;\n\t\t if (ui_inter == UI_INTERACTION.MOVING) {\n double dx = m_wx1 - m_wx0, dy = m_wy1 - m_wy0;\n if (dx != 0 || dy != 0) {\n Iterator<String> it = moving_set.iterator();\n while (it.hasNext()) {\n String entity = it.next();\n Point2D pt = entity_to_wxy.get(entity);\n entity_to_wxy.put(entity, new Point2D.Double(pt.getX() + dx, pt.getY() + dy));\n transform(entity);\n }\n getRTComponent().render();\n } else no_move = true;\n\t\t } \n if (ui_inter == UI_INTERACTION.SELECTING || no_move) {\n int x0 = m_x0 < m_x1 ? m_x0 : m_x1, y0 = m_y0 < m_y1 ? m_y0 : m_y1,\n\t\t\t dx = (int) Math.abs(m_x1 - m_x0), dy = (int) Math.abs(m_y1 - m_y0);\n\t\t\t if (dx == 0) dx = 1; if (dy == 0) dy = 1;\n\t\t\t Rectangle2D rect = new Rectangle2D.Double(x0,y0,dx,dy);\n\n\t\t Set<String> new_sel = new HashSet<String>();\n\t\t Iterator<String> it = myrc.node_to_geom.keySet().iterator();\n\t\t\t while (it.hasNext()) {\n\t\t\t String node = it.next(); Shape shape = myrc.node_to_geom.get(node);\n\t\t\t if (rect.intersects(shape.getBounds())) new_sel.addAll(myrc.node_coord_set.get(node));\n\t\t\t }\n setOperation(new_sel);\n\t\t }\n ui_inter = UI_INTERACTION.NONE;\n\t\t repaint(); break;\n case CLICKED: setOperation(underMouse(me));\n repaint(); break;\n\tcase MOVED:\n\t\tbreak;\n\tcase WHEEL:\n\t\tbreak;\n\tdefault:\n\t\tbreak;\n }\n }\n }", "public void move(String direction) {\n \n }", "private MoveAction moveTowardsPosition(Position target) {\n\t\tint intDir = 0;\n\n\t\tif (position.y < target.y) {\n\t\t\tposition.y++;\n\t\t\tintDir += 1;\n\t\t}\n\t\tif (position.y > target.y) {\n\t\t\tposition.y--;\n\t\t\tintDir += 2;\n\t\t}\n\t\tif (position.x < target.x) {\n\t\t\tposition.x++;\n\t\t\tintDir += 3;\n\t\t}\n\t\tif (position.x > target.x) {\n\t\t\tposition.x--;\n\t\t\tintDir += 6;\n\t\t}\n\n\t\tmoveAllLists();\n\t\treturn new MoveAction(Direction.fromInt(intDir).moveCode());\n\t}", "void move(IntVector delta);", "public void move(String direction);", "B scrollToSelectedItem(boolean scrollToSelectedItem);", "public void move(int delta);", "private void selectPosition(int i, View view) {\n if (i >= 0) {\n this.mAccessibilityMoving = false;\n List<TileQueryHelper.TileInfo> list = this.mTiles;\n int i2 = this.mEditIndex - 1;\n this.mEditIndex = i2;\n list.remove(i2);\n notifyItemRemoved(this.mEditIndex);\n if (i == this.mEditIndex) {\n i--;\n }\n move(this.mAccessibilityFromIndex, i, view);\n notifyDataSetChanged();\n }\n }", "void move(boolean action, int frameHeight) {\n if (action) {\n //Touching\n y -= 20;\n } else {\n //Releasing\n y += 20;\n }\n\n //check box position\n if (y < 0)\n y = 0;\n\n if (y > frameHeight - size)\n y = frameHeight - size;\n\n view.setY(y);\n\n }", "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 }", "@Override\n\t\t\t\tpublic void onActionMove(float x, float y) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onActionMove(float x, float y) {\n\n\t\t\t\t}", "@Override\n\t\t\t\tpublic void onActionMove(float x, float y) {\n\n\t\t\t\t}", "public abstract void move(int p_index) ;", "public void selectionUp() {\n\t\tselectedSlotPosY = (selectedSlotPosY == (C.MENU_INVENTORY_ITEM_SLOT_HEIGHT - 1)) ? 0 : selectedSlotPosY+1;\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tif (i >= size)\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"insertion sort terminated\");\n\t\t\t\t\ttimer.stop();\n\t\t\t\t\tbox.setColorRange(0, box.getNumber() - 1, END_COLOR);\n\t\t\t\t\tpaintBox();\n\t\t\t\t}\n\t\t\t\t// Step one find a suitable index where to place the current rectangle\n\t\t\t\telse if (codeFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tRectangle currRect = box.getRectangle(i);\n\t\t\t\t\tcurrRect.setColor(FOCUS_COLOR1);\n\t\t\t\t\tRectangle scanRect;\n\t\t\t\t\tfor (k = i - 1; k >= 0; k--)\n\t\t\t\t\t{\n\t\t\t\t\t\tscanRect = box.getRectangle(k);\n\t\t\t\t\t\tscanRect.setColor(FOCUS_COLOR2);\n\t\t\t\t\t\tif (scanRect.getData() > currRect.getData())\n\t\t\t\t\t\t{\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\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t// getting the index of first rectangle to move to the left\n\t\t\t\t\tindex = i - 1;\n\t\t\t\t\tcodeFlag = 0;\n\t\t\t\t\tdownFlag = 1;\n\t\t\t\t\tcurrentDownCount = 0;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//moving the current rectangle down\n\t\t\t\telse if (downFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(i, 0, YCHANGE);\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tcurrentDownCount += YCHANGE;\n\t\t\t\t\tif (currentDownCount >= DOWN)\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = currentDownCount - DOWN;\n\t\t\t\t\t\tbox.addOffsetRectangle(i, 0, -excess);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tdownFlag = 0;\n\t\t\t\t\t\trightBlockFlag = 1;\n\t\t\t\t\t\tindexRightCount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving the block of rectangle to the left\n\t\t\t\telse if (rightBlockFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tif (index <= k)\n\t\t\t\t\t{\n\t\t\t\t\t\trightBlockFlag = 0;\n\t\t\t\t\t\tleftFlag = 1;\n\t\t\t\t\t\tcurrentLeftCount = 0;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\trightFlag = 1;\n\t\t\t\t\t\trightBlockFlag = 0;\n\t\t\t\t\t\tindexRightCount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving each rectangle of the block to the right\n\t\t\t\telse if (rightFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(index, XCHANGE, 0);\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tindexRightCount += XCHANGE;\n\t\t\t\t\t\n\t\t\t\t\tif (indexRightCount >= width)\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = indexRightCount - width;\n\t\t\t\t\t\tbox.addOffsetRectangle(index, -excess, 0);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\trightFlag = 0;\n\t\t\t\t\t\trightBlockFlag = 1;\n\t\t\t\t\t\tindex--;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving the current rectangle to the left\n\t\t\t\telse if (leftFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(i, -XCHANGE, 0);\n\t\t\t\t\tcurrentLeftCount += XCHANGE;\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tif (currentLeftCount >= width * (i - 1 - k))\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = currentLeftCount - width * (i - 1 - k);\n\t\t\t\t\t\tbox.addOffsetRectangle(i, excess, 0);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tleftFlag = 0;\n\t\t\t\t\t\tupFlag = 1;\n\t\t\t\t\t\tcurrentUpCount = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// moving the current rectangle up\n\t\t\t\telse if (upFlag == 1)\n\t\t\t\t{\n\t\t\t\t\tbox.addOffsetRectangle(i, 0, -YCHANGE);\n\t\t\t\t\tcurrentUpCount += YCHANGE;\n\t\t\t\t\tpaintBox();\n\t\t\t\t\tif (currentUpCount >= DOWN)\n\t\t\t\t\t{\n\t\t\t\t\t\tint excess = currentUpCount - DOWN;\n\t\t\t\t\t\tbox.addOffsetRectangle(i, 0, excess);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Reflecting the changes internally\n\t\t\t\t\t\t\n\t\t\t\t\t\tRectangle currRect = box.getRectangle(i);\n\t\t\t\t\t\tcurrRect.setColor(FOCUS_COLOR2);\n\t\t\t\t\t\tpaintBox();\n\t\t\t\t\t\tRectangle scanRect;\n\t\t\t\t\t\tint t;\n\t\t\t\t\t\tfor (t = i - 1; t >= 0; t--)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tscanRect = box.getRectangle(t);\n\t\t\t\t\t\t\tif (scanRect.getData() > currRect.getData())\n\t\t\t\t\t\t\t\tbox.setRectangle(box.getRectangle(t), t + 1);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbox.setRectangle(currRect, t + 1);\n\t\t\t\t\t\tdelayFlag1 = 1;\n\t\t\t\t\t\tupFlag = 0;\n\t\t\t\t\t\tdelay1 = 0;\n\t\t\t\t\t\tupFlag = 0;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse if (delayFlag1 == 1)\n\t\t\t\t{\n\t\t\t\t\tdelay1++;\n\t\t\t\t\tif (delay1 >= DELAY)\n\t\t\t\t\t{\n\t\t\t\t\t\tdelayFlag1 = 0;\n\t\t\t\t\t\tcodeFlag = 1;\n\t\t\t\t\t\ti++;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "@Override\n public void run(final DisplayEditor editor, final boolean selected)\n {\n List<Widget> widgets = editor.getWidgetSelectionHandler().getSelection();\n if (widgets.isEmpty())\n return;\n widgets = orderWidgetsByIndex(widgets);\n Collections.reverse(widgets);\n\n final CompoundUndoableAction compound = new CompoundUndoableAction(Messages.MoveDown);\n for (Widget widget : widgets)\n {\n final List<Widget> children = ChildrenProperty.getParentsChildren(widget).getValue();\n int orig = children.indexOf(widget);\n if (orig < children.size()-1)\n compound.add(new UpdateWidgetOrderAction(widget, orig, orig+1));\n else\n compound.add(new UpdateWidgetOrderAction(widget, orig, 0));\n }\n editor.getUndoableActionManager().execute(compound);\n }", "private void actionSwitchMove()\r\n\t{\r\n\t\tif (FormMainMouse.isSampleMovable)\r\n\t\t{\r\n\t\t\thelperSwitchMoveOff();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\thelperSwitchMoveOn();\r\n\r\n\t\t\t//---- Turn off sample selection mode\r\n\t\t\thelperSwitchSelectOff();\r\n\t\t}\r\n\t}", "@Override\n public void run(final DisplayEditor editor, final boolean selected)\n {\n final List<Widget> widgets = orderWidgetsByIndex(editor.getWidgetSelectionHandler().getSelection());\n if (widgets.isEmpty())\n return;\n final CompoundUndoableAction compound = new CompoundUndoableAction(Messages.MoveUp);\n for (Widget widget : widgets)\n {\n final List<Widget> children = ChildrenProperty.getParentsChildren(widget).getValue();\n int orig = children.indexOf(widget);\n if (orig > 0)\n compound.add(new UpdateWidgetOrderAction(widget, orig, orig-1));\n else\n compound.add(new UpdateWidgetOrderAction(widget, orig, -1));\n }\n editor.getUndoableActionManager().execute(compound);\n }", "public void moveSelectionUp(){\n if(mACPanel.isShowing()) {\n mACPanel.moveUp();\n return;\n }\n Cursor c = getCursor();\n int line = c.getLeftLine();\n int column = c.getLeftColumn();\n if(line - 1 < 0){\n line = 1;\n }\n int c_column = getText().getColumnCount(line - 1);\n if(column > c_column){\n column = c_column;\n }\n setSelection(line - 1, column);\n }", "private void positionItems(final int dx) {\n\t\tif(getChildCount() > 0){\n\t\t\tmDisplayOffset += dx;\n\t\t\tint left = mDisplayOffset;\n\t\t\tint height = this.getMeasuredHeight();\n\t\t\tfor(int i=0;i<getChildCount();i++){\n\t\t\t\tView child = getChildAt(i);\n\t\t\t\tint childWidth = child.getMeasuredWidth();\n\t\t\t\tint childHeight = child.getMeasuredHeight();\n\t\t\t\tif (!mAlineBottom) {\n\t\t\t\t\tchild.layout(left, mOffsetTop, left + childWidth, mOffsetTop + childHeight);\n\t\t\t\t} else {\n\t\t\t\t\tchild.layout(left, height - childHeight, left + childWidth, height);\n\t\t\t\t}\n\t\t\t\tleft += childWidth;\n\t\t\t}\n\t\t\tupdateSelected();\n\t\t}\n\t}", "void moveNext()\n\t{\n\t\tif (cursor != null) \n\t\t{\n\t\t\tif (cursor == back) \n\t\t\t{\n\t\t\t\tcursor = null;\n index = -1; //added cause i was failing the test scripts and forgot to manage the indices \n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tcursor = cursor.next; //moves cursor toward back of the list\n index++; //added cause i was failing to the test scripts and forgot to manage the indicies\n\t\t\t}\n\t\t}\n\t}", "private void moveItem(int oldPos, int newPos) {\n adapter.notifyItemMoved(oldPos, newPos);\n }", "private void computeMovingElement(MouseEvent event) {\n\t\tElement clickedElement = findElementUnder(HIT_SELECTION, clickedMousePoint);\n\n\t\tif ( clickedElement == null && clickedInteraction != null ) {\n\t\t\tclickedElement = clickedInteraction.getElement();\n\t\t}\n\t\t\n\t\tif ( clickedElement != null ) {\n\t\t\tfinal boolean keepPreviousSelection = (event.stateMask & SWT.MOD1) != 0;\n\t\t\tfinal boolean containsClicked = selectedElements.contains(clickedElement);\n\t\t\tif ( keepPreviousSelection || containsClicked ) {\n\t\t\t\tmovingElements.addAll(selectedElements);\n\t\t\t}\n\t\t\tif ( !containsClicked )\tmovingElements.add(0, clickedElement);\n\t\t}\n\t}", "public void act() \n {\n // Add your action code here.\n /*\n if ( pixelsMoved >= 20 )\n {\n moving = false;\n pixelsMoved = 0;\n }\n */\n if ( moving )\n {\n move(1);\n pixelsMoved++;\n \n if ( pixelsMoved >= 20 )\n {\n setMoving( false );\n }\n }\n }", "public void setActionMoveCursor(GralUserAction action){ actionMoveCursor = action; }", "public void move(int distance);", "private long moveOn(int amount) {\n\t\t\tthis.position += amount;\n\t\t\treturn amount;\n\t\t}", "private void moved(MouseEvent e)\r\n {\n }", "public void move(int mv){\n\t\t\tx+= mv;\n\t\t}", "private Command createMoveCommand(ChangeBoundsRequest req) {\r\n\t\t// error check\r\n\t\tif (req.getEditParts().isEmpty() || !(req.getEditParts().get(0) instanceof EditPart)) {\r\n\t\t\tlogger.error(\"Request is empty. No item to move\");\r\n\t\t\treturn null;\r\n\t\t}\r\n\t\t\t\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<EditPart> selectedEPs = req.getEditParts();\r\n\t\tCompoundCommand compoundMoveCmd = new CompoundCommand(\"Move Item\");\r\n\t\t// moving onto a 'closed' TitledEditPart results in an show command being queued. \r\n\t\t// This flag prevents this command from being queued multiple times\r\n\t\tboolean alreadyShowing = false;\r\n\t\t\r\n\t\tfor (EditPart movedEP : selectedEPs) {\r\n\t\t\tContainableEditPart destEP = this;\r\n\t\t\tif (movedEP instanceof CommentEditPart && (destEP instanceof StrataRootEditPart)) {\r\n\t\t\t\tCommentEditPart child = (CommentEditPart)movedEP;\r\n\t\t\t\tRectangle origBounds = ((CommentEditPart)child).getFigure().getBounds();\r\n\t\t\t\tRectangle newBounds = ((ChangeBoundsRequest)req).getTransformedRectangle(origBounds);\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Currently not allowing comments to be dragged out of the viewport bounds. We are centering\r\n\t\t\t\t * the Strata diagram and pulling the comment out of the viewport bounds sometimes caused the \r\n\t\t\t\t * layout to go into infinite loop trying to center the diagram alongwith moving the comment.\r\n\t\t\t\t * Also look at class CommentEditPart method showFeedback() where the same has been done\r\n\t\t\t\t * for the feedback figure\r\n\t\t\t\t * We do same for Strata figures look at showChangeBoundsFeedback()\r\n\t\t\t\t */\r\n\t\t\t\tif (//!RSE.isExploratorySrvr() && \r\n\t\t\t\t\t\tRootEditPartUtils.isOutOfViewportBounds((FigureCanvas) getViewer().getControl(), newBounds)) {\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tcompoundMoveCmd.add(new MoveCommentCommand((Comment)child.getModel(), origBounds, newBounds, \r\n\t\t\t\t\t\tthis.getRootController().contentFig.getBounds().getTopLeft()));\r\n\t\t\t}\r\n\t\t\tif (!(movedEP instanceof StrataArtFragEditPart)) continue;\r\n\t\t\t\tStrataArtFragEditPart movedAFEP = (StrataArtFragEditPart) movedEP;\r\n\t\t\t\r\n\t\t\tLayer oldParentLyr = null;\r\n\t\t\tif (movedAFEP.getParent() instanceof LayerEditPart)\r\n\t\t\t\toldParentLyr = ((LayerEditPart)movedAFEP.getParent()).getLayer();\r\n\t\t\t\r\n\t\t\t// if moving onto an editpart check and show children (open package if unopened)\r\n\t\t\t// then move into the proper layer index\r\n\t\t\tif (destEP instanceof TitledArtifactEditPart) {\r\n\t\t\t\t// If we are adding to a user created Fragment make sure to add correctly\r\n\t\t\t\tif (destEP.getArtFrag() instanceof UserCreatedFragment) {\r\n\t\t\t\t\tcompoundMoveCmd.add(StrataArtFragEditPart.getAddUserCreatedFrag(destEP, movedAFEP, getRootModel()));\r\n\t\t\t\t\talreadyShowing = true;\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\telse if (!ClosedContainerDPolicy.isShowingChildren(this.getArtFrag()) && !alreadyShowing) {\r\n\r\n\t\t\t\t\t// When moving on top of a closed titled EP we either want\r\n\t\t\t\t\t// people to drop and open thepackage and move the dragged\r\n\t\t\t\t\t// item into it, or just not allow this type of dragging.\r\n\t\t\t\t\t// Here we do the latter \r\n//\t\t\t\t\tCompoundCommand showAFEPChildrenCmd = new CompoundCommand(\"Show Children\");\r\n//\t\t\t\t\tClosedContainerDPolicy.queryAndShowChildren(showAFEPChildrenCmd, this.getArtFrag());\r\n//\t\t\t\t\tcompoundMoveCmd.add(showAFEPChildrenCmd);\r\n//\t\t\t\t\talreadyShowing = true;\r\n//\t\t\t\t\tcompoundMoveCmd.add(createTitledMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t\t\tcontinue;\r\n\t\t\t\t}\r\n\t\t\t\tcompoundMoveCmd.add(createTitledMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t} else if (destEP instanceof CompositeLayerEditPart) {\r\n\t\t\t\tcompoundMoveCmd.add(createTitledMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t}\r\n\t\t\tif (destEP instanceof LayerEditPart && !(destEP instanceof CompositeLayerEditPart)) {\r\n\t\t\t\tcompoundMoveCmd.add(createLayerMoveCommand(req, movedAFEP, oldParentLyr));\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn compoundMoveCmd;\r\n\t}", "private void alignSelectedFurniture(final AlignmentAction alignmentAction) {\n final List<HomePieceOfFurniture> selectedFurniture = getMovableSelectedFurniture();\n if (selectedFurniture.size() >= 2) {\n final List<Selectable> oldSelection = this.home.getSelectedItems();\n final HomePieceOfFurniture leadPiece = this.leadSelectedPieceOfFurniture;\n final AlignedPieceOfFurniture [] alignedFurniture = \n AlignedPieceOfFurniture.getAlignedFurniture(selectedFurniture, leadPiece);\n this.home.setSelectedItems(selectedFurniture);\n alignmentAction.alignFurniture(alignedFurniture, leadPiece);\n if (this.undoSupport != null) {\n UndoableEdit undoableEdit = new AbstractUndoableEdit() {\n @Override\n public void undo() throws CannotUndoException {\n super.undo();\n undoAlignFurniture(alignedFurniture); \n home.setSelectedItems(oldSelection);\n }\n \n @Override\n public void redo() throws CannotRedoException {\n super.redo();\n home.setSelectedItems(selectedFurniture);\n alignmentAction.alignFurniture(alignedFurniture, leadPiece);\n }\n \n @Override\n public String getPresentationName() {\n return preferences.getLocalizedString(FurnitureController.class, \"undoAlignName\");\n }\n };\n this.undoSupport.postEdit(undoableEdit);\n }\n }\n }", "void moveTo(int dx, int dy);", "@Override\n public void actionPerformed(ActionEvent e){ \n move();\n }", "public void alignSelectedFurnitureSideBySide() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n alignFurnitureSideBySide(alignedFurniture, leadPiece);\n }\n });\n }", "public void moveCursorLeft();", "private void animateSelectedButton(View view, boolean translateToRight)\n {\n float dx = 0f;\n if (translateToRight)\n {\n dx = view.getX() + view.getWidth();\n }\n else\n {\n dx = view.getX() - view.getWidth();\n }\n\n ObjectAnimator animator = ObjectAnimator.ofFloat(view, \"x\", dx);\n animator.setDuration(300);\n animator.start();\n }", "@Override\n public void update() {\n if (changedState) {\n selectedPosY = selection * hItemBox + yPos + hItemBox;\n selectedPosX = xPos; \n changedState = false;\n }\n }", "public void moveListCursorDown(View cursorDown){\n if (foodItems.size() == 0){\n return;\n }\n\n listIdx++;\n listIdx = Math.min(listIdx, foodItems.size()-1);\n simpleList.setItemChecked(listIdx, true);\n simpleList.setSelection(listIdx);\n foodImage.setImageResource(foodItems.get(listIdx).getImageId());\n // scrolling the list down a bit to follow cursor\n if (listIdx != foodItems.size()-1) {\n // simpleList.scrollBy(0, heightToScroll);\n }\n }", "public void move(){\n super.move();\n if(getX() >= Main.WIDTH - getWidth() * 1.5) {\n setDirection(-1);\n } else if(getX() <= 50) {\n setDirection(1);\n }\n }", "public void moveSelectionDown(){\n if(mACPanel.isShowing()) {\n mACPanel.moveDown();\n return;\n }\n Cursor c = getCursor();\n int line = c.getLeftLine();\n int column = c.getLeftColumn();\n int c_line = getText().getLineCount();\n if(line + 1 >= c_line){\n setSelection(line, getText().getColumnCount(line));\n }else{\n int c_column = getText().getColumnCount(line + 1);\n if(column > c_column){\n column = c_column;\n }\n setSelection(line + 1, column);\n }\n }", "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 }", "@Override\n \tpublic boolean onTouch(View v, MotionEvent event) {\n \t\tif(event.getActionMasked() == MotionEvent.ACTION_DOWN) \n \t\t{\n \t\t\toffset_x = (int) event.getX();\n \t\t\toffset_y = (int) event.getY();\n \t\t\tselected_item = v;\n \t\t}\nreturn false;\n}", "public void move() {\n\t\tif ( board.getLevel() == 5 )\n\t\t\tmovementIndex = ( movementIndex + 1 ) % movement.length;\n\t}", "private void moveTileItemToOther(int i) {\n if (this.mTiles.size() > this.mSpanCount * 2) {\n ((SystemUIStat) Dependency.get(SystemUIStat.class)).handleControlCenterEvent(new QuickTilesRemovedEvent(this.mTiles.get(i).spec));\n this.mQSControlCustomizer.addInTileAdapter(this.mTiles.get(i), false);\n this.mTiles.remove(i);\n notifyItemRemoved(i);\n saveSpecs(this.mHost, false);\n }\n }", "public void move()\n {\n if(!pause)\n {\n if(up)\n { \n list.remove(0); \n head = new Location(head.getA(),head.getB()-15); \n list.add(head); \n }\n else if(down)\n {\n list.remove(0); \n head = new Location(head.getA(),head.getB()+15); \n list.add(head); \n }\n else if(left)\n {\n list.remove(0); \n head = new Location(head.getA()-15,head.getB()); \n list.add(head);\n }\n else if(right)\n {\n list.remove(0); \n head = new Location(head.getA()+15,head.getB()); \n list.add(head); \n }\n \n repaint();\n }\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 void moveAllItems() {\n for (BaseObject object : getAllItems()) {\n object.move();\n }\n }", "void move(int steps);", "void onItemMove(int fromPosition, int toPosition) {\n Collections.swap(mItems, fromPosition, toPosition);\n notifyItemMoved(fromPosition, toPosition);\n }", "public void moveListCursorUp(View cursorUp){\n if (foodItems.size() == 0){\n return;\n }\n\n listIdx--;\n listIdx = Math.max(listIdx, 0);\n simpleList.setItemChecked(listIdx, true);\n simpleList.setSelection(listIdx);\n foodImage.setImageResource(foodItems.get(listIdx).getImageId());\n // scrolling the list up a bit to follow cursor\n if (listIdx != 0) {\n // simpleList.scrollBy(0, -heightToScroll);\n }\n }", "public void move(int units)\n\t{\n\t\tsetPosition(position + units, true);\n\t}", "public void move (long delta){\r\n\r\n super.move(delta);\r\n }", "private int moveForward(int i, int s) {\n if (i + s >= items.length) {\n return ((i + s) - items.length);\n }\n return i + s;\n }", "public void move(Vector start,Vector dist);", "@Override\r\n\tprotected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) {\r\n\t\tif (_scrollActive) {\r\n\t\t\t_curScrollValue += mouseY - _lastScrollPosY;\r\n\t\t\t_curScrollValue = Math.max(0, Math.min(_curScrollValue, _maxScrollValue));\r\n\t\t\t_lastScrollPosY = mouseY;\r\n\t\t\treturn;\r\n\t\t}\r\n\r\n\t\tsuper.mouseClickMove(mouseX, mouseY, clickedMouseButton, timeSinceLastClick);\r\n\t}", "public void move(int dir) {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint nextX = x[i] + dir;\n\t\t\tif (nextX < 0 || nextX >= 10)\n\t\t\t\treturn;\n\t\t\tif (Tetris.game.grid[nextX][y[i]] != 0)\n\t\t\t\treturn;\n\t\t}\n\t\tfor (int i = 0; i < 4; i++)\n\t\t\tx[i] += dir;\n\t}", "public void moveSelectionRight(){\n Cursor c = getCursor();\n int line = c.getLeftLine();\n int column = c.getLeftColumn();\n int c_column = getText().getColumnCount(line);\n if(column + 1 <= c_column){\n char ch = mText.charAt(line,column);\n boolean emoji;\n if(emoji = isEmoji(ch)) {\n column ++;\n if(column + 1 > c_column){\n column--;\n }\n }\n if(!emoji && mACPanel.isShowing()) {\n if(!mLanguage.isAutoCompleteChar(ch)) {\n mACPanel.hide();\n }else{\n String prefix = mACPanel.getPrefix() + ch;\n mACPanel.setPrefix(prefix);\n }\n }\n setSelection(line, column + 1);\n }else{\n if(line + 1 == getLineCount()){\n setSelection(line, c_column);\n }else{\n setSelection(line + 1, 0);\n }\n }\n }", "@Override\n public void itemClick(int pos) {\n }", "public void moveEverythingALittle(){\n //ponieważ wszystko idealnie jest zsynchronizowane to else nie wykona sie gdy current = getDestination\n if(player.getCurrentX()<player.getDestinationX())\n player.currentX += 1;\n else if(player.getCurrentX()>player.getDestinationX())\n player.currentX -= 1;\n\n if( player.getCurrentY()<player.getDestinationY())\n player.currentY += 1;\n else if( player.getCurrentY()>player.getDestinationY())\n player.currentY -= 1;\n\n for(int i = 0; i < boxes.size(); i++){\n Box item = boxes.get(i);\n if(item.getCurrentX()<item.getDestinationX())\n item.currentX += 1;\n else if(item.getCurrentX()>item.getDestinationX())\n item.currentX -= 1;\n\n if( item.getCurrentY()<item.getDestinationY())\n item.currentY += 1;\n else if ( item.getCurrentY()>item.getDestinationY())\n item.currentY -= 1;\n }\n }", "public void move() {\n if (this.nextMove.equals(\"a\")) { // move down\n this.row = row + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"b\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"b\")) { // move right\n this.col = col + 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"c\";\n progress = 0;\n }\n } else if (this.nextMove.equals(\"c\")) { // move up\n this.row = row - 1;\n progress += 1;\n if (progress == steps) {\n nextMove = \"a\";\n progress = 0;\n }\n }\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\tDisplayThree.getInstance().addBox.changeContents(\"CREATURE\", true);\n\t\t\n\t\tif (e.getSource() == upArrowButton)\n\t\t{\n\t\t\tscrollUp();\n\t\t\t\n\t\t} else if (e.getSource() == downArrowButton)\n\t\t{\n\t\t\tscrollDown();\n\t\t\t\n\t\t} else if (e.getSource() == middleButtons[0])\n\t\t{\n\t\t\tselectedCreature = thingsInColumn.get(itemsVisible[0]);\n\t\t\t\n\t\t} else if (e.getSource() == middleButtons[1])\n\t\t{\n\t\t\tselectedCreature = thingsInColumn.get(itemsVisible[1]);\n\t\t\t\n\t\t} else if (e.getSource() == middleButtons[2])\n\t\t{\n\t\t\tselectedCreature = thingsInColumn.get(itemsVisible[2]);\n\t\t\t\n\t\t} else if (e.getSource() == middleButtons[3])\n\t\t{\n\t\t\tselectedCreature = thingsInColumn.get(itemsVisible[3]);\n\t\t}\n\t}", "public void moveSelectionHome(){\n setSelection(mCursor.getLeftLine(), 0);\n }", "@Override\n protected void mouseClickMove(int mouseX, int mouseY, int clickedMouseButton, long timeSinceLastClick) {\n this.screenContainer.mouseClickMove(mouseX, mouseY, clickedMouseButton, timeSinceLastClick);\n }", "public MoveAction(float xDir, float yDir, int alignment) {\n\t\tsuper(alignment);\n\t\tdX = xDir;\n\t\tdY = yDir;\n\t}", "public abstract void makeMove(int mouseDownX, int mouseDownY, int MouseUpX, int mouseUpY, int left, int top, int width, int height);", "public void move(int directionX, int directionY) {\r\n posX += directionX;\r\n posY += directionY;\r\n anchorX += directionX;\r\n anchorY += directionY;\r\n }", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n \t\t gd.getTank().move();\n\t\t}", "@Override\n\tpublic void move(int xPos, int yPos) {\n\t}", "public void move(){\n\t\t\n\t}", "public void moveCursorRight();", "public void moveTo(int pageIndex);", "public void move() {\r\n posX += movementX;\r\n posY += movementY;\r\n anchorX += movementX;\r\n anchorY += movementY;\r\n }", "private void readjustScrollToMiddleItem()\n\t{\n\t\tif (mSnappingToCenter)\n\t\t{\n\t\t\tView middleChild = getMiddleItem();\n\t\t\tif (middleChild != null)\n\t\t\t{\n\t\t\t\tmSelectedIndex = getMiddlePositon();\n\t\t\t\tint width = getWidth();\n\t\t\t\tint center = width/2;\n\t\t\t\tint childwidth = middleChild.getMeasuredWidth();\n\t\t\t\tint middleItemCenter = middleChild.getLeft() + childwidth /2;\n\t\t\t\tint moveDx = middleItemCenter-center;\n\t\t\t\tif (mAdjustAnimation!=null)\n\t\t\t\t{\n\t\t\t\t\tmAdjustAnimation.stop();\n\t\t\t\t}\n\t\t\t\tmAdjustAnimation = new AdjustPositionAnimation(moveDx);\n\t\t\t\tsetAnimation(mAdjustAnimation);\n\t\t\t\tstartAnimation(mAdjustAnimation);\n\t\t\t}\n\t\t}\n\t}", "public void move() {\n\t\tx+= -1;\n\t\tif (x < 0) {\n\t\t\tx = (processing.width - 1);\n\t\t}\n\t\ty+= 1;\n\t\tif (y > processing.height-1)\n\t\t\ty=0;\n\t}", "public void move() {\r\n\r\n\t\tif(x < 0) {\r\n\t\t\tx = 400;\r\n\t\t}\r\n\r\n\t\t// factor for speed increase\r\n\t\tx -= 1 * factor;\r\n\t}", "public void alignSelectedFurnitureOnRight() {\n alignSelectedFurniture(new AlignmentAction() {\n public void alignFurniture(AlignedPieceOfFurniture [] alignedFurniture, \n HomePieceOfFurniture leadPiece) {\n float maxXLeadPiece = getMaxX(leadPiece);\n for (AlignedPieceOfFurniture alignedPiece : alignedFurniture) {\n HomePieceOfFurniture piece = alignedPiece.getPieceOfFurniture();\n float maxX = getMaxX(piece);\n piece.setX(piece.getX() + maxXLeadPiece - maxX);\n }\n }\n });\n }", "@Override\n public void moveX(int delta, int direction) {\n this.setX(this.getX() + delta * BIKE_SPEED * direction);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tSystem.out.println(e.getSource());\n\t\t\t\tSystem.out.println( e.getActionCommand());\n\t\t\t\tString s = e.getActionCommand();\n\t\t\t\tSystem.out.println(\"Moving from TOP: \" + s);\n\t\t\t\tmodel.move(1, Integer.parseInt(s));\n\t\t\t}", "public void moveUp() {\r\n\t\tmy_cursor_location.y--;\r\n\t}", "public void move() {\n for (int i = 0; i < Vampiro.getNumVamp(); i++) {\n\n lista[i].move();\n }\n }", "public void move(){\n\t\t\tbx += (int)movex;\n\t\t\tby += (int)movey;\n\t\t\tthis.setBounds((int)bx,(int)by,10,10);\n\n\t\t\t\n\t\t}", "public interface ItemTouchHelperAdapter {\n void onItemMove(int fromPosition, int toPosition);\n}", "public void move() {\n\t\tif(right) {\n\t\t\tgoRight();\n\t\t\tstate++;\n\t\t\tif(state > 5) {\n\t\t\t\tstate = 3;\n\t\t\t}\n\t\t}\n\t\telse if(left) {\n\t\t\tgoLeft();\n\t\t\tstate++;\n\t\t\tif(state > 2) {\n\t\t\t\tstate = 0;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n public void move(ImageView image, Double xInitial) {\n\r\n }", "@Override\n\tpublic void move(Direction d) {\n\t\t\n\t}", "@Override\n\tpublic int move(int direction) {\n\t\tswitch (direction) {\n\t\tcase LEFT:\n\t\t{\n\t\t\t\tanimator.animateMovement(LEFT, SPEED);\n\t\t\t\tif(animator.dx==-Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\tif(position.column <= 0) {\n\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column-1][position.row];\n\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t}\n\t\tcase UP:\n\t\t{\n\t\t\t\tanimator.animateMovement(UP, SPEED);\n\t\t\t\tif(animator.dy==-Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\tif(position.row <= 0) {\n\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column][position.row-1];\n\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t}\n\t\tcase RIGHT:\n\t\t\t{\n\t\t\t\t\tanimator.animateMovement(RIGHT, SPEED);\n\t\t\t\t\tif(animator.dx==Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\t\tif(position.column >= (Game.WIDTH/Tile.TILE_SIZE)-2) {\n\t\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse {\n\t\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column+1][position.row];\n\t\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t}\n\t\tcase DOWN:\n\t\t\t{\n\t\t\t\tanimator.animateMovement(DOWN, SPEED);\n\t\t\t\tif(animator.dy==Math.round(25/SPEED)*SPEED) {\n\t\t\t\t\tanimator.resetOffset();\n\t\t\t\t\tif(position.row >= (Game.WIDTH/Tile.TILE_SIZE)-2) {\n\t\t\t\t\t\tfired = false;\n\t\t\t\t\t\tthis.dispose();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse { \n\t\t\t\t\t\tposition = game.getCurrentMaze().board[position.column][position.row+1];\n\t\t\t\t\t\tcheckForHit();\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\treturn MOVE_SUCCESS;\n\t\t\t\t}\n\t\t}\n\t\treturn MOVE_FAIL;\n\t}", "public abstract void move( char direction );", "public synchronized void move(int direction){\n if (direction == 0){\n return;\n }\n if (this.movePossible(direction)){\n int[] columns = direction < 0 ? new int[]{1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12} : new int[]{12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1};\n for (int i : columns){\n for (int j = 1; j < 25; j++){\n if (this.movable[i][j]){\n this.map[i + direction][j] = this.map[i][j];\n this.movable[i + direction][j] = this.movable[i][j];\n this.colors[i + direction][j] = this.colors[i][j];\n\n this.map[i][j] = false;\n this.movable[i][j] = false;\n this.colors[i][j] = null;\n }\n }\n }\n this.piecePositionX += direction;\n }\n repaint();\n }", "@Override\r\n\tpublic void moveTo(float x, float y) {\n\t\t\r\n\t}", "public static void move() {\r\n\t\t\r\n\t\tif (ths.page == 1) {\r\n\t\t\tths.page++;\r\n\t\t}\r\n\t}", "public void move() {\n\t\tthis.position.stepForwad();\n\t\tthis.position.spin();\n\t}" ]
[ "0.6196071", "0.60801136", "0.6010351", "0.59472865", "0.59293544", "0.5910314", "0.5897761", "0.58954114", "0.57924324", "0.5792392", "0.5754005", "0.5711373", "0.56576174", "0.5602874", "0.55861896", "0.55855286", "0.5576197", "0.55518246", "0.555139", "0.555139", "0.555139", "0.5543447", "0.550447", "0.5479446", "0.5475592", "0.54637074", "0.54577184", "0.54480803", "0.54226553", "0.5416983", "0.5409956", "0.53783464", "0.5365509", "0.53436583", "0.5342836", "0.5341236", "0.534011", "0.5330996", "0.53295827", "0.53291726", "0.53284156", "0.5309657", "0.53092325", "0.5307006", "0.5299545", "0.5298517", "0.52981746", "0.5298062", "0.5297098", "0.5296642", "0.5292984", "0.5290133", "0.5284603", "0.52748966", "0.52730346", "0.52620834", "0.52527094", "0.525191", "0.5250437", "0.52474475", "0.52455205", "0.52351004", "0.52162117", "0.5208644", "0.51914513", "0.5184366", "0.5178235", "0.5176843", "0.515342", "0.5150744", "0.5144996", "0.5144609", "0.513395", "0.5133328", "0.5130509", "0.51278144", "0.5126102", "0.5126051", "0.512378", "0.51197", "0.511951", "0.51116306", "0.5111468", "0.5111276", "0.5108339", "0.5105495", "0.5093378", "0.5086669", "0.50838816", "0.5081601", "0.50806594", "0.50772107", "0.5075084", "0.5070183", "0.50695217", "0.5060098", "0.5060006", "0.50591016", "0.50556827", "0.5052971" ]
0.6010217
3
Takes the slice along a given dimension and index of a vertex
public GenericSliceVertex(@LoadVertexParam(INPUT_NAME) Vertex<GenericTensor<T>> inputVertex, @LoadVertexParam(DIMENSION_NAME) int dimension, @LoadVertexParam(INDEX_NAME) int index) { super(removeDimension(dimension, inputVertex.getShape()), inputVertex); this.dimension = dimension; this.index = index; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public V getVertex(int index);", "Vertex getVertex(int index);", "public int[] getSlicePosition();", "protected int index(int slice, int row, int column) {\n\treturn _sliceOffset(_sliceRank(slice)) + _rowOffset(_rowRank(row)) + _columnOffset(_columnRank(column));\n}", "public GenericPluckVertex(Vertex<? extends Tensor<T>> inputVertex, int... index) {\n TensorShapeValidation.checkIndexIsValid(inputVertex.getShape(), index);\n this.inputVertex = inputVertex;\n this.index = index;\n setParents(inputVertex);\n setValue(Tensor.placeHolder(Tensor.SCALAR_SHAPE));\n }", "public abstract int[] getConnected(int vertexIndex);", "public abstract int getDimension();", "protected AbstractMatrix3D vPart(int slice, int row, int column, int depth, int height, int width) {\n\tcheckBox(slice,row,column,depth,height,width);\n\t\n\tthis.sliceZero += this.sliceStride * slice;\n\tthis.rowZero += this.rowStride * row;\n\tthis.columnZero += this.columnStride * column;\n\t\n\tthis.slices = depth;\n\tthis.rows = height;\n\tthis.columns = width;\n\t\n\tthis.isNoView = false;\n\treturn this;\n}", "protected abstract List<Integer> getNeighbors(int vertex);", "public void showSlice(int index) {\n if (index >= 1 && index <= imp.getStackSize()) {\n imp.setSlice(index);\n imp.updateAndDraw();\n }\n else if (LociDataBrowser.DEBUG) {\n db.log(\"invalid index: \" + index + \" (size = \" + imp.getStackSize() +\n \"; zSliceSel = \" + zSliceSel.getValue() +\n \"; tSliceSel = \" + tSliceSel.getValue() + \")\");\n }\n }", "Buffer slice();", "protected void checkBox(int slice, int row, int column, int depth, int height, int width) {\n\tif (slice<0 || depth<0 || slice+depth>slices || row<0 || height<0 || row+height>rows || column<0 || width<0 || column+width>columns) throw new IndexOutOfBoundsException(toStringShort()+\", slice:\"+slice+\", row:\"+row+\" ,column:\"+column+\", depth:\"+depth+\" ,height:\"+height+\", width:\"+width);\n}", "public Voronoi(int dim);", "public int getMemberStartLayer(int edge, int layer, int slice) throws EdgeOutOfRangeException, LayerOutOfRangeException, SliceOutOfRangeException {\n return layer;\n }", "public void showVirtualSlice(int z, int t, int c, int axis) {\n int index = db.getIndex(z - 1, t - 1, c - 1);\n if (LociDataBrowser.DEBUG) {\n db.log(\"showVirtualSlice: index=\" + index +\n \"; z=\" + z + \"; t=\" + t + \"; c=\" + c);\n }\n }", "Nda<V> getAt( int... indices );", "int getVertices();", "public Vector get( final int indexFrom, final int indexTo );", "int[] getSliceShape() throws InvalidRangeException;", "public int x (int index) { return coords[index][0]; }", "Buffer slice(int start, int length);", "Nda<V> get( int... indices );", "abstract public Vertex getReadIn();", "public abstract int getNumberOfVertices();", "public abstract int getSourceIndex(int index);", "public static int calculatePositionInIndexVector(int[] dimension) {\n if (dimension.length == 0)\n return 0;\n int offset = (int) Math.pow(11, dimension.length - 1);\n int partialPosition = dimension[0] * offset;\n int[] newDim = Arrays.copyOfRange(dimension, 1, dimension.length);\n return partialPosition + calculatePositionInIndexVector(newDim);\n }", "Vertex getVertex();", "Nda<V> getAt( Object... args );", "@Override\n\tpublic IDataItem getSlice(int dim, int value) throws InvalidRangeException {\n\t\treturn null;\n\t}", "int toIndex(int x, int y);", "protected AbstractMatrix3D vStrides(int sliceStride, int rowStride, int columnStride) {\n\tif (sliceStride<=0 || rowStride<=0 || columnStride<=0) throw new IndexOutOfBoundsException(\"illegal strides: \"+sliceStride+\", \"+rowStride+\", \"+columnStride);\n\t\n\tthis.sliceStride *= sliceStride;\n\tthis.rowStride *= rowStride;\n\tthis.columnStride *= columnStride;\n\t\n\tif (this.slices!=0) this.slices = (this.slices-1)/sliceStride +1;\n\tif (this.rows!=0) this.rows = (this.rows-1)/rowStride +1;\n\tif (this.columns!=0) this.columns = (this.columns-1)/columnStride +1;\n\t\n\tthis.isNoView = false;\n\treturn this;\n}", "public int getEdgeCurrentSlice(int edge) throws EdgeOutOfRangeException\n {\n return currentPage;\n }", "protected int _sliceRank(int rank) {\n\treturn sliceZero + rank*sliceStride;\n}", "public ISlideData getFeature(int index);", "public int getvertex() {\n\t\treturn this.v;\n\t}", "Nda<V> getAt( int i );", "public Vector2D getLocalVertex(int i){\n\t\treturn localVertices.get(i%localVertices.size());\n\t}", "public E3DTexturedVertex getVertex(int index){\r\n if(index >= 0 && index < 3)\r\n return vertices[index];\r\n else\r\n return null;\r\n }", "public abstract Vector4fc sub(float x, float y, float z, float w);", "public Object getVertex(){\r\n return this.vertex;\r\n }", "public interface VDimension extends VDataReference {\r\n\r\n /**\r\n * Whether the dimension is a summable dimension which\r\n * could be used for dragging into the visualization\r\n * or not.\r\n *\r\n * @return Whether the dimension is a summable dimension\r\n * or not.\r\n */\r\n public Boolean isSummable();\r\n\r\n /**\r\n * Sets whether the dimension is a summable dimension\r\n * which could be used for dragging into the visualization\r\n * or not.\r\n *\r\n * @param summable Whether the dimension is a summable\r\n * dimension or not.\r\n */\r\n public void setSummable(Boolean summable);\r\n\r\n /**\r\n * Flag when the dimension is dropped into the graph.\r\n *\r\n * @return Whether the dimension is dropped or not.\r\n */\r\n public boolean isDropped();\r\n\r\n /**\r\n * Sets whether the dimension is dropped or not in the graph.\r\n *\r\n * @param dropped Whether the dimension is dropped or not in the graph.\r\n */\r\n public void setDropped(boolean dropped);\r\n\r\n /**\r\n * Returns whether the dimension contains data for parentable\r\n * usage or not.\r\n *\r\n * @return Whether the dimension contains parentable data or\r\n * not.\r\n */\r\n public Boolean isParentable();\r\n\r\n\r\n /**\r\n * Sets whether the dimension contains data for parentable\r\n * usage or not.\r\n *\r\n * @param parentable Whether the dimension contains parentable\r\n * data or not.\r\n */\r\n public void setParentable(Boolean parentable);\r\n\r\n /**\r\n * Returns whether the dimension is visible or unvisible.\r\n *\r\n * @return Whether the dimension is visible or unvisible.\r\n */\r\n public Boolean isVisible();\r\n\r\n /**\r\n * Sets whether the dimension is visible or unvisible.\r\n *\r\n * @param visible Whether the dimension is visible or unvisible.\r\n */\r\n public void setVisible(Boolean visible);\r\n\r\n /**\r\n * Returns the cubes that supports this dimension.\r\n *\r\n * @return The cubes that supports this dimension.\r\n */\r\n public Set<VCube> getSupportedCubes();\r\n\r\n /**\r\n * Sets the cubes that supports this dimension.\r\n *\r\n * @param supportedCubes The cubes that supports this\r\n * dimension.\r\n */\r\n public void setSupportedCubes(Set<VCube> supportedCubes);\r\n\r\n /**\r\n * Returns the identifiers of the selected values.\r\n *\r\n * @return The identifiers of the selected values.\r\n */\r\n public Set<Filterable> getSelections();\r\n\r\n /**\r\n * Sets the identifiers of the selected values.\r\n *\r\n * @param selections The identifiers of the selected\r\n * values.\r\n */\r\n public void setSelections(Set<Filterable> selections);\r\n\r\n /**\r\n * Returns the size of the selected values.\r\n *\r\n * @return The size of the selected values.\r\n */\r\n public int getSelectionSize();\r\n\r\n /**\r\n * Returns whether the selection of the dimension was changed\r\n * or not.\r\n *\r\n * @return Whether the selection of the dimension was changed\r\n * or not.\r\n */\r\n public boolean isSelectionChanged();\r\n\r\n /**\r\n * Sets whether the selection of the dimension was changed\r\n * or not.\r\n *\r\n * @param selectionChanged Whether the selection of the dimension\r\n * was changed or not.\r\n */\r\n public void setSelectionChanged(boolean selectionChanged);\r\n\r\n /**\r\n * Returns the <code>VDimension</code> that is close to the\r\n * cube.\r\n *\r\n * @return The blueprint that is close to the cube.\r\n */\r\n public VDimension getBlueprint();\r\n}", "abstract Vertex apply(Vertex v);", "private static Restriction newSingleSlice(CFMetaData cfMetaData, int index, Bound bound, boolean inclusive, ByteBuffer value)\n {\n ColumnDefinition columnDef = getClusteringColumnDefinition(cfMetaData, index);\n return new SingleColumnRestriction.Slice(columnDef, bound, inclusive, toTerm(value));\n }", "public interface ISliceIterator extends IModelObject {\r\n\r\n\t/**\r\n\t * Check if there is next slice.\r\n\t * \r\n\t * @return Boolean type Created on 10/11/2008\r\n\t */\r\n\tboolean hasNext();\r\n\r\n\t/**\r\n\t * Jump to the next slice.\r\n\t * \r\n\t * Created on 10/11/2008\r\n\t */\r\n\tvoid next();\r\n\r\n\t/**\r\n\t * Get the next slice of Array.\r\n\t * \r\n\t * @return GDM Array\r\n\t * @throws InvalidRangeException\r\n\t * Created on 10/11/2008\r\n\t */\r\n\tIArray getArrayNext() throws InvalidRangeException;\r\n\r\n\t/**\r\n\t * Get the current slice of Array.\r\n\t * \r\n\t * @return GDM Array\r\n\t * @throws InvalidRangeException\r\n\t * Created on 10/11/2008\r\n\t */\r\n\tIArray getArrayCurrent() throws InvalidRangeException;\r\n\r\n\t/**\r\n\t * Get the shape of any slice that is returned. This could be used when a\r\n\t * temporary array of the right shape needs to be created.\r\n\t * \r\n\t * @return dimensions of a single slice from the iterator\r\n\t * @throws InvalidRangeException\r\n\t * invalid range\r\n\t */\r\n\tint[] getSliceShape() throws InvalidRangeException;\r\n\t\r\n\t/**\r\n\t * Get the slice position in the whole array from which this slice iterator\r\n\t * was created.\r\n\t * @return <code>int</code> array of the current position of the slice\r\n\t * @note rank of the returned position is the same as the IArray shape we are slicing \r\n\t */\r\n\tpublic int[] getSlicePosition();\r\n}", "public ByteBuf slice(int index, int length)\r\n/* 65: */ {\r\n/* 66: 82 */ recordLeakNonRefCountingOperation(this.leak);\r\n/* 67: 83 */ return super.slice(index, length);\r\n/* 68: */ }", "public V getVertex()\r\n/* */ {\r\n/* 198 */ return (V)this.vertex;\r\n/* */ }", "public int index(int want) throws InvalidRangeException {\n if (want < first)\n throw new InvalidRangeException(\"elem must be >= first\");\n int result = (want - first) / stride;\n if (result > length)\n throw new InvalidRangeException(\"elem must be <= first = n * stride\");\n return result;\n }", "Dimension dimension();", "public SubsetFilter createFilter(Dimension dimension);", "private void getVertex(int x, int y, Vector3f vertex) {\n\t\tfloat height = getRawHeightFieldValue(x, y);\n\n\t\tswitch (m_upAxis) {\n\t\tcase 0: {\n\t\t\tvertex.set(height - m_localOrigin.x, (-m_width / 2.0f) + x, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\t\tcase 1: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, height - m_localOrigin.y, (-m_length / 2.0f) + y);\n\t\t\tbreak;\n\t\t}\n\n\t\tcase 2: {\n\t\t\tvertex.set((-m_width / 2.0f) + x, (-m_length / 2.0f) + y, height - m_localOrigin.z);\n\t\t\tbreak;\n\t\t}\n\t\t}\n\n\t\tvertex.x = vertex.x * m_localScaling.x;\n\t\tvertex.y = vertex.y * m_localScaling.y;\n\t\tvertex.z = vertex.z * m_localScaling.z;\n\t}", "public Ndimensional getStartPoint();", "public VDimension getBlueprint();", "@SuppressWarnings(\"unused\")\r\n private void JCATsegmentSubcutaneousFat2D() {\r\n \r\n // a buffer to store a slice from the source Image\r\n short[] srcBuffer;\r\n try {\r\n srcBuffer = new short [sliceSize];\r\n } catch (OutOfMemoryError error) {\r\n System.gc();\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Can NOT allocate srcBuffer\");\r\n return;\r\n }\r\n \r\n // get the data from the segmented abdomenImage and the srcImage\r\n try {\r\n abdomenImage.exportData(0, sliceSize, sliceBuffer);\r\n srcImage.exportData(0, sliceSize, srcBuffer);\r\n } catch (IOException ex) {\r\n// System.err.println(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n MipavUtil.displayError(\"JCATsegmentVisceralFat2D(): Error exporting data\");\r\n return;\r\n }\r\n \r\n // find the center of mass of the single label object in the sliceBuffer (abdomenImage)\r\n findAbdomenCM();\r\n\r\n // Use the CM, the abdomenImage, and the srcImage to define points on the\r\n // abdomen and visceral VOI's\r\n ArrayList<Integer> xArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrAbdom = new ArrayList<Integer>();\r\n ArrayList<Integer> xArrVis = new ArrayList<Integer>();\r\n ArrayList<Integer> yArrVis = new ArrayList<Integer>();\r\n findVOIs(centerOfMass, xArrAbdom, yArrAbdom, srcBuffer, xArrVis, yArrVis);\r\n \r\n int[] x1 = new int[xArrAbdom.size()];\r\n int[] y1 = new int[xArrAbdom.size()];\r\n int[] z1 = new int[xArrAbdom.size()];\r\n for(int idx = 0; idx < xArrAbdom.size(); idx++) {\r\n x1[idx] = xArrAbdom.get(idx);\r\n y1[idx] = yArrAbdom.get(idx);\r\n z1[idx] = 0;\r\n }\r\n\r\n // make the VOI's and add the points to them\r\n abdomenVOI = new VOI((short)0, \"Abdomen\");\r\n abdomenVOI.importCurve(x1, y1, z1);\r\n \r\n\r\n for(int idx = 0; idx < xArrVis.size(); idx++) {\r\n x1[idx] = xArrVis.get(idx);\r\n y1[idx] = yArrVis.get(idx);\r\n }\r\n\r\n subcutaneousVOI = new VOI((short)0, \"Subcutaneous area\");\r\n subcutaneousVOI.importCurve(x1, y1, z1);\r\n \r\n/*\r\n ViewUserInterface.getReference().getMessageFrame().append(\"Xcm: \" +xcm +\" Ycm: \" +ycm);\r\n sliceBuffer[ycm * xDim + xcm] = 20;\r\n for (int idx = 0; idx < xArr.size(); idx++) {\r\n sliceBuffer[yArr.get(idx) * xDim + xArr.get(idx)] = 20;\r\n sliceBuffer[yArrVis.get(idx) * xDim + xArrVis.get(idx)] = 30;\r\n }\r\n // save the sliceBuffer into the abdomenImage\r\n try {\r\n abdomenImage.importData(0, sliceBuffer, false);\r\n } catch (IOException ex) {\r\n System.err.println(\"segmentThighTissue(): Error importing data\");\r\n }\r\n*/\r\n// ShowImage(srcImage, \"Segmented Abdomen\");\r\n\r\n\r\n// ViewUserInterface.getReference().getMessageFrame().append(\"Abdomen VOI points:\");\r\n// for (int idx = 0; idx < xArr.size(); idx++) {\r\n// ViewUserInterface.getReference().getMessageFrame().append(xArr.get(idx) +\" \" + yArr.get(idx));\r\n// }\r\n\r\n }", "public int getNumberOfVertices();", "Dimension getDimension();", "public int getSliceMemberCount(int edge, int slice) throws EdgeOutOfRangeException, SliceOutOfRangeException {\n if (edge==DataDirector.PAGE_EDGE)\n return 0;\n else\n return 1;\n }", "public abstract int getVertexCount();", "private float getVal(float[] buffer, int col, int row, int slice) {\r\n float rtnVal;\r\n if (col < 0) col = 0;\r\n if (col >= xDim) col = xDim - 1;\r\n if (row < 0) row = 0;\r\n if (row >= yDim) row = yDim - 1;\r\n if (slice < 0) slice = 0;\r\n if (slice >= zDim) slice = zDim - 1;\r\n rtnVal = buffer[slice * yDim * xDim + row * xDim + col];\r\n return rtnVal;\r\n }", "public int getChildCount(V vertex);", "Index getIndices(int index);", "public int getMemberExtent(int edge, int depth, int slice) throws EdgeOutOfRangeException, LayerOutOfRangeException, SliceOutOfRangeException {\n return 1;\n }", "public int getColor(Vertex v);", "public interface Vertex <E> extends DecorablePosition<E>{}", "public int I(int x, int y, int z){\n //gets typeGrid index from location\n return x*yDim*zDim+y*zDim+z;\n }", "public void setDimensionFromCubicMesh(){\r\n\t\t\r\n\t\t\r\n\t}", "default Spliterator.OfInt getNextVertices(int vidx) {\n class MySpliterator extends AbstractIntSpliterator{\n int index;\n int limit;\n public MySpliterator (int vidx, int lo, int hi) {\n super(hi,ORDERED|NONNULL|SIZED|SUBSIZED);\n limit=hi;\n index=lo;\n }\n @Override\n public boolean tryAdvance(@Nonnull IntConsumer action) {\n if (index<limit) {\n action.accept(getNext(vidx,index++));\n return true;\n }\n return false;\n }\n @Nullable\n public MySpliterator trySplit() {\n int hi = limit, lo = index, mid = (lo + hi) >>> 1;\n return (lo >= mid) ? null : // divide range in half unless too small\n new MySpliterator(vidx, lo, index = mid);\n }\n \n }\n return new MySpliterator(vidx,0,getNextCount(vidx));\n }", "boolean contains(int vertex);", "public int applySlice(int pool_num){\n checkPoolNum(pool_num);\n int ind = slice_indexs[pool_num].incrementAndGet();\n slice_pools.get(pool_num).put(ind, new int[SLICE_SIZE[pool_num]]);\n return ind;\n }", "public V getParent(V vertex);", "public void removeVertex (T vertex){\n int index = vertexIndex(vertex);\n \n if (index < 0) return; // vertex does not exist\n \n n--;\n // IF THIS DOESN'T WORK make separate loop for column moving\n for (int i = index; i < n; i++){\n vertices[i] = vertices[i + 1];\n for (int j = 0; j < n; j++){\n edges[j][i] = edges[j][i + 1]; // moving row up\n edges[i] = edges[i + 1]; // moving column over\n }\n }\n }", "Dimension createDimension();", "@Override\n public void deleteVertex(int vertex) {\n\n }", "int toIndex(Position pos);", "public abstract Collection<T> getFirstDimension();", "public abstract int convertRowIndexToView(int index);", "public int slices() {\n\treturn slices;\n}", "Nda<V> getAt( Number i );", "void locate(int pos, int [] ind)\n\t{\n\t\tind[0] = (int) pos / dimy; // x\n\t\tind[1] = pos % dimy; // y\t\n\t}", "public abstract Vector4fc sub(IVector4f v);", "abstract public Vertex getClone();", "CurveSegment getCurveSegmentAt( int index )\n throws GeometryException;", "int getChunkIndex();", "int getChunkIndex();", "public void showSlice(int z, int t, int c) {\n int index = db.getIndex(z - 1, t - 1, c - 1);\n if (LociDataBrowser.DEBUG) {\n db.log(\"showSlice: index=\" + index +\n \"; z=\" + z + \"; t=\" + t + \"; c=\" + c);\n }\n showSlice(index);\n }", "public abstract String GetProperty(Slice property);", "AssignmentPathSegment getSegment(int index);", "@Override\r\n\tpublic Buffer slice(int start, int end) {\n\t\t\r\n\t\treturn null;\r\n\t}", "public VoxelGradient getVoxel(int i) {\r\n return data[i];\r\n }", "protected void processVertex(Vertex w){\n\t}", "private Polygon2D getTriByVertex(Point2D vertex) {\n \t\tPolygon2D tri = new Polygon2D();\n \t\tdouble y = vertex.getY();\n \t\ttri.append(vertex);\n \t\ttri.append(250+y*Math.sqrt(3)/2, 250*Math.sqrt(3)-y/2);\n \t\ttri.append(750-y*Math.sqrt(3)/2, 250*Math.sqrt(3)-y/2);\n \t\treturn tri;\n }", "public int getVertexCount();", "public VectorFieldSliceRenderer2D(ImageData img,\r\n\t\t\tVisualizationProcessing applet) {\r\n\t\tsuper(img, applet);\r\n\t\tif (img.getComponents() < 2) {\r\n\t\t\tslices = 1;\r\n\t\t} else {\r\n\t\t\tslice = slices / 2;\r\n\t\t}\r\n\t\t// TODO Auto-generated constructor stub\r\n\t}", "public abstract Vector2[] getVertices();", "public Collection<V> getOtherVertices(V v);", "public int convertDimension(String dimension);", "int getSegment();", "public final MeshView getChunk(Point2D point, int size, int subdivisions, int resolution) {\n TriangleMesh mesh = new TriangleMesh();\n int increment = size / subdivisions;\n \n boolean cancelled = false;\n float max = 0;\n int octaves = Math.min((int) (\n Math.log(1 / (baseFreq * increment))\n / Math.log(lacunarity)), octaveCap);\n float[][] buffer = new float[subdivisions + 1][subdivisions + 1];\n noiseLoop:\n for (int j = 0; j < buffer.length; j++) {\n for (int i = 0; i < buffer[0].length; i++) {\n if (Thread.interrupted()) {\n cancelled = true;\n break noiseLoop;\n }\n\n double x = (size * point.getX() + i * increment) * baseFreq;\n double y = (size * point.getY() + j * increment) * baseFreq;\n \n float noiseSum = 0;\n double amplitude = baseAmp;\n for (int k = 1; k < octaves; k++) {\n noiseSum += noise2D(x, y) * amplitude;\n x *= lacunarity;\n y *= lacunarity;\n amplitude *= gain;\n }\n buffer[j][i] += noiseSum;\n if (Math.abs(buffer[j][i]) > max) {\n max = Math.abs(buffer[j][i]);\n }\n }\n }\n\n if (!cancelled) {\n processLoop:\n for (int j = 0; j < buffer.length; j++) {\n for (int i = 0; i < buffer[0].length; i++) {\n if (Thread.interrupted()) {\n cancelled = true;\n break processLoop;\n }\n switch (mode) {\n case NONE:\n buffer[j][i] =\n (1 + buffer[j][i]) / 2.0f;\n break;\n case SQUARE:\n buffer[j][i] =\n (float) Math.pow(buffer[j][i], 2);\n break;\n case CUBE:\n buffer[j][i] =\n (1 + (float) Math.pow(\n buffer[j][i], 3)) / 2.0f;\n break;\n default:\n buffer[j][i] =\n (float) Math.abs(buffer[j][i]);\n break;\n }\n mesh.getPoints().addAll(\n (float) (size * point.getX() + increment * i),\n (float) (size * point.getY() + increment * j),\n -buffer[j][i]);\n mesh.getTexCoords().addAll(\n (float) increment * i / size,\n (float) increment * j / size\n );\n }\n }\n }\n \n if (!cancelled) {\n meshLoop:\n for (int j = 0; j < buffer.length - 1; j++) {\n for (int i = 0; i < buffer[0].length - 1; i++) {\n if (Thread.interrupted()) {\n cancelled = true;\n break meshLoop;\n }\n mesh.getFaces().addAll(\n (subdivisions + 1) * j + i, (subdivisions + 1) * j + i,\n (subdivisions + 1) * (j + 1) + i, (subdivisions + 1) * (j + 1) + i,\n (subdivisions + 1) * (j + 1) + (i + 1), (subdivisions + 1) * (j + 1) + (i + 1),\n (subdivisions + 1) * j + i, (subdivisions + 1) * j + i,\n (subdivisions + 1) * (j + 1) + (i + 1), (subdivisions + 1) * (j + 1) + (i + 1),\n (subdivisions + 1) * j + (i + 1), (subdivisions + 1) * j + (i + 1)\n );\n \n }\n }\n }\n \n MeshView meshView = new MeshView(mesh);\n PhongMaterial material = new PhongMaterial();\n material.setDiffuseMap(getChunkTex(resolution, buffer));\n meshView.setMaterial(material);\n return meshView;\n }", "public interface VisualVertex extends GVertex {\n\n\t/**\n\t * Returns the component of this vertex. This is used for rendering and interaction \n\t * with the user.\n\t * \n\t * @return the component of this vertex\n\t */\n\tpublic JComponent getComponent();\n\n\t/**\n\t * Sets this vertex to be focused. This differs from being selected in that multiple\n\t * vertices in a graph can be selected, but only one can be the focused vertex.\n\t * \n\t * @param focused true to focus; false to be marked as not focused\n\t */\n\tpublic void setFocused(boolean focused);\n\n\t/**\n\t * Returns true if this vertex is focused (see {@link #setFocused(boolean)}\n\t * @return true if focused\n\t */\n\tpublic boolean isFocused();\n\n\t/**\n\t * Sets this vertex selected\n\t * \n\t * @param selected true to select this vertex; false to de-select this vertex\n\t */\n\tpublic void setSelected(boolean selected);\n\n\t/**\n\t * Returns true if this vertex is selected\n\t * \n\t * @return true if this vertex is selected \n\t */\n\tpublic boolean isSelected();\n\n\t/**\n\t * Sets this vertex to be hovered\n\t * \n\t * @param hovered true to be marked as hovered; false to be marked as not hovered\n\t */\n\tpublic void setHovered(boolean hovered);\n\n\t/**\n\t * Returns true if this vertex is being hovered by the mouse\n\t * \n\t * @return true if this vertex is being hovered by the mouse\n\t */\n\tpublic boolean isHovered();\n\n\t/**\n\t * Sets the location of this vertex in the view\n\t * \n\t * @param p the location of this vertex in the view\n\t */\n\tpublic void setLocation(Point2D p);\n\n\t/**\n\t * Returns the location of this vertex in the view\n\t * \n\t * @return the location of this vertex in the view\n\t */\n\tpublic Point2D getLocation();\n\n\t/**\n\t * Returns true if the given component of this vertex is grabbable, which means that \n\t * mouse drags on that component will move the vertex. \n\t * \n\t * <P>This is used to differentiate components within a vertex that should receive mouse \n\t * events versus those components that will not be given mouse events.\n\t * \n\t * @param c the component\n\t * @return true if the component is grabbable\n\t */\n\tpublic boolean isGrabbable(Component c);\n\n\t/**\n\t * A dispose method that should be called when a vertex is reclaimed, never again to be \n\t * used in a graph or display\n\t */\n\tpublic void dispose();\n\n//==================================================================================================\n// Rendering Methods (these could be refactored into another object in the future)\n//==================================================================================================\n\n\t/**\n\t * Sets the emphasis value for this vertex. A value of 0 indicates no emphasis.\n\t * \n\t * @param emphasisLevel the emphasis\n\t */\n\tpublic void setEmphasis(double emphasisLevel);\n\n\t/**\n\t * Returns the emphasis value of this vertex. 0 if not emphasized.\n\t * \n\t * @return the emphasis value of this vertex.\n\t */\n\tpublic double getEmphasis();\n\n\t/**\n\t * Set the alpha, which determines how much of the vertex is visible/see through. 0 is \n\t * completely transparent. This attribute allows transitional for animations.\n\t * \n\t * @param alpha the alpha value\n\t */\n\tpublic void setAlpha(double alpha);\n\n\t/**\n\t* Get the alpha, which determines how much of the vertex is visible/see through. 0 is \n\t* completely transparent. This attribute allows transitional for animations.\n\t* \n\t* @return the alpha value\n\t*/\n\tpublic double getAlpha();\n\n}", "public void addVertices(int n);", "public int colorVertices();" ]
[ "0.6112069", "0.58446527", "0.58344674", "0.5762055", "0.5730422", "0.5477673", "0.53399533", "0.533991", "0.530655", "0.52989274", "0.52633166", "0.525107", "0.52415836", "0.52349097", "0.5202316", "0.5187396", "0.5183072", "0.5145771", "0.51445293", "0.50990283", "0.50572234", "0.5052318", "0.5019157", "0.49942887", "0.4993454", "0.4987395", "0.4986935", "0.49738452", "0.4953252", "0.49387437", "0.4925372", "0.49082977", "0.48993057", "0.48806134", "0.48805434", "0.48661345", "0.4853005", "0.48395368", "0.48351952", "0.4832199", "0.48313335", "0.4828898", "0.48267192", "0.48213547", "0.48076743", "0.48053133", "0.48024648", "0.47948444", "0.4793006", "0.47916502", "0.47814026", "0.47807637", "0.4778467", "0.47775134", "0.47744355", "0.47726664", "0.4770392", "0.476685", "0.47648624", "0.4759665", "0.47580168", "0.47433555", "0.47358167", "0.4720962", "0.47198236", "0.4718318", "0.4700796", "0.46781865", "0.46658012", "0.466489", "0.46610057", "0.4656823", "0.46560928", "0.46463755", "0.46392086", "0.46387315", "0.46369886", "0.46361616", "0.46348345", "0.46345925", "0.462608", "0.46230888", "0.46230888", "0.4620501", "0.46086723", "0.4604119", "0.4587141", "0.45840365", "0.45828348", "0.45801547", "0.45718658", "0.4571293", "0.4566263", "0.45652872", "0.45563945", "0.4553724", "0.45518807", "0.45488492", "0.4544757", "0.4537604" ]
0.6797212
0
this key is storeKey
public CacheModel addL2Cache(String key, File data) { CacheModel model = new CacheModel(key, data); model.storeKey = key; container.put(model); model.accessUpdate(); return model; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public String getKey() {\n return key;\n }", "public java.lang.String getKey(){\n return localKey;\n }", "public String key() {\n return key;\n }", "public String key() {\n return key;\n }", "abstract public String getKey();", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "public String key() {\n return this.key;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn key;\n\t}", "public String getKey(){\n\t\treturn key;\n\t}", "public String getKey() {\n\treturn key;\n }", "@Override\n\t\tpublic K getKey(){\n\t\t\treturn key;\n\t\t}", "public void setKey(java.lang.String param){\n localKeyTracker = true;\n \n this.localKey=param;\n \n\n }", "public Key getKey()\r\n { \r\n return key; \r\n }", "public static String getKey() {\t\t\n\t\treturn key;\n\t}", "private void setKey() {\n\t\t \n\t}", "public int getKey(){\n return key;\n }", "@Override\n public int key() {\n return this.key;\n }", "public static String getKey(){\n\t\treturn key;\n\t}", "public String getKey() {\r\n return key;\r\n }", "@Override\n default String getKey(){\n return key();\n }", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "public String getKey() {\r\n return key;\r\n }", "String key();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "String getKey();", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey();", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public String getKey() {\r\n\t\treturn key;\r\n\t}", "public Object getKey() {\r\n return key;\r\n }", "public String getKey() {\n return this.key;\n }", "public String getKey()\n\t{\n\t\treturn key;\n\t}", "java.lang.String getClientKey();", "@Override\n public int getKey() {\n return key_;\n }", "public String getKey() {\n return key;\n }", "public Object getKey()\n {\n return key;\n }", "@Override\n public String getKey()\n {\n return id; \n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n return key;\n }", "public String getKey() {\n\t\treturn key;\n\t}", "public String getKey() {\n\t\treturn key;\n\t}", "public String getKey() {\n\t\treturn key;\n\t}", "public KeyStore getKeyStore();", "protected K getKey() {\n return this.key;\n }", "@Override\n public int getKey() {\n return key_;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "public String getKey() {\n return this.key;\n }", "@Override\n\tpublic String getKey() {\n\t\treturn id+\"\";\n\t}", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "java.lang.String getKey();", "public int getKey() {\r\n return key;\r\n }", "@Override\n public int getKey() {\n return this.key;\n }", "public final String getKey() {\n return key;\n }", "public String getKey()\n\t\t{\n\t\t\treturn key;\n\t\t}", "public Object getKey() {\n return key;\n }", "@Override\n protected final Object getKey()\n {\n return this;\n }", "public int keyId() {\n return keyId;\n }", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic String getKey() {\n\t\treturn null;\r\n\t}", "public String getKey_() {\n return key_;\n }", "public void setKey(int key){\r\n this.key = key; \r\n }", "public String getKey()\n\t{\n\t\treturn this.key;\n\t}", "@Override\r\n protected Node getStoringNode(Integer key) {\r\n return getNetworkNode();\r\n }", "public int getKey() {\n return key;\n }", "private String getKey() {\r\n if (key == null) {\r\n key = getURI();\r\n }\r\n return key;\r\n }", "int getKey() {\n return this.key;\n }" ]
[ "0.6856304", "0.6823262", "0.6818532", "0.6818532", "0.6809873", "0.67924404", "0.67924404", "0.67924404", "0.67924404", "0.6773289", "0.6746465", "0.6746213", "0.67328364", "0.67116433", "0.6705532", "0.6694926", "0.66850907", "0.6684164", "0.66659516", "0.66637635", "0.66457456", "0.662953", "0.6610545", "0.6610545", "0.6610545", "0.6599801", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6573327", "0.6572282", "0.6572282", "0.65698135", "0.65698135", "0.65698135", "0.65698135", "0.65276366", "0.65276366", "0.65276366", "0.6520671", "0.6516217", "0.65157086", "0.6503338", "0.64958316", "0.6494487", "0.6480943", "0.6480623", "0.64768976", "0.64768976", "0.64768976", "0.64768976", "0.64768976", "0.64768976", "0.64768976", "0.64768976", "0.64768976", "0.64768976", "0.6458887", "0.6458887", "0.6458887", "0.6430244", "0.64146197", "0.64096814", "0.6407297", "0.6407297", "0.6407297", "0.6407297", "0.6407297", "0.6407297", "0.64020973", "0.6396319", "0.6396319", "0.6396319", "0.6396319", "0.6396319", "0.6396319", "0.63947886", "0.6388533", "0.6386412", "0.6383362", "0.6374209", "0.6366489", "0.6337451", "0.6334698", "0.6334698", "0.63216233", "0.6319721", "0.6318627", "0.6310501", "0.6295265", "0.6289347", "0.62819135" ]
0.0
-1
All file cache return as byte[]
@Override public Object get(String key) { final String fileName = Util.MD5(key); CacheModel model = container.get(fileName); if (model == null) { String name = Util.formatFileName(fileName, ""); mWriter.deleteFileStartWith(name); return null; } if (model.data instanceof byte[]) { return model.data; } File file = (File) model.data; if (!file.exists()) { return null; } for (CachePolicy p : policies) { if (!p.modelCheck(model, container)) { file.delete(); return null; } } model.accessUpdate(); file.setLastModified(model.lastAccessTime); return file2ByteArray(file); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private static byte[] m2539e(Context context) {\n Throwable th;\n int i = 0;\n ByteArrayOutputStream byteArrayOutputStream = new ByteArrayOutputStream();\n byte[] bArr = new byte[0];\n String a = Log.m2547a(context, Log.f1857e);\n DiskLruCache diskLruCache = null;\n try {\n diskLruCache = DiskLruCache.m2767a(new File(a), 1, 1, 10240);\n File file = new File(a);\n if (file != null && file.exists()) {\n String[] list = file.list();\n int length = list.length;\n while (i < length) {\n String str = list[i];\n if (str.contains(\".0\")) {\n byteArrayOutputStream.write(StatisticsManager.m2535a(diskLruCache, str.split(\"\\\\.\")[0]));\n }\n i++;\n }\n }\n bArr = byteArrayOutputStream.toByteArray();\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n try {\n diskLruCache.close();\n } catch (Throwable th2) {\n th = th2;\n }\n }\n } catch (IOException th3) {\n BasicLogHandler.m2542a(th3, \"StatisticsManager\", \"getContent\");\n if (byteArrayOutputStream != null) {\n try {\n byteArrayOutputStream.close();\n } catch (IOException e2) {\n e2.printStackTrace();\n }\n }\n if (diskLruCache != null) {\n diskLruCache.close();\n }\n } catch (Throwable th4) {\n th3 = th4;\n }\n return bArr;\n th3.printStackTrace();\n return bArr;\n }", "public byte[] cache(InputStream contents) throws IOException {\r\n\t\tif (contents == null)\r\n\t\t\treturn null;\r\n\t\tByteArray ba = new ByteArray(IOUtils.readBytes(contents, 1024));\r\n\t\tcache.putIfAbsent(ba, ba.contents);\r\n\t\treturn cache.get(ba);\r\n\t}", "public abstract byte[] getBytes(String path) throws IOException, ClassNotFoundException;", "@Override\n\tpublic byte[] get()\n\t{\n\t\tif (isInMemory())\n\t\t{\n\t\t\tif (cachedContent == null)\n\t\t\t{\n\t\t\t\tcachedContent = dfos.getData();\n\t\t\t}\n\t\t\treturn cachedContent;\n\t\t}\n\n\t\tFile file = dfos.getFile();\n\n\t\ttry\n\t\t{\n\t\t\treturn Files.readBytes(file);\n\t\t}\n\t\tcatch (IOException e)\n\t\t{\n\t\t\tlog.debug(\"failed to read content of file: \" + file.getAbsolutePath(), e);\n\t\t\treturn null;\n\t\t}\n\t}", "public byte[] getContents() throws VlException\n {\n long len = getLength();\n // 2 GB files cannot be read into memory !\n\n // zero size optimization ! \n\n if (len==0) \n {\n return new byte[0]; // empty buffer ! \n }\n\n if (len > ((long) VRS.MAX_CONTENTS_READ_SIZE))\n throw (new ResourceToBigException(\n \"Cannot read complete contents of a file greater then:\"\n + VRS.MAX_CONTENTS_READ_SIZE));\n\n int intLen = (int) len;\n return getContents(intLen);\n\n }", "public byte[] bytes() throws IOException {\n try(FileInputStream fis = new FileInputStream(file)) {\n return ByteStreams.toByteArray(fis);\n }\n }", "public byte[] getFileBytes(){\n\t\treturn fileBytes;\n\t}", "public byte[] getReportFile(){\n \tbyte[] result = new byte[this.reportFile.length];\n System.arraycopy(this.reportFile, 0, result, 0, this.reportFile.length);\n return result;\n }", "private String getFileContents ()\n {\n final String s = m_buffers.values ()//\n .stream ()//\n .flatMap (List::stream)//\n .collect (Collectors.joining ());\n\n return s;\n }", "public byte[] getBytes() throws IOException {\r\n return mFile.getBytes();\r\n }", "public byte[] getFilecontent() {\n return filecontent;\n }", "static byte[] getFileAsByteArray(String filename) {\n\n byte[] fileDisk = new byte[DISK_SIZE];\n\n try {\n byte[] array = Files.readAllBytes(new File(filename).toPath());\n return array;\n } catch (Exception e) {\n System.out.println(\"error\");\n System.exit(0);\n }\n\n return fileDisk;\n }", "byte[] getBytes();", "byte[] getBytes();", "private static File getWeededOut() {\n\t\tFile[] files = cacheFolder.listFiles();\n\t\tif (files != null) {\n\t\t\tint count = files.length;\n\t\t\tif (count > CACHE_CAPACITY) {\n\n\t\t\t\tFile ret = files[0];\n\n\t\t\t\tfor (File bean : files) {\n\n\t\t\t\t\tif (ret.lastModified() > bean.lastModified())\n\t\t\t\t\t\tret = bean;\n\t\t\t\t}\n\t\t\t\tfiles = null;\n\t\t\t\treturn ret;\n\t\t\t} else {\n\t\t\t\tfiles = null;\n\t\t\t\treturn null;\n\t\t\t}\n\n\t\t}\n\t\tfiles = null;\n\t\treturn null;\n\t}", "byte[] getFile(String sha) throws Exception;", "private static File getCachedFile(String baseUrl, String params) {\n int hashCode = (baseUrl + params).hashCode();\n return new File(System.getProperty(\"java.io.tmpdir\"), BL_CACHE_FILE + hashCode);\n }", "public File getCacheFile() {\n return AQUtility.getCacheFile(this.cacheDir, getCacheUrl());\n }", "java.util.List<com.google.protobuf.ByteString> getCachedList();", "public String[] getFilesOnServer() {\n Log.i(\"getFilesFor\", \"Getting all files on server available to \"\n + new KeyGenerator(context).getPublicKeyAsString());\n Cursor resultSet = database.rawQuery(\n \"SELECT DISTINCT File FROM FileKeys WHERE UserPublicKey = \" +\n \"'\" + new KeyGenerator(context).getPublicKeyAsString() + \"'\", null);\n String[] fileNames = new String[resultSet.getCount()];\n resultSet.moveToFirst();\n int i = 0;\n while (!resultSet.isAfterLast()) {\n Log.i(\"getFilesFor\", \"File namme: \" + resultSet.getString(0));\n fileNames[i++] = resultSet.getString(0);\n resultSet.moveToNext();\n }\n resultSet.close();\n return fileNames;\n }", "public HashMap<String, String> getAllFiles() {\n return _allFiles;\n }", "@Override\r\n\tpublic byte[] getBytes() {\n\t\treturn buffer.array();\r\n\t}", "public byte[] getbyteArray() {\n byte[] output = new byte[header_size+fileData.length];\n output[0] = (byte)((type & 0xff00)>> 8);\n output[1] = (byte)(type & 0xff);\n output[2] = (byte)((length & 0xff00)>> 8);\n\t output[3] = (byte)(length & 0xff);\n output[4] = (byte)((clientID & 0xff00)>> 8);\n output[5] = (byte)(clientID & 0xff);\n output[6] = action;\n byte[] temp2 = ByteBuffer.allocate(4).putInt(sectionLength).array();\n for(int i=0;i<4;i++) {\n output[7+i] = temp2[i]; \n }\n temp2 = ByteBuffer.allocate(4).putInt(filePosition).array();\n for(int j=0;j<4;j++) {\n output[11+j] = temp2[j]; \n }\n //copy file data\n System.arraycopy(fileData, 0,output, 15,fileData.length); \n return output;\n }", "public byte[] getAllBytes() {\n return nativeGetAllBytes(__nativePtr);\n }", "public byte[] getFile() {\n return file;\n }", "public byte[] getResource(String name) {\r\n /*\r\n * if (classNameReplacementChar == '\\u0000') { // '/' is used to map the\r\n * package to the path name= name.replace('.', '/') ; } else {\r\n * Replace '.' with custom char, such as '_' name= name.replace('.',\r\n * classNameReplacementChar) ; }\r\n */\r\n if (htJarContents.get(name) == null) {\r\n return null;\r\n }\r\n System.out.println(\">> Cached jar resource name \" + name + \" size is \"\r\n + ((byte[]) htJarContents.get(name)).length + \" bytes\");\r\n\r\n return (byte[]) htJarContents.get(name);\r\n }", "public byte[] file2byte() {\n\t\tbyte[] result = null;\n\t\t\n\t\tif (this.isFile()) {\n\t\t\tBufferedInputStream bufferedInputStream = null;\n\t\t\tByteArrayOutputStream byteArrayOutputStream = null;\n\t\t\t\n\t\t\ttry {\n\t\t\t\tbufferedInputStream = new BufferedInputStream(new FileInputStream(this));\n\t\t\t\tbyteArrayOutputStream = new ByteArrayOutputStream(1024);\n\n\t\t\t\tbyte[] buffer = new byte[1024];\n\t\t\t\tint size = 0;\n\t\t\t\twhile ((size = bufferedInputStream.read(buffer)) != -1) {\n\t\t\t\t\tbyteArrayOutputStream.write(buffer, 0, size);\n\t\t\t\t}\n\t\t\t\tbufferedInputStream.close();\n\n\t\t\t\tresult = byteArrayOutputStream.toByteArray();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t} finally {\n\t\t\t\ttry {\n\t\t\t\t\tif (bufferedInputStream != null) bufferedInputStream.close();\n\t\t\t\t\tif (byteArrayOutputStream != null) byteArrayOutputStream.close();\n\t\t\t\t} catch (Exception exception) {\n\t\t\t\t\tbufferedInputStream = null;\n\t\t\t\t\tbyteArrayOutputStream = null;\n\t\t\t\t\texception.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn result;\n\t}", "public byte[] cache(byte[] contents) {\r\n\t\tif (contents == null)\r\n\t\t\treturn null;\r\n\t\tByteArray ba = new ByteArray(contents);\r\n\t\tcache.putIfAbsent(ba, ba.contents);\r\n\t\treturn cache.get(ba);\r\n\t}", "public static byte[] readAllBytes(String filename) {\n return readAllBytes(filename, true);\n }", "public File getCacheRoot()\r\n {\r\n return cache.getCacheRoot();\r\n }", "public java.util.List<com.google.protobuf.ByteString>\n getCachedList() {\n return cached_;\n }", "@Override\n public GitFile[] getFiles()\n {\n if(_files==null) try { _files = getFilesImpl(); } catch(Exception e) { throw new RuntimeException(e); }\n return _files;\n }", "public static String[] getCacheFileList(Context context) {\n return context.fileList();\n }", "public java.util.List<com.google.protobuf.ByteString>\n getCachedList() {\n return java.util.Collections.unmodifiableList(cached_);\n }", "public byte[] readall(String filePath) throws IOException {\n\t\tint ret;\n\t\t\n\t\tTFSClientFile file = getFileFromCache(filePath);\n\t\tif (file == null) {\t\t// cannot find the file, try to get file info from the master\n\t\t\tret = getFileInfo(filePath);\n\t\t\t\n\t\t\tif (ret != OK)\n\t\t\t\treturn null;\n\t\t\telse {\n\t\t\t\tfile = getFileFromCache(filePath);\t\t\t\t\n\t\t\t\tassert(file != null);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// now the file info is ready\n\t\t// pick-up a chunkserver to read from\n\t\tList<String> servers = new LinkedList<String>();\n\t\tfor (String server : file.getChunkServers())\n\t\t\tservers.add(server);\n\t\t\n\t\tRandom rand = new Random();\n\t\tint index = 0;\n\t\twhile (!servers.isEmpty()) {\n\t\t\tindex = rand.nextInt(servers.size());\n\t\t\t\n\t\t\tString[] strs = servers.get(index).split(\" \");\n\t\t\tservers.remove(index);\n\t\t\t\n\t\t\tSocketIO sockIO = new SocketIO(strs[0], Integer.parseInt(strs[1]));\n\t\t\tsockIO.write((READALL + \" \" + filePath + \"\\r\\n\").getBytes());\n\t\t\tsockIO.flush();\n\t\t\t\n\t\t\tString line = sockIO.readLine();\n\t\t\tif (line.startsWith(STR_OK)) {\n\t\t\t\tstrs = line.split(\" \");\n\t\t\t\tint length = Integer.parseInt(strs[1]);\n\t\t\t\t\n\t\t\t\tbyte[] data = new byte[length];\n\t\t\t\tsockIO.read(data);\n\t\t\t\tsockIO.close();\n\t\t\t\treturn data;\n\t\t\t} else {\n\t\t\t\tsockIO.close();\n\t\t\t\treturn null;\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn null;\n\t}", "private byte[] getData() {\n\t\tStorage storage;\n\t\tint cont = 0;\n\t\tbyte[] data = null;\n\t\tsynchronized (store) {\n\t\t\tstorage = (Storage) store.getContents();\n\t\t\tif (storage != null && storage.data != null) {\n\t\t\t\tdata = storage.data;\n\t\t\t\tcont = storage.cont;\n\t\t\t}\n\t\t}\n\t\tif (cont == 0 || data == null) {\n\t\t\tdata = getImage();\n\t\t\tif (data == null)\n\t\t\t\treturn null;\n\t\t\tcont++;// It increments twice so on the next run it doesn't get\n\t\t\t// updated again\n\t\t}\n\t\tif (cont > 5)\n\t\t\tcont = 0; // it increments just next, so it never stays 0 (wich\n\t\t// is only initial state)\n\t\tcont++;\n\t\tsynchronized (store) {\n\t\t\tif (storage == null) {\n\t\t\t\tstorage = new Storage();\n\t\t\t}\n\t\t\tstorage.cont = cont;\n\t\t\tstore.setContents(storage);\n\t\t\tstore.commit();\n\t\t}\n\n\t\treturn data;\n\t}", "public byte[] getBytes()\n {\n try { return getRepo().newObjectReader().open(_entry.getObjectId()).getBytes(); }\n catch(Exception e) { throw new RuntimeException(e); }\n }", "private JSONArray getAllFromCache(){\n\n JSONArray response = new JSONArray();\n String cacheResponse = this.cacheConnector.getFromCache(policy.\n getCachePolicy(\"Policy Value\"));\n\n if(cacheResponse !=\"-1\"){\n System.out.println(\"Sucessfully go cache content!\");\n System.out.println(cacheResponse);\n response = new JSONArray(cacheResponse); //constructs a json array from string\n System.out.println(\"JSON Result Queried from Cache\");\n }\n //If the policy asks to query from cache but it is not present, then add to cache.\n else if (cacheResponse ==\"-1\") {\n System.out.println(\"Failed to retrieve cache content\");\n }\n\n return response;\n }", "byte[] getByteContent() throws IOException;", "public static byte[] readAll(String filename) {\n\t\ttry {\n\t\t\tFileInputStream fis = new FileInputStream(filename);\n\t\t\treturn readAll(fis);\n\t\t} catch (FileNotFoundException e) {\n\t\t\tthrow new WrappedException(e);\n\t\t}\n\t}", "public byte[] getFileContent() throws IOException {\n if (data != null) {\n return data;\n }\n if (tempFile != null) {\n return FileUtil.readBytes(tempFile);\n }\n return null;\n }", "private byte[] getStreamArquivo(File arquivo) throws IOException\n\t{\n\t\t/* Define o tamanho do buffer a ser lido do arquivo (max 32kb),\n\t\t * faz a criacao de um buffer em memoria para ir armazenando os dados\n\t\t * lidos e entao apos a leitura faz o envio dos dados para o GPP\n\t\t */\n\t\tint sizeBuffer = Integer.parseInt(getPropriedade(\"ordemVoucher.tamanhoBufferArquivos\"));\n\t\tFileInputStream fileInput = new FileInputStream(arquivo);\n\t\tByteArrayOutputStream bufferArquivo = new ByteArrayOutputStream();\n\n\t\tbyte[] data = new byte[sizeBuffer];\n\t\tint count=0;\n\t\twhile ( (count = fileInput.read(data)) != -1 )\n\t\t\tbufferArquivo.write(data,0,count);\n\t\t\n\t\treturn bufferArquivo.toByteArray();\n\t}", "abstract ImmutableMap<Path, Supplier<byte[]>> files();", "public byte[] getBytes() {\n return baos.toByteArray();\n }", "public abstract List<LocalFile> getAllFiles();", "@Override\n\tpublic byte[] fetchFile(String fileName) throws RemoteException {\n return null;\n\n\t}", "public byte[] getContent();", "byte[] getContent();", "public static byte[] ReadFileSync(String filePath)\n {\n byte[] bytes = new byte[0];\n try\n {\n //Instantiate the file object\n File file = new File(filePath);\n //Instantiate the input stread\n InputStream insputStream = new FileInputStream(file);\n long length = file.length();\n bytes = new byte[(int) length];\n \n insputStream.read(bytes);\n insputStream.close();\n\n }\n catch(Exception e)\n {\n Log.e(\"IO\", \"Failed to load file async: \"+filePath+e.toString());\n }\n return bytes;\n }", "default byte[] getBytes() throws IOException {\n try (InputStream is = getInputStream()) {\n return IOUtils.toByteArray(is);\n }\n }", "public GitFile[] getFiles() { return null; }", "private byte[] getContent(File f) {\n byte[] content = null;\n\n try {\n FileInputStream fis = new FileInputStream(f);\n byte[] temp = new byte[fis.available()];\n fis.read(temp);\n fis.close();\n content = temp;\n } catch (IOException e) {\n System.err.println(e.getMessage());\n }\n\n return content;\n }", "public Collection<File> getRetrievedFiles() {\n Collection<File> result = new ArrayList<>(upToDateFiles.size() + copiedFiles.size());\n result.addAll(upToDateFiles);\n result.addAll(copiedFiles);\n return result;\n }", "@Override\r\n\tpublic List<FileMetaDataEntity> getAllFiles() {\n\t\treturn null;\r\n\t}", "private static byte[] getKeyData(String filePath) {\n File file = new File(filePath);\n byte[] buffer = new byte[(int) file.length()];\n FileInputStream fis = null;\n try {\n fis = new FileInputStream(file);\n fis.read(buffer);\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n if (fis != null)\n try {\n fis.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return buffer;\n }", "private void cacheFoldersFiles() throws Exception {\n\n ArrayList<FileManagerFile> files = new ArrayList<FileManagerFile>();\n if (fileCount > 0) {\n SimpleDateFormat formatter = new SimpleDateFormat(\"yyyy-MM-dd'T'HH:mm:ss\");\n formatter.setTimeZone(TimeZone.getTimeZone(\"GMT\"));\n\n int offset = 0;\n int count = 1000;\n List<FileManagerFile> filelist;\n\n do {\n filelist = connection.getFileManager().getFileManagerFiles(count, offset);\n offset += count;\n for (FileManagerFile file : filelist) {\n if (file.getFolderId() == id) {\n files.add(file);\n }\n }\n } while (filelist.size() > 0 && files.size() < fileCount);\n }\n this.files = files;\n }", "public byte[] do_get (String pathOnServer) throws RemoteException {\r\n\t\tFile toClient = new File (pathOnServer)\t;\r\n\t\tSystem.out.println(\"Searching file name= \" + pathOnServer);\r\n\t\tbyte[] data = new byte[getFileSize(pathOnServer)];\t\r\n\t\ttry {\r\n\t\t\tif (toClient.exists()) {\r\n\t\t\tFileInputStream fis = new FileInputStream(toClient);\r\n\t\t\tfis.read(data, 0, data.length);\t\r\n\t\t\tfis.close(); \r\n\t\t\t}\r\n\t\t\telse {\r\n\t\t\t\tSystem.out.println(\"File \" + pathOnServer + \" does not exist.\");\r\n\t\t\t}\r\n\t\t} catch (FileNotFoundException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} catch (IOException e) {\r\n\t\t\t\r\n\t\t\te.printStackTrace();\r\n\t\t}\t\r\n\t\treturn data;\r\n\t}", "@Cacheable(CacheConfig.CACHE_TWO)\n public File getFile() {\n ClassLoader classLoader = Utility.class.getClassLoader();\n File file = new File(classLoader.getResource(path1).getFile());\n logger.info(\"Cache is not used .... \");\n return file;\n }", "public byte[] getBytes()\n {\n return bytes;\n }", "public byte[] getBytes() {\r\n return bytes;\r\n }", "@Override\n public byte[] getContentBytes() throws IOException {\n if (getContent().isPresent()) {\n return getContent().get();\n } else if (readBlockLazily && !getContent().isPresent() && keysToDelete == null) {\n // read block lazily\n getKeysToDelete();\n }\n\n ByteArrayOutputStream baos = new ByteArrayOutputStream();\n DataOutputStream output = new DataOutputStream(baos);\n byte[] bytesToWrite = SerializationUtils.serialize(getKeysToDelete());\n output.writeInt(version);\n output.writeInt(bytesToWrite.length);\n output.write(bytesToWrite);\n return baos.toByteArray();\n }", "@Column(name = \"FILE_CONTENT\" )\n @Lob\n public Byte[] getFileContent() {\n return fileContent;\n }", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] GetBytes() {\n return data;\n }", "public List<File> getFiles();", "public byte[] getBytes() {\n return bytes;\n }", "public byte[] bytes() {\n\t\treturn concat(b64UrlEncode(header.bytes()), JwtHelper.PERIOD, b64UrlEncode(content), JwtHelper.PERIOD, b64UrlEncode(crypto));\n\t}", "com.google.protobuf.ByteString getCached(int index);", "public byte[] getBytes()\n {\n if (isModified())\n {\n // collect all constants\n ConstantPool pool = m_pool;\n boolean fOptimize = !pool.isOrderImportant();\n if (fOptimize)\n {\n if (pool != null)\n {\n // detach the previous pool from the ClassFile\n pool.setClassFile(null);\n }\n pool = new ConstantPool(this);\n }\n preassemble(pool);\n if (fOptimize)\n {\n pool.sort();\n }\n m_pool = pool;\n\n // assemble the class into bytes\n ByteArrayOutputStream streamRaw = new ByteArrayOutputStream(8192);\n DataOutputStream stream = new DataOutputStream(streamRaw);\n try\n {\n assemble(stream, pool);\n }\n catch (IOException e)\n {\n throw ensureRuntimeException(e);\n }\n m_abClazz = streamRaw.toByteArray();\n\n resetModified();\n }\n\n return m_abClazz;\n }", "@Override\n public List<CacheObject<K, V>> getAll(){\n return new ArrayList<>(this.cache.values());\n }", "private byte[] loadByteArrayFromNetwork(String path) {\n\n ByteArrayOutputStream outputStream = null;\n try {\n URL url = new URL(path);\n InputStream inputStream = (InputStream) url.getContent();\n\n outputStream = new ByteArrayOutputStream();\n byte[] buffer = new byte[1024];\n int len = 0;\n while ((len = inputStream.read(buffer)) != -1) {\n outputStream.write(buffer, 0, len);\n }\n outputStream.close();\n inputStream.close();\n\n } catch (MalformedURLException e1) {\n e1.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return outputStream != null ? outputStream.toByteArray() : null;\n }", "GitFile[] getFilesImpl() throws Exception\n {\n TreeWalk twalk = new TreeWalk(getRepo()); twalk.addTree(_rev);\n List <GitFile> files = new ArrayList();\n while(twalk.next()) {\n ObjectId id = twalk.getObjectId(0);\n RevObject rid = getRevObject(id);\n String path = _path + (_path.length()>1? \"/\" : \"\") + twalk.getNameString();\n GitFile child = rid instanceof RevTree? new GitTree((RevTree)rid, path) : new GitBlob((RevBlob)rid, path);\n files.add(child);\n }\n return files.toArray(new GitFile[files.size()]);\n }", "public static byte[] To_Byte_Array (String filename) throws java.security.NoSuchAlgorithmException {\n byte[] data = null;\n // MessageDigest hash = MessageDigest.getInstance(\"SHA-512\");//SHA2 //removed\n\n //Streams, in:\n File textFile;//Textdatei\n FileInputStream in;//Dateieingabe-Stream\n\n try {\n\n textFile = new File(filename);\n in = new FileInputStream(textFile);\n int size = (int)textFile.length(); // Dateilaenge\n int read = 0; // Anzahl der gelesenen Zeichen\n data = new byte[size]; // Lesepuffer\n // Auslesen der Datei\n while (read < size)\n read =+ in.read(data, read, size-read);\n in.close();\n // Schreiben des Lesepuffers in Instanz von MessageDigest und speichern des Hash-Werts in message\n //hash.update (data);//removed\n //message=hash.digest ();//removed\n\n\n }//try\n catch (IOException ex) {\n ex.printStackTrace();\n }\n return data;//added\n }", "private static ArrayList<File> buildFilesArray() {\n ArrayList<File> result = new ArrayList<>();\n rAddFilesToArray(workingDirectory, result);\n return result;\n }", "private static byte[] getFileBytes(String filePath) {\n try {\n return Files.readAllBytes(Paths.get(filePath));\n } catch (IOException e) {\n throw new RuntimeException(\"I/O exception reading contents of file \" + filePath, e);\n }\n }", "default void loadRevisionFileDataIntoMemory(AsyncCache<Integer, RevisionFileData> cache) {\n if (!cache.asMap().isEmpty()) {\n return;\n }\n\n final UberPage uberPage;\n if (exists()) {\n final Reader reader = createReader();\n final PageReference firstRef = reader.readUberPageReference();\n uberPage = (UberPage) firstRef.getPage();\n\n final var revisionNumber = uberPage.getRevisionNumber();\n final var revisionNumbers = new ArrayList<Integer>(revisionNumber);\n\n for (int i = 1; i <= revisionNumber; i++) {\n revisionNumbers.add(i);\n }\n\n cache.getAll(revisionNumbers, keys -> {\n final Map<Integer, RevisionFileData> result = new HashMap<>();\n keys.forEach(key -> result.put(key, reader.getRevisionFileData(key)));\n reader.close();\n return result;\n });\n }\n }", "public byte[] getBytes() {\n return bytes;\n }", "byte [] getBuffer ();", "java.util.List<entities.Torrent.FileInfo>\n getFilesList();", "public File getCacheFile() {\n return new File(cacheDir.getAbsolutePath() + File.separator + this.cacheFile);\n }", "@Override\n public void getFilesContent(List<FileReference> resultFilesContent) {\n }", "@Override\n public void getFilesContent(List<FileReference> resultFilesContent) {\n }", "@Override\n\tpublic List<File> getAll() {\n\t\t return getSession().\n\t createQuery(\"from File f\", File.class).\n\t getResultList();\n\t}", "public File[] getFiles() {\n waitPainted(-1);\n Component list = getFileList();\n if(list instanceof JList) {\n ListModel<?> listModel = ((JList)list).getModel();\n File[] result = new File[listModel.getSize()];\n for (int i = 0; i < listModel.getSize(); i++) {\n result[i] = (File) listModel.getElementAt(i);\n }\n return result;\n } else if(list instanceof JTable){\n TableModel listModel = ((JTable)list).getModel();\n File[] result = new File[listModel.getRowCount()];\n for (int i = 0; i < listModel.getRowCount(); i++) {\n result[i] = (File) listModel.getValueAt(i, 0);\n }\n return result;\n } else\n throw new IllegalStateException(\"Wrong component type\");\n }", "List<Byte> getAsBytes();", "public byte[] getBytes() {\n\t\treturn bytes;\n\t}", "private static byte[] getFileAsByte(String pathFile) {\n\t\tFile file = new File(pathFile);\n\n\t\ttry {\n\t\t\tFileInputStream fin = new FileInputStream(file);\n\t\t\tbyte fileContent[] = new byte[(int) file.length()];\n\t\t\tfin.read(fileContent);\n\t\t\tfin.close();\n\n\t\t\treturn fileContent;\n\t\t} catch (FileNotFoundException e) {\n\t\t\tLOGGER.error(\"File not found: \" + e);\n\t\t} catch (IOException e) {\n\t\t\tLOGGER.error(\"Exception while reading the file: \" + e);\n\t\t}\n\t\treturn null;\n\t}", "byte[] getResult();", "@Nullable\n public byte[] getFileByteArray(String path) {\n\n try {\n return FileUtils.readFileToByteArray(getFile(path));\n } catch (Exception e) {\n //Eliten.getLogger().warning(\"File not found with path \" + path);\n }\n\n return null;\n }", "@Override\n\tpublic String[] query() {\n\t\t// Return an array of (decoded) filenames\n\t\tif (!serviceDir.exists()) {\n\t\t\treturn new String[0];\n\t\t}\n\t\tFile[] files = serviceDir.listFiles();\n\t\tString[] addrs = new String[files.length];\n\t\tfor (int i = 0; i < addrs.length; ++i) {\n\t\t\taddrs[i] = decode(files[i].getName());\n\t\t}\n\t\treturn addrs;\n\t}", "public byte[] getBytes()\n\t{\n\t\treturn bytes;\n\t}", "private static String getFilesContent() {\n String content = \"\";\n try {\n //cameras.json\n AssetManager am = MarketApplication.getMarketApplication().getAssets();\n InputStream stream = am.open(CAMERAS_FILE_NAME);\n int size = stream.available();\n byte[] buffer = new byte[size];\n stream.read(buffer);\n mJsonCameras = new String(buffer);\n\n //videogames.json\n stream = am.open(VIDEO_GAMES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n mJsonVideogames = new String(buffer);\n\n //clothes.json\n stream = am.open(CLOTHES_FILE_NAME);\n size = stream.available();\n buffer = new byte[size];\n stream.read(buffer);\n stream.close();\n mJsonClothesProducts = new String(buffer);\n\n\n } catch (IOException e) {\n Log.e(TAG, \"Couldn't read the file\");\n }\n return content;\n }", "public byte[] getData(String path, boolean setWatch)\n throws KeeperException, InterruptedException {\n return zk.getData(path, setWatch, null);\n }", "public File[] getFiles(String mkey) {\n\t\tFile last;\n\t\tint i = 0;\n\t\tArrayList<File> v = new ArrayList<>();\n\t\twhile (true) {\n\t\t\tlast = getFile(mkey + i);\n\t\t\ti++;\n\t\t\tif (last == null)\n\t\t\t\tbreak;\n\t\t\tv.add(last);\n\t\t}\n\t\tif (v.size() != 0) {\n\t\t\tFile[] path = new File[v.size()];\n\t\t\treturn v.toArray(path);\n\t\t} else {\n\t\t\treturn (File[]) getDefault(mkey);\n\t\t}\n\t}", "public void cache(){\n\t\t\n\t\t/*\n\t\t * second, check if there is a cache file\n\t\t * if yes, then check date\n\t\t * if no, then create a cache file \n\t\t*/\n\t\tif(cacheExist()){\n\t\t\t//check date and decide which file to update\n\t\t\tSystem.out.println(\" hahahaha, cache already there! \");\n\t\t\t\n\t\t\tFile cache = new File(\"./cache.txt\");\n\t\t\tsource = readFile(\"./cache.txt\",source);\n\t\t\tSystem.out.println(\"the size of source hashmap : \"+ source.size());\n\t\t\t\n\t\t\tfor(int i = 1; i < fileList.length;i++){\n\t\t\t\t//if this file need to be updated, write the data to source array\n\t\t\t\tif(needToUpdate(fileList[i], cache)){\n\t\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"MM/dd/yyyy HH:mm:ss\");\n\t\t\t\t\tSystem.out.println(\"S: \"+ sdf.format(fileList[i].lastModified()) + \" c: \"+ sdf.format(cache.lastModified()));\n\t\t\t\t\tsource = readFile(fileList[i].getPath(), source);\n\t\t\t\t}\n\t\t\t}\n\t\t\t//after checking the whole source file and add the new data to source array\n\t\t\t//then sort the source array and write it to cache\n\t\t\tsort(source);\n\t\t\ttry\n\t\t\t{\n\t\t\t String filename= \"./cache.txt\";\n\t\t\t FileWriter fw = new FileWriter(filename,true); //the true will append the new data\n\t\t\t for(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\tfw.write(writeList.get(j));\n\t\t\t\t}\n\t\t\t fw.close();\n\t\t\t}\n\t\t\tcatch(IOException ioe)\n\t\t\t{\n\t\t\t System.err.println(\"IOException: \" + ioe.getMessage());\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\t//there are is no cache, need to create a cache file\n\t\telse{\n\t\t\tSystem.out.println(\" create new cache file !\");\n\t\t\t//create cache file and copy sort the data from source file\n\t\t\t//1. read all the source file and store the data to an arrayList\n\t\t\tfor(int i = 1; i < fileList.length; i++){\n\t\t\t\tsource = readFile(fileList[i].getPath(), source);\t\t\t\n\t\t\t}\n\t\t\tsort(source);\n//\t\t\tSystem.out.println(source);\n\t\t\t\n\t\t\t//2.write the data to the cache file\n\t\t\tPrintWriter writer;\n\t\t\ttry {\n\t\t\t\twriter = new PrintWriter(\"cache.txt\", \"UTF-8\");\t\t\t\n\t\t\t\twriter.println(writeList.size());\n\t\t\t\tfor(int j = 0; j < writeList.size(); j++){\n\t\t\t\t\twriter.println(writeList.get(j));\n\t\t\t\t}\n\t\t\t\twriter.close();\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} catch (UnsupportedEncodingException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t \n\t\t\n\t}", "public String[] getFilesFor(String userPublicKey) {\n Log.i(\"getFilesFor\", \"Getting files for \" + userPublicKey);\n Cursor resultSet = database.rawQuery(\"SELECT DISTINCT File FROM FileKeys \" +\n \"WHERE UserPublicKey = '\" + userPublicKey + \"' AND isOwner = 1\", null);\n String[] fileNames = new String[resultSet.getCount()];\n resultSet.moveToFirst();\n int i = 0;\n while (!resultSet.isAfterLast()) {\n Log.i(\"getFilesFor\", \"File namme: \" + resultSet.getString(0));\n fileNames[i++] = resultSet.getString(0);\n resultSet.moveToNext();\n }\n resultSet.close();\n return fileNames;\n }", "public final byte[] bytes() throws IOException {\n long contentLength = contentLength();\n if (contentLength <= 2147483647L) {\n C3580e source = source();\n try {\n byte[] G = source.mo19680G();\n C3500c.m11649a((Closeable) source);\n if (contentLength == -1 || contentLength == ((long) G.length)) {\n return G;\n }\n throw new IOException(\"Content-Length (\" + contentLength + \") and stream length (\" + G.length + \") disagree\");\n } catch (Throwable th) {\n C3500c.m11649a((Closeable) source);\n throw th;\n }\n } else {\n throw new IOException(\"Cannot buffer entire body for content length: \" + contentLength);\n }\n }", "public boolean isCachedFile() {\n return true;\n }", "public void getCache(int docid){\n try {\n FileReader fr;\n String file_name = ServerThread.collection_path+docid+\".html\";\n fr = new FileReader(file_name);\n BufferedReader file_input = new BufferedReader(fr);\n String line;\n String file_content=\"\";\n while ((line = file_input.readLine()) != null) {\n file_content += line;\n }\n fr.close(); \n send(file_content);\n //System.out.println(file_content); \n } \n catch (IOException ex) {\n Logger.getLogger(ServerThread.class.getName()).log(Level.SEVERE, null, ex);\n System.out.println(\"Could not access file: \"+docid);\n } \n }", "public void syncCache() {\n for (String s : this.cache.keySet()) {\n JsonDocument document = this.cache.get(s);\n document.save(new File(directory, s + \".json\"));\n }\n }" ]
[ "0.656246", "0.62770987", "0.61753595", "0.61506844", "0.613443", "0.60722345", "0.60659164", "0.6007412", "0.6003492", "0.59739596", "0.5946899", "0.59416044", "0.5925557", "0.5925557", "0.59001493", "0.5884898", "0.5860096", "0.5853453", "0.58181053", "0.58123654", "0.58103156", "0.58033633", "0.5800907", "0.57885027", "0.57812977", "0.5775586", "0.57751405", "0.5771975", "0.57481974", "0.5744251", "0.5734279", "0.5720302", "0.57096535", "0.57005316", "0.56931114", "0.5690595", "0.5671781", "0.5671534", "0.5669978", "0.5665273", "0.5664682", "0.5656537", "0.5645765", "0.5640906", "0.56365836", "0.5618965", "0.5605169", "0.5604579", "0.5596147", "0.55814564", "0.55784005", "0.55758286", "0.55651253", "0.55593586", "0.5556297", "0.55403435", "0.553822", "0.5532775", "0.55306304", "0.5521412", "0.5497799", "0.54931", "0.5488317", "0.5482744", "0.548215", "0.54801863", "0.54599243", "0.54561836", "0.5438397", "0.54383814", "0.54285717", "0.54273987", "0.5426066", "0.5424534", "0.54192936", "0.5414311", "0.54141027", "0.54108", "0.53969264", "0.5396109", "0.53947335", "0.53947335", "0.53926677", "0.53867215", "0.5386497", "0.538321", "0.538036", "0.5379675", "0.5371336", "0.5356137", "0.53513396", "0.53430694", "0.53355545", "0.5331507", "0.53260267", "0.5325233", "0.5324523", "0.5321598", "0.53192323", "0.53188354" ]
0.5377542
88
Method used to create the search criteria that will be used in order to filter the vehicles in the JSF part of the application. The criteria is build with the help of the class variables. These values are obtain from the .xhtml page.
public VehicleSearchRequest createSearchVechicle() { VehicleSearchRequest searchRequest = new VehicleSearchRequest(); if (StringUtils.isBlank(searchLocation)) { searchRequest.setLocation(DefaultValues.LOCATION_DEFAULT.getDef()); } else { searchRequest.setLocation(searchLocation); } if (StringUtils.isBlank(searchVehicleType)) { searchRequest.setVehicleType(VehicleType.getEnum(DefaultValues.VEHICLE_TYPE_DEFAULT.getDef())); } else { searchRequest.setVehicleType(VehicleType.getEnum(searchVehicleType)); } if (StringUtils.isBlank(searchFin)) { searchRequest.setFin(DefaultValues.FIN_DEFAULT.getDef()); } else { searchRequest.setFin(searchFin); } if (StringUtils.isBlank(searchModel)) { searchRequest.setModel(DefaultValues.MODEL_DEFAULT.getDef()); } else { searchRequest.setModel(searchModel); } if (StringUtils.isBlank(searchFuelType)) { searchRequest.setFuelType(FuelType.DEFAULT); } else { searchRequest.setFuelType(FuelType.getEnum(searchFuelType)); } if (searchMaxCapacity == 0) { searchRequest.setMaxCapacity(DefaultValues.MAX_CAPACITY_DEFAULT.getDefValue()); } else { searchRequest.setMaxCapacity(searchMaxCapacity); } if (searchMinCapacity == 0) { searchRequest.setMinCapacity(DefaultValues.MIN_CAPACITY_DEFAULT.getDefValue()); } else { searchRequest.setMinCapacity(searchMinCapacity); } if (searchMinYear == 0) { searchRequest.setMinYear(DefaultValues.MIN_YEAR_DEFAULT.getDefValue()); } else { searchRequest.setMinYear(searchMinYear); } if (searchMaxYear == 0) { searchRequest.setMaxYear(DefaultValues.MAX_YEAR_DEFAULT.getDefValue()); } else { searchRequest.setMaxYear(searchMaxYear); } if (searchMaxPrice == 0) { searchRequest.setMaxPrice(DefaultValues.MAX_PRICE_DEFAULT.getDefValue()); } else { searchRequest.setMaxPrice(searchMaxPrice); } if (searchMinPrice == 0) { searchRequest.setMinPrice(DefaultValues.MIN_PRICE_DEFAULT.getDefValue()); } else { searchRequest.setMinPrice(searchMinPrice); } return searchRequest; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TripSearchCriteria getCriteria(){\r\n\t\tname = jNameTrip.getText();\r\n\t\tdateLow = (Date) datePickerFrom.getModel().getValue();\r\n\t\tdateHigh = (Date) datePickerTo.getModel().getValue();\r\n\t\tpriceHigh = slider.getValue();\r\n\t\tpriceLow = 0;\r\n\t\tcategory = (String) categoryCombo.getSelectedItem();\r\n\t\tif (category == \"All Categories\") category = \"\";\r\n\t\tcriteria = new TripSearchCriteria(name,dateLow,dateHigh,priceLow,priceHigh,category,noGuests);\r\n\t\treturn criteria;\r\n\t\t\t\t}", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = new Criteria();\n criteria.addAnd(SiteConfineArea.PROP_NATION,Operator.EQ,searchObject.getNation()).addAnd(SiteConfineArea.PROP_PROVINCE, Operator.EQ, searchObject.getProvince()).addAnd(SiteConfineArea.PROP_CITY,Operator.EQ,searchObject.getCity());\n if (searchObject.getStatus() != null) {\n if (searchObject.getStatus().equals(SiteConfineStatusEnum.USING.getCode())) {\n //使用中\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.GT, new Date());\n } else if (searchObject.getStatus().equals(SiteConfineStatusEnum.EXPIRED.getCode())) {\n criteria.addAnd(SiteConfineArea.PROP_END_TIME, Operator.LT, new Date());\n }\n }\n criteria.addAnd(SiteConfineArea.PROP_SITE_ID,Operator.EQ,searchObject.getSiteId());\n return criteria;\n //endregion your codes 2\n }", "@Override\n public List<Vehicle> findBySearchCriteria(SearchCriteria criteria) {\n List<AggregationOperation> operations = new ArrayList<>();\n operations.addAll(getVehicleAggregations());\n if (criteria.getMakes() != null && !criteria.getMakes().isEmpty()) {\n operations.add(getMatchOperation(\"cars.vehicles.make\", Operation.IN, criteria.getMakes()));\n }\n if (criteria.getModels() != null && !criteria.getModels().isEmpty()) {\n operations.add(getMatchOperation(\"cars.vehicles.model\", Operation.IN, criteria.getModels()));\n }\n if (criteria.getWarehouses() != null && !criteria.getWarehouses().isEmpty()) {\n operations.add(\n getMatchOperation(\n \"_id\",\n Operation.IN,\n criteria.getWarehouses().stream()\n .mapToInt(BigDecimal::intValue)\n .boxed()\n .collect(Collectors.toList())));\n }\n if (criteria.getPriceRange() != null) {\n operations.add(\n getMatchOperation(\"cars.vehicles.price\", Operation.BTW, criteria.getPriceRange()));\n }\n if (criteria.getYearRange() != null) {\n operations.add(\n getMatchOperation(\"cars.vehicles.year_model\", Operation.BTW, criteria.getYearRange()));\n }\n\n operations.add(getVehicleProjection());\n if (criteria.getSort() != null) {\n operations.add(\n sort(\n Sort.Direction.valueOf(criteria.getSort().getDirection().toString()),\n criteria.getSort().getField()));\n }\n TypedAggregation<Warehouse> aggregation =\n Aggregation.newAggregation(Warehouse.class, operations);\n List<Vehicle> filterVehicles =\n mongoTemplate.aggregate(aggregation, Vehicle.class).getMappedResults();\n return filterVehicles;\n }", "private DynamicForm createSearchBox() {\r\n\t\tfinal DynamicForm filterForm = new DynamicForm();\r\n\t\tfilterForm.setNumCols(4);\r\n\t\tfilterForm.setAlign(Alignment.LEFT);\r\n\t\tfilterForm.setAutoFocus(false);\r\n\t\tfilterForm.setWidth(\"59%\"); //make it line up with sort box\r\n\t\t\r\n\t\tfilterForm.setDataSource(SmartGWTRPCDataSource.getInstance());\r\n\t\tfilterForm.setOperator(OperatorId.OR);\r\n\t\t\r\n\t\t//Visible search box\r\n\t\tTextItem nameItem = new TextItem(\"name\", \"Search\");\r\n\t\tnameItem.setAlign(Alignment.LEFT);\r\n\t\tnameItem.setOperator(OperatorId.ICONTAINS); // case insensitive\r\n\t\t\r\n\t\t//The rest are hidden and populated with the contents of nameItem\r\n\t\tfinal HiddenItem companyItem = new HiddenItem(\"company\");\r\n\t\tcompanyItem.setOperator(OperatorId.ICONTAINS);\r\n\t\tfinal HiddenItem ownerItem = new HiddenItem(\"ownerNickName\");\r\n\t\townerItem.setOperator(OperatorId.ICONTAINS);\r\n\r\n\t\tfilterForm.setFields(nameItem,companyItem,ownerItem);\r\n\t\t\r\n\t\tfilterForm.addItemChangedHandler(new ItemChangedHandler() {\r\n\t\t\tpublic void onItemChanged(ItemChangedEvent event) {\r\n\t\t\t\tString searchTerm = filterForm.getValueAsString(\"name\");\r\n\t\t\t\tcompanyItem.setValue(searchTerm);\r\n\t\t\t\townerItem.setValue(searchTerm);\r\n\t\t\t\tif (searchTerm==null) {\r\n\t\t\t\t\titemsTileGrid.fetchData();\r\n\t\t\t\t}\r\n\t\t\t\telse {\r\n\t\t\t\t\tCriteria criteria = filterForm.getValuesAsCriteria();\r\n\t\t\t\t\titemsTileGrid.fetchData(criteria);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn filterForm;\r\n\t}", "@Override\n\tpublic void search() {\n\n\t\tif (firstMonth.equalsIgnoreCase(secondMonth)) {\n\t\t\tFacesContext.getCurrentInstance().addMessage(\n\t\t\t\t\tnull,\n\t\t\t\t\tnew FacesMessage(\n\t\t\t\t\t\t\t\"please choose different months to compare\"));\n\t\t\treturn;\n\t\t}\n\n\t\ttry {\n\n\t\t\tString queury = \"SELECT nvl(TO_CHAR(INVOICES.INVOICE_ORDER) ,'NA') AS INVOICE_ORDER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.INVOICE_NUMBER ,'NA') AS INVOICE_NUMBER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.BOOKING_FILE_NUMBER ,'NA') AS BOOKING_FILE_NUMBER \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.DEPARTURE_DATE, 'dd/mm/yyyy') ,'NA') AS DEPARTURE_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.ARRIVAL_DATE, 'dd/mm/yyyy') ,'NA') AS ARRIVAL_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.EMPLOYEE_ID ,'NA') AS EMPLOYEE_ID \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.COST_CENTER ,'NA') AS COST_CENTER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.COST_CENTER_DEPARTMENT ,'NA') AS COST_CENTER_DEPARTMENT \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.PASSENGER_NAME ,'NA') AS PASSENGER_NAME \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.SERVICE_TYPE ,'NA') AS SERVICE_TYPE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.SERVICE_DESC ,'NA') AS SERVICE_DESC \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.ROUTING ,'NA') AS ROUTING \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.INTER_DOM ,'NA') AS INTER_DOM \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.CHECK_IN, 'dd/mm/yyyy') ,'NA') AS CHECK_IN \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.CHECK_OUT, 'dd/mm/yyyy') ,'NA') AS CHECK_OUT \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.NUMBER_OF_NIGHTS) ,0) AS NUMBER_OF_NIGHTS \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.NUMBER_OF_ROOMS) ,0) AS NUMBER_OF_ROOMS \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.AIRLINE ,'NA') AS AIRLINE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.ROOM_TYPE ,'NA') AS ROOM_TYPE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.SUPPLIER_NAME ,'NA') AS SUPPLIER_NAME \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.NET_AMOUNT ,0) AS NET_AMOUNT \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.OPERATION_FEES ,0) AS OPERATION_FEES \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.TOTAL_AMOUNT ,0) AS TOTAL_AMOUNT \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.TICKET_NO ,'NA') AS TICKET_NO \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.TRAVEL_FORM_NUMBER ,'NA') AS TRAVEL_FORM_NUMBER \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.DESCRIPTION ,'NA') AS DESCRIPTION \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.FROM_DATE, 'dd/mm/yyyy') ,'NA') AS FROM_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.TO_DATE, 'dd/mm/yyyy') ,'NA') AS TO_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(INVOICES.EMPLOYEE_DEPARTMENT ,'NA') AS EMPLOYEE_DEPARTMENT \\n\"\n\t\t\t\t\t+ \" ,nvl(TO_CHAR(INVOICES.INVOICE_DATE, 'dd/mm/yyyy') ,'NA') AS INVOICE_DATE \\n\"\n\t\t\t\t\t+ \" ,nvl(UPLOADED_INVOICE_FILE.INVOICES_MONTH ,'NA') AS INVOICES_MONTH \\n\"\n\t\t\t\t\t+ \" FROM INVOICES INNER JOIN UPLOADED_INVOICE_FILE \\n\"\n\t\t\t\t\t+ \" ON INVOICES.UPLOADED_INVOICE_FILE_ID = UPLOADED_INVOICE_FILE.ID \\n\"\n\t\t\t\t\t+ \" WHERE UPLOADED_INVOICE_FILE.INVOICES_MONTH IN ('\"\n\t\t\t\t\t+ firstMonth\n\t\t\t\t\t+ \"','\"\n\t\t\t\t\t+ secondMonth\n\t\t\t\t\t+ \"') \\n\"\n\t\t\t\t\t+ \" ORDER BY UPLOADED_INVOICE_FILE.INVOICES_MONTH,INVOICES.INVOICE_ORDER \\n\";\n\n\t\t\tdynamicReport = new GenerateDynamicReport();\n\t\t\tdynamicReport.setReportName(\"InvoicesComparisonReport\");\n\t\t\tdynamicReport.setReportTitle(\"Invoices Comparison Report\");\n\t\t\tdynamicReport.setReportQuery(queury);\n\n\t\t\tdynamicReport.columnsNames.add(\"Invoice Order\");\n\t\t\tdynamicReport.columnsNames.add(\"Invoice Number\");\n\t\t\tdynamicReport.columnsNames.add(\"Booking File Number\");\n\t\t\tdynamicReport.columnsNames.add(\"Departure Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Arrival Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Employee Id\");\n\t\t\tdynamicReport.columnsNames.add(\"Cost Center\");\n\t\t\tdynamicReport.columnsNames.add(\"Cost Center Department\");\n\t\t\tdynamicReport.columnsNames.add(\"Passenger Name\");\n\t\t\tdynamicReport.columnsNames.add(\"Service Type\");\n\t\t\tdynamicReport.columnsNames.add(\"Service Description\");\n\t\t\tdynamicReport.columnsNames.add(\"Routing\");\n\t\t\tdynamicReport.columnsNames.add(\"Int'l / Dom\");\n\t\t\tdynamicReport.columnsNames.add(\"Check In\");\n\t\t\tdynamicReport.columnsNames.add(\"Check Out\");\n\t\t\tdynamicReport.columnsNames.add(\"Number of Nights\");\n\t\t\tdynamicReport.columnsNames.add(\"Number of Rooms\");\n\t\t\tdynamicReport.columnsNames.add(\"Airline\");\n\t\t\tdynamicReport.columnsNames.add(\"Room Type\");\n\t\t\tdynamicReport.columnsNames.add(\"Supplier Name\");\n\t\t\tdynamicReport.columnsNames.add(\"Net Amount\");\n\t\t\tdynamicReport.columnsNames.add(\"Operation Fees\");\n\t\t\tdynamicReport.columnsNames.add(\"Total Amount\");\n\t\t\tdynamicReport.columnsNames.add(\"Ticket No\");\n\t\t\tdynamicReport.columnsNames.add(\"Travel Form Number\");\n\t\t\tdynamicReport.columnsNames.add(\"Description\");\n\t\t\tdynamicReport.columnsNames.add(\"From Date\");\n\t\t\tdynamicReport.columnsNames.add(\"To Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Employee Department\");\n\t\t\tdynamicReport.columnsNames.add(\"Invoice Date\");\n\t\t\tdynamicReport.columnsNames.add(\"Invoices Month\");\n\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICE_ORDER\");\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICE_NUMBER\");\n\t\t\tdynamicReport.fieldsNames.add(\"BOOKING_FILE_NUMBER\");\n\t\t\tdynamicReport.fieldsNames.add(\"DEPARTURE_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"ARRIVAL_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"EMPLOYEE_ID\");\n\t\t\tdynamicReport.fieldsNames.add(\"COST_CENTER\");\n\t\t\tdynamicReport.fieldsNames.add(\"COST_CENTER_DEPARTMENT\");\n\t\t\tdynamicReport.fieldsNames.add(\"PASSENGER_NAME\");\n\t\t\tdynamicReport.fieldsNames.add(\"SERVICE_TYPE\");\n\t\t\tdynamicReport.fieldsNames.add(\"SERVICE_DESC\");\n\t\t\tdynamicReport.fieldsNames.add(\"ROUTING\");\n\t\t\tdynamicReport.fieldsNames.add(\"INTER_DOM\");\n\t\t\tdynamicReport.fieldsNames.add(\"CHECK_IN\");\n\t\t\tdynamicReport.fieldsNames.add(\"CHECK_OUT\");\n\t\t\tdynamicReport.fieldsNames.add(\"NUMBER_OF_NIGHTS\");\n\t\t\tdynamicReport.fieldsNames.add(\"NUMBER_OF_ROOMS\");\n\t\t\tdynamicReport.fieldsNames.add(\"AIRLINE\");\n\t\t\tdynamicReport.fieldsNames.add(\"ROOM_TYPE\");\n\t\t\tdynamicReport.fieldsNames.add(\"SUPPLIER_NAME\");\n\t\t\tdynamicReport.fieldsNames.add(\"NET_AMOUNT\");\n\t\t\tdynamicReport.fieldsNames.add(\"OPERATION_FEES\");\n\t\t\tdynamicReport.fieldsNames.add(\"TOTAL_AMOUNT\");\n\t\t\tdynamicReport.fieldsNames.add(\"TICKET_NO\");\n\t\t\tdynamicReport.fieldsNames.add(\"TRAVEL_FORM_NUMBER\");\n\t\t\tdynamicReport.fieldsNames.add(\"DESCRIPTION\");\n\t\t\tdynamicReport.fieldsNames.add(\"FROM_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"TO_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"EMPLOYEE_DEPARTMENT\");\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICE_DATE\");\n\t\t\tdynamicReport.fieldsNames.add(\"INVOICES_MONTH\");\n\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.DOUBLE.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.DOUBLE.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.DOUBLE.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\t\t\tdynamicReport.dataTypes.add(DataType.STRING.toString());\n\n\t\t\tString reportPath = dynamicReport.exportDynamicReportToExcel();\n\t\t\tgetDownloadableReportFile(reportPath);\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public TBusineCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "List<TypePatientPropertyCondition> search(String query);", "public com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.searchcriteria.v1.SearchCriteria \n\t\t\t\t\t\t\t\t\t\tgetSearchCriteriaReq(SearchCriteria searchCriteria){\n\t\tcom.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.searchcriteria.v1.SearchCriteria searchCriteriaReq =\n\t\t\tnew com.kcdataservices.partners.kcdebdmnlib_hva.businessobjects.searchcriteria.v1.SearchCriteria();\n\t\t\n\t\tsearchCriteriaReq.setGateway( searchCriteria.getGateway() );\n\t\tsearchCriteriaReq.setPromoCode( searchCriteria.getPromoCode() );\n\t\tsearchCriteriaReq.setAnchorGateway( searchCriteria.getAnchorGateway() );\n\t\tsearchCriteriaReq.setBookingNo( searchCriteria.getBookingNo() );\n\t\tsearchCriteriaReq.setFilterSpecials( new Boolean( searchCriteria.isFilterSpecials() ));\n\t\tif( searchCriteria.getDepartureDate() != null ){\n\t\t\tsearchCriteriaReq.setDepartureDate( this.getDate( searchCriteria.getDepartureDate() ));\n\t\t}\n\t\tif( searchCriteria.getAnchorDepartureDate() != null ){\n\t\t\tsearchCriteriaReq.setAnchorDepartureDate( this.getDate( searchCriteria.getAnchorDepartureDate() ) );\n\t\t}\n\t\tif( searchCriteria.getFlightTripType() != null ){\n\t\t\tsearchCriteriaReq.setFlightTripType( this.getFlightTripTypeReq( searchCriteria.getFlightTripType() ) );\n\t\t}\n\t\tif( searchCriteria.getOccupancy() != null ){\n\t\t\tsearchCriteriaReq.setOccupancy( this.getOccupancyReq( searchCriteria.getOccupancy() ) );\n\t\t}\n\t\tif( (searchCriteria.getDestinationOptions() != null) && (searchCriteria.getDestinationOptions().size() > 0) ){\n\t\t\tfor(int i=0; i < searchCriteria.getDestinationOptions().size(); i++){\n\t\t\t\tsearchCriteriaReq.getDestinationOptions().add( this.getDestinationOptionsReq( searchCriteria.getDestinationOptions().get(i) ) );\n\t\t\t}\n\t\t}\n\t\tif( (searchCriteria.getNearByGateways() != null) && (searchCriteria.getNearByGateways().size() > 0) ){\n\t\t\tsearchCriteriaReq.getNearByGateways().addAll( searchCriteria.getNearByGateways() );\n\t\t}\n\t\t\n\t\treturn searchCriteriaReq;\n\t}", "private void fillSearchFields() {\n view.setMinPrice(1);\n view.setMaxPrice(10000);\n view.setMinSQM(1);\n view.setMaxSQM(10000);\n view.setBedrooms(1);\n view.setBathrooms(1);\n view.setFloor(1);\n view.setHeating(false);\n view.setLocation(\"Athens\");\n }", "private String createWhere() {\n String where = \"\";\n if (getLatitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LATITUDE + \"=\" + getLatitude(\"\");\n } // if getLatitude\n if (getLongitude() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + LONGITUDE + \"=\" + getLongitude(\"\");\n } // if getLongitude\n if (getDepth() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + DEPTH + \"=\" + getDepth(\"\");\n } // if getDepth\n if (getTemperatureMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MIN + \"=\" + getTemperatureMin(\"\");\n } // if getTemperatureMin\n if (getTemperatureMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + TEMPERATURE_MAX + \"=\" + getTemperatureMax(\"\");\n } // if getTemperatureMax\n if (getSalinityMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MIN + \"=\" + getSalinityMin(\"\");\n } // if getSalinityMin\n if (getSalinityMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SALINITY_MAX + \"=\" + getSalinityMax(\"\");\n } // if getSalinityMax\n if (getOxygenMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MIN + \"=\" + getOxygenMin(\"\");\n } // if getOxygenMin\n if (getOxygenMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + OXYGEN_MAX + \"=\" + getOxygenMax(\"\");\n } // if getOxygenMax\n if (getNitrateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MIN + \"=\" + getNitrateMin(\"\");\n } // if getNitrateMin\n if (getNitrateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + NITRATE_MAX + \"=\" + getNitrateMax(\"\");\n } // if getNitrateMax\n if (getPhosphateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MIN + \"=\" + getPhosphateMin(\"\");\n } // if getPhosphateMin\n if (getPhosphateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + PHOSPHATE_MAX + \"=\" + getPhosphateMax(\"\");\n } // if getPhosphateMax\n if (getSilicateMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MIN + \"=\" + getSilicateMin(\"\");\n } // if getSilicateMin\n if (getSilicateMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + SILICATE_MAX + \"=\" + getSilicateMax(\"\");\n } // if getSilicateMax\n if (getChlorophyllMin() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MIN + \"=\" + getChlorophyllMin(\"\");\n } // if getChlorophyllMin\n if (getChlorophyllMax() != FLOATNULL) {\n if (!where.equals(\"\")) {\n where = where + \" and \";\n } // if where\n where = where + CHLOROPHYLL_MAX + \"=\" + getChlorophyllMax(\"\");\n } // if getChlorophyllMax\n if (dbg) System.out.println (\"<br>where = \" + where); // debug\n return (!where.equals(\"\") ? where : null);\n }", "List<Hybridization> searchByCriteria(PageSortParams<Hybridization> params, HybridizationSearchCriteria criteria);", "public String searchCategoriesByCriteria()\n {\n logger.info(\"**** In searchCategoriesByCriteria in Controller ****\");\n if (category != null && (StringUtils.isNotEmpty(category.getCategoryName()) || StringUtils.isNotEmpty(category.getCategoryDescription())))\n {\n categoryList = categoryService.searchCategoriesByCriteria(category);\n }\n else\n {\n FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_INFO, Constants.NO_SEARCH_CRITERIA, Constants.NO_SEARCH_CRITERIA);\n FacesContext.getCurrentInstance().getExternalContext().getFlash().setKeepMessages(true);\n FacesContext.getCurrentInstance().addMessage(null, facesMsg);\n }\n return Constants.SEARCH_CATEGORY_VIEW;\n }", "public FinalOrderBeanCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n Criteria criteria = Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.IEQ,searchObject.getPlayerAccount());\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_IS_ACTIVE, Operator.EQ,searchObject.getIsActive()));\n criteria = criteria.addAnd(Criteria.add(UserPlayerTransfer.PROP_PLAYER_ACCOUNT, Operator.EQ,searchObject.getPlayerAccount()));\n\n return criteria;\n //endregion your codes 2\n }", "@Override\n public Criteria getCriteria() {\n\n //判断是否为精确到天的时间查询\n //情况一 点击分组查询查看该天的详情\n if (this.searchObject.getEndtime() == null && this.searchObject.getStarttime() != null){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n\n //情况二 在分组页面按时间搜索\n }else if (this.searchObject.getEndtime() != null && this.searchObject.getStarttime().equals(this.searchObject.getEndtime())){\n\n this.searchObject.setEndtime(DateTool.addDays(this.searchObject.getStarttime(),1));\n }\n\n Criteria criteria = Criteria.and(\n\n Criteria.add(ActivityPlayerApply.PROP_ID, Operator.EQ, this.searchObject.getId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_MESSAGE_ID, Operator.EQ, this.searchObject.getActivityMessageId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_ID, Operator.EQ, this.searchObject.getUserId()),\n Criteria.add(ActivityPlayerApply.PROP_USER_NAME, Operator.EQ, this.searchObject.getUserName()),\n Criteria.add(ActivityPlayerApply.PROP_REGISTER_TIME, Operator.EQ, this.searchObject.getRegisterTime()),\n Criteria.add(ActivityPlayerApply.PROP_APPLY_TIME, Operator.EQ, this.searchObject.getApplyTime()),\n Criteria.add(ActivityPlayerApply.PROP_PLAYER_RECHARGE_ID, Operator.EQ, this.searchObject.getPlayerRechargeId()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.GE, this.searchObject.getStarttime()),\n Criteria.add(ActivityPlayerApply.PROP_STARTTIME, Operator.LE, this.searchObject.getEndtime()),\n Criteria.add(ActivityPlayerApply.PROP_PREFERENTIAL_VALUE, Operator.EQ, this.searchObject.getPreferentialValue()),\n Criteria.add(ActivityPlayerApply.PROP_ARTICLE, Operator.EQ, this.searchObject.getArticle()),\n Criteria.add(ActivityPlayerApply.PROP_IS_REALIZE, Operator.EQ, this.searchObject.getIsRealize()),\n Criteria.add(ActivityPlayerApply.PROP_RELATION_PLAYER_ID, Operator.EQ, this.searchObject.getRelationPlayerId()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_CLASSIFY_KEY, Operator.EQ, this.searchObject.getActivityClassifyKey()),\n Criteria.add(ActivityPlayerApply.PROP_ACTIVITY_TYPE_CODE, Operator.EQ, this.searchObject.getActivityTypeCode())\n );\n criteria.addAnd(ActivityPlayerApply.PROP_IS_DELETED, Operator.EQ, false);\n return criteria;\n }", "public String getCriteria() {\r\n\t\treturn criteria;\r\n\t}", "public MdCategoryVCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void setCriteria(String criteria) {\r\n\t\tthis.criteria = criteria;\r\n\t}", "@Override\n public HashMap<String, String> getFilterTerms() {\n HashMap<String, String> filterTerms = new HashMap<>();\n if (countryCheckBox.isSelected()) {\n filterTerms.put(\"Country\", countryField.getText());\n }\n if (cityCheckBox.isSelected()) {\n filterTerms.put(\"City\", cityField.getText());\n }\n return filterTerms;\n }", "public String searchByFilter() {\n if (selectedFilter.size() != 0) {\n for (Genre filterOption : selectedFilter) {\n searchTerm = searchResultTerm;\n searchBook();\n\n System.out.println(\"CURRENT NUMBER OF BOOKS: \" + books.size());\n\n BookCollection temp = this.db.getCollectionByGenre(filterOption);\n System.out.println(\"GETTING COLLECTION FOR FILTERING: \" + temp.getCollectionName() + \" NUM OF BOOKS: \"\n + temp.getCollectionBooks().size());\n filterBookList(temp.getCollectionBooks());\n System.out.println(\"UPDATED NUMBER OF BOOKS: \" + books.size());\n }\n } else {\n searchTerm = searchResultTerm;\n searchBook();\n }\n\n return \"list.xhtml?faces-redirect=true\";\n }", "public String buildFilterString(SearchCriteria search){\n System.out.println(search);\n\n int i = 0;\n if(search.getTitle().equals(\"title\")){\n i++;\n }\n if(search.getAuthor().equals(\"author\")){\n i++;\n }\n if(search.getPublisher().equals(\"publisher\")){\n i++;\n }\n if(search.getLanguage().equals(\"language\")){\n i++;\n }\n if(search.getFormat().equals(\"format\")){\n i++;\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i++;\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n i++;\n }\n\n String filter = \"SELECT * from testdb.book WHERE\";\n System.out.println(filter);\n System.out.println(\"number of filters \" + i);\n if(search.getTitle().equals(\"title\")){\n i--;\n System.out.println(filter);\n\n filter += \" title LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getAuthor().equals(\"author\")){\n i--;\n filter += \" author LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n\n filter += \" OR\";\n\n }\n }\n if(search.getPublisher().equals(\"publisher\")){\n i--;\n filter += \" publisher LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter +=\" OR\";\n\n }\n }\n if(search.getLanguage().equals(\"language\")){\n i--;\n filter += \" language LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getFormat().equals(\"format\")){\n i--;\n filter += \" format LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn10().equals(\"isbn10\")){\n i--;\n filter += \" isbn10 LIKE '%\" + search.getSearch() + \"%'\";\n if(i>0){\n filter += \" OR\";\n }\n }\n if(search.getIsbn13().equals(\"isbn13\")){\n\n filter += \" isbn13 LIKE '%\" + search.getSearch() + \"%'\";\n\n }\n System.out.println(\"END \" + filter);\n return filter;\n }", "private Criteria buildActiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, true);\r\n\r\n return criteria;\r\n }", "@Override\n public Criteria getCriteria() {\n //region your codes 2\n return null;\n //endregion your codes 2\n }", "public TFirmwareCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "@Override\n protected Map<String, String> getParams() {\n Map<String, String> params = new HashMap<>();\n\n params.put(\"userid\", globalClass.getId());\n params.put(\"folder_id\", \"0\");\n params.put(\"search_name\", search_text);\n\n Log.d(TAG, \"search \"+params);\n return params;\n }", "public java.lang.String getCriteria () {\n\t\treturn criteria;\n\t}", "private void loadCriteriaList() {\n DataBaseManager DBM = new DataBaseManager();\n criteriaList = DBM.loadCriteriaList(pantallaIdentificacion.this);\n }", "private String getWhereFilter(ArrayList<Object> prmList) {\n StringBuffer filterBuffer = new StringBuffer();\n /* set id filter */\n if (this.idFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.id = ? \");\n prmList.add(this.idFilter);\n }\n\n if (this.typeFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.type LIKE ? \");\n prmList.add(this.typeFilter);\n }\n\n if (this.propertyInfoFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.property_info LIKE ? \");\n prmList.add(this.propertyInfoFilter);\n }\n\n if (this.landCertificateFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_certificate LIKE ? \");\n prmList.add(this.landCertificateFilter);\n }\n\n if (this.landMapNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_map_number LIKE ? \");\n prmList.add(this.landMapNumberFilter);\n }\n\n if (this.landNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_number LIKE ? \");\n prmList.add(this.landNumberFilter);\n }\n\n if (this.landAddressFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.land_address LIKE ? \");\n prmList.add(this.landAddressFilter);\n }\n\n if (this.carLicenseNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_license_number LIKE ? \");\n prmList.add(this.carLicenseNumberFilter);\n }\n\n if (this.carRegistNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_regist_number LIKE ? \");\n prmList.add(this.carRegistNumberFilter);\n }\n\n if (this.carFrameNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_frame_number LIKE ? \");\n prmList.add(this.carFrameNumberFilter);\n }\n\n if (this.carMachineNumberFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.car_machine_number LIKE ? \");\n prmList.add(this.carMachineNumberFilter);\n }\n\n if (this.originKindFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.origin_kind LIKE ? \");\n prmList.add(this.originKindFilter);\n }\n\n if (this.releaseFlgFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.release_flg = ? \");\n prmList.add(this.releaseFlgFilter);\n }\n\n if (this.deleteFlgFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ndp.delete_flg = ? \");\n prmList.add(this.deleteFlgFilter);\n }\n\n if (this.typeKeySearchFilter != null) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" npp.type LIKE ? \");\n prmList.add(this.typeKeySearchFilter);\n }\n\n if (this.keySearchFilter != null) {\n for (int i = 0; i < subKeys.size(); i++) {\n String subkey = subKeys.get(i);\n\n if (Constants.PLUS.equals(subkey)) {\n appendAnd(filterBuffer);\n filterBuffer.append(\" ( \");\n if (i == 0) {\n filterBuffer.append(\" ( \");\n }\n } else if (Constants.SPACE.equals(subkey)) {\n appendOr(filterBuffer);\n filterBuffer.append(\" ( \");\n } else {\n filterBuffer.append(\" MATCH(npp.property_info, npp.owner_info, npp.other_info, \" +\n \"ndp.prevent_in_book_number, ndp.prevent_person_info, ndp.prevent_doc_number, ndp.prevent_doc_summary, \" +\n \"ndp.prevent_note, ndp.release_in_book_number, ndp.release_person_info, \" +\n \"ndp.release_doc_number, ndp.release_doc_summary, ndp.release_note) \");\n filterBuffer.append(\" AGAINST(? IN BOOLEAN MODE) \");\n prmList.add(subkey);\n\n if (subkey.charAt(0) == '\"') {\n subkey = subkey.substring(1, subkey.length() - 1);\n }\n\n if (subkey.charAt(subkey.length() - 1) == '\"') {\n subkey = subkey.substring(0, subkey.length() - 2);\n }\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.property_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.owner_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.other_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n \n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n filterBuffer.append(\" ) \");\n }\n }\n filterBuffer.append(\" ) \");\n\n filterBuffer.append(\" ORDER BY \");\n for (int j = 1; j < subKeys.size(); j++) {\n String subkey = subKeys.get(j);\n if (!Constants.PLUS.equals(subkey) && !Constants.SPACE.equals(subkey)) {\n\n filterBuffer.append(\" ( \");\n filterBuffer.append(\" MATCH(npp.property_info, npp.owner_info, npp.other_info, \" +\n \"ndp.prevent_in_book_number, ndp.prevent_person_info, ndp.prevent_doc_number, ndp.prevent_doc_summary, \" +\n \"ndp.prevent_note, ndp.release_in_book_number, ndp.release_person_info, \" +\n \"ndp.release_doc_number, ndp.release_doc_summary, ndp.release_note) \");\n filterBuffer.append(\" AGAINST(? IN BOOLEAN MODE) \");\n prmList.add(subkey);\n\n if (subkey.charAt(0) == '\"') {\n subkey = subkey.substring(1, subkey.length() - 1);\n }\n\n if (subkey.charAt(subkey.length() - 1) == '\"') {\n subkey = subkey.substring(0, subkey.length() - 2);\n }\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.property_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.owner_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" npp.other_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n \n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.prevent_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_in_book_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_person_info LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_number LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_doc_summary LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n appendOr(filterBuffer);\n filterBuffer.append(\" ndp.release_note LIKE ? \");\n prmList.add(buildFilterString(subkey, FilterKind.MIDDLE.getValue()));\n\n if (j == subKeys.size() - 1) {\n filterBuffer.append(\" ) \");\n } else {\n filterBuffer.append(\" ) + \");\n }\n }\n }\n filterBuffer.append(\" DESC, prevent_doc_receive_date DESC \");\n }\n\n if (this.officeCode != null && !\"\".equals(this.officeCode)) {\n \tappendAnd(filterBuffer);\n filterBuffer.append(\" ndp.synchronize_id LIKE ? \");\n prmList.add(this.officeCode);\n }\n \n return filterBuffer.toString();\n }", "public void updateFromSearchFilters() {\n this.businessTravelReadyModel.checked(ExploreHomesFiltersFragment.this.searchFilters.isBusinessTravelReady());\n ExploreHomesFiltersFragment.this.businessTravelAccountManager.setUsingBTRFilter(this.businessTravelReadyModel.checked());\n this.instantBookModel.checked(ExploreHomesFiltersFragment.this.searchFilters.isInstantBookOnly());\n this.entireHomeModel.checked(ExploreHomesFiltersFragment.this.searchFilters.getRoomTypes().contains(C6120RoomType.EntireHome));\n this.privateRoomModel.checked(ExploreHomesFiltersFragment.this.searchFilters.getRoomTypes().contains(C6120RoomType.PrivateRoom));\n this.sharedRoomModel.checked(ExploreHomesFiltersFragment.this.searchFilters.getRoomTypes().contains(C6120RoomType.SharedRoom));\n SearchMetaData homeTabMetadata = ExploreHomesFiltersFragment.this.dataController.getHomesMetadata();\n if (homeTabMetadata != null && homeTabMetadata.hasFacet()) {\n SearchFacets facets = homeTabMetadata.getFacets();\n this.entireHomeModel.show(facets.facetGreaterThanZero(C6120RoomType.EntireHome));\n this.privateRoomModel.show(facets.facetGreaterThanZero(C6120RoomType.PrivateRoom));\n this.sharedRoomModel.show(facets.facetGreaterThanZero(C6120RoomType.SharedRoom));\n }\n this.priceModel.minPrice(ExploreHomesFiltersFragment.this.searchFilters.getMinPrice()).maxPrice(ExploreHomesFiltersFragment.this.searchFilters.getMaxPrice());\n if (homeTabMetadata == null) {\n this.priceModel.histogram(null).metadata(null);\n } else {\n this.priceModel.histogram(homeTabMetadata.getPriceHistogram()).metadata(homeTabMetadata.getSearch());\n }\n this.priceButtonsModel.selection(ExploreHomesFiltersFragment.this.searchFilters.getPriceFilterSelection());\n this.bedCountModel.value(ExploreHomesFiltersFragment.this.searchFilters.getNumBeds());\n this.bedroomCountModel.value(ExploreHomesFiltersFragment.this.searchFilters.getNumBedrooms());\n this.bathroomCountModel.value(ExploreHomesFiltersFragment.this.searchFilters.getNumBathrooms());\n addCategorizedAmenitiesIfNeeded();\n updateOtherAmenitiesModels();\n updateFacilitiesAmenitiesModels();\n updateHouseRulesAmenitiesModels();\n notifyModelsChanged();\n }", "public static void search() {\n int userSelected = selectFromList(crudParamOptions);\n switch (userSelected){\n case 1:\n searchFirstName();\n break;\n case 2:\n searchLastName();\n break;\n case 3:\n searchPhone();\n break;\n case 4:\n searchEmail();\n break;\n default:\n break;\n }\n }", "public List search() {\n\t\tSessionFactory sf = new Configuration().configure()\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}", "public List AJAXSearch(cat_vo cv) {\n\t\ttry{\n\t\t\tSessionFactory sf = new Configuration().configure()\n\t\t\n\t\t\t\t.buildSessionFactory();\n\t\tSession s = sf.openSession();\n\t\tQuery q = s.createQuery(\"from cat_vo where E_type='\"+cv.getEv().getId()+\"'\");\n\t\tList ls = q.list();\n\t\treturn ls;\n\t}catch(Exception e){e.printStackTrace();}\n\t\treturn null;\n\t}", "public String initializeSearch() {\r\n\t\tthis.searchCompanyManage = \"\";\r\n\t\tthis.idSearchBranchOffice = 0;\r\n\t\tthis.idFarmSearch = 0;\r\n\t\treturn consultPermissionPersonCompany();\r\n\t}", "public PanoOrderTransCriteria() {\r\n oredCriteria = new ArrayList();\r\n }", "List<Accessprofile> listWithCritera(SearchCriteria searchCriteria);", "private SearchResult<ProviderProfile> getAllResults(HealthCareFacilitySearchCriteria criteria,\n String providerCatagory) throws URISyntaxException, IOException, ServiceException {\n DefaultHttpClient client = new DefaultHttpClient();\n client.setRedirectStrategy(new LaxRedirectStrategy());\n\n // we need to get a token from the start page, this will be stored in the client\n HttpGet getFrontPage = new HttpGet(new URIBuilder(getSearchURL()).build());\n HttpResponse response = client.execute(getFrontPage);\n verifyAndAuditCall(getSearchURL(), response);\n EntityUtils.consume(response.getEntity()); // releases the connection\n\n // our client is now valid, pass the criteria to the search page\n String postSearchURL = Util.replaceLastURLPart(getSearchURL(), \"showprovideroutput.cfm\");\n HttpPost searchPage = new HttpPost(new URIBuilder(postSearchURL).build());\n String whichArea = \"\", selectCounty = \"0\", cityToFind = \"\", providerToFind = \"\";\n if (\"county\".equals(criteria.getCriteria())) {\n whichArea = \"County\";\n selectCounty = criteria.getValue();\n } else if (\"city\".equals(criteria.getCriteria())) {\n whichArea = \"City\";\n cityToFind = criteria.getValue();\n } else if (\"provider\".equals(criteria.getCriteria())) {\n whichArea = \"Name\";\n providerToFind = criteria.getValue();\n }\n HttpEntity entity = postForm(postSearchURL, client, searchPage, new String[][] {\n { \"ProviderCatagory\", providerCatagory }, { \"WhichArea\", whichArea }, { \"Submit\", \"Submit\" },\n { \"SelectCounty\", selectCounty }, { \"CityToFind\", cityToFind },\n { \"ProviderToFind\", providerToFind } }, true);\n\n List<ProviderProfile> allProviders = new ArrayList<ProviderProfile>();\n // this now holds the search results, parse every row\n Document page = Jsoup.parse(EntityUtils.toString(entity));\n Elements rows = page.select(\"div#body table tbody tr:gt(0)\");\n for (Element row : rows) {\n ProviderProfile profile = parseProfile(row.children());\n if (profile != null) {\n allProviders.add(profile);\n }\n }\n\n SearchResult<ProviderProfile> results = new SearchResult<ProviderProfile>();\n results.setItems(allProviders);\n return results;\n }", "public void search() {\n listTbagendamentos\n = agendamentoLogic.findAllTbagendamentoByDataAndPacienteAndFuncionario(dataSearch, tbcliente, tbfuncionario);\n }", "public List getFeriadoZona(Map criteria);", "protected void addExampleFiltering(Criteria criteria, Map params) {\n FarmIcsConversion entity = (FarmIcsConversion) params.get(FILTER);\n if (entity != null) {\n\n criteria.createAlias(\"farmer\", \"f\");\n // criteria.createAlias(\"farm\", \"fm\");\n \n \n if (!ObjectUtil.isEmpty(entity.getFarmer()) && entity.getFarmer().getId()!=0)\n criteria.add(Restrictions.eq(\"f.id\", entity.getFarmer().getId()));\n /* \n if (!ObjectUtil.isEmpty(entity.getFarm()) && entity.getFarm().getId()!=0)\n criteria.add(Restrictions.eq(\"fm.id\", entity.getFarm().getId()));*/\n \n // sorting direction\n String dir = (String) params.get(DIR);\n // sorting column\n String sort = (String) params.get(SORT_COLUMN);\n if (dir.equals(DESCENDING)) {\n // sort descending\n criteria.addOrder(Order.desc(sort));\n } else {\n // sort ascending\n criteria.addOrder(Order.asc(sort));\n }\n }\n }", "@Override\n\tpublic List<ttu.rakarh1.backend.model.data.Product> searchProducts(\n\t\t\tfinal ProductSearchCriteria ProductSearchCriteria, final HttpServletRequest request)\n\t{\n\t\tList<ttu.rakarh1.backend.model.data.Product> ProductList = null;\n\t\ttry\n\t\t{\n\t\t\tProduct Product;\n\t\t\tProductList = new ArrayList<ttu.rakarh1.backend.model.data.Product>();\n\t\t\tdb = dbconnection.getConnection();\n\t\t\tst = this.db.createStatement();\n\t\t\tString sql_and = \"\";\n\t\t\tString sql_where = \"\";\n\t\t\tString sql_all_together = \"\";\n\t\t\tString sql_criteria = \"\";\n\t\t\tString sql_end = \" ORDER BY name\";\n\t\t\tString sql_additional_attr = \"\";\n\t\t\tString genSql = \"\";\n\t\t\tList<ttu.rakarh1.backend.model.data.FormAttribute> formAttributes = null;\n\t\t\tMyLogger.LogMessage(\"FORMATTRIBUTES1\");\n\t\t\tformAttributes = (List<FormAttribute>) request.getAttribute(\"formAttributes\");\n\n\t\t\tif (formAttributes != null)\n\t\t\t{\n\t\t\t\tMyLogger.LogMessage(\"FORMATTRIBUTES2\");\n\t\t\t\tsql_additional_attr = getAdditionalSqlAttr(formAttributes);\n\t\t\t}\n\n\t\t\tString sql_from = \" FROM item i \"; /* ,unit_type, item_type \"; */\n\t\t\tString sql_start = \"SELECT distinct i.item, i.unit_type_fk, i.supplier_enterprise_fk, i.item_type_fk,name, i.store_price, i.sale_price, i.producer, i.description, i.producer_code, i.created \";\n\t\t\t// MyLogger.LogMessage(\"SEARCH CRITERIA PRODUCT CODE\" +\n\t\t\t// ProductSearchCriteria.getProduct_code());\n\t\t\tif (ProductSearchCriteria.getGenAttrList() != null)\n\t\t\t{\n\t\t\t\tgenSql = getGeneralSqlAttr(ProductSearchCriteria);\n\t\t\t}\n\n\t\t\tif (!(ProductSearchCriteria.getProduct_code().equals(\"\")))\n\t\t\t{\n\t\t\t\tsql_criteria = \"UPPER(i.producer_code) LIKE UPPER('\"\n\t\t\t\t\t\t+ ProductSearchCriteria.getProduct_code() + \"%')\";\n\t\t\t}\n\n\t\t\tif (!(ProductSearchCriteria.getName().equals(\"\")))\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tString search_string = ProductSearchCriteria.getName().replace(\" \", \" & \");\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" (to_tsvector(name) @@ to_tsquery('\"\n\t\t\t\t\t\t+ search_string + \"'))\";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getMin_price() != -1)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.store_price >= \"\n\t\t\t\t\t\t+ Float.toString(ProductSearchCriteria.getMin_price()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getMax_price() != -1)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.store_price <= \"\n\t\t\t\t\t\t+ Float.toString(ProductSearchCriteria.getMax_price()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getSupplier_enterprise_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.supplier_enterprise_fk = \"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getSupplier_enterprise_fk()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getUnit_type_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria + sql_and + \" i.unit_type_fk = \"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getUnit_type_fk()) + \" \";\n\t\t\t}\n\n\t\t\tif (ProductSearchCriteria.getItem_type_fk() != 0)\n\t\t\t{\n\t\t\t\tif (sql_criteria.equals(\"\"))\n\t\t\t\t{\n\t\t\t\t\tsql_and = \"\";\n\t\t\t\t} else\n\t\t\t\t{\n\t\t\t\t\tsql_and = \" AND \";\n\t\t\t\t}\n\t\t\t\tsql_criteria = sql_criteria\n\t\t\t\t\t\t+ sql_and\n\t\t\t\t\t\t+ \" i.item_type_fk in (with recursive sumthis(item_type, super_type_fk) as (\"\n\t\t\t\t\t\t+ \"select item_type, super_type_fk \" + \"from item_type \"\n\t\t\t\t\t\t+ \"where item_type =\"\n\t\t\t\t\t\t+ Integer.toString(ProductSearchCriteria.getItem_type_fk()) + \" \"\n\t\t\t\t\t\t+ \"union all \" + \"select C.item_type, C.super_type_fk \" + \"from sumthis P \"\n\t\t\t\t\t\t+ \"inner join item_type C on P.item_type = C.super_type_fk \" + \") \"\n\t\t\t\t\t\t+ \"select item_type from sumthis\" + \") \";\n\t\t\t}\n\n\t\t\tif (!(sql_criteria.equals(\"\")))\n\t\t\t{\n\t\t\t\tsql_where = \" WHERE \";\n\t\t\t}\n\t\t\tif (!genSql.equals(\"\"))\n\t\t\t{\n\t\t\t\tsql_from += \"inner join item_type it on it.item_type = i.item_type_fk inner join type_attribute ta on ta.item_type_fk = it.item_type inner join item_attribute_type iat on iat.item_attribute_type = ta.item_attribute_type_fk inner join item_attribute ia on ia.item_attribute_type_fk = iat.item_attribute_type\";\n\t\t\t\tsql_criteria += \" and (\" + genSql + \")\";\n\t\t\t\t// sql_all_together = \" inner join ( \" + sql_additional_attr +\n\t\t\t\t// \") q2 on q2.item_fk = item\";\n\t\t\t}\n\t\t\tsql_all_together = sql_start + sql_from;\n\t\t\tif (sql_additional_attr != \"\")\n\t\t\t{\n\t\t\t\tsql_all_together += \" inner join ( \" + sql_additional_attr\n\t\t\t\t\t\t+ \") q2 on q2.item_fk = i.item\";\n\n\t\t\t}\n\n\t\t\tsql_all_together += sql_where + sql_criteria + sql_end;\n\n\t\t\tMyLogger.LogMessage(\"ProductDAOImpl -> fdfdf \" + sql_all_together);\n\t\t\tSystem.out.println(sql_all_together);\n\t\t\tResultSet rs = this.st.executeQuery(sql_all_together);\n\t\t\tint cnt = 0;\n\t\t\twhile (rs.next())\n\t\t\t{\n\t\t\t\tProduct = new Product();\n\t\t\t\tProduct.setProduct(rs.getInt(\"item\"));\n\t\t\t\tProduct.setName(rs.getString(\"name\"));\n\t\t\t\tProduct.setDescription(rs.getString(\"description\"));\n\t\t\t\tProduct.setProduct_code(rs.getString(\"producer_code\"));\n\t\t\t\tProduct.setStore_price(rs.getFloat(\"store_price\"));\n\t\t\t\tProduct.setSale_price(rs.getInt(\"sale_price\"));\n\t\t\t\tProduct.setProduct_catalog(rs.getInt(\"item_type_fk\"));\n\t\t\t\tProductList.add(Product);\n\t\t\t\tcnt = cnt + 1;\n\t\t\t}\n\n\t\t}\n\n\t\tcatch (Exception ex)\n\t\t{\n\t\t\tMyLogger.Log(\"searchProducts():\", ex.getMessage());\n\n\t\t}\n\n\t\treturn ProductList;\n\t}", "public SearchCondition[] getConditions();", "public GoodsSkuCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public void searchVehicle(String searchVeh) {\r\n\t\twaitForPageToLoad();\r\n\t\twaitForElementPresent(searchField, SHORTWAIT);\r\n\t\tsafeClearAndType(searchField, searchVeh, SHORTWAIT);\r\n\t\tlog.info(\"search Vehicle\");\r\n\t}", "String genWhereConditionsFromFilters(TableFields tableFields, String filters);", "@Override\n\tpublic void before(Method method, Object[] args, Object obj) throws Throwable {\n\t\tMap<String, Object> conditionMap = new HashMap<String, Object>();\n\t\t\n\t\tList<Condition> conditionList = new ArrayList<Condition>();\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (args[i] instanceof Search) {\n\t\t\t\tSet<String> nameSet = new HashSet<String>();\n\t\t\t\tCondition c = null;\n\t\t\t\tServletRequest request = RequestContext.getCurrentContext().getRequest();\n\t\t\t\t@SuppressWarnings(\"rawtypes\")\n\t\t\t\tEnumeration enu = request.getParameterNames();\n\t\t\t\twhile (enu.hasMoreElements()) {\n\t\t\t\t\tString name = (String)enu.nextElement();\n\t\t\t\t\tString value = request.getParameter(name);\n\t\t\t\t\tList<String> params = Arrays.asList(\"routerName\", \"methods\", \"confirmMethods\", \"gridId\");\n\t\t\t\t\tif (params.contains(name)) {\n\t\t\t\t\t\tc = new Condition();\n\t\t\t\t\t\tc.setName(name);\n\t\t\t\t\t\tc.setValue(value);\n\t\t\t\t\t\tconditionMap.put(name, value);\n\t\t\t\t\t\tnameSet.add(c.getName());\n\t\t\t\t\t\tconditionList.add(c);\n\t\t\t\t\t} else if (name.toLowerCase().startsWith(SEARCH_PREFIX) \n\t\t\t\t\t\t\t&& (value != null && (!value.equals(\"\")))) {\n//\t\t\t\t\t\tboolean has = nameSet.contains(name.split(\"_\")[1]);\n//\t\t\t\t\t\tif (name.toLowerCase().endsWith(SEARCH_SUFFIX_START)) {\n//\t\t\t\t\t\t\tif (has) {\n//\t\t\t\t\t\t\t\tfor (Condition o : conditionList) {\n//\t\t\t\t\t\t\t\t\tif (o.getName().equals(name.split(\"_\")[1])) {\n//\t\t\t\t\t\t\t\t\t\tc = o;\n//\t\t\t\t\t\t\t\t\t\tconditionList.remove(o);\n//\t\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\t\tc = new MultiCondition();\n//\t\t\t\t\t\t\t\t((MultiCondition)c).setName(name.split(\"_\")[1]);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (((MultiCondition) c).getOperateType() == 0) {\n//\t\t\t\t\t\t\t\t((MultiCondition) c).setOperateType(ConditionOperator.GTE);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t((MultiCondition)c).setValue(value);\n//\t\t\t\t\t\t} else if (name.toLowerCase().endsWith(SEARCH_SUFFIX_END)) {\n//\t\t\t\t\t\t\tif (has) {\n//\t\t\t\t\t\t\t\tfor (Condition o : conditionList) {\n//\t\t\t\t\t\t\t\t\tif (o.getName().equals(name.split(\"_\")[1])) {\n//\t\t\t\t\t\t\t\t\t\tc = o;\n//\t\t\t\t\t\t\t\t\t\tconditionList.remove(o);\n//\t\t\t\t\t\t\t\t\t\tbreak;\n//\t\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t} else {\n//\t\t\t\t\t\t\t\tc = new MultiCondition();\n//\t\t\t\t\t\t\t\t((MultiCondition)c).setName(name.split(\"_\")[1]);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\tif (((MultiCondition) c).getOperateType2() == 0) {\n//\t\t\t\t\t\t\t\t((MultiCondition)c).setOperateType2(ConditionOperator.LTE);\n//\t\t\t\t\t\t\t}\n//\t\t\t\t\t\t\t((MultiCondition)c).setValue2(value);\n//\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tc = new Condition();\n\t\t\t\t\t\t\tc.setName(name.split(\"_\")[1]);\n//\t\t\t\t\t\t\tif (c.getOperateType() == 0) {\n//\t\t\t\t\t\t\t\tc.setOperateType(ConditionOperator.EQ);\n//\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tif (value.indexOf(\":\") > 0 && value.length() == 19) {\n\t\t\t\t\t\t\t\tc.setValue(DateUtil.formatTimestampToDate(value));\n\t\t\t\t\t\t\t} else if (\"on\".equals(value)) {\n\t\t\t\t\t\t\t\tvalue = \"1\";\n\t\t\t\t\t\t\t\tc.setValue(value);\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tc.setValue(value);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tconditionMap.put(name, value);\n//\t\t\t\t\t\t}\n\t\t\t\t\t\tnameSet.add(c.getName());\n\t\t\t\t\t\tconditionList.add(c);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (conditionList.size() > 0) {\n\t\t\t\t\t((Search)args[i]).setConditionList(conditionList);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSearchConditionFilter s = method.getAnnotation(SearchConditionFilter.class);\n\t\tif (s != null && s.limits() != null && s.limits().length != 0) {\n\t\t\t//TODO 处理limits,只按照limits限制的条件查询,若不限制则默认全部(即不处理)\n\t\t\tList<Condition> removes = new ArrayList<Condition>();\n\t\t\tList<String> limitList = Arrays.asList(s.limits());\n\t\t\tfor (Condition cond : conditionList) {\n\t\t\t\tif (!limitList.contains(cond.getName())) {\n\t\t\t\t\tremoves.add(cond);\n\t\t\t\t}\n\t\t\t}\n\t\t\tconditionList.removeAll(removes);\n\t\t}\n\t\t\n\t\tfor (int i = 0; i < args.length; i++) {\n\t\t\tif (args[i] instanceof Model && conditionList.size() > 0) {\n\t\t\t\t((Model)args[i]).addAttribute(\"conditions\", conditionMap);\n\t\t\t\tfor (Iterator<Condition> ite = conditionList.iterator(); ite.hasNext();) {\n\t\t\t\t\tCondition cond = ite.next();\n\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName(), conditionMap.get(SEARCH_PREFIX + cond.getName()));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n//\t\tfor (int i = 0; i < args.length; i++) {\n//\t\t\tif (args[i] instanceof Model && conditionList.size() > 0) {\n//\t\t\t\tfor (Iterator<Condition> ite = conditionList.iterator(); ite.hasNext();) {\n//\t\t\t\t\tCondition cond = ite.next();\n//\t\t\t\t\tif (cond instanceof MultiCondition) {\n//\t\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_START, cond.getValue());\n//\t\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_END, ((MultiCondition)cond).getValue2());\n//\t\t\t\t\t\tconditionMap.put(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_START, cond.getValue());\n//\t\t\t\t\t\tconditionMap.put(SEARCH_PREFIX + cond.getName() + SEARCH_SUFFIX_END, ((MultiCondition)cond).getValue2());\n//\t\t\t\t\t} else {\n//\t\t\t\t\t\t((Model)args[i]).addAttribute(SEARCH_PREFIX + cond.getName(), cond.getValue());\n//\t\t\t\t\t\tconditionMap.put(SEARCH_PREFIX + cond.getName(), cond.getValue());\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\t((Model)args[i]).addAttribute(\"conditions\", conditionMap);\n//\t\t\t}\n//\t\t}\n\t\t\n\t\t\n\t\t//BusinessCallController、listcontent.ftl、BackendHelper、admin.common.js、index.ftl(resume)、\n\t\t//BasicBusinessService、ResumeBusinessService、、、UserBusinessService\n//\t\tString simpleClassName = obj.getClass().getSimpleName();\n//\t\tString beanId = StringUtil.convertFirstChar2LowerCase(simpleClassName.replace(\"Controller\", \"Helper\"));\n//\t\tBaseHelper helper = SpringApplicationContext.getBean(beanId);\n//\t\t\n//\t\tif (null != helper) {//设置Condition中value的类型\n//\t\t\thelper.getConditionValue(propertyName, value);\n//\t\t}\n\t}", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public void newCriteria(){\r\n this.criteria = EasyCriteriaFactory.createQueryCriteria(em, classe);\r\n }", "private Criteria buildInactiveCriteria(){\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, false);\r\n\r\n return criteria;\r\n }", "public List<DetallesFacturaContratoVenta> obtenerListaPorPagina(int startIndex, int pageSize, String sortField, boolean sortOrder, Map<String, String> filters)\r\n/* 32: */ {\r\n/* 33: 51 */ List<DetallesFacturaContratoVenta> listaDetallesFacturaContratoVenta = new ArrayList();\r\n/* 34: */ \r\n/* 35: 53 */ CriteriaBuilder criteriaBuilder = this.em.getCriteriaBuilder();\r\n/* 36: 54 */ CriteriaQuery<DetallesFacturaContratoVenta> criteriaQuery = criteriaBuilder.createQuery(DetallesFacturaContratoVenta.class);\r\n/* 37: 55 */ Root<DetallesFacturaContratoVenta> from = criteriaQuery.from(DetallesFacturaContratoVenta.class);\r\n/* 38: */ \r\n/* 39: 57 */ Fetch<Object, Object> contratoVenta = from.fetch(\"contratoVenta\", JoinType.LEFT);\r\n/* 40: 58 */ Fetch<Object, Object> empresa = contratoVenta.fetch(\"empresa\", JoinType.LEFT);\r\n/* 41: 59 */ Fetch<Object, Object> cliente = empresa.fetch(\"cliente\", JoinType.LEFT);\r\n/* 42: 60 */ contratoVenta.fetch(\"agenteComercial\", JoinType.LEFT);\r\n/* 43: 61 */ contratoVenta.fetch(\"subempresa\", JoinType.LEFT);\r\n/* 44: 62 */ Fetch<Object, Object> direccionEmpresa = contratoVenta.fetch(\"direccionEmpresa\", JoinType.LEFT);\r\n/* 45: 63 */ direccionEmpresa.fetch(\"ubicacion\", JoinType.LEFT);\r\n/* 46: 64 */ contratoVenta.fetch(\"canal\", JoinType.LEFT);\r\n/* 47: 65 */ contratoVenta.fetch(\"zona\", JoinType.LEFT);\r\n/* 48: 66 */ contratoVenta.fetch(\"condicionPago\", JoinType.LEFT);\r\n/* 49: */ \r\n/* 50: 68 */ List<Expression<?>> empresiones = obtenerExpresiones(filters, criteriaBuilder, from);\r\n/* 51: 69 */ criteriaQuery.where((Predicate[])empresiones.toArray(new Predicate[empresiones.size()]));\r\n/* 52: */ \r\n/* 53: 71 */ agregarOrdenamiento(sortField, sortOrder, criteriaBuilder, criteriaQuery, from);\r\n/* 54: */ \r\n/* 55: 73 */ CriteriaQuery<DetallesFacturaContratoVenta> select = criteriaQuery.select(from);\r\n/* 56: */ \r\n/* 57: 75 */ TypedQuery<DetallesFacturaContratoVenta> typedQuery = this.em.createQuery(select);\r\n/* 58: 76 */ agregarPaginacion(startIndex, pageSize, typedQuery);\r\n/* 59: */ \r\n/* 60: 78 */ listaDetallesFacturaContratoVenta = typedQuery.getResultList();\r\n/* 61: 81 */ for (DetallesFacturaContratoVenta dfcv : listaDetallesFacturaContratoVenta)\r\n/* 62: */ {\r\n/* 63: 83 */ CriteriaQuery<DetalleContratoVenta> cqDetalle = criteriaBuilder.createQuery(DetalleContratoVenta.class);\r\n/* 64: 84 */ Root<DetalleContratoVenta> fromDetalle = cqDetalle.from(DetalleContratoVenta.class);\r\n/* 65: 85 */ fromDetalle.fetch(\"producto\", JoinType.LEFT);\r\n/* 66: */ \r\n/* 67: 87 */ cqDetalle.where(criteriaBuilder.equal(fromDetalle.join(\"contratoVenta\"), dfcv.getContratoVenta()));\r\n/* 68: 88 */ CriteriaQuery<DetalleContratoVenta> selectContratoVenta = cqDetalle.select(fromDetalle);\r\n/* 69: */ \r\n/* 70: 90 */ List<DetalleContratoVenta> listaDetalleContratoVenta = this.em.createQuery(selectContratoVenta).getResultList();\r\n/* 71: 91 */ dfcv.getContratoVenta().setListaDetalleContratoVenta(listaDetalleContratoVenta);\r\n/* 72: */ }\r\n/* 73: 94 */ return listaDetallesFacturaContratoVenta;\r\n/* 74: */ }", "public void search() {\n\n lazyModel = new LazyDataModel<Pesquisa>() {\n private static final long serialVersionUID = -6541913048403958674L;\n\n @Override\n public List<Pesquisa> load(int first, int pageSize, String sortField, SortOrder sortOrder, Map<String, String> filters) {\n\n pesquisarBC.searhValidation(searchParam);\n\n int count = pesquisarBC.count(searchParam);\n lazyModel.setRowCount(count);\n\n if (count > 0) {\n if (first > count) {\n // Go to last page\n first = (count / pageSize) * pageSize;\n }\n SearchFilter parameters = new SearchFilter();\n parameters.setFirst(first);\n parameters.setPageSize(pageSize);\n List<Pesquisa> list = pesquisarBC.search(searchParam, parameters);\n\n logger.info(\"END: load\");\n return list;\n } else {\n return null;\n }\n }\n };\n\n }", "@Query(\n \"Select t FROM Ticket t WHERE t.responsible IS NOT NULL \"\n + \"AND (t.isOpen = :isOpen) \"\n + \"AND (LOWER(t.title) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.id) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.client.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.user.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR LOWER(t.category.name) LIKE LOWER(CONCAT('%', :searchTerm, '%')) \"\n + \"OR DATE_FORMAT(t.lastInteration, '%d/%m/%Y') LIKE CONCAT('%', :searchTerm, '%')) \"\n )\n public Page<Ticket> searchType4(@Param(\"isOpen\") Boolean isOpen, @Param(\"searchTerm\") String searchTerm,Pageable pageable);", "public void performSearch() {\n History.newItem(MyWebApp.SEARCH_RESULTS);\n getMessagePanel().clear();\n if (keywordsTextBox.getValue().isEmpty()) {\n getMessagePanel().displayMessage(\"Search term is required.\");\n return;\n }\n mywebapp.getResultsPanel().resetSearchParameters();\n //keyword search does not restrict to spots\n mywebapp.addCurrentLocation();\n if (markFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(markFilterCheckbox.getValue());\n }\n if (contestFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setContests(contestFilterCheckbox.getValue());\n }\n if (geoFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setGeospatialOff(!geoFilterCheckbox.getValue());\n }\n if (plateFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setLicensePlate(plateFilterCheckbox.getValue());\n }\n if (spotFilterCheckbox != null) {\n mywebapp.getResultsPanel().getSearchParameters().setSpots(spotFilterCheckbox.getValue());\n }\n String color = getValue(colorsListBox);\n mywebapp.getResultsPanel().getSearchParameters().setColor(color);\n String manufacturer = getValue(manufacturersListBox);\n if (manufacturer != null) {\n Long id = new Long(manufacturer);\n mywebapp.getResultsPanel().getSearchParameters().setManufacturerId(id);\n }\n String vehicleType = getValue(vehicleTypeListBox);\n mywebapp.getResultsPanel().getSearchParameters().setVehicleType(vehicleType);\n// for (TagHolder tagHolder : tagHolders) {\n// mywebapp.getResultsPanel().getSearchParameters().getTags().add(tagHolder);\n// }\n mywebapp.getResultsPanel().getSearchParameters().setKeywords(keywordsTextBox.getValue());\n mywebapp.getMessagePanel().clear();\n mywebapp.getResultsPanel().performSearch();\n mywebapp.getTopMenuPanel().setTitleBar(\"Search\");\n //mywebapp.getResultsPanel().setImageResources(resources.search(), resources.searchMobile());\n }", "public CCSearchCriteria getSearchCriteria() {\n return getSearchStateFromUserContext().getSearchCriteria();\n }", "public Search applyFilters() {\n if (building.getValue() == null) {\n CustomAlert.warningAlert(\"Please select a building.\");\n return null;\n }\n if (capacity.getCharacters() == null) {\n CustomAlert.warningAlert(\"Please select a capacity.\");\n return null;\n }\n if (nuOfPlugs.getCharacters() == null) {\n CustomAlert.warningAlert(\"Please select the amount of plugs.\");\n return null;\n }\n boolean isScreen = false;\n boolean isBeamer = false;\n if (screen.isSelected()) {\n isScreen = true;\n }\n if (beamer.isSelected()) {\n isBeamer = true;\n }\n int intCapacity;\n String stringCapacity = (String) capacity.getCharacters();\n intCapacity = Integer.parseInt(stringCapacity);\n int intPlugs;\n String stringPlugs = (String) nuOfPlugs.getCharacters();\n intPlugs = Integer.parseInt(stringPlugs);\n return new Search(isScreen, isBeamer, intCapacity, building.getValue(), intPlugs);\n }", "public void setCriteria (java.lang.String criteria) {\n\t\tthis.criteria = criteria;\n\t}", "public List<CustomersListSearchConditionsDTO> findAll();", "public String buildSearchQuery() throws Exception\r\n { \r\n String query;\r\n \r\n searchContext.setText(getSearchString());\r\n \r\n if(!locations.isEmpty())\r\n {\r\n searchContext.setLocations(locations);\r\n }\r\n\r\n if (ext != null) {\r\n for (AdvancedSearchOptions option : ext.getAdvOptionsExtensions()) {\r\n option.setSearchParam(searchContext);\r\n }\r\n }\r\n \r\n // we always want to exclude CAT ignore & hidden rendition aspects\r\n searchContext.setAspectToExclude(VeloConstants.ASPECT_IGNORE);\r\n searchContext.setAspectToExclude(VeloConstants.ASPECT_HIDDEN_RENDITION);\r\n\r\n // we always want to exclude thumbnail types\r\n searchContext.addTypeToExclude(VeloConstants.TYPE_THUMBNAIL);\r\n \r\n query = searchContext.buildQuery(2);\r\n logger.debug(\"AdvancedSearchQuery:\" + query);\r\n \r\n return query;\r\n \r\n }", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public List getOredCriteria() {\r\n return oredCriteria;\r\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "public VehicleSearchRS getVehicles() {\r\n\t\tVehicleSearchRS response = null;\r\n\t\t//VehicleSearchService vehiclesearch = new VehicleSearchService();\r\n\t\t\r\n\t\t///Suppliers are useful when we donít need to supply any value and obtain a result at the same time.\r\n\t\tSupplier<VehicleSearchService> vehiclesearch = VehicleSearchService::new;\r\n\t\ttry {\r\n\t\t\tresponse = vehiclesearch.get().getVehicles(searchRQ);\r\n\t\t\t//System.out.println(response);\r\n\t\t} catch (VehicleValidationException e) {\r\n\t\t\tSystem.out.println(e.getMessage());\r\n\t\t}\r\n\t\treturn response;\r\n\t}", "protected Criteria buildActiveCriteria() {\r\n Criteria criteria = new Criteria();\r\n criteria.addEqualTo(KRADPropertyConstants.ACTIVE, true);\r\n\r\n return criteria;\r\n }", "public List<Criterion> getCriteria() {\n\t return criteria;\n\t }", "private void Searchdata() {\r\n Connection con;\r\n String searchby;\r\n String sortby;\r\n String keyword;\r\n \r\n searchby = (String)cboSearchby.getSelectedItem();\r\n sortby = (String)cboSortby.getSelectedItem();\r\n keyword = txfSearch.getText();\r\n try {\r\n con = ClassSQL.getConnect();\r\n Statement stmt = con.createStatement();\r\n String sql = Searchstmt(searchby,sortby,keyword);\r\n // System.out.println(sql); //for testing purposes\r\n stmt.executeQuery(sql);\r\n con.close();\r\n } catch (SQLException ex) {\r\n ex.printStackTrace();\r\n } finally {\r\n // Place code in here that will always be run.\r\n }\r\n }", "private void generalizeCSACriteria(){\n\t\tArrayList<ServiceTemplate> comps = new ArrayList<ServiceTemplate>() ;\n\t\tArrayList<Criterion> crit = new ArrayList<Criterion>() ;\n\t\t\n\t\tcomps = this.data.getServiceTemplates();\n\t\tcrit = this.data.getCriteria();\n\t\t\n\t\tfor(ServiceTemplate c : comps){\n\t\t\tfor(Criterion cr : crit){\n\t\t\t\ttry {\n\t\t\t\t\tCriterion temp = (Criterion) BeanUtils.cloneBean(cr);\n\t\t\t\t\tc.addCrit(temp);\n\t\t\t\t} catch (IllegalAccessException | InstantiationException | InvocationTargetException | NoSuchMethodException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public List<VirtualMachine> search(SearchCriteria searchCriteria, SearchMode mode,\n List<SearchCriterionType> searchOrder);", "private void startFilterCriteria() {\n\n\t\tLog.i(TAG, \"startFilterCriteria()\");\n\n\t\tFindUtilsImpl utils = new FindUtilsImpl();\n\t\tSet<String> tSet = utils.getTypeSet((ArrayList<BELEvent>) eventsListFind);\n\t\tArrayList<String> tList = new ArrayList<String>(cleanSet(tSet));\n\n\t\tString str = \"start FilterCriteria.class\";\n\t\tLog.i(TAG, \"Search Activity: \" +str);\n\n\t\t\tIntent intent = new Intent(context, FilterCriteria.class);\n\t\t\tintent.putStringArrayListExtra(\"TypesKey\", tList);\n\t\t\t//TODO capture activity not found exception\n\t\t\t//\t((Activity) context).startActivityForResult(intent,Constants.FIND_REQ);\n\t\t\tstartActivityForResult(intent,Constants.FIND_REQ);\n\n\t\t\tstr = \"startActivity(intent,Constants.FIND_REQ)\";\n\t\t\t//\tstr = \"startActivityForResult(intent,Constants.FIND_REQ)\";\n\t\t\tLog.e(\"Search Dlg: \", str);\n\t\t}", "@Override\r\n\tpublic final Search searchProducts(\r\n\t\t\tfinal Map<String, List<String>> searchCriteria,\r\n\t\t\tfinal String correlationId) throws BaseException, ServiceException,\r\n\t\t\tAdapterException {\r\n\t\tfinal long startTime = LOGGER.logMethodEntry(correlationId);\r\n\t\tLOGGER.info(\"Request uri map is \" + searchCriteria, correlationId);\r\n\t\tSearch searchList = null;\r\n\t\tif (searchCriteria.containsKey(RequestAttributeConstant.ATTR)) {\r\n\t\t\tfinal String inputParameter = StringUtils\r\n\t\t\t\t\t.collectionToCommaDelimitedString(searchCriteria\r\n\t\t\t\t\t\t\t.get(RequestAttributeConstant.ATTR));\r\n\r\n\t\t\tfinal String[] pipeSeparated = inputParameter.split(\"\\\\|\");\r\n\t\t\tfor (final String pipeSeparatedString : pipeSeparated) {\r\n\t\t\t\tif (pipeSeparatedString\r\n\t\t\t\t\t\t.contains(RequestAttributeConstant.PRICE)) {\r\n\t\t\t\t\tthis.buildPriceRange(searchCriteria, pipeSeparatedString,\r\n\t\t\t\t\t\t\tcorrelationId);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\t// Added this condition to remove dim attribute if its value is false\r\n\t\tif (searchCriteria.containsKey(RequestAttributeConstant.DIM)) {\r\n\t\t\tfinal List<String> dimvalue = searchCriteria\r\n\t\t\t\t\t.get(RequestAttributeConstant.DIM);\r\n\t\t\tif (dimvalue.get(0).equalsIgnoreCase(CommonConstants.FALSE_VALUE)) {\r\n\t\t\t\tsearchCriteria.remove(RequestAttributeConstant.DIM);\r\n\t\t\t}\r\n\t\t}\r\n\t\tfinal Map<String, String> requestMapURI = this.requestParser\r\n\t\t\t\t.processRequestAttribute(searchCriteria, correlationId);\r\n\t\tList<Map<String, String>> resultMap = null;\r\n\t\tfinal EndecaAdapter endecaAdapter = (EndecaAdapter) this.adapterManager\r\n\t\t\t\t.getAdapter();\r\n\t\trequestMapURI.put(EndecaConstants.REFINEMENTS_REQUIRED,\r\n\t\t\t\tCommonConstants.TRUE_VALUE);\r\n\t\t//OPTIONS Parameter to be added in future\r\n\t\tfinal Map<String, List<String>> optionNodes = null;\r\n\t\tresultMap = endecaAdapter.service(requestMapURI, optionNodes, correlationId);\r\n\t\tthis.generateSearchReport(requestMapURI, resultMap);\r\n\t\tLOGGER.debug(\"ResultMap \" + resultMap, correlationId);\r\n\t\tif ((resultMap != null) && (!resultMap.isEmpty())) {\r\n\t\t\tsearchList = this.searchMapper.convertToSearchPojo(resultMap,\r\n\t\t\t\t\tcorrelationId);\r\n\t\t\tLOGGER.info(\"The search list : \"\r\n\t\t\t\t\t+ searchList.getSearchReport().getTotalProducts(),\r\n\t\t\t\t\tcorrelationId);\r\n\t\t}\r\n\r\n\t\tLOGGER.logMethodExit(startTime, correlationId);\r\n\t\treturn searchList;\r\n\t}", "@FXML\r\n private void search(){\n \r\n String s = tfSearch.getText().trim(); \r\n String type = cmbType.getSelectionModel().getSelectedItem();\r\n String col = cmbFilterBy.getSelectionModel().getSelectedItem();\r\n \r\n /**\r\n * Column Filters\r\n * \r\n */\r\n \r\n \r\n if(!s.isEmpty()){\r\n if(!chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%' AND status<>'active'\", tblTrainingList);\r\n }\r\n\r\n if(chbtoggleInActiveTraining.isSelected()){\r\n db.populateTable(trainingFields+ \" WHERE title LIKE '%\"+s+\"%'\", tblTrainingList);\r\n } \r\n } \r\n }", "@Override\n // String land, String[] kommune, String[] postnr, String[] lokalitet, String[] vej\n public Collection<KommuneEntity> search(SearchParameters parameters) {\n StringList hql = new StringList();\n StringList join = new StringList();\n ConditionList conditions = new ConditionList(ConditionList.Operator.AND);\n\n hql.append(\"select distinct \"+KommuneEntity.databaseKey+\" from KommuneEntity as \"+KommuneEntity.databaseKey);\n join.setPrefix(\"join \");\n\n conditions.addCondition(KommuneEntity.landCondition(parameters));\n\n conditions.addCondition(KommuneEntity.kommuneCondition(parameters));\n if (parameters.has(Key.LOKALITET)) {\n join.append(KommuneEntity.joinLokalitet());\n conditions.addCondition(LokalitetEntity.lokalitetCondition(parameters));\n }\n if (parameters.has(Key.POST)) {\n Pair<String[],Condition> post = KommuneEntity.joinPost();\n join.append(post.getLeft());\n conditions.addCondition(post.getRight());\n conditions.addCondition(PostNummerEntity.postCondition(parameters));\n }\n if (parameters.has(Key.VEJ)) {\n join.append(KommuneEntity.joinVej());\n conditions.addCondition(VejstykkeEntity.vejCondition(parameters));\n }\n if (parameters.hasGlobalCondition()) {\n // Add any further restrictions from the global condition\n conditions.addCondition(parameters.getGlobalCondition().whereField(\"kommune\"));\n }\n\n // our conditions list should now be complete\n\n if (conditions.hasRequiredJoin()) {\n join.append(conditions.getRequiredJoin());\n }\n\n // our join list should now be complete\n\n if (join.size()>0) {\n hql.append(join.join(\" \"));\n }\n if (conditions.size() > 0) {\n hql.append(\"where\");\n hql.append(conditions.getWhere());\n }\n // Append order clause\n hql.append(\"order by \"+KommuneEntity.databaseKey+\".kode\");\n\n return this.query(hql, conditions, parameters.getGlobalCondition());\n }", "List<Accessprofile> listWithCriteras(List<SearchCriteria> searchCriterias);", "public List getOredCriteria() {\n return oredCriteria;\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "public List getOredCriteria() {\n return oredCriteria;\n }", "public Set<SearchFilterItem> setActiveFilterParams(Model model, HttpServletRequest request) {\n Map<String, String[]> parameterMap = request.getParameterMap();\n model.addAttribute(\"parameterMap\", parameterMap);\n\n\n // exclude non-filter query parameters\n Map<String, String[]> filtersOnlyMap = parameterMap.entrySet().stream()\n .filter(entry -> FILTER_PARAMETER_NAMES.contains(entry.getKey())\n || (\"filterJournals\").equals(entry.getKey()))\n .collect(Collectors.toMap(entry -> entry.getKey(), entry -> entry.getValue()));\n\n Set<SearchFilterItem> activeFilterItems = new LinkedHashSet<>();\n filtersOnlyMap.forEach((filterName, filterValues) -> buildActiveFilterItems(activeFilterItems,\n parameterMap, filterName, filterValues));\n return activeFilterItems;\n }", "private String _buildWhereCondition(Vector conditions){\n String strConditions = \"\";\n if(conditions != null){\n strConditions = clsPopulateFunctions.joinVector(conditions, \" AND \");\n }\n return strConditions;\n }", "public Search() {\n try {\n initComponents();\n jPanel8.setVisible(false);\n jPanel5.setVisible(false);\n jPanel7.setVisible(false);\n jPanel6.setVisible(false);\n\n DefaultComboBoxModel dcbm = new DefaultComboBoxModel();\n ILopHocDAO lopHocDao = (ILopHocDAO) Class.forName(\"LopHoc.LopHocDAO\").newInstance();\n allClass = lopHocDao.getAll();\n for (LopHoc lh : allClass) {\n dcbm.addElement(lh.getMalop());\n }\n jcblop2.setModel(dcbm);\n\n //Load Cb Mon Hoc\n dcbmMaMH = new DefaultComboBoxModel();\n IMonHocDAO monHocDAO = (IMonHocDAO) Class.forName(\"MonHoc.MonHocDAO\").newInstance();\n listmh = monHocDAO.getAll();\n for (MonHoc mh : listmh) {\n dcbmMaMH.addElement(mh.getMamh());\n }\n jcbMaMH.setModel(dcbmMaMH);\n\n //Load Ma Lop\n dcbmMaLop = new DefaultComboBoxModel();\n ILopHocDAO lopHocDAO = (ILopHocDAO) Class.forName(\"LopHoc.LopHocDAO\").newInstance();\n listML = lopHocDAO.getAll();\n for (LopHoc lopHoc : listML) {\n dcbmMaLop.addElement(lopHoc.getMalop());\n }\n jcbMaLop.setModel(dcbmMaLop);\n\n //load ma sv\n dcbmMaSV = new DefaultComboBoxModel();\n ISinhVienDAO sinhVienDAO = (ISinhVienDAO) Class.forName(\"SinhVien.SinhVienDAO\").newInstance();\n listsv = sinhVienDAO.getAll();\n // dcbmMaSV.removeAllElements();\n for (SinhVien sv : listsv) {\n dcbmMaSV.addElement(sv.getMasv());\n }\n jcbMasv.setModel(dcbmMaSV);\n\n //Load Lan Thi\n dcbmLanThi = new DefaultComboBoxModel();\n dcbmLanThi.addElement(\"0\");\n dcbmLanThi.addElement(\"1\");\n dcbmLanThi.addElement(\"2\");\n dcbmLanThi.addElement(\"3\");\n dcbmLanThi.addElement(\"4\");\n dcbmLanThi.addElement(\"5\");\n dcbmLanThi.addElement(\"6\");\n jcbLanthi.setModel(dcbmLanThi);\n\n //Load He So\n dcbmHS = new DefaultComboBoxModel();\n dcbmHS.addElement(\"0\");\n dcbmHS.addElement(\"1\");\n dcbmHS.addElement(\"2\");\n dcbmHS.addElement(\"3\");\n dcbmHS.addElement(\"4\");\n jcbHeSo.setModel(dcbmHS);\n\n //TIm kiem sinh vien theo ma lop\n dtm = new DefaultTableModel();\n\n dtm.addColumn(\"ID\");\n dtm.addColumn(\"Họ Tên\");\n dtm.addColumn(\"ID Lớp\");\n dtm.addColumn(\"Hệ ĐT\");\n dtm.addColumn(\"Ngày Sinh\");\n dtm.addColumn(\"Địa Chỉ\");\n dtm.addColumn(\"Giới Tính\");\n dtm.addColumn(\"Số ĐT\");\n jtbTTSV.setModel(dtm);\n\n //TIm Kiem diem theo ma sv\n dtmMark = new DefaultTableModel();\n dtmMark.addColumn(\"Mã Sinh Viên\");\n dtmMark.addColumn(\"Mã Môn Học\");\n dtmMark.addColumn(\"Lần Thi\");\n dtmMark.addColumn(\"Hệ Số\");\n dtmMark.addColumn(\"Điểm\");\n dtmMark.addColumn(\"Trạng Thái\");\n jtbbangdiem.setModel(dtmMark);\n } catch (InstantiationException ex) {\n Logger.getLogger(Search.class.getName()).log(Level.SEVERE, null, ex);\n } catch (IllegalAccessException ex) {\n Logger.getLogger(Search.class.getName()).log(Level.SEVERE, null, ex);\n } catch (ClassNotFoundException ex) {\n Logger.getLogger(Search.class.getName()).log(Level.SEVERE, null, ex);\n }\n\n }", "List<Travel> getTravelsToVisited(TravelsToVisitedCriteria criteria);", "protected Map<String, String> getFilter() {\n\t\tMap<String, String> filterMap = new HashMap<String, String>();\n\t\tfilterMap.clear();\n\t\tString filterGrade = \"\";\n\t\tString elemGrade=\"\";\n\t\t\n\t\tString eleGrade = getSelectedFilter(eleGradePanelUc);\n\t\tif (!eleGrade.isEmpty()) {\n\t\t\tfilterGrade+=eleGrade;\n\t\t}\n\t\tString midGrade = getSelectedFilter(middleGradePanelUc);\n\t\tif (!midGrade.isEmpty()) {\n\t\t\tif(filterGrade.equals(\"\")){\n\t\t\t\tif(elemGrade.isEmpty()){\n\t\t\t\t\tfilterGrade+=midGrade;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tfilterGrade+=\",\"+midGrade;\n\t\t\t}\n\t\t}\n\t\tString highGrade = getSelectedFilter(highrGradePanelUc);\n\t\tif (!highGrade.isEmpty()) {\n\t\t\tif(filterGrade.equals(\"\")){\n\t\t\t\tfilterGrade+=highGrade;\n\t\t\t}else{\n\t\t\t\tfilterGrade+=\",\"+highGrade;\n\t\t\t}\n\t\t}\n\t\tif(filterGrade!=null && !filterGrade.equals(\"\")){\n\t\t\tfilterMap.put(IsSearchView.GRADE_FLT, filterGrade);\n\t\t}\n\t\tString selectedSubject = getSelectedFilter(subjectPanelUc, \"~~\");\n\t\tif (!selectedSubject.isEmpty()) {\n\t\t\tfilterMap.put(IsSearchView.SUBJECT_FLT, selectedSubject);\n\t\t}\n\t\treturn filterMap;\n\t}", "List<Room> selectRoomListWithSearchCondition(@Param(\"condition\") String condition);", "protected abstract ITitleAndSearchPanelFilter instantiateHeaderAndSearchFilter ( ) ;", "@Override\n\tpublic ProductBasicSearchCriteria getCriteria() {\n\t\tif (super.criteria == null) {\n\t\t\tsuper.criteria = new ProductBasicSearchCriteria();\n\t\t}\n\t\treturn super.getCriteria();\n\t}", "@Override\n\tpublic void initParams() {\n\t\tSearchNewResult searchNewResult=Action.getSearchNewResult();\n\t\tint productNum=searchNewResult.Data.ProductList.size();\n\t\tGetCombinedProductPriceCalendarParamModel getCombinedProductPriceCalendarParamModel=new GetCombinedProductPriceCalendarParamModel();\n\t\tgetCombinedProductPriceCalendarParamModel.productID=searchNewResult.Data.ProductList.get(0).ProductID;\n\t\tgetCombinedProductPriceCalendarParamModel.isClubmed=searchNewResult.Data.ProductList.get(0).IsClubmed;\n\t\tgetCombinedProductPriceCalendarParamModel.isCombined=searchNewResult.Data.ProductList.get(0).IsCombined;\n\t\tfor(int i=0;i<productNum;i++){\n\t\t\t//getCombinedProductPriceCalendarParamModel=new GetCombinedProductPriceCalendarParamModel();\t\t\n\t\t\tif(searchNewResult.Data.ProductList.get(i).IsCombined==true){\n\t\t\t\tgetCombinedProductPriceCalendarParamModel.productID=searchNewResult.Data.ProductList.get(i).ProductID;\n\t\t\t\tgetCombinedProductPriceCalendarParamModel.isClubmed=searchNewResult.Data.ProductList.get(i).IsClubmed;\n\t\t\t\tgetCombinedProductPriceCalendarParamModel.isCombined=searchNewResult.Data.ProductList.get(i).IsCombined;\n\t\t\t\tbreak;\n\t\t\t}\t\t\t\n\t\t}\n\t\tthis.paramModel=getCombinedProductPriceCalendarParamModel;\n\t}", "public UserPracticeSummaryCriteria() {\n oredCriteria = new ArrayList<Criteria>();\n }", "List<TravelDTO> getTravelByCriteria(TravelSearchCriteria dto);", "public InstanciaProductoExample() {\n oredCriteria = new ArrayList<Criteria>();\n }", "public Vector getListDoctorsGlobal(Vector conditions){\n Vector listDoctors = new Vector();\n try{\n String sqlGet = \"SELECT doctor.*, convert(varchar(10),birthday,103) AS doctor_birthday, city_name, country_name, professional_name, qualification_name, city.city_id, city.country_id, professional.professional_id, qualification.qualification_id FROM ((doctor LEFT OUTER JOIN (city LEFT OUTER JOIN country ON city.country_id = country.country_id) ON doctor.city_id = city.city_id) LEFT OUTER JOIN qualification ON qualification.qualification_id = doctor.qualification_id) LEFT OUTER JOIN professional ON professional.professional_id = doctor.professional_id\";\n String strConditions = this._buildWhereCondition(conditions);\n if(!strConditions.isEmpty()){\n sqlGet += \" WHERE \" + strConditions;\n }\n sqlGet += \" ORDER BY first_name, last_name\";\n ResultSet rsGet = this.queryData(sqlGet);\n while(rsGet.next()){\n Vector dataSet = new Vector();\n dataSet.add(rsGet.getInt(\"doctor_id\"));\n dataSet.add(rsGet.getString(\"first_name\"));\n dataSet.add(rsGet.getString(\"last_name\"));\n dataSet.add(rsGet.getString(\"add_ress\"));\n dataSet.add(rsGet.getString(\"email\"));\n dataSet.add(rsGet.getString(\"phone_number\"));\n dataSet.add(rsGet.getString(\"doctor_birthday\"));\n dataSet.add(rsGet.getString(\"sex\"));\n dataSet.add(rsGet.getInt(\"experience\"));\n dataSet.add(rsGet.getString(\"city_name\"));\n dataSet.add(rsGet.getString(\"country_name\"));\n dataSet.add(rsGet.getString(\"professional_name\"));\n dataSet.add(rsGet.getString(\"qualification_name\"));\n dataSet.add(rsGet.getInt(\"city_id\"));\n dataSet.add(rsGet.getInt(\"country_id\"));\n dataSet.add(rsGet.getInt(\"professional_id\"));\n dataSet.add(rsGet.getInt(\"qualification_id\"));\n\n listDoctors.add(dataSet);\n }\n } catch(Exception e){\n System.out.println(e.getMessage());\n }\n return listDoctors;\n }", "@Override\n protected void doGet(HttpServletRequest request, HttpServletResponse response)\n throws ServletException, IOException {\n response.setContentType(\"text/html;charset=UTF-8\");\n Map m = request.getParameterMap();\n \n PrintWriter out = response.getWriter();\n try {\n String address=\"\";\n\n if(m.isEmpty()) \n {\n \n }\n if(m.containsKey(\"propertySearch\")) \n { \n String Location = request.getParameter(\"location\");\n Double minPrice = Double.parseDouble(request.getParameter(\"minPrice\"));\n Double maxPrice = Double.parseDouble(request.getParameter(\"maxPrice\"));\n Integer minSquareFeet=-1;\n Integer maxSquareFeet=-1;\n Integer Bedrooms=-1;\n if(request.getParameter(\"minSquareFeet\")!=null)\n {\n minSquareFeet = Integer.parseInt(request.getParameter(\"minSquareFeet\"));\n maxSquareFeet = Integer.parseInt(request.getParameter(\"maxSquareFeet\"));\n Bedrooms = Integer.parseInt(request.getParameter(\"bedrooms\"));\n }\n List<String> Locations = new ArrayList<String>();\n Locations = PropertiesDB.getAllLocations();\n\n request.setAttribute(\"Locations\", Locations);\n\n List<Integer> RoomCount = new ArrayList<Integer>();\n RoomCount = PropertiesDB.getRoomCount();\n\n request.setAttribute(\"RoomCount\", RoomCount);\n //already set\n request.setAttribute(\"Location\", Location);\n request.setAttribute(\"minPrice\", minPrice);\n request.setAttribute(\"maxPrice\", maxPrice);\n\n request.setAttribute(\"minSquareFeet\", minSquareFeet);\n request.setAttribute(\"maxSquareFeet\", maxSquareFeet);\n request.setAttribute(\"bedrooms\", Bedrooms);\n\n try {\n List<Properties> allPropertiesList = PropertiesDB.getAllPropertyBySearch(Location, minPrice, maxPrice, minSquareFeet, maxSquareFeet, Bedrooms);\n\n if (allPropertiesList == null) {\n address = \"/propertySearch.jsp\";\n request.setAttribute(\"NoProperties\", null);\n } else {\n\n address = \"/propertySearch.jsp\";\n request.setAttribute(\"list\", allPropertiesList);\n //request.setAttribute(\"WishList\", ids);\n }\n\n }//end try\n catch (Exception ex) {\n address = \"/Error.jsp\";\n }//end catch\n RequestDispatcher dispatcher = request.getRequestDispatcher(address);\n dispatcher.forward(request, response);\n }\n \n if(m.containsKey(\"propID\")) \n { \n String StyleType=\"\";\n String PropType=\"\";\n String GarageType=\"\";\n Agents agent = null;\n\n try {\n Properties propertyDetails = PropertiesDB.getPropertyByID(Integer.parseInt(request.getParameter(\"propID\")));\n\n if (propertyDetails == null)\n {\n address = \"/propertyDetailssss.jsp\";\n request.setAttribute(\"NoProperties\", null);\n }\n else \n {\n try {\n PropType = PropertiesDB.getPropType(propertyDetails.getTypeId());\n }//end try\n catch (Exception ex) {\n address = \"/Error.jsp\";\n }//end catch\n try {\n StyleType = PropertiesDB.getStyleType(propertyDetails.getStyleId());\n }//end try\n catch (Exception ex) {\n address = \"/Error.jsp\";\n }//end catch\n try {\n GarageType = PropertiesDB.getGarageType(propertyDetails.getGarageId());\n }//end try\n catch (Exception ex) {\n address = \"/Error.jsp\";\n }//end catch\n try {\n agent = AgentsDB.getByAgentId(propertyDetails.getAgentId());\n }//end try\n catch (Exception ex) {\n address = \"/Error.jsp\";\n }//end catch\n String favourite=null;\n Cookie[] cookies = request.getCookies();\n if (cookies != null) \n {\n for (Cookie cookie : cookies) {\n if(cookie.getName().equals(\"PropertyID\"))\n {\n String cookieString = cookie.getValue();\n String[] PropArray = cookieString.split( \", \"); \n for (String PropId : PropArray) {\n \n if(PropId.equals(propertyDetails.getId().toString()))\n {\n favourite=\"1\";\n }\n }\n }\n }\n }\n \n request.setAttribute(\"favourite\", favourite);\n request.setAttribute(\"anAgent\", agent);\n request.setAttribute(\"propertyDetails\", propertyDetails);\n request.setAttribute(\"PropType\", PropType);\n request.setAttribute(\"StyleType\", StyleType);\n request.setAttribute(\"GarageType\", GarageType);\n address = \"/propertyDetails.jsp\";\n \n\n }\n\n }//end try\n catch (Exception ex) {\n address = \"/Error.jsp\";\n }//end catch\n RequestDispatcher dispatcher = request.getRequestDispatcher(address);\n dispatcher.forward(request, response);\n }\n \n \n if (m.containsKey(\"allAgents\"))\n {\n }\n }\n finally {\n out.close();\n }\n \n \n processRequest(request, response);\n }", "Search getSearch();", "public CorrResultModel searchForEvents(String searchString, int page, HashMap foundEventtypes, String lowerBound, String upperBound, List filterNames);", "List<Establishment> searchEstablishments(EstablishmentCriteria criteria, RangeCriteria rangeCriteria);", "public int getCriteria() {\n return criteria;\n }", "protected Criteria constuctCriteria(SearchCriteria searchCriteria, boolean withOrder)\n {\n Criteria criteria = getSession().createCriteria(persistentClass);\n if (searchCriteria == null){\n return criteria;\n }\n constuctCriteria(searchCriteria, criteria, withOrder);\n return criteria;\n }", "public String searchChannelType() throws Exception {\n log.info(\"Begin method searchChannelType of ChannelTypeDAO ...\");\n\n HttpServletRequest req = getRequest();\n SaleChannelTypeForm f = this.saleChannelTypeForm;\n String ajax = QueryCryptUtils.getParameter(req, \"ajax\");\n if (\"1\".equals(ajax)) {\n f.resetForm();\n req.setAttribute(\"toEditChannelType\", 0);\n } else {\n List listParameter = new ArrayList();\n\n// String strQuery = \"from ChannelType as model where not status=\" + Constant.STATUS_DELETE;\n String strQuery = \"from ChannelType as model where 1=1\";\n if (f.getStatus() != null) {\n listParameter.add(f.getStatus());\n strQuery += \" and model.status = ? \";\n }\n\n if (f.getName() != null && !f.getName().trim().equals(\"\")) {\n listParameter.add(\"%\" + f.getName().trim().toLowerCase() + \"%\");\n strQuery += \" and lower(model.name) like ? \";\n }\n if (f.getCheckComm() != null && !f.getCheckComm().trim().equals(\"\")) {\n listParameter.add(f.getCheckComm().trim());\n strQuery += \" and model.checkComm = ? \";\n }\n if (f.getIsVtUnit() != null && !f.getIsVtUnit().trim().equals(\"\")) {\n listParameter.add(f.getIsVtUnit().trim());\n strQuery += \" and model.isVtUnit = ? \";\n }\n if (f.getObjectType() != null && !f.getObjectType().trim().equals(\"\")) {\n listParameter.add(f.getObjectType().trim());\n strQuery += \" and model.objectType = ? \";\n }\n if (f.getStockType() != null) {\n listParameter.add(f.getStockType());\n strQuery += \" and model.stockType = ? \";\n }\n if (f.getStockReportTemplate() != null && !f.getStockReportTemplate().trim().equals(\"\")) {\n listParameter.add(f.getStockReportTemplate().trim());\n strQuery += \" and model.stockReportTemplate = ? \";\n }\n strQuery += \"order by nlssort(name,'nls_sort=Vietnamese') asc\";\n Query q = getSession().createQuery(strQuery);\n for (int i = 0; i < listParameter.size(); i++) {\n q.setParameter(i, listParameter.get(i));\n }\n\n List listChannelType = new ArrayList();\n listChannelType = q.list();\n\n req.setAttribute(\"toEditChannelType\", 0);\n\n// if (listChannelType != null) {\n// f.setMessage(\"Tìm thấy \" + listChannelType.size() + \" kết quả thỏa mãn điều kiện tìm kiếm\");\n// } else {\n// f.setMessage(\"\");\n// }\n\n req.getSession().removeAttribute(\"listChannelType\");\n req.getSession().setAttribute(\"listChannelType\", listChannelType);\n AppParamsDAO appParamsDAO = new AppParamsDAO();\n appParamsDAO.setSession(this.getSession());\n List<AppParams> listPricePolicy = appParamsDAO.findAppParamsByType(Constant.APP_PARAMS_PRICE_POLICY);\n req.setAttribute(\"listPricePolicy\", listPricePolicy);\n List<AppParams> listDiscountPolicy = appParamsDAO.findAppParamsByType(Constant.APP_PARAMS_DISCOUNT_POLICY);\n req.setAttribute(\"listDiscountPolicy\", listDiscountPolicy);\n\n req.setAttribute(\"returnMsg\", \"channelType.search\");\n List paramMsg = new ArrayList();\n paramMsg.add(listChannelType.size());\n req.setAttribute(\"paramMsg\", paramMsg);\n\n }\n\n pageForward = ADD_NEW_SALE_CHANNEL_TYPE;\n\n log.info(\"End method searchChannelType of ChannelTypeDAO\");\n\n return pageForward;\n }", "private void setSearchParameters() {\n List obSys = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=0\"); //user 0 is the system user\n NewuserParamters paramsSys = null;\n if (obSys != null) {\n paramsSys = (NewuserParamters) obSys.get(0);\n } else {\n System.out.println(\"User System Properties missing\");\n }\n //modify the settings of the search parameter based on user specification\n List ob = null;\n\n try {\n ob = dbm.getHQLManager().executeHQLQuery(\"from NewuserParamters where USERID=\" + UserId);\n if (ob.size() > 0) {\n NewuserParamters params = (NewuserParamters) ob.get(0);\n Integer val = 0;\n if ((val = params.getGlobalSessionSize()) != null) {\n NoOfglobalSessions = val;\n } else {\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n }\n\n if ((val = params.getHdmGeneration()) != null) {\n this.noHDMGenerations = val;\n } else {\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n }\n\n if ((val = params.getHdmPopulationSize()) != null) {\n this.HDMPopulation = val;\n } else {\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n }\n\n if ((val = params.getLearningType()) != null) {\n this.learningType = val;\n } else {\n this.learningType = paramsSys.getLearningType();\n }\n\n if ((val = params.getOptimizationType()) != null) {\n this.optimizationType = val;\n } else {\n this.optimizationType = paramsSys.getOptimizationType();\n }\n\n if ((val = params.getSdmGeneration()) != null) {\n this.noSDMGenerations = val;\n } else {\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n }\n\n if ((val = params.getSdmPopulationSize()) != null) {\n this.SDMPopulation = val;\n } else {\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n }\n Double valdou = 0.0;\n if ((valdou = params.getGaMutationProbability()) != null) {\n this.MUTATION_PROBABILITY = valdou;\n } else {\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n }\n\n if ((valdou = params.getGaCrossoverProbability()) != null) {\n this.CROSSOVER_PROBABILITY = valdou;\n } else {\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n }\n }\n else {\n //use system default parameters\n this.NoOfglobalSessions = paramsSys.getGlobalSessionSize();\n this.noHDMGenerations = paramsSys.getHdmGeneration();\n this.HDMPopulation = paramsSys.getHdmPopulationSize();\n this.learningType = paramsSys.getLearningType();\n this.optimizationType = paramsSys.getOptimizationType();\n this.noSDMGenerations = paramsSys.getSdmGeneration();\n this.SDMPopulation = paramsSys.getSdmPopulationSize();\n this.MUTATION_PROBABILITY = paramsSys.getGaMutationProbability();\n this.CROSSOVER_PROBABILITY = paramsSys.getGaCrossoverProbability();\n\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "private void addEntityFiltering(Map params, List excludeProps, Object exampleEntity, int page) {\n\n\t\tparams.put(IReportDAO.FILTER, exampleEntity);\n\t\tparams.put(IReportDAO.EXCLUDE_PROP, excludeProps);\n\t\tparams.put(IReportDAO.PAGE, page);\n\t}", "private void inicializarFiltros() {\r\n filtros = new HashMap<String, String>();\r\n filtros.put(\"parametroNombre\", null);\r\n filtros.put(\"parametroApellido\", null);\r\n filtros.put(\"parametroDocumento\", null);\r\n filtros.put(\"parametroTipoDocumento\", null);\r\n filtros.put(\"parametroCorreo\", null);\r\n filtros.put(\"parametroUsuario\", null);\r\n filtros.put(\"parametroEstado\", null);\r\n filtros.put(\"parametroGenero\", null);\r\n agregarFiltrosAdicionales();\r\n }", "protected Criteria crearCriteria() {\n logger.debug(\"Criteria creado\");\n return getSesion().createCriteria(clasePersistente);\n }" ]
[ "0.6597852", "0.626316", "0.5994376", "0.59743863", "0.5902118", "0.5761594", "0.574484", "0.573513", "0.5640095", "0.5639099", "0.5620094", "0.55845755", "0.5566866", "0.5532113", "0.55283827", "0.54877007", "0.5468919", "0.5452058", "0.53782696", "0.53777385", "0.5373651", "0.53368527", "0.53304845", "0.5305771", "0.53041285", "0.52998376", "0.52950305", "0.5292418", "0.52829975", "0.52813953", "0.5229114", "0.5220061", "0.52163064", "0.52107453", "0.5208367", "0.520681", "0.5196617", "0.51904774", "0.5189296", "0.5186231", "0.5183695", "0.5177205", "0.5173068", "0.51678306", "0.5166005", "0.516009", "0.5152808", "0.51522815", "0.5142482", "0.5139686", "0.5137399", "0.5136908", "0.51337796", "0.5131439", "0.5116416", "0.5114883", "0.5111207", "0.51085204", "0.51085204", "0.51085204", "0.51061225", "0.50973684", "0.50964314", "0.5095477", "0.50868315", "0.5084953", "0.5071032", "0.5070349", "0.50650746", "0.5064457", "0.50540274", "0.5053085", "0.5051837", "0.5051837", "0.5051837", "0.5051837", "0.50503457", "0.5045113", "0.5044712", "0.5041783", "0.5041455", "0.50399953", "0.5013938", "0.50096875", "0.49874717", "0.49859107", "0.49698454", "0.4965234", "0.49647734", "0.49642047", "0.4961027", "0.49601802", "0.49569148", "0.49553376", "0.49532974", "0.4947414", "0.49449086", "0.49446443", "0.49396062", "0.4938648" ]
0.6079101
2
Creates a new Execution attempt.
public Execution( Executor executor, ExecutionVertex vertex, int attemptNumber, long globalModVersion, long startTimestamp, Time rpcTimeout) { this.executor = checkNotNull(executor); this.vertex = checkNotNull(vertex); this.attemptId = new ExecutionAttemptID(); this.rpcTimeout = checkNotNull(rpcTimeout); this.globalModVersion = globalModVersion; this.attemptNumber = attemptNumber; this.stateTimestamps = new long[ExecutionState.values().length]; markTimestamp(CREATED, startTimestamp); this.partitionInfos = new ArrayList<>(16); this.producedPartitions = Collections.emptyMap(); this.terminalStateFuture = new CompletableFuture<>(); this.releaseFuture = new CompletableFuture<>(); this.taskManagerLocationFuture = new CompletableFuture<>(); this.assignedResource = null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public com.google.cloud.aiplatform.v1.Execution createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request) {\n return io.grpc.stub.ClientCalls.blockingUnaryCall(\n getChannel(), getCreateExecutionMethod(), getCallOptions(), request);\n }", "public com.google.common.util.concurrent.ListenableFuture<\n com.google.cloud.aiplatform.v1.Execution>\n createExecution(com.google.cloud.aiplatform.v1.CreateExecutionRequest request) {\n return io.grpc.stub.ClientCalls.futureUnaryCall(\n getChannel().newCall(getCreateExecutionMethod(), getCallOptions()), request);\n }", "default void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(\n getCreateExecutionMethod(), responseObserver);\n }", "public void createExecution(\n com.google.cloud.aiplatform.v1.CreateExecutionRequest request,\n io.grpc.stub.StreamObserver<com.google.cloud.aiplatform.v1.Execution> responseObserver) {\n io.grpc.stub.ClientCalls.asyncUnaryCall(\n getChannel().newCall(getCreateExecutionMethod(), getCallOptions()),\n request,\n responseObserver);\n }", "public void addExecutionAttempt(long time) {\n\t\t// add execution time \n\t\tthis.executionAttempts.add(time);\n\t}", "@Override\n\tpublic ScienceAppExecute create(ScienceAppExecutePK scienceAppExecutePK) {\n\t\tScienceAppExecute scienceAppExecute = new ScienceAppExecuteImpl();\n\n\t\tscienceAppExecute.setNew(true);\n\t\tscienceAppExecute.setPrimaryKey(scienceAppExecutePK);\n\n\t\treturn scienceAppExecute;\n\t}", "Task createTask();", "Task createTask();", "Task createTask();", "public TryCommand(String attempt) {\n requireNonNull(attempt);\n this.attempt = attempt;\n }", "Run createRun();", "Assignment createAssignment();", "Assignment createAssignment();", "private void initializeExecution(Execution exec) throws IllegalAccessException {\n\t\tstateField.set(exec, ExecutionState.CANCELING);\n\t\t\n\t\t// assign a resource\n\t\tresourceField.set(exec, resource);\n\t}", "private RequestExecution() {}", "public ExecutionFactoryImpl() {\n\t\tsuper();\n\t}", "public Session create() {\n // Attempt to generate a random session 5 times then fail\n final int MAX_ATTEMPTS = 5; \n \n // Loop until we have outdone our max attempts\n for(int x = 0; x < MAX_ATTEMPTS; x++) {\n String sessionKey = randomString(SESSION_KEY_SIZE); // SESSION_KEY_SIZE characters\n\n // The session key exists\n if (exists(sessionKey))\n continue;\n\n // Create the new session\n Session session = new Session(sessionKey);\n sessions.put(sessionKey, session, POLICY, EXPIRATION_TIME, EXPIRATION_UNIT); \n return session;\n }\n\n // Failed to generate new session key\n return null;\n }", "public static void newAttempt() {\n\t\tString lastSaveName = (String)(lastSaveSelectorModel.getSelectedItem());\n\t\tint colonIndex = lastSaveName.indexOf(':');\n\t\tif (confirm(\"Create a new attempt of \" + lastSaveName.substring(colonIndex + 2) + \"?\", \"Confirm New Attempt\")) {\n\t\t\tint abbreviationIndex = lastSaveName.indexOf('-') + 1;\n\t\t\tString abbreviation = lettersAbbreviationAt(lastSaveName, abbreviationIndex);\n\t\t\t//insert it with the next number up\n\t\t\tint newSaveIndex = skipChildren(lastSaveSelector.getSelectedIndex() + 1, abbreviationIndex - 2);\n\t\t\tlastSaveSelectorModel.insertElementAt(\n\t\t\t\tlastSaveName.replace(\n\t\t\t\t\tlastSaveName.substring(abbreviationIndex + abbreviation.length(), colonIndex),\n\t\t\t\t\tString.valueOf(nextAvailableAbbreviationNum(abbreviation))),\n\t\t\t\tnewSaveIndex);\n\t\t\tlastSaveSelector.setSelectedIndex(newSaveIndex);\n\t\t\tmainWindow.pack();\n\t\t\tneedsSaving = true;\n\t\t}\n\t}", "protected abstract T create(final double idealStartTime);", "public Object create() {\n executeCallbacks(CallbackType.BEFORE_CREATE);\n\n executeCallbacks(CallbackType.BEFORE_VALIDATION);\n executeValidations();\n executeValidationsOnCreate();\n executeCallbacks(CallbackType.AFTER_VALIDATION);\n\n if (errors.size() > 0) return this;\n\n Adapter adapter = getAdapter();\n if (getId() == null && adapter.shouldPrefetchPrimaryKey(getTableName())) {\n this.id = adapter.getNextSequenceValue(getSequenceName());\n }\n\n StringBuilder sql = new StringBuilder();\n sql.append(\"INSERT INTO \").append(getTableName()).append(\" (\");\n sql.append(quotedColumnNames(includePrimaryKey));\n sql.append(\") VALUES (\").append(quotedAttributeValues(includePrimaryKey)).append(\")\");\n\n id = adapter.insert(sql.toString(), getClass().getName() + \" Create\");\n\n readAssociations();\n readAggregations();\n\n newRecord = false;\n\n executeCallbacks(CallbackType.AFTER_CREATE);\n\n return id;\n }", "JobResponse create();", "public IExecution createExecution(Context context,\n Map<String, Object> parameters) throws LawException {\n \tEvent event = new Event(getId(), Masks.CLOCK_ACTIVATION, getId());\n \tevent.setContent(parameters);\n context.fire(event);\n \n // return the ClockExecution\n return new ClockExecution(context, timeout, type,this,parameters);\n }", "public static TaskExecution createEntity(EntityManager em) {\n TaskExecution taskExecution = new TaskExecution()\n .jobOrderTimestamp(DEFAULT_JOB_ORDER_TIMESTAMP)\n .taskExecutionStatus(DEFAULT_TASK_EXECUTION_STATUS)\n .taskExecutionStartTimestamp(DEFAULT_TASK_EXECUTION_START_TIMESTAMP)\n .taskExecutionEndTimestamp(DEFAULT_TASK_EXECUTION_END_TIMESTAMP);\n return taskExecution;\n }", "TIAssignment createTIAssignment();", "public Task makeTask() {\n Task new_task = new Task();\n new_task.setAction(this);\n new_task.setDeadline(\n new Date(System.currentTimeMillis() + deadlineSeconds() * 1000L));\n\n return new_task;\n }", "private void createTx() throws Exception {\n PublicKey recipient = Seed.getRandomAddress();\n Transaction tx = new Transaction(wallet.pb, recipient, wallet.pr);\n//\t\tSystem.out.println(\"Created a tx\");\n txPool.add(tx);\n//\t\tcache.put(tx.txId, null);\n sendTx(tx);\n }", "public jbt.execution.core.ExecutionTask createExecutor(\n\t\t\tjbt.execution.core.BTExecutor executor,\n\t\t\tjbt.execution.core.ExecutionTask parent) {\n\t\treturn new entrants.BT.Execution.Actions.DefaultMove(this, executor,\n\t\t\t\tparent);\n\t}", "Instruction createInstruction();", "public jbt.execution.core.ExecutionTask createExecutor(\r\n\t\t\tjbt.execution.core.BTExecutor executor,\r\n\t\t\tjbt.execution.core.ExecutionTask parent) {\r\n\t\treturn new server.ai.jbt.actions.execution.ComputeWatchPoint(this,\r\n\t\t\t\texecutor, parent);\r\n\t}", "@Override\n\tpublic void execute(DelegateExecution execution) throws Exception {\n\t\tLOG.info(\"\\n\\n\\n Start cewate task \"+\"\\n\\n\\n\");\n\n\t\t// IdentityService identityService = Context.getProcessEngineConfiguration().getIdentityService();\n\t // User user = identityService.createUserQuery().userId(assignee).singleResult();\n\t \n\t // check if the first task listener was executed\n\t List<String> assigneeList = new ArrayList<>();//InformAssigneeTaskListener.assigneeList;\n\t assigneeList.add(\"demo\");\n\t assigneeList.add(\"test\");\n\t execution.setVariable(\"assigns\", assigneeList);\n\t LOG.info(\"\\n\\n\\n Start cewate task \"+assigneeList.toString() +\"\\n\\n\\n\");\n\t //assertThat(assigneeList.size(), is(1));\n\t //assertThat(assigneeList.get(0), is(\"Kermit\"));\n\n\t execution.setVariable(\"thisOk_new\", \"123456\");\n\t // complete first user task\n\t //Task task = taskService.createTaskQuery().singleResult();\n\t //taskService.complete(task.getId());\n\n\t}", "public PaxosExecution(PaxosInstance a_instance, String a_initiator, Vector a_roundLeaders)\n {\n this.m_initiator = a_initiator;\n this.m_paxosInstance = a_instance;\n m_roundLeaders = a_roundLeaders;\n createRound();\n }", "public abstract void createAssignment(int p);", "public void create(){}", "@Override\n\tpublic void execute() throws InstantiationException,\n\t\t\tIllegalAccessException, ClassNotFoundException, IOException {\n\t\tBuilding building = (Building) Class.forName(\n\t\t\t\tConstant.TILE_PACKAGE + commandData.get(\"tileName\"))\n\t\t\t\t.newInstance();\n\t\tbuilding.setX((Integer) commandData.get(\"pointX\"));\n\t\tbuilding.setY((Integer) commandData.get(\"pointY\"));\n\t\tbuilding.setTileManager(tileManager);\n\t\tbuilding.setFocusManager(focusManager);\n\t\tbuilding.setUUID((UUID) commandData.get(\"focusID\"));\n\t\tbuilding.initBuildingImage((String) commandData.get(\"buildingName\"));\n\t\ttileManager.addTile((Tile) building);\n\t}", "public Job newJob() throws IOException {\n return newJob(outputDir, getConfiguration(), attempt0);\n }", "public abstract String initExecute() throws Exception;", "@Override\n\tpublic Response execute() {\n\n\t\tDatabaseAccessor db = null;\n\t\tint filetype;\n\t\tif(type.equalsIgnoreCase(\"raw\")) {\n\t\t\tfiletype = FileTuple.RAW;\n\t\t} else if(type.equalsIgnoreCase(\"profile\")) {\n\t\t\tfiletype = FileTuple.PROFILE;\n\t\t} else if(type.equalsIgnoreCase(\"region\")) {\n\t\t\tfiletype = FileTuple.REGION;\n\t\t} else {\n\t\t\tfiletype = FileTuple.OTHER;\n\t\t}\n\t\ttry {\n\t\t\tdb = initDB();\n\t\t\tFileTuple ft = db.addNewFile(experimentID, filetype, fileName, null, metaData, author, uploader, isPrivate, grVersion);\n\t\t\treturn new AddFileToExperimentResponse(StatusCode.OK, ft.getUploadURL());\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.BAD_REQUEST, e.getMessage());\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn new ErrorResponse(StatusCode.SERVICE_UNAVAILABLE, e.getMessage());\n\t\t} finally{\n\t\t\tdb.close();\n\t\t}\n\t}", "public void create() {\n if (created)\n return;\n\n PlayerConnection player = getPlayer();\n player.sendPacket(createObjectivePacket(0, objectiveName));\n player.sendPacket(setObjectiveSlot());\n int i = 0;\n while (i < lines.length)\n sendLine(i++);\n\n created = true;\n }", "public Integer create(Caseresultparameters newInstance) throws ServiceException;", "public void createTurn() {\n Turn turn = new Turn(this.getOnlinePlayers());\n this.setCurrentTurn(turn);\n }", "public ExecuteAction()\n {\n this(null);\n }", "Assign createAssign();", "@Test\n public void createRequested() {\n /*\n * Given\n */\n var uid = UID.apply();\n var grantFor = UserAuthorization.random();\n var privilege = DatasetPrivilege.CONSUMER;\n\n var executed = Executed.now(UserId.random());\n var request = AccessRequest.apply(executed, Markdown.lorem());\n\n /*\n * When\n */\n var grant = DatasetGrant.createRequested(uid, grantFor, privilege, request);\n\n /*\n * Then\n */\n assertThat(grant.getRequestResponse())\n .as(\"There shouldn't be a response for the grant.\")\n .isNotPresent();\n\n assertThat(grant.getRequest())\n .as(\"The request should be available in the grant.\")\n .isPresent()\n .satisfies(ro -> ro.ifPresent(r -> {\n assertThat(r).isEqualTo(request);\n }));\n\n assertThat(grant)\n .as(\"Since the request is not approved, the grant is not active\")\n .satisfies(g -> {\n assertThat(g.asDatasetMember()).isNotPresent();\n assertThat(g.isOpen()).isTrue();\n assertThat(g.isActive()).isFalse();\n assertThat(g.isClosed()).isFalse();\n });\n }", "public AttemptAnswer() {\n }", "public DescribeTestExecutionResult withCreationDateTime(java.util.Date creationDateTime) {\n setCreationDateTime(creationDateTime);\n return this;\n }", "public InstantCommand() {\n\t\t//let's all laugh really hard at the style checker...\n\t\tm_toRun = () -> {};\n\t}", "public long createAssignment(Assignment assignment) {\n long id = -1;\n SQLiteDatabase db = this.getWritableDatabase();\n\n ContentValues assignmentContentValues = new ContentValues();\n assignmentContentValues.put(Config.COLUMN_ASSIGNMENT_TITLE,\n assignment.getAssignmentTitle());\n assignmentContentValues.put(Config.COLUMN_COURSE_ID,\n assignment.getCourseID());\n assignmentContentValues.put(Config.COLUMN_ASSIGNMENT_GRADE,\n assignment.getGrade());\n\n try {\n id = db.insert(Config.TABLE_NAME_ASSIGNMENT,\n null, assignmentContentValues);\n } catch (SQLException e) {\n Log.d(TAG, \"Exception: \" + e.getMessage());\n Toast.makeText(context,\n \"Operation Failed: \" + e.getMessage(), Toast.LENGTH_LONG).show();\n } finally {\n db.close();\n }\n return id;\n }", "protected TestResult createResult() {\n return new TestResult();\n }", "public Assignment createAssignment(Assignment assignment) throws Exception {\n\t\ttry{ \n\t\t\tLog.d(\"AssignmentDataSource\",\"Create Assignment\");\n\t\t\tContentValues values = new ContentValues();\n\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_TITLE,assignment.getTitle());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_SUBJECTS, assignment.getSubjects_id());\n\t\t\tif(assignment.getDescription()==null||assignment.getDescription().equals(\"\")){\n\t\t\t\tvalues.putNull(MySQLiteHelper.ASSIGNMENT_DESCRIPTION);\n\t\t\t}else{\n\t\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DESCRIPTION, assignment.getDescription());\n\t\t\t}\n\t\t\tLog.d(\"AssignmentDataSource\",\"assignment description : \"+assignment.getDescription());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DUEDATE, assignment.getDueDate());\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_DUETIME, assignment.getDueTime());\n\t\t\tif(assignment.getAlarm()==null||assignment.getAlarm().equals(\"\")){\n\t\t\t\tvalues.putNull(MySQLiteHelper.ASSIGNMENT_ALARM);\n\t\t\t}else{\n\t\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_ALARM, assignment.getAlarm());\n\t\t\t}\n\t\t\tvalues.put(MySQLiteHelper.ASSIGNMENT_ACADEMIC,assignment.getAcademic_id());\n\n\t\t\tlong newId = database.insert(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tnull,values);\n\n\t\t\tLog.d(\"AssignmentDataSource\",\"newId : \"+newId);\n\t\t\tCursor cursor = database.query(MySQLiteHelper.TABLE_ASSIGNMENT,\n\t\t\t\t\tallColumns, MySQLiteHelper.ASSIGNMENT_ID + \" = \" + newId, null,\n\t\t\t\t\tnull, null, null);\n\t\t\tcursor.moveToFirst();\n\t\t\tAssignment newAssignment = cursorToAssignment(cursor);\n\t\t\tcursor.close();\n\t\t\treturn newAssignment;\n\t\t}\n\t\tcatch (Exception e){\n\t\t\tthrow e;\n\t\t}\n\t}", "@Override\r\n\tpublic ProjectFunMobileLogicTask CreateActivityInterface(\r\n\t\t\tBundle savedInstanceState) {\n\t\treturn new GoldRushTask();\r\n\t}", "public QueryExecution createQueryExecution(String qryStr);", "void saveOrUpdateExecution(Execution request);", "public Position create() {\n\t\tfinal Actor actorLogged = this.actorService.findActorLogged();\n\t\tAssert.notNull(actorLogged);\n\t\tthis.actorService.checkUserLoginCompany(actorLogged);\n\n\t\tPosition result;\n\n\t\tresult = new Position();\n\t\tfinal Collection<Problem> problems = new HashSet<>();\n\t\tfinal Collection<Application> applications = new HashSet<>();\n\n\t\t// R4\n\t\tfinal String ticker = \"\"; //Será generado en el reconstruct\n\n\t\tresult.setTicker(ticker);\n\t\tresult.setProblems(problems);\n\t\tresult.setApplications(applications);\n\t\tresult.setIsFinalMode(false);\n\t\tresult.setIsCancelled(false);\n\n\t\treturn result;\n\t}", "public Task getCreationTask() throws ProcessManagerException {\r\n try {\r\n Task creationTask = Workflow.getTaskManager().getCreationTask(\r\n currentUser, currentRole, processModel);\r\n \r\n return creationTask;\r\n } catch (WorkflowException e) {\r\n throw new ProcessManagerException(\"SessionController\",\r\n \"processManager.CREATION_TASK_UNAVAILABLE\", e);\r\n }\r\n }", "public Schedule create() {\n\n\t\tSchedule result;\n\n\t\tresult = new Schedule();\n\n\t\treturn result;\n\t}", "protected Task<Void> createTask() {\n\n\t\t\treturn new Task<Void>() {\n\n\t\t\t\tprotected Void call() {\n\t\t\t\t\t_button.setDisable(true);\n\t\t\t\t\tTaskScheduler.executeAlgorithm(_digraph);\n\n\t\t\t\t\treturn null;\n\n\n\t\t\t\t}\n\t\t\t};\n\t\t}", "public LdSqlExecutionCreator createSqlExecutionCreator() {\r\n assertStatus(\"createSqlExecutionCreator\");\r\n return new LdSqlExecutionCreator() {\r\n public LdSqlExecution createSqlExecution() {\r\n final BeanMetaData bmd = createBeanMetaData();\r\n return createBatchDeleteEntitySqlExecution(bmd);\r\n }\r\n };\r\n }", "@Test\n\tpublic static void create_Task() {\n\t\tString testName = \"Valid Scenario- When all the data are valid\";\n\t\tlog.info(\"Valid Scenario: Create Task\");\n\t\t// report generation start\n\t\textentTest = extent.startTest(\"Task Controller- Create Task\");\n\n\t\tResponse response = HttpOperation\n\t\t\t\t.createAuthToken(PayLoads.createAuthToken_Payload(extentTest, auth_sheetName, auth_valid_testName));\n\t\tString authToken = ReusableMethods.Auth(extentTest, response);\n\n\t\t// response for login the user\n\t\tresponse = HttpOperation.loginUser(authToken, PayLoads.create_user_Payload(user_sheet, testName));\n\t\tlog.info(\"Response received for login\");\n\t\textentTest.log(LogStatus.INFO, \"Response received for login:- \" + response.asString());\n\n\t\t// get the User Token\n\t\tJsonPath jp = ReusableMethods.rawToJson(response);\n\t\tuserToken = jp.get(\"jwt\");\n\t\tlog.info(\"Received User Token:- \" + userToken);\n\t\textentTest.log(LogStatus.INFO, \"User Token:- \" + userToken);\n\n\t\t// Creating the Task response\n\t\tresponse = HttpOperation.create_Task(userToken, PayLoads.create_task_Payload(sheetName, testName));\n\n\t\tlog.info(\"Response received to create the task\");\n\t\textentTest.log(LogStatus.INFO, \"Response received to create the task:- \" + response.asString());\n\n\t\t// Assertion\n\n\t\tAssert.assertEquals(response.getStatusCode(), 201);\n\t\tlog.info(\"Assertion Passed!!\");\n\t\textentTest.log(LogStatus.INFO, \"HTTP Status Code:- \" + response.getStatusCode());\n\n\t}", "public IGenScheduleHandler create() throws CreateException, RemoteException;", "public int getExecutionInstance() {\n return executionInstance;\n }", "public abstract IExperiment createExperiment(String description);", "QuoteWorkEffort createQuoteWorkEffort();", "public QueryExecution createQueryExecution(Query qry);", "private IAssignmentElement createAssignment() throws RodinDBException {\n\t\tfinal IMachineRoot mch = createMachine(\"mch\");\n\t\tfinal IEvent event = createEvent(mch, \"event\");\n\t\treturn event.createChild(IAction.ELEMENT_TYPE, null, null);\n\t}", "public abstract AbstractTask createTask(String repositoryUrl, String id, String summary);", "JobResponse create(Context context);", "public static ProcessExecution createEntity(EntityManager em) {\n ProcessExecution processExecution = new ProcessExecution()\n .execution(DEFAULT_EXECUTION);\n return processExecution;\n }", "public suiluppo_equip_allocation create(long equip_allocat_id);", "@Test\n public void tryMeExecutionCrud() {\n final Endpoint endpoint = em.createQuery(\"select e from Endpoint e\", Endpoint.class).setMaxResults(1).getSingleResult();\n { // count with no execution\n assertEquals(0, client.countExecutions(endpoint.getId()));\n }\n { // one execution\n final GenericClientService.Request request = new GenericClientService.Request();\n request.setUrl(\"http://test\");\n request.setMethod(\"POST\");\n request.setHeaders(new HashMap<String, String>() {{\n put(\"Some-Header\", \"Value\");\n }});\n final TryMeExecution out = client.save(endpoint.getId(), request, new GenericClientService.Response(204, new HashMap<String, String>() {{\n put(\"Some-Header\", \"Value\");\n }}, \"{}\", 0), null);\n assertEquals(1, client.countExecutions(endpoint.getId()));\n\n // check we can find pages\n final Collection<TryMeExecution> executions = client.findExecutions(endpoint.getId(), 0, 2);\n assertNotNull(executions);\n assertEquals(1, executions.size());\n\n // we can find item\n final TryMeExecution execution = client.find(out.getId());\n Stream.of(execution.getRequest(), execution.getResponse(), execution.getCreatedBy(), execution.getUpdatedBy(), execution.getUpdatedAt(), execution.getCreatedAt())\n .forEach(Assert::assertNotNull);\n\n assertEquals(executions.iterator().next().getId(), execution.getId());\n\n // check we can deserialize\n final GenericClientService.Request loadedRequest = client.loadExecutionMember(GenericClientService.Request.class, execution.getRequest());\n assertEquals(\"POST\", loadedRequest.getMethod());\n assertEquals(new HashMap<String, String>() {{\n put(\"Some-Header\", \"Value\");\n }}, loadedRequest.getHeaders());\n assertEquals(\"http://test\", loadedRequest.getUrl());\n assertNull(loadedRequest.getPayload());\n }\n }", "private Job newJob(Path dir, Configuration configuration,\n String taskAttemptId) throws IOException {\n Job job = Job.getInstance(configuration);\n Configuration conf = job.getConfiguration();\n conf.set(MRJobConfig.TASK_ATTEMPT_ID, taskAttemptId);\n enableManifestCommitter(conf);\n FileOutputFormat.setOutputPath(job, dir);\n return job;\n }", "public Task(){}", "public final void execute() {\n\t\tLogUtils.i(TAG, \"execute\");\n\t\tpurelySetState(TaskState.Preparing);\n\t\tTaskQueue.addTask(this);\n\t}", "@Test\n\tpublic void addAssignment() {\n\t\tfinal Date dueDate = new Date();\n\t\tfinal Template template = new Template(\"Template 1\");\n\t\ttemplate.addStep(new TemplateStep(\"Step 1\", 1.0));\n\t\tfinal Assignment asgn = new Assignment(\"Assignment 1\", dueDate, template);\n\t\tasgn.addTask(new Task(\"Task 1\", 1, 1, asgn.getID()));\n\t\t\n\t\tfinal String asgnId = asgn.getID();\n\t\t\n\t\ttry {\n\t\t\tStorageService.addTemplate(template);\n\t\t\tStorageService.addAssignment(asgn);\n\t\t} catch (final StorageServiceException e) {\n\t\t\tfail(e.getMessage());\n\t\t}\n\t\t\n\t\tfinal Assignment afterAsgn = StorageService.getAssignment(asgnId);\n\t\tassertEquals(asgn.fullString(), afterAsgn.fullString());\n\t}", "public Stmt createAssignment(Assign expr) {\n return createEval(expr);\n }", "public Performer create(Performer p) throws EVDBRuntimeException, EVDBAPIException {\n\t\tif (p.getSpid() != null) {\n\t\t\tthrow new EVDBRuntimeException(\"Create called on an performer with an existing SPID\");\n\t\t}\n\t\t\n\t\treturn createOrModify(p);\n\t}", "public Task(String creator) {\r\n \t\tthis(creator, \"Untitled\", \"\", true, false);\r\n \t}", "public void createNewTask(View view) {\n try{\n newTaskLayout.checkTaskLayoutIsValid();\n ImageView taskImage = (ImageView) findViewById(R.id.imageViewBoard);\n String layoutImagePath = takeScreenshot(taskImage);\n newTaskLayout.setImagePath(layoutImagePath);\n\n // save new task\n HashMap<String, Integer> instructions = convertSpinnersToHashMap();\n Task newTask = new Task(newTaskLayout, instructions);\n Task.saveTask(getApplicationContext(), newTask);\n\n // alert user task created and return to task menu.\n Toast.makeText(this, \"new task created\", Toast.LENGTH_LONG).show();\n startActivity(new Intent(getApplicationContext(), TaskOptionsActivity.class));\n } catch (TaskLayoutException | InstructionsRequiredException e) {\n // layout was not valid on insufficient instructions set.\n makeMessageDialogue(e.getMessage());\n }\n }", "Operacion createOperacion();", "public abstract void create();", "@Override\n public BlueRun create(StaplerRequest request) {\n job.checkPermission(Item.BUILD);\n if (job instanceof Queue.Task) {\n ScheduleResult scheduleResult;\n\n List<ParameterValue> parameterValues = getParameterValue(request);\n int expectedBuildNumber = job.getNextBuildNumber();\n if(parameterValues.size() > 0) {\n scheduleResult = Jenkins.get()\n .getQueue()\n .schedule2((Queue.Task) job, 0, new ParametersAction(parameterValues),\n new CauseAction(new Cause.UserIdCause()));\n }else {\n scheduleResult = Jenkins.get()\n .getQueue()\n .schedule2((Queue.Task) job, 0, new CauseAction(new Cause.UserIdCause()));\n }\n // Keep FB happy.\n // scheduleResult.getItem() will always return non-null if scheduleResult.isAccepted() is true\n final Queue.Item item = scheduleResult.getItem();\n if(scheduleResult.isAccepted() && item != null) {\n return new QueueItemImpl(\n pipeline.getOrganization(),\n item,\n pipeline,\n expectedBuildNumber, pipeline.getLink().rel(\"queue\").rel(Long.toString(item.getId())),\n pipeline.getLink()\n ).toRun();\n } else {\n throw new ServiceException.UnexpectedErrorException(\"Queue item request was not accepted\");\n }\n } else {\n throw new ServiceException.NotImplementedException(\"This pipeline type does not support being queued.\");\n }\n }", "Action createAction();", "Action createAction();", "Action createAction();", "public void execute() {\n\t\tthis.badgeId = studentWorkerOperation.AddNewBadge(this.badgeName, this.badgeDescription);\n\t}", "public void create() {\n\t\t\n\t}", "public ExecutionResult ok() {\n var duration = Duration.between(start(), Instant.now());\n return new ExecutionResult(0, duration, out.toString(), err.toString(), null);\n }", "@Test(timeout = 4000)\n public void test0() throws Throwable {\n int int0 = 169;\n InstructionFactory.createDup(int0);\n }", "RepeatStatement createRepeatStatement();", "Account create();", "AppEngineTaskAttemptContext(AppEngineJobContext jobContext, ShardState state,\n TaskAttemptID taskAttemptId) {\n super(jobContext.getConfiguration(), taskAttemptId);\n this.state = state;\n }", "public void addNewTask() {\n Intent i = new Intent(this, StartNewActivity.class);\n startActivityForResult(i, REQUEST_CODE);\n }", "PK create(T newInstance);", "Snapshot create();", "public void deploy() throws JobException {\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\t// make sure exactly one deployment call happens from the correct state\n\t\t// note: the transition from CREATED to DEPLOYING is for testing purposes only\n\t\tExecutionState previous = this.state;\n\t\tif (previous == SCHEDULED || previous == CREATED) {\n\t\t\tif (!transitionState(previous, DEPLOYING)) {\n\t\t\t\t// race condition, someone else beat us to the deploying call.\n\t\t\t\t// this should actually not happen and indicates a race somewhere else\n\t\t\t\tthrow new IllegalStateException(\"Cannot deploy task: Concurrent deployment call race.\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// vertex may have been cancelled, or it was already scheduled\n\t\t\tthrow new IllegalStateException(\"The vertex must be in CREATED or SCHEDULED state to be deployed. Found state \" + previous);\n\t\t}\n\n\t\tif (this != slot.getPayload()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\tString.format(\"The execution %s has not been assigned to the assigned slot.\", this));\n\t\t}\n\n\t\ttry {\n\n\t\t\t// race double check, did we fail/cancel and do we need to release the slot?\n\t\t\tif (this.state != DEPLOYING) {\n\t\t\t\tslot.releaseSlot(new FlinkException(\"Actual state of execution \" + this + \" (\" + state + \") does not match expected state DEPLOYING.\"));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TaskDeploymentDescriptor deployment = TaskDeploymentDescriptorFactory\n\t\t\t\t.fromExecutionVertex(vertex, attemptNumber)\n\t\t\t\t.createDeploymentDescriptor(\n\t\t\t\t\tslot.getAllocationId(),\n\t\t\t\t\tslot.getPhysicalSlotNumber(),\n\t\t\t\t\ttaskRestore,\n\t\t\t\t\tproducedPartitions.values());\n\n\t\t\t// null taskRestore to let it be GC'ed\n\t\t\t// 手动GC\n\t\t\ttaskRestore = null;\n\n\t\t\tfinal TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway();\n\n\t\t\tfinal ComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tvertex.getExecutionGraph().getJobMasterMainThreadExecutor();\n\n\t\t\t// 调用submitTask\n\t\t\tCompletableFuture.supplyAsync(() -> taskManagerGateway.submitTask(deployment, rpcTimeout), executor)\n\t\t\t\t.thenCompose(Function.identity())\n\t\t\t\t.whenCompleteAsync(\n\t\t\t\t\t(ack, failure) -> { },\n\t\t\t\t\tjobMasterMainThreadExecutor);\n\n\t\t}\n\t\tcatch (Throwable t) {\n\t\t\tmarkFailed(t);\n\n\t\t\tif (isLegacyScheduling()) {\n\t\t\t\tExceptionUtils.rethrow(t);\n\t\t\t}\n\t\t}\n\t}", "protected abstract Intent createOne();", "org.oasis_open.docs.ns.bpel4people.ws_humantask.types._200803.TTaskAbstract insertNewTaskAbstract(int i);", "protected abstract void createTriggerOrAction();", "public void creatTask(int uid,String title,String detail,int money,String type,int total_num,Timestamp end_time,String state);", "public ExecutionResult failed(Throwable throwable) {\n var duration = Duration.between(start(), Instant.now());\n return new ExecutionResult(1, duration, out.toString(), err.toString(), throwable);\n }", "protected TaskFlow( ) { }" ]
[ "0.61430544", "0.60435563", "0.6007524", "0.59706795", "0.5632924", "0.53890586", "0.5297505", "0.5297505", "0.5297505", "0.52671105", "0.5266676", "0.52478456", "0.52478456", "0.5233962", "0.51844853", "0.5175822", "0.51218164", "0.5074598", "0.5028696", "0.5018758", "0.49755904", "0.4941608", "0.4924988", "0.49004462", "0.48900825", "0.4885016", "0.48184973", "0.48148915", "0.480519", "0.4805153", "0.48017684", "0.47844398", "0.47796085", "0.4771447", "0.47711593", "0.47702342", "0.47398913", "0.4737544", "0.4733175", "0.47042772", "0.4699588", "0.4694945", "0.46769032", "0.46500862", "0.4640285", "0.46366242", "0.4631834", "0.46284395", "0.46250385", "0.46212673", "0.46021566", "0.45980886", "0.4586033", "0.45738924", "0.45512417", "0.4545285", "0.45428962", "0.45167086", "0.45001748", "0.44990087", "0.44983798", "0.449088", "0.44892374", "0.4482031", "0.44734818", "0.44688687", "0.44664395", "0.4462563", "0.44538465", "0.44503468", "0.4438082", "0.44368023", "0.44366443", "0.44349557", "0.44344053", "0.4433419", "0.4433216", "0.44277483", "0.44210956", "0.44158262", "0.44156814", "0.44156814", "0.44156814", "0.44120848", "0.44033524", "0.43996793", "0.43967202", "0.43943173", "0.4387963", "0.43849507", "0.43842477", "0.4377825", "0.43766314", "0.43753228", "0.43725276", "0.436539", "0.4357275", "0.43540594", "0.4353266", "0.43491846" ]
0.56135875
5
Gets the global modification version of the execution graph when this execution was created. This version is bumped in the ExecutionGraph whenever a global failover happens. It is used to resolve conflicts between concurrent modification by global and local failover actions.
public long getGlobalModVersion() { return globalModVersion; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public long getVersion(){\n return localVersion;\n }", "int getCurrentVersion();", "public int getRegeneration() {\n\t\treturn regeneration;\n\t}", "public java.lang.String getSyncVersion() {\n\t\treturn _dmHistoryMaritime.getSyncVersion();\n\t}", "public GlobalNode getGlobal() { return global; }", "@Override\n\tpublic java.lang.String getSyncVersion() {\n\t\treturn _dmGtStatus.getSyncVersion();\n\t}", "public Long getUpgradeSubversion() {\n return this.UpgradeSubversion;\n }", "@ApiModelProperty(value = \"The number of locally modified and stale versioned process groups in the NiFi.\")\r\n public Integer getLocallyModifiedAndStaleCount() {\r\n return locallyModifiedAndStaleCount;\r\n }", "public int getCurrentVersion() {\n return currentVersion_;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public Integer getVersion() {\n return version;\n }", "public int getCurrentVersion() {\n return currentVersion_;\n }", "public Integer getVersion() {\r\n return version;\r\n }", "public Visit getUpdateVisit() {\n\t\treturn updateVisit;\n\t}", "public Integer getVersion() {\n\t\t\n\t\treturn this.version;\n\t}", "@Version\r\n @Column(name=\"optlock\")\r\n public Integer getVersion()\r\n {\r\n return version;\r\n }", "public Long getServerVersion() {\n\t\treturn serverVersion;\n\t}", "public Long getVersion() {\n return version;\n }", "public Long getVersion() {\n return version;\n }", "public Long getVersion() {\n return version;\n }", "public Long getVersion() {\n return version;\n }", "public int getExecutionInstance() {\n return executionInstance;\n }", "@ApiModelProperty(value = \"The number of locally modified versioned process groups in the NiFi.\")\r\n public Integer getLocallyModifiedCount() {\r\n return locallyModifiedCount;\r\n }", "public Date getModificationDate() {\n return m_module.getConfiguration().getModificationDate();\n }", "long getCurrentRevision();", "public static Version current() {\r\n\t\treturn current;\r\n\t}", "public Date getResModUpdate() {\n return resModUpdate;\n }", "public Application getLastModifyingApplication()\r\n\t{\r\n\t\treturn lastModifyingApplication;\r\n\t}", "public Integer version() {\n return this.version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getVersion() {\n return version;\n }", "public int getInfectedGeneration() {\n\t\treturn _infectedGeneration;\n\t}", "public long getVersion() {\n return version;\n }", "public long getVersion() {\n return version;\n }", "public final int getVersion() {\n return version;\n }", "public Long getVersion() {\n return this.version;\n }", "public Long getVersion() {\n return this.version;\n }", "@java.lang.Override\n public long getVersion() {\n return instance.getVersion();\n }", "public int getCurrentGenerationNumber()\n {\n return ssProxy.getCurrentGenerationNumber();\n }", "public String getCurrentVersion() {\n return this.currentVersion;\n }", "public int getVersion() { return 1; }", "public Integer getUpdated() {\r\n return updated;\r\n }", "public String version() throws DynamicCallException, ExecutionException {\n return (String)call(\"version\").get();\n }", "@Override\n public HashedVersion getEndVersion() {\n return getSnapshot().getHashedVersion();\n }", "Integer getVersion();", "Long getVersion();", "public CachetVersion getVersion() {\n JsonNode rootNode = get(\"version\");\n CachetVersion version = CachetVersion.parseRootNode(rootNode);\n\nSystem.out.println(\"SSDEDBUG: version = \" + version.getVersion() + \" (latest=\" + version.isLatest() + \")\");\n return version;\n }", "@SuppressWarnings(\"unused\")\n private Long getVersion() {\n return version;\n }", "@ApiModelProperty(value = \"The version is used for optimistic locking and incremented whenever the object is updated.\")\n public Integer getVersion() {\n return version;\n }", "public long getVersion() {\r\n return this.version;\r\n }", "public int getVersion() {\n return this.version;\n }", "long currentRevision();", "public int getGeneration() {\n\t\treturn _generation;\n\t}", "public Number getVersion() {\n return (Number) getAttributeInternal(VERSION);\n }", "public static Version<?> getVersion() {\n return BL_VERSION;\n }", "@Override\n\tpublic java.lang.String getSyncVersion() {\n\t\treturn _dmGTShipPosition.getSyncVersion();\n\t}", "public Vector getVariableModifications() {\n return iVariableModifications;\n }", "public int getUpdateLevel() {\n return updateLevel;\n }", "public java.lang.String getLast_version() {\n return last_version;\n }", "public Version getVersion() {\n return version;\n }", "public java.math.BigInteger getVersion()\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(VERSION$6, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getBigIntegerValue();\r\n }\r\n }", "public static String getVersion() {\n\t\treturn version;\n\t}", "public static String getVersion() {\r\n\t\treturn VERSION;\r\n\t}", "public Integer getEvaluationFormVersion() {\n return this.evaluationFormVersion;\n }", "@SystemApi\n @RequiresPermission(anyOf = {\n Manifest.permission.ADJUST_RUNTIME_PERMISSIONS_POLICY,\n Manifest.permission.UPGRADE_RUNTIME_PERMISSIONS\n })\n public @IntRange(from = 0) int getRuntimePermissionsVersion() {\n try {\n return mPackageManager.getRuntimePermissionsVersion(mContext.getUserId());\n } catch (RemoteException e) {\n throw e.rethrowFromSystemServer();\n }\n }", "public String getVersion () {\r\n return version;\r\n }", "public static String getVersion() {\n\t\treturn version;\r\n\t}", "public Integer getRecVersion() {\n return recVersion;\n }", "public String getVersionConstraint() {\n return version;\n }", "public String getVersion() {\n\t\treturn _version;\n\t}", "public Token getModuleVersion()\n {\n // ie: use Module 'x'\n if (!getToken(OperatorToken.class, 3).isNull())\n {\n return Token.NULL;\n }\n\n return getToken(NumberToken.class, 2);\n }", "public int getVersion() {\n return mVersion;\n }", "public static Version getVersion() {\n return new Version();\n }", "@java.lang.Override\n public long getVersion() {\n return version_;\n }", "public int getLastVersion() {\n return emlVersion - 1;\n }", "public long getModificationTime()\n {\n return m_metaInf.getModificationTime();\n }", "public long getLastModify() {\r\n\t\treturn lastModify;\r\n\t}", "public String getServerVersion() throws IOException {\n\t\treturn Core.getServerVersion(getHttpMethodExecutor());\n\t}", "public String getVersion() {\n\t\treturn (VERSION);\n\t}", "public static String getVersion() {\n return version;\n }", "public static String getVersion() {\n return version;\n }", "public String getVersion () {\n return this.version;\n }", "public String getVersion() {\n return _version;\n }", "public Integer getUpdater() {\n return updater;\n }", "public String getVersion()\n {\n return version;\n }", "public String getVersion()\n {\n return version;\n }", "int getRpcVersion();", "int getRpcVersion();", "@NonNull\n public String getCurrentRuleSetVersion() {\n try {\n return mManager.getCurrentRuleSetVersion();\n } catch (RemoteException e) {\n throw e.rethrowAsRuntimeException();\n }\n }", "int getGlobalJitLevelValue();", "public Integer getPatchUpdate() {\n return patchUpdate;\n }", "public int getMaxVersion ()\n {\n return max_version;\n }", "public int getGeneration ()\n {\n return generation;\n }" ]
[ "0.5390207", "0.51969767", "0.51881826", "0.517176", "0.5126074", "0.5116218", "0.50333345", "0.5028254", "0.5007187", "0.49848565", "0.49848565", "0.49848565", "0.49848565", "0.49848565", "0.49848565", "0.49715936", "0.49704814", "0.4958403", "0.49530852", "0.49529815", "0.4929431", "0.49292853", "0.49292853", "0.49292853", "0.49292853", "0.49210498", "0.49076435", "0.4886933", "0.4880885", "0.4877119", "0.48688808", "0.48685184", "0.48670882", "0.4856711", "0.4856711", "0.4856711", "0.4856711", "0.4856711", "0.4844129", "0.4835092", "0.4835092", "0.48349372", "0.4828591", "0.4828591", "0.4825486", "0.48224428", "0.48151806", "0.4812986", "0.48125976", "0.48067456", "0.480464", "0.4804458", "0.48038608", "0.48025793", "0.47995153", "0.47949716", "0.4773047", "0.47723442", "0.47703156", "0.4761466", "0.47587734", "0.47577408", "0.47439647", "0.4732108", "0.4730155", "0.47270298", "0.47230744", "0.47144943", "0.47079727", "0.4706339", "0.4701477", "0.46981087", "0.46976113", "0.4697387", "0.46969628", "0.46927026", "0.46925265", "0.46779323", "0.46752256", "0.46680328", "0.466666", "0.46641648", "0.46626762", "0.4660949", "0.46580687", "0.46567488", "0.46559262", "0.46559262", "0.4653497", "0.4649873", "0.4648241", "0.46476573", "0.46476573", "0.46462506", "0.46462506", "0.4645996", "0.46457446", "0.46434218", "0.46427634", "0.4638765" ]
0.62031645
0
Tries to assign the given slot to the execution. The assignment works only if the Execution is in state SCHEDULED. Returns true, if the resource could be assigned.
public boolean tryAssignResource(final LogicalSlot logicalSlot) { assertRunningInJobMasterMainThread(); checkNotNull(logicalSlot); // only allow to set the assigned resource in state SCHEDULED or CREATED // note: we also accept resource assignment when being in state CREATED for testing purposes if (state == SCHEDULED || state == CREATED) { if (assignedResource == null) { assignedResource = logicalSlot; if (logicalSlot.tryAssignPayload(this)) { // check for concurrent modification (e.g. cancelling call) if ((state == SCHEDULED || state == CREATED) && !taskManagerLocationFuture.isDone()) { taskManagerLocationFuture.complete(logicalSlot.getTaskManagerLocation()); assignedAllocationID = logicalSlot.getAllocationId(); return true; } else { // free assigned resource and return false assignedResource = null; return false; } } else { assignedResource = null; return false; } } else { // the slot already has another slot assigned return false; } } else { // do not allow resource assignment if we are not in state SCHEDULED return false; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public boolean fillSlot(int slot) {\n if(!isValidSlot(slot) || availableSlots.size() == 0 || !availableSlots.contains(slot)){\n return false;\n }\n\n availableSlots.remove(slot);\n return true;\n }", "public Schedule assign()\n\t{\n\t\tif(debug) System.out.println(\"Assignment started (Lecture Random)\");\n\t\tboolean valid = assignSlot(true); //assign times to Lectures\n\t\tif(debug && valid) System.out.println(\"Assignment started (Lab Random)\");\n\t\tif(valid) valid = assignSlot(false); //assign times to Labs\n\t\tif(debug && valid) System.out.println(\"Checking constraints (Random)\");\n\t\tif(valid) \n\t\t{\n\t\t\tvalid = constr(); //check the hard constraints one more time\n\t\t\tif(debug) System.out.println(child);\n\t\t}\n\t\tif (valid) child.setValue(child.eval()); //evaluate the soft constraints\n\t\t\n\t\tif(valid) \n\t\t{\n\t\t\tif(debug) System.out.println(child);\n\t\t\treturn child; //return the completed valid schedule\n\t\t}else\n\t\t{\n\t\t\tSystem.out.println(child);\n\t\t\treturn null; //invalid schedule, return nothing\n\t\t}\n\t}", "public boolean isSlot(int i);", "public void deploy() throws JobException {\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\t// make sure exactly one deployment call happens from the correct state\n\t\t// note: the transition from CREATED to DEPLOYING is for testing purposes only\n\t\tExecutionState previous = this.state;\n\t\tif (previous == SCHEDULED || previous == CREATED) {\n\t\t\tif (!transitionState(previous, DEPLOYING)) {\n\t\t\t\t// race condition, someone else beat us to the deploying call.\n\t\t\t\t// this should actually not happen and indicates a race somewhere else\n\t\t\t\tthrow new IllegalStateException(\"Cannot deploy task: Concurrent deployment call race.\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// vertex may have been cancelled, or it was already scheduled\n\t\t\tthrow new IllegalStateException(\"The vertex must be in CREATED or SCHEDULED state to be deployed. Found state \" + previous);\n\t\t}\n\n\t\tif (this != slot.getPayload()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\tString.format(\"The execution %s has not been assigned to the assigned slot.\", this));\n\t\t}\n\n\t\ttry {\n\n\t\t\t// race double check, did we fail/cancel and do we need to release the slot?\n\t\t\tif (this.state != DEPLOYING) {\n\t\t\t\tslot.releaseSlot(new FlinkException(\"Actual state of execution \" + this + \" (\" + state + \") does not match expected state DEPLOYING.\"));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TaskDeploymentDescriptor deployment = TaskDeploymentDescriptorFactory\n\t\t\t\t.fromExecutionVertex(vertex, attemptNumber)\n\t\t\t\t.createDeploymentDescriptor(\n\t\t\t\t\tslot.getAllocationId(),\n\t\t\t\t\tslot.getPhysicalSlotNumber(),\n\t\t\t\t\ttaskRestore,\n\t\t\t\t\tproducedPartitions.values());\n\n\t\t\t// null taskRestore to let it be GC'ed\n\t\t\t// 手动GC\n\t\t\ttaskRestore = null;\n\n\t\t\tfinal TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway();\n\n\t\t\tfinal ComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tvertex.getExecutionGraph().getJobMasterMainThreadExecutor();\n\n\t\t\t// 调用submitTask\n\t\t\tCompletableFuture.supplyAsync(() -> taskManagerGateway.submitTask(deployment, rpcTimeout), executor)\n\t\t\t\t.thenCompose(Function.identity())\n\t\t\t\t.whenCompleteAsync(\n\t\t\t\t\t(ack, failure) -> { },\n\t\t\t\t\tjobMasterMainThreadExecutor);\n\n\t\t}\n\t\tcatch (Throwable t) {\n\t\t\tmarkFailed(t);\n\n\t\t\tif (isLegacyScheduling()) {\n\t\t\t\tExceptionUtils.rethrow(t);\n\t\t\t}\n\t\t}\n\t}", "public Boolean canUpdateTimeSlot(@WebParam(name = \"timeSlotId\") String timeSlotId,\n @WebParam(name = \"contextInfo\") ContextInfo contextInfo)\n throws InvalidParameterException,\n MissingParameterException,\n OperationFailedException,\n PermissionDeniedException;", "private boolean trySaveSchedule() {\n if(mSelectedProfiles == null || mSelectedProfiles.size()<1){\n Utility.createErrorDialog(this, \"No Profiles\", \"You must select a Profile\");\n return false;\n }\n\n // Check that at least 1 Calendar is selected\n if(mSelectedCalendars == null || mSelectedCalendars.size()<1){\n Utility.createErrorDialog(this, \"No Calendars\", \"You must select a Calendar\");\n return false;\n }\n\n // Get the schedule name\n String scheduleName = mScheduleName.getText().toString();\n\n Log.d(\"CSA_Save_Name\", scheduleName);\n Log.d(\"CSA_Save_Timeslot_Size\", String.valueOf(mTimeslotArray.size()));\n\n\n // Save each timeslot and create it's intents\n if(DBHelper.getScheduleByName(scheduleName)!=null)\n {\n\n }\n else\n {\n for (Timeslot t : mTimeslotArray) {\n t.save();\n Log.d(\"CSA_Timeslot_Save_ID\", String.valueOf(t.getId()));\n List<BlockIntent> createdIntents = createIntents(t);\n Log.d(\"CSA_Intent_Size\", String.valueOf(createdIntents.size()));\n for (BlockIntent bi : createdIntents) {\n bi.save();\n }\n }\n }\n\n // Save the schedule\n try {\n if (DBHelper.saveSchedule(scheduleName, mTimeslotArray, mSelectedProfiles, mSelectedCalendars)) {\n Log.d(\"CSA_SaveSched_Timeslot\", String.valueOf(mTimeslotArray.size()));\n System.out.println(\"Successfully saved!\");\n clearTimeslots();\n Utility.activateSchedule(scheduleName, this);\n } else {\n Utility.createErrorDialog(this, \"Invalid Name\", \"You must enter a unique name for your schedule\");\n System.out.println(\"Unsuccessful save\");\n return false;\n }\n } catch (AlreadyExistsException e) {\n System.out.println(e.getMessage());\n return false;\n }\n\n return true;\n }", "public boolean addTimeSlot(TimeSlot aTimeSlot)\n {\n boolean wasAdded = false;\n if (timeSlots.contains(aTimeSlot)) { return false; }\n timeSlots.add(aTimeSlot);\n if (aTimeSlot.indexOfAppointment(this) != -1)\n {\n wasAdded = true;\n }\n else\n {\n wasAdded = aTimeSlot.addAppointment(this);\n if (!wasAdded)\n {\n timeSlots.remove(aTimeSlot);\n }\n }\n return wasAdded;\n }", "public boolean addTimeSlotAt(TimeSlot aTimeSlot, int index)\n { \n boolean wasAdded = false;\n if(addTimeSlot(aTimeSlot))\n {\n if(index < 0 ) { index = 0; }\n if(index > numberOfTimeSlots()) { index = numberOfTimeSlots() - 1; }\n timeSlots.remove(aTimeSlot);\n timeSlots.add(index, aTimeSlot);\n wasAdded = true;\n }\n return wasAdded;\n }", "@Override\n public boolean removeSlot(int slot) {\n return availableSlots.add(slot);\n }", "private boolean isInlineSlot(PSRelationship rel)\n {\n String sidProperty = rel.getProperty(IPSHtmlParameters.SYS_SLOTID);\n if (!StringUtils.isBlank(sidProperty))\n {\n Long sid = null;\n try\n {\n sid = new Long(sidProperty);\n }\n catch (NumberFormatException e)\n {\n // ignore bad data\n }\n if (sid != null)\n {\n return m_inlineSlots.contains(sid);\n }\n }\n \n return false;\n }", "public boolean isItemValidForSlot(int slot, ItemStack stack)\n {\n return slot == 0;\n }", "public boolean lockPort(int port) {\n File portFile = portFile(port);\n try {\n FileChannel channel = new RandomAccessFile(portFile, \"rw\").getChannel();\n FileLock lock = channel.tryLock();\n if (lock == null) {\n channel.close();\n return false;\n }\n mReserved.put(port, new Reservation(portFile, lock));\n return true;\n } catch (IOException | OverlappingFileLockException e) {\n return false;\n }\n }", "public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_)\n {\n return true;\n }", "@Test\r\n public void testReserveSlot() {\r\n System.out.println(\"reserveSlot\");\r\n Table instance = new Table(\"S\",2);\r\n boolean expResult = true;\r\n boolean result = instance.reserveSlot();\r\n assertEquals(expResult, result);\r\n \r\n }", "public boolean isValid(BptSlotInfo slot, IBptContext context)\r\n/* 31: */ {\r\n/* 32:38 */ int id = context.world().a(slot.x, slot.y, slot.z);\r\n/* 33: */ \r\n/* 34:40 */ return (id == amq.y.cm) || (id == amq.x.cm) || (id == amq.aD.cm);\r\n/* 35: */ }", "protected final boolean rescheduleTaskIfNecessary(Object task) {\n if (this.running) {\n try {\n doRescheduleTask(task);\n } catch (RuntimeException ex) {\n logRejectedTask(task, ex);\n this.pausedTasks.add(task);\n }\n return true;\n } else if (this.active) {\n this.pausedTasks.add(task);\n return true;\n } else {\n return false;\n }\n }", "@Override\n\tpublic boolean isItemValidForSlot(int slot, ItemStack stack){\n\t return true;\n\t}", "public boolean canPlayerPlace(int slot) {\n\n TradeItem item = getItem(slot);\n\n if (item == null) {\n return false;\n }\n\n return item.hasItemFlag(\"SELF\");\n }", "@Override\n\tpublic boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_) {\n\t\treturn true;\n\t}", "public boolean tryAssignSpectrum(TranslucentCircuit circuit, Route route, int sourceNodeIndex, int destinatinNodeIndex, List<int[]> composition, TranslucentControlPlane cp, Modulation modulation){\n\t\tboolean flagQoT = true; // Assuming that the circuit QoT starts as acceptable\n\t\tboolean flagSuccess = false;\n\t\t\n\t\tint numberOfSlots = modulation.requiredSlots(circuit.getRequiredBandwidth());\n\t\tint band[] = cp.getSpectrumAssignment().policy(numberOfSlots, composition, circuit, cp);\n\t\tif(band != null){\n\t\t\t\n\t\t\tflagQoT = cp.getMesh().getPhysicalLayer().isAdmissibleModultionBySegment(circuit, route, sourceNodeIndex, destinatinNodeIndex, modulation, band, null, false);\n\t\t\tif(flagQoT){\n\t\t\t\tflagSuccess = true;\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Configures the circuit information\n\t\tcircuit.setModulation(modulation);\n\t\tcircuit.setSpectrumAssigned(band);\n\t\tcircuit.setQoT(flagQoT);\n\t\t\n\t\treturn flagSuccess;\n\t}", "public <T> T executeExecutable(Slot<?,T> slotContainsNextExecutable){\r\n\t\t//if slot doesn't exist - return\r\n\t\tif(slotContainsNextExecutable == null) return null;\r\n\t\telse{\r\n\t\t\t//otherwise try to execute the slot as next executable\r\n\t\t\tExecutable<T> nextExecutable = (Executable<T>)slotContainsNextExecutable;\r\n\t\t\treturn this.executeExecutable(nextExecutable);\r\n\t\t}\r\n\t}", "public boolean testEveningSlotRequirements(State state){\n\n\n if(state.getNumberOfFilledCourses() != 0){\n int slotIdForCurrentlyAssignedCourse = state.getCourses()[state.getNumberOfFilledCourses()-1];\n\n if(this.courses.get(state.getNumberOfFilledCourses()-1).isEvening()){\n\n Slot slot = this.courseSlots.get(slotIdForCurrentlyAssignedCourse-1);\n\n if(!slot.isEvening()){\n return false;\n }\n\n }\n\n }\n return true; \n }", "public abstract boolean canAddItem(Player player, Item item, int slot);", "boolean assignJob(JobId jobId) throws RemoteException;", "public boolean isSatSlot(int slotNumber) throws IOException { \n int result = isSatSlot0(slotNumber);\n if (result == -1) {\n String err_msg = getErrorMessage0();\n if (err_msg != null)\n throw new IOException(err_msg);\n else\n throw new IOException(\"isSAT failed\");\n }\n return result != 0; \n }", "public abstract boolean freeSlot(LocationDto location ,SlotDto slot);", "public void setSlot(SQLInteger slot) {\n\t\tthis.slot = slot;\n\t}", "private native int isSatSlot0(int slotNumber);", "public void setSlot(int slot) {\n this.slot = slot;\n }", "@Override\n public boolean hasAction(int slot)\n {\n return totalPages > 1 && ((slot == 45) || (slot == 53));\n }", "public boolean canMergeSlot(ItemStack stack, Slot slotIn)\n {\n return slotIn.inventory != this.craftResult && super.canMergeSlot(stack, slotIn);\n }", "@Override\r\n\tpublic boolean canMergeSlot(ItemStack stack, Slot p_94530_2_)\r\n {\r\n return p_94530_2_.inventory != this.craftResult && super.canMergeSlot(stack, p_94530_2_);\r\n }", "public void setSlot (Slot slot)\r\n {\r\n this.slot = slot;\r\n }", "public boolean endsInSlot();", "@Override\n\t\tpublic void scheduleForExecution(SlotProvider slotProvider) {\n\t\t\tsynchronized (this) {\n\t\t\t\tdone = true;\n\t\t\t\tthis.notifyAll();\n\t\t\t}\n\t\t}", "public boolean setSlot(int debug1, ItemStack debug2) {\n/* */ EquipmentSlot debug3;\n/* 2048 */ if (debug1 >= 0 && debug1 < this.inventory.items.size()) {\n/* 2049 */ this.inventory.setItem(debug1, debug2);\n/* 2050 */ return true;\n/* */ } \n/* */ \n/* */ \n/* 2054 */ if (debug1 == 100 + EquipmentSlot.HEAD.getIndex()) {\n/* 2055 */ debug3 = EquipmentSlot.HEAD;\n/* 2056 */ } else if (debug1 == 100 + EquipmentSlot.CHEST.getIndex()) {\n/* 2057 */ debug3 = EquipmentSlot.CHEST;\n/* 2058 */ } else if (debug1 == 100 + EquipmentSlot.LEGS.getIndex()) {\n/* 2059 */ debug3 = EquipmentSlot.LEGS;\n/* 2060 */ } else if (debug1 == 100 + EquipmentSlot.FEET.getIndex()) {\n/* 2061 */ debug3 = EquipmentSlot.FEET;\n/* */ } else {\n/* 2063 */ debug3 = null;\n/* */ } \n/* */ \n/* 2066 */ if (debug1 == 98) {\n/* 2067 */ setItemSlot(EquipmentSlot.MAINHAND, debug2);\n/* 2068 */ return true;\n/* 2069 */ } if (debug1 == 99) {\n/* 2070 */ setItemSlot(EquipmentSlot.OFFHAND, debug2);\n/* 2071 */ return true;\n/* */ } \n/* */ \n/* 2074 */ if (debug3 != null) {\n/* 2075 */ if (!debug2.isEmpty()) {\n/* 2076 */ if (debug2.getItem() instanceof net.minecraft.world.item.ArmorItem || debug2.getItem() instanceof ElytraItem) {\n/* 2077 */ if (Mob.getEquipmentSlotForItem(debug2) != debug3) {\n/* 2078 */ return false;\n/* */ }\n/* 2080 */ } else if (debug3 != EquipmentSlot.HEAD) {\n/* 2081 */ return false;\n/* */ } \n/* */ }\n/* 2084 */ this.inventory.setItem(debug3.getIndex() + this.inventory.items.size(), debug2);\n/* 2085 */ return true;\n/* */ } \n/* 2087 */ int debug4 = debug1 - 200;\n/* 2088 */ if (debug4 >= 0 && debug4 < this.enderChestInventory.getContainerSize()) {\n/* 2089 */ this.enderChestInventory.setItem(debug4, debug2);\n/* 2090 */ return true;\n/* */ } \n/* 2092 */ return false;\n/* */ }", "private native boolean selectSlot0(int slotIndex);", "public de.uni_koblenz.jgralabtest.schemas.gretl.pddsl.Slot createSlot();", "private boolean timeSlotConflict(Course course, Lab lab)\n\t{\n\t\tboolean passed = true;\n\t\tTimeSlot cSlot = course.getSlot(), lSlot = lab.getSlot();\n\t\t\n\t\t//Obviously there is no conflict if they course + lab didn't have a time slot assigned\n\t\tif(cSlot != null && lSlot != null)\n\t\t{\n\t\t\t//If a course and lab are on the same day, or course is monday and lab is friday\n\t\t\tif(cSlot.getDay() == lSlot.getDay() || (cSlot.getDay()==ScheduleDay.MO && lSlot.getDay()==ScheduleDay.FR))\n\t\t\t{\n\t\t\t\t//If it's a Tuesday\n\t\t\t\tif(cSlot.getDay() == ScheduleDay.TU)\n\t\t\t\t{\n\t\t\t\t\t//If they have the same start they are a conflict\n\t\t\t\t\t//Lectures are 1.5 hours and labs are 1 hour. \n\t\t\t\t\t//If a lecture starts 30 min after a lab, it's a conflict\n\t\t\t\t\t//If a lecture starts 30 min before (-70 becuase thats how we coded it for ints)\n\t\t\t\t\t// then it is a conflict\n\t\t\t\t\t//NOTE: I need to do more testing, but everything i tired is working so far\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+30))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()-70))\n\t\t\t\t\t\tpassed = false; \n\t\t\t\t\telse if (cSlot.getStartTime() == (lSlot.getStartTime() -100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//THIS IS WHERE WE NEED FIXING \n\t\t\t\t}\n\t\t\t\telse if(cSlot.getDay() == ScheduleDay.MO && lSlot.getDay() == ScheduleDay.FR)\n\t\t\t\t{\n\t\t\t\t\tif(cSlot.getStartTime() == lSlot.getStartTime())\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\telse if(cSlot.getStartTime() == (lSlot.getStartTime()+100))\n\t\t\t\t\t\tpassed = false;\n\t\t\t\t\t//else if(sC.getStartTime() == (sL.getStartTime()-100))\n\t\t\t\t\t\t//conflict = true; \n\t\t\t\t}\n\t\t\t\telse \n\t\t\t\t{\n\t\t\t\t\t//If they are equaal, there is a time conflict\n\t\t\t\t\tpassed = !(cSlot.getStartTime() == lSlot.getStartTime());\n\t\t\t\t}\n\t\t\t}\n\t\t\telse\n\t\t\t\tpassed = true; //If they don't have the same day, they are obviously not in conflict\n\t\t}\n\t\treturn passed;\n\t}", "public boolean executeItem(IItem scheduledItem) {\n Hashtable bpProperties = scheduledItem.getBpProperties();\n boolean isNostroScheduled = (bpProperties.get(\"NOSTROSCHEDULED\").toString().equals(YES) ? true : false);\n boolean isPositionScheduled = (bpProperties.get(\"POSITIONSCHEDULED\").toString().equals(YES) ? true : false);\n if (isNostroScheduled || isPositionScheduled) {\n OpicsNettingSchedulerItem opicsNettedBalancesItem = (OpicsNettingSchedulerItem) scheduledItem;\n boolean executed = new ExecuteScheduledBP().executeBP(opicsNettedBalancesItem);\n return executed;\n }\n else {\n scheduledItem.setItemStatus(IItemStatusCodes.SCHEDULED);\n return true;\n }\n }", "private boolean upScaleVmNonCpuResource(final VerticalVmScaling scaling) {\n final Class<? extends ResourceManageable> resourceClass = scaling.getResourceClass();\n final ResourceManageable hostResource = scaling.getVm().getHost().getResource(resourceClass);\n final double extraAmountToAllocate = scaling.getResourceAmountToScale();\n if (!hostResource.isAmountAvailable(extraAmountToAllocate)) {\n return false;\n }\n\n final ResourceProvisioner provisioner = scaling.getVm().getHost().getProvisioner(resourceClass);\n final ResourceManageable vmResource = scaling.getVm().getResource(resourceClass);\n final double newTotalVmResource = (double) vmResource.getCapacity() + extraAmountToAllocate;\n if (!provisioner.allocateResourceForVm(scaling.getVm(), newTotalVmResource)) {\n showResourceIsUnavailable(scaling);\n return false;\n }\n\n LOGGER.info(\n \"{}: {}: {} more {} allocated to {}: new capacity is {}. Current resource usage is {}%\",\n scaling.getVm().getSimulation().clockStr(),\n scaling.getClass().getSimpleName(),\n (long) extraAmountToAllocate, resourceClass.getSimpleName(),\n scaling.getVm(), vmResource.getCapacity(),\n vmResource.getPercentUtilization() * 100);\n return true;\n }", "boolean newWorkingSchedule(WorkingScheduleRequest workingSchedule);", "private boolean isSlotsValid (int slots) {\n\t\treturn slots>=0 && slots<5;\n\t}", "private void updateAvailSchedule(AssetRescind ar,\n Asset asset,\n final Asset assignee) {\n\n NewSchedule assetAvailSchedule = \n (NewSchedule)asset.getRoleSchedule().getAvailableSchedule();\n\n if (assetAvailSchedule == null) {\n if (logger.isDebugEnabled()) {\n\tlogger.debug(\"Asset for rescinded asset transfer \" +\n\t\t asset.getItemIdentificationPG().getItemIdentification() + \n\t\t \" did not have an availability schedule.\");\n\n }\n\n assetAvailSchedule = ldmf.newAssignedAvailabilitySchedule();\n ((NewRoleSchedule)asset.getRoleSchedule()).setAvailableSchedule(assetAvailSchedule);\n } \n\n if (!related(asset)) {\n \n // Remove Matching Availabilities\n synchronized (assetAvailSchedule) {\n assetAvailSchedule.removeAll(ar.getSchedule());\n }\n\n // We're done\n return;\n }\n \n\n //For Assets with relationships, need to recompute the avail schedule\n //based on the relationship schedule\n\n // Remove all current entries denoting asset avail to assignee\n synchronized (assetAvailSchedule) {\n Collection remove = assetAvailSchedule.filter(new UnaryPredicate() {\n\tpublic boolean execute(Object o) {\n\t return ((o instanceof AssignedAvailabilityElement) &&\n\t\t (((AssignedAvailabilityElement)o).getAssignee().equals(assignee)));\n\t} \n });\n assetAvailSchedule.removeAll(remove);\n \n // Get all relationships between asset and assignee\n RelationshipSchedule relationshipSchedule = \n ((HasRelationships) asset).getRelationshipSchedule();\n Collection collection = \n relationshipSchedule.getMatchingRelationships((HasRelationships) assignee,\n new MutableTimeSpan());\n \n // If any relationships, add a single avail element with the \n // min start and max end\n if (collection.size() > 0) {\n Schedule schedule = ldmf.newSchedule(new Enumerator(collection));\n \n // Add a new avail element\n assetAvailSchedule.add(ldmf.newAssignedAvailabilityElement(assignee,\n schedule.getStartTime(),\n schedule.getEndTime()));\n }\n } // end sync block\n }", "public boolean migrateSlots(String source, String target, int slot_nums) {\n\n jedisArray = getJedis(\"MIGRATE SLOT\");\n\n for (String item : ipPort2Jedis.keySet()) {\n try {\n String info = ipPort2Jedis.get(item).clusterNodes();\n initNodeInfo(info);\n break;\n } catch (Exception e) {\n continue;\n }\n }\n\n List<Integer> nodeSlots = ipPort2nodeSlots.get(source);\n\n if (nodeSlots.size() < slot_nums) {\n System.err\n .println(\"[INFO] source node does not have such many slots\");\n return false;\n }\n\n for (int i = 1; i <= slot_nums; i++) {\n try {\n moveSlot(source, target, nodeSlots.get(0), 0, 15000);\n nodeSlots.remove(0);\n String output = String.format(\n \"[INFO] moved %-5d slots[%-5d] from %-20s to %-20s\", i,\n nodeSlots.get(0), source, target);\n System.out.println(output);\n } catch (Exception e) {\n e.printStackTrace();\n break;\n }\n }\n\n return true;\n }", "private static boolean reserveSpace(AtomicInteger availableSharedCapacity, int space)\r\n/* 254: */ {\r\n/* 255:282 */ assert (space >= 0);\r\n/* 256: */ for (;;)\r\n/* 257: */ {\r\n/* 258:284 */ int available = availableSharedCapacity.get();\r\n/* 259:285 */ if (available < space) {\r\n/* 260:286 */ return false;\r\n/* 261: */ }\r\n/* 262:288 */ if (availableSharedCapacity.compareAndSet(available, available - space)) {\r\n/* 263:289 */ return true;\r\n/* 264: */ }\r\n/* 265: */ }\r\n/* 266: */ }", "boolean hasScheduling();", "boolean hasScheduling();", "private boolean tryUpgradeToExclusiveWithShareLockHeld(\n Locks.ResourceType resourceType,\n long resourceId,\n SharedLock sharedLock,\n int tries ) throws AcquireLockTimeoutException\n {\n if( sharedLock.tryAcquireUpdateLock(this) )\n {\n try\n {\n // Now we just wait for all clients to release the the share lock\n while(sharedLock.numberOfHolders() > 1)\n {\n waitStrategies[resourceType.typeId()].apply( tries++ );\n markAsWaitingFor( sharedLock, resourceType, resourceId );\n }\n\n return true;\n\n }\n catch(DeadlockDetectedException e)\n {\n sharedLock.releaseUpdateLock(this);\n throw e;\n }\n catch(Throwable e)\n {\n sharedLock.releaseUpdateLock(this);\n clearWaitList();\n throw new RuntimeException( e );\n }\n }\n return false;\n }", "@Override\n\tpublic boolean canMergeSlot(ItemStack stack, Slot slotIn) {\n\t\treturn slotIn.getSlotIndex() >= 2;\n\t}", "private boolean partAvailable(Piece piece) {\n boolean temp = false;\r\n try {\r\n temp = repairAreaInt.partAvailable(piece, id);\r\n } catch (RemoteException e) {\r\n System.err.println(\"Excepção na invocação remota de método\" + getName() + \": \" + e.getMessage() + \"!\");\r\n System.exit(1);\r\n }\r\n return temp;\r\n }", "private boolean assignShippingMethodForInventory(final ItemBO anItem, final TradingPartnerBO tradingPartner)\n\t{\n\t\tTradingPartnerShippingMethodBO tpShippingMethod = null;\n\t\ttry\n\t\t{\n\t\t\tfinal String scac = anItem.getScacCode();\n\t\t\tif (GenericValidator.isBlankOrNull(scac))\n\t\t\t{\n\t\t\t\ttpShippingMethod = shippingAs.findTradingPartnerShipMtd(tradingPartner, anItem.getCarrierCode(),\n\t\t\t\t\t\tanItem.getShippingMethodCode());\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\ttpShippingMethod = shippingAs.findTradingPartnerShipMtd(tradingPartner, anItem.getScacCode());\n\t\t\t}\n\t\t\tanItem.setSelectedShippingMethod(tpShippingMethod.getShippingMethod());\n\t\t}\n\t\tcatch (final WOMPersistanceException e)\n\t\t{\n\t\t\tfinal ProblemBO invalidScac = ProblemBOFactory.createProblem(MessageResourceUtil.INVALID_SCAC_CODE_OR_SHIPPING_METHOD);\n\t\t\tanItem.addProblemItem(invalidScac);\n\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean canSmelt() {\n\t\tif (this.slots[0] == null) {\n\t\t\treturn false;\n\t\t} else {\n\t\t\tItemStack itemstack = FurnaceRecipes.smelting().getSmeltingResult(\n\t\t\t\t\tthis.slots[0]);\n\n\t\t\tif (itemstack == null)\n\t\t\t\treturn false;\n\t\t\tif (this.slots[1] == null)\n\t\t\t\treturn true;\n\t\t\tif (!this.slots[1].isItemEqual(itemstack))\n\t\t\t\treturn false;\n\n\t\t\tint result = slots[1].stackSize + itemstack.stackSize;\n\n\t\t\treturn result <= getInventoryStackLimit()\n\t\t\t\t\t&& result <= itemstack.getMaxStackSize();\n\t\t}\n\t}", "public boolean put(PhysicalResource res)\n {\n resources.replace(res.getType(), (resources.get(res.getType()) + res.getQuantity()));\n return true;\n }", "@Test\n\tpublic void updateAssignment() throws SQLException\n\t{\n\t\tint id = assign_hand.saveOrUpdate(test_assignment);\n\t\tAssignmentMsg test_am = assign_hand.getAssignment(id);\n\n\t\ttest_am.setName(\"Not As Hard Assignment\");\n\t\ttest_am.setEnabled(false);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am.getName());\n\t\t\n\t\tid = assign_hand.saveOrUpdate(test_am);\n\t\tAssignmentMsg test_am2 = assign_hand.getAssignment(id);\n\n\t\tassertEquals(\"Not As Hard Assignment\",test_am2.getName());\n\t\tassertEquals(false,test_am2.isEnabled());\n\n\t}", "public boolean hasScheduling() {\n return scheduling_ != null;\n }", "protected int assignSlot(int paramInt)\n/* */ {\n/* 164 */ int i = freeSlot(computeSlot(paramInt));\n/* 165 */ this.m_flagTable[i] = true;\n/* 166 */ this.m_keyTable[i] = paramInt;\n/* 167 */ return i;\n/* */ }", "boolean available()\n {\n synchronized (m_lock)\n {\n return (null == m_runnable) && (!m_released);\n }\n }", "public boolean slotEquals(Fact fact) {\n\t\tif (fact instanceof CubeFact) {\n\t\t\treturn ((CubeFact)fact).getObjectInstance() == this.objInstance;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isAssignment() {\n\t\treturn true;\n\t}", "public boolean continueExecuting() {\n for(int i = 0; i < activeRoutine; i ++) {\n if(routines[i].shouldExecuteRoutine()) {\n return false;\n }\n }\n SettlerAIRoutine activeRoutine = getActiveRoutine();\n return activeRoutine.continueExecutingRoutine();\n }", "@Override\n public boolean shouldExecute() {\n for(int i = 0; i < routines.length; i++) {\n if(routines[i].shouldExecuteRoutine()) {\n activeRoutine = i;\n getSettler().setSettlerStatus(routines[i].getStatus());\n break;\n }\n }\n return true;\n }", "public boolean schedule(Date scheduledDate) {\n if (this.future != null && this.scheduledDate != null) {\n return false;\n }\n\n this.scheduledDate = scheduledDate;\n future = runnableScheduler.schedule(this, scheduledDate);\n return true;\n }", "public void setSlotTo(Slot slotTo) {\n this.slotTo = slotTo;\n }", "@Override\n\tpublic boolean isItemValidForSlot(int i, ItemStack itemstack) {\n\t\treturn false;\n\t}", "public boolean shouldContinueExecuting() {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "@Override\n\tpublic ItemStack slotClick(int slot, int p_75144_2_, int p_75144_3_, EntityPlayer player)\n\t{\n\t\tItemStack stack;\n\t\tif(slot != -999)\n\t\t\tstack = player.inventory.mainInventory[slot];\n\t\telse stack = null;\n\n\t\tif(inv != null && p_75144_2_ == 0)\n\t\t\t//Check if anything is in the slot and set the slot value if it is\n\t\t\tif(stack == null) {\n\t\t\t\tinv.setSelectedSlot(-1);\n\t\t\t}\n\t\t\telse\n\t\t\t\tfor(int id : OreDictionary.getOreIDs(stack)) {\n\t\t\t\t\tif(OreDictionary.getOreName(id).startsWith(\"ore\") || OreDictionary.getOreName(id).startsWith(\"gem\") || OreDictionary.getOreName(id).startsWith(\"dust\")) {\n\t\t\t\t\t\tinv.setSelectedSlot(slot);\n\t\t\t\t\t}\n\n\t\t\t\t}\n\n\t\treturn stack;\n\n\t}", "public boolean needsRepair() {\n if (id == 5509) {\n return false;\n }\n return inventory.contains(id + 1);\n }", "public boolean checkSlotName (int rootId, String slotName, int levelId)\n\t\t\tthrows SystemException, PortalException {\n\t\ttry {\n\t\t\tList<Slot> slot = SlotFinderUtil.getExistedSlot(rootId, slotName,\n\t\t\t\t\tlevelId);\n\t\t\tif (slot == null)\n\t\t\t\tslot = new ArrayList<Slot>();\n\t\t\tif (slot.size() != 0)\n\t\t\t\treturn true; //Da ton tai\n\t\t\telse\n\t\t\t\treturn false; //Chua ton tai\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(\"ERROR in SlotLocalServiceImpl.checkSlotName \" + e.toString());\n\t\t\treturn true;\n\t\t}\n\t}", "public boolean shouldContinueExecuting()\n {\n return this.currentTask >= 0 && super.shouldContinueExecuting();\n }", "public boolean isPureAssignment() {\n return (commandElement() == null) && hasAssignments();\n }", "private static boolean hasSerialRunning(String serial) {\n for (Task task : TASKS) {\n if (task.executionAsked && serial.equals(task.serial)) {\n return true;\n }\n }\n return false;\n }", "@Override\n\tpublic boolean isItemValidForSlot(int index, ItemStack stack) {\n\t\treturn super.isValid();\n\t}", "@Test\n public void setResolutionConfigSlot_faultUpdate_set() throws Exception {\n EqpAssmblBom lResolutionConfigSlot =\n createResolutionConfigSlot( CONFIG_SLOT_1_ATA, CONFIG_SLOT_1_NAME );\n SdFaultTable lExistingFault = createFault( null );\n\n iService.setResolutionConfigSlot( lExistingFault, lResolutionConfigSlot.getAlternateKey(),\n HumanResourceKey.ADMIN );\n\n // Ensure the value has been set on the fault object\n assertEquals( lResolutionConfigSlot.getPk(), lExistingFault.getResolutionConfigSlot() );\n\n // Ensure history note is logged on creation\n List<EvtStageTable> lFaultHistoryNotes = getFaultHistoryNotes( lExistingFault.getPk() );\n assertFalse( lFaultHistoryNotes.isEmpty() );\n\n String lExpectedMessage = \"The fault resolution config slot has been set to\";\n assertHistoryNoteWasAdded( lFaultHistoryNotes.get( 0 ), lExpectedMessage );\n }", "public boolean addAssignment(Assignment newAssignment) {\n try {\n if (searchAssignmentInCourse(newAssignment)) {\n throw new Exception();\n }\n getAssignmentListInCourse().add(newAssignment);\n\n return true;\n } catch (Exception exception) {\n System.err.println(\"This assignment already exists!\");\n return false;\n }\n\n }", "public boolean enterAirPlane(Plane<?> newPlane) {\r\n\r\n //it's boolean because im to lazy to add trycatch blocks\r\n //create a new excpetion; plus this provideds a easy way to exit the method;\r\n\r\n Runway temp = findRunway(newPlane.getRunway());\r\n\r\n if(temp != null) {\r\n temp.enqueueToRunway(newPlane);\r\n return true;\r\n }\r\n else {\r\n return false;\r\n }\r\n }", "@Test\n public void setResolutionConfigSlot_faultCreation() throws Exception {\n SdFaultTable lUnsavedFault = getUnsavedFault();\n EqpAssmblBom lResolutionConfigSlot =\n createResolutionConfigSlot( CONFIG_SLOT_1_ATA, CONFIG_SLOT_1_NAME );\n\n iService.setResolutionConfigSlot( lUnsavedFault, lResolutionConfigSlot.getAlternateKey(),\n HumanResourceKey.ADMIN );\n\n // Ensure the value has been set on the fault object\n assertEquals( lResolutionConfigSlot.getPk(), lUnsavedFault.getResolutionConfigSlot() );\n\n // Ensure no history note is logged on creation\n assertTrue( getFaultHistoryNotes( lUnsavedFault.getPk() ).isEmpty() );\n }", "public int getSlot() {\r\n\t\treturn slot;\r\n\t}", "@NotNull\r\n @Contract(pure = true)\r\n public Slot getSlot() {\r\n return this.slot;\r\n }", "public int getSlot() {\n\t\treturn slot;\n\t}", "@Override\n public boolean isAvailable(Resource resource) {\n return false;\n }", "public Boolean assignTask(Task task, User user) {\r\n\t\t\r\n\t\tint time_block = 0;\r\n\t\tDate cur_date = new Date();\r\n\t\tDate end_date = new Date();\r\n\t\t\t\r\n\t\t/** rounds the estimated time to the nearest half hour */\r\n\t\tdouble task_len = roundEstimatedTimeToMinutes(task.getEstimatedTime());\r\n\r\n\t\t/** round up the suggested start time to the nearest half hour */\r\n\t\tcur_date = checkMin(roundUpTime(task.getSuggestedStartTime()));\r\n\t\t\r\n\t\t/** round down the suggested end time to the nearest half hour */\r\n\t\tend_date = checkMax(roundDownTime(task.getSuggestedEndTime()));\r\n\t\t\t\t\t\t\r\n\t\t/** iterate, checking for availability in half hour time blocks */\r\n\t\twhile(cur_date.before(end_date)) {\r\n\t\t\t\t\r\n\t\t\t/** if the user is available increase available time block by half hour\r\n\t\t\t * otherwise, reset available time block to 0 */\r\n\t\t\tif (isUserAvailable(user, cur_date)) {\r\n\t\t\t\ttime_block += halfhour_min;\r\n\t\t\t} else {\r\n\t\t\t\ttime_block = 0;\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t\t/** adjust current time by half hour to test next time block */\r\n\t\t\tcur_date.setTime(cur_date.getTime() + halfhour_ms);\r\n\t\t\t\r\n\t\t\t/** if available time block == estimated task length, assign task */\r\n\t\t\tif (time_block == task_len) {\r\n\t\t\t\t\r\n\t\t\t\t/** adjust current time = (current time - task length) */\r\n\t\t\t\tcur_date = resetCurrentTimeByTaskLengh(cur_date, task_len);\r\n\t\t\t\t\r\n\t\t\t\t/** associate the task and user and update database */\r\n\t\t\t\ttask = assignTaskToUser(user, task, cur_date);\r\n\t\t\t\tTaskDao.getInstance().updateTask(task);\r\n\t\t\t\treturn true;\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t\treturn false;\r\n\t}", "public boolean pickAndExecuteAnAction() {\n\t\ttry{\n\t\t\tsynchronized(waiters){\n\t\t\t\tfor (MyWaiter waiter : waiters) {\n\t\t\t\t\tif (waiter.state == MyWaiter.WaiterState.askingForBreak && waiters.size() > 1) {\n\t\t\t\t\t\tDo(\"Break granted\");\n\t\t\t\t\t\twaiter.w.msgBreakGranted();\n\t\t\t\t\t\twaiters.remove(waiter);\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tboolean hasEmptyTable = false;\n\t\t\tsynchronized(tables){\n\t\t\t\tfor (Table table : tables) {\n\t\t\t\t\tif (!table.isOccupied()) {\n\t\t\t\t\t\thasEmptyTable = true;\n\t\t\t\t\t\tsynchronized(waitingCustomers){\n\t\t\t\t\t\t\tfor (MyCustomer customer : waitingCustomers) {\n\t\t\t\t\t\t\t\tif (waiters.size() != 0){\n\t\t\t\t\t\t\t\t\tif (customer.state == MyCustomer.CustomerState.waiting ||\n\t\t\t\t\t\t\t\t\t\t\tcustomer.state == MyCustomer.CustomerState.staying) {\n\t\t\t\t\t\t\t\t\t\tseatCustomer(customer.customer, table, customer.count);\n\t\t\t\t\t\t\t\t\t\twaitingCustomers.remove(customer);\n\t\t\t\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (!hasEmptyTable){\n\t\t\t\tsynchronized(waitingCustomers){\n\t\t\t\t\tfor (MyCustomer customer : waitingCustomers){\n\t\t\t\t\t\tif(customer.state == MyCustomer.CustomerState.waiting){\n\t\t\t\t\t\t\tcustomer.customer.msgNoSeat();\n\t\t\t\t\t\t\tcustomer.state = MyCustomer.CustomerState.deciding;\n\t\t\t\t\t\t\treturn true;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tcatch(ConcurrentModificationException e){\n\t\t\treturn false;\n\t\t}\n\n\t\treturn false;\n\t\t//we have tried all our rules and found\n\t\t//nothing to do. So return false to main loop of abstract agent\n\t\t//and wait.\n\t}", "public boolean isSlotSingleValued() {\n return true;\n }", "public Slot getPotentialSuccessiveSlot() {\n return potentialSuccessiveSlot;\n }", "public void setResult(ItemStack item, int slot){\n\t\tif(slot > 3 || slot < 0)return;\n\t\tresult[slot] = item;\n\t}", "public boolean addPartition(T spilledPartition) {\n Preconditions.checkState(initialized);\n return queue.offer(spilledPartition);\n }", "public boolean canPutCD(){\n if(seesSlot() && !seesCD() && stackHasCD())\n return true;\n else\n return false;\n }", "boolean hasExecution();", "public boolean createPermutationSchedule() {\n listOfCoursesPermutation = permutationOfCourseList(activeCourseList);\n\n boolean returnBool = true;\n for (int i = 0; i < listOfCoursesPermutation.size(); i++) {\n if (!simpleDesigner(listOfCoursesPermutation.get(i))) {\n returnBool = false;\n }\n }\n return returnBool;\n }", "public boolean verifySuccessiveMove(Slot potentialSlotFrom, Slot slotFrom) {\n return ((slotFrom.getRow() == potentialSlotFrom.getRow()) &&\n (slotFrom.getColumn() == potentialSlotFrom.getColumn()));\n }", "Slot createSlot();", "public abstract boolean isScheduled();", "public void selectSlot(int slot) throws IOException {\n \n if (!selectSlot0(slot)) {\n String err_msg = getErrorMessage0();\n if (err_msg != null)\n throw new IOException(err_msg);\n else\n throw new IOException(\"SelectSlot failed\");\n }\n }", "public boolean takeShot(Point shot) {\n return opponentsBoard.takeShot(shot);\n }", "public SQLInteger getSlot() {\n\t\treturn slot;\n\t}", "public boolean hasScheduling() {\n return schedulingBuilder_ != null || scheduling_ != null;\n }", "private boolean scheduleNext() {\n final String tag = \"Scheduled session[\"+taskid+\"]\";\n\n // We need now to reschedule a new task for after 'delayBeforeNext' ms.\n try {\n LOG.finer(tag+\": scheduling next session for \"+ delayBeforeNext + \"ms\");\n if (cancelled || !notifyStateChange(SCHEDULED,\"scan-scheduled\")) {\n LOG.finer(tag+\" stopped: do not reschedule\");\n return false;\n }\n final SessionTask nextTask = new SessionTask(delayBeforeNext);\n if (!scheduleSession(nextTask,delayBeforeNext)) return false;\n LOG.finer(tag+\": next session successfully scheduled\");\n } catch (Exception x) {\n if (LOG.isLoggable(Level.FINEST)) {\n LOG.log(Level.FINEST,tag+\n \" failed to schedule next session: \"+x,x);\n } else if (LOG.isLoggable(Level.FINE)) {\n LOG.fine(tag+\" failed to schedule next session: \"+x);\n }\n }\n return true;\n }", "public boolean isTaskAvailable(String runnableID) {\n return mTaskCache.containsKey(runnableID);\n }", "public static int checkSlotsAvailable(Player player) {\n return checkSlotsAvailable(player.getInventory());\n }" ]
[ "0.5853774", "0.55510193", "0.5422233", "0.5342296", "0.52357215", "0.51958716", "0.51414657", "0.51379377", "0.5114705", "0.5104811", "0.5073768", "0.5045347", "0.50383663", "0.5018258", "0.49813238", "0.49783677", "0.49738827", "0.49626", "0.49516392", "0.49328813", "0.49325496", "0.4927822", "0.49184963", "0.49065104", "0.49040928", "0.49033526", "0.49019912", "0.48851585", "0.48715517", "0.48602957", "0.48566216", "0.4836937", "0.48318645", "0.48207137", "0.48158112", "0.47797674", "0.47737452", "0.4764798", "0.47077045", "0.46725753", "0.4668473", "0.45979208", "0.4595761", "0.45706248", "0.45606494", "0.45574805", "0.45509124", "0.45509124", "0.45428702", "0.45279372", "0.45239314", "0.44858727", "0.4464844", "0.4461771", "0.4458679", "0.4456705", "0.44465736", "0.44247678", "0.44235054", "0.44131494", "0.44058487", "0.43983132", "0.43869978", "0.43846527", "0.4382708", "0.43748856", "0.4365756", "0.4363724", "0.43530178", "0.43463728", "0.43402168", "0.43347862", "0.43322092", "0.43315852", "0.43282607", "0.43270555", "0.43081468", "0.43036288", "0.42939633", "0.42923692", "0.42901596", "0.42873842", "0.42802596", "0.42681524", "0.42598948", "0.4257164", "0.425662", "0.42561492", "0.42530262", "0.425151", "0.42480177", "0.42473507", "0.42454436", "0.4238154", "0.42336565", "0.4229842", "0.4227729", "0.4226349", "0.4219087", "0.4216404" ]
0.82149357
0
returns nonnull only when a location is already assigned
@Override public TaskManagerLocation getAssignedResourceLocation() { final LogicalSlot currentAssignedResource = assignedResource; return currentAssignedResource != null ? currentAssignedResource.getTaskManagerLocation() : null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isAssignedToLocation() {\n if (location == null) {\n return false;\n }\n return true;\n }", "private boolean isAssignedPosition(String location) {\n return productTypeRepository.findAll().stream().anyMatch(p -> p.getLocation().equals(location));\n }", "boolean hasLocation();", "boolean hasLocation();", "private boolean isOccupied(Location loc)\n\t{\n\t\treturn grid[loc.getRow()][loc.getCol()] != null;\n\t}", "public boolean hasLocation()\n\t{\n\t\treturn location != null;\n\t}", "private boolean isValidLocationFound() {\n return latitudeValue != null && longitudeValue != null;\n }", "public abstract boolean locationExists(Location location);", "public abstract Boolean isExist(LocationDto location);", "public boolean hasLocation()\n {\n return targetLocation != null;\n }", "boolean FindUnassignedLocation(int grid[][], Point p)\n {\n int row=p.x,col=p.y;\n for (row = 0; row < N; row++)\n for (col = 0; col < N; col++)\n if (grid[row][col] == UNASSIGNED)\n {\n p.x=row;p.y=col;\n return true;\n }\n return false;\n }", "boolean getRequireLocationPref();", "private MapLocation canUnloadAnywhere() {\r\n\t\tfor (Direction dir : navigation.allDirections) {\r\n\t\t\tMapLocation unloadLoc = myRC.getLocation().add(dir);\r\n\t\t\tif (myRC.canUnloadBlockToLocation(unloadLoc))\r\n\t\t\t\treturn unloadLoc;\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "@Override\n public boolean isSet() {\n return locusLocus != null;\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof Location)) {\r\n return false;\r\n }\r\n Location other = (Location) object;\r\n if ((this.locId == null && other.locId != null) || (this.locId != null && !this.locId.equals(other.locId))) {\r\n return false;\r\n }\r\n return true;\r\n }", "@Override\n public boolean isLocationValid(int x, int y)\n {\n return master.isLocationValid(x, y);\n }", "@Override\n public MapLocation getLocation(XYCoord location)\n {\n if (null != location)\n return getLocation(location.xCoord, location.yCoord);\n return null;\n }", "@java.lang.Override\n public boolean hasLastLocation() {\n return lastLocation_ != null;\n }", "public boolean hasLocation() {\n return fieldSetFlags()[3];\n }", "private void checkLocation(String mapName, Set<Point> seenLocations, List<Point> wildLocations) {\n Assert.assertFalse(mapName, wildLocations.isEmpty());\n for (Point location : wildLocations) {\n Assert.assertFalse(seenLocations.contains(location));\n seenLocations.add(location);\n }\n }", "@Override\n public boolean isLocationEmpty(Unit unit, int x, int y)\n {\n Unit resident = master.getLocation(x, y).getResident();\n // if there's nothing there, yeah...\n if (resident == null)\n return true;\n // say it's not there if we dunno it's there\n if (resident.model.hidden && !confirmedVisibles.contains(resident)) \n return true;\n // otherwise, consult the fog map and master map\n return isLocationFogged(x, y) || master.isLocationEmpty(unit, x, y);\n }", "private boolean setLocationInformation() {\n try {\n this.mPostModel.setLocationPost(mAutoCompleteTextView.getText().toString());\n\n if (StringEmptyUtil.isEmptyString(this.mPostModel.getLocationPost())) {\n Toast.makeText(getApplicationContext(), \"Please Select Location\", Toast.LENGTH_LONG).show();\n return false;\n }\n\n this.drop_location.setVisibility(View.VISIBLE);\n this.location_view.setVisibility(View.VISIBLE);\n this.current_location.setVisibility(View.VISIBLE);\n this.current_location.setText(this.mPostModel.getLocationPost());\n return true;\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n Toast.makeText(getApplicationContext(), \"Please Select Location\", Toast.LENGTH_LONG).show();\n\n return false;\n }", "@Override public boolean isValidated()\n{\n if (location_set.size() == 0 || !have_join) return false;\n\n return true;\n}", "@Override\n public boolean isSet() {\n return loci != null;\n }", "protected void updateLocation (BodyObject source, Location loc)\n {\n SceneLocation sloc = new SceneLocation(loc, source.getOid());\n if (!_ssobj.occupantLocs.contains(sloc)) {\n // complain if they don't already have a location configured\n Log.warning(\"Changing loc for occupant without previous loc \" +\n \"[where=\" + where() + \", who=\" + source.who() +\n \", nloc=\" + loc + \"].\");\n _ssobj.addToOccupantLocs(sloc);\n } else {\n _ssobj.updateOccupantLocs(sloc);\n }\n }", "public boolean hasLastLocation() {\n return lastLocationBuilder_ != null || lastLocation_ != null;\n }", "@Test\n public void setCurrentLocationNull()\n {\n Location loc = Mockito.mock(Location.class);\n boolean res = _city.setCurrentLocation(loc);\n assertFalse(res);\n }", "public boolean hasLocation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "public void assignToLocation(Location location) {\n if (getAssignedLocation() != location) {\n if (this.location != null) {\n this.location.fireEmployee(this);\n }\n this.location = location;\n this.location.hireEmployee(this);\n }\n }", "public boolean hasLocation() {\n return ((bitField0_ & 0x00000002) == 0x00000002);\n }", "@Override\n public boolean isLocationEmpty(int x, int y)\n {\n return isLocationEmpty(null, x, y);\n }", "@Override\n public void onSuccess(Location loc) {\n if (loc != null && loc.getLatitude() != 0) {\n cLoc = loc;\n }\n }", "@Override\n public boolean getLocation(Location l) {\n synchronized (mLocationListeners) {\n Location loc = mMockProviderLocation.get(getName());\n if (loc == null) {\n return false;\n }\n l.set(loc);\n return true;\n }\n }", "public boolean isAsteroidAssigned(Asteroid asteroid) {\n\t\treturn asteroidToShip.containsKey(asteroid.getId());\n\t}", "public boolean checkForLotus(){\n Object obj=charactersOccupiedTheLocation[2];\n if(obj!=null){return true;}\n return false;\n }", "boolean hasLocationNames();", "@Insert\n boolean upsertLocation(SpacecraftLocationOverTime reading);", "private void locate() {\n possibleLocations[0][0] = false;\n possibleLocations[0][1] = false;\n possibleLocations[1][0] = false;\n do {\n location.randomGenerate();\n } while (!possibleLocations[location.y][location.x]);\n }", "public static Location getUniqueLocation(){\n int randomIndex = randomNumber(femaleNames.getNames().length);\n return locations.getLocations()[randomIndex];\n }", "@Override\r\n public boolean equals(Object object) {\n if (!(object instanceof RealscheduleliteLocation)) {\r\n return false;\r\n }\r\n RealscheduleliteLocation other = (RealscheduleliteLocation) object;\r\n if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {\r\n return false;\r\n }\r\n return true;\r\n }", "protected boolean validateLocation (BodyObject source, Location loc)\n {\n return true;\n }", "private static boolean mapAlreadyHasMarkerForLocation(String location, HashMap<String, String> markerLocation) {\n return (markerLocation.containsValue(location));\n }", "@Override\n public boolean isLocationValid(XYCoord coords)\n {\n return master.isLocationValid(coords);\n }", "@Override\n public boolean equals(Object object) {\n if (!(object instanceof Locations)) {\n return false;\n }\n Locations other = (Locations) object;\n if ((this.idlocations == null && other.idlocations != null) || (this.idlocations != null && !this.idlocations.equals(other.idlocations))) {\n return false;\n }\n return true;\n }", "boolean hasLocationView();", "public boolean setBothCoordinates(){\r\n\r\n double[] results;\r\n\r\n if((results = getCoordinates(locationA)) == null){\r\n Toast.makeText(this, \"Try another location for A!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latA = results[0];\r\n lonA = results[1];\r\n }\r\n\r\n if((results = getCoordinates(locationB)) == null){\r\n Toast.makeText(this, \"Try another location for B!\", Toast.LENGTH_LONG).show();\r\n return false;\r\n }else{\r\n latB = results[0];\r\n lonB = results[1];\r\n }\r\n\r\n getMidPoint();\r\n\r\n return true;\r\n }", "private void checkLocationPermission() {\n\n if(ContextCompat.checkSelfPermission(this, Manifest.permission.ACCESS_FINE_LOCATION)\n != PackageManager.PERMISSION_GRANTED){\n //location permission required\n ActivityCompat.requestPermissions(this, new String[]\n {Manifest.permission.ACCESS_FINE_LOCATION}, PERMISSION_FINE_LOCATION);\n\n }else{\n //location already granted\n checkCoarseAddress();\n }\n }", "@Override\n public MapLocation getLocation(int x, int y)\n {\n XYCoord coord = new XYCoord(x, y);\n MapLocation masterLoc = master.getLocation(coord);\n MapLocation returnLoc = masterLoc;\n if( isLocationFogged(coord) || // If we can't see anything...\n (isLocationEmpty(coord) && !master.isLocationEmpty(coord)) ) // ...or what's there is hidden\n {\n returnLoc = new MapLocation(returnLoc.getEnvironment(), coord);\n returnLoc.setOwner( lastOwnerSeen[x][y] );\n }\n return returnLoc;\n }", "public Location checkLastLocationClicked()\n {\n Location loc = lastLocationClicked;\n lastLocationClicked = null;\n return loc;\n }", "@Override\n protected void checkLocation() {\n // nothing\n }", "int getLocation() throws IllegalStateException;", "@Test\n public void testSetLocation() {\n try {\n Location location = new Location(45, 50);\n WaterReport wr = new WaterReport(Model.getCurrentAccount(),\n \"Bottled\", \"Waste\", \"12:04\", location);\n wr.setLocation(new Location(40, 35));\n Location check = new Location(40, 35);\n Assert.assertEquals(\"Incorrect location after setting new location\", check,\n wr.getLocation());\n } catch (Exception e) {\n Assert.fail(\"Set Location should not have thrown exception here\");\n e.printStackTrace();\n }\n }", "public boolean isSafe(Location location) {\r\n\r\n\t\tLocation northNeighbor = map.getLocation(location, Direction.NORTH);\r\n\t\tLocation southNeighbor = map.getLocation(location, Direction.SOUTH);\r\n\t\tLocation eastNeighbor = map.getLocation(location, Direction.EAST);\r\n\t\tLocation westNeighbor = map.getLocation(location, Direction.WEST);\r\n\r\n\t\tArrayList<Location> neighbors = new ArrayList<Location>(4);\r\n\t\tneighbors.add(northNeighbor);\r\n\t\tneighbors.add(southNeighbor);\r\n\t\tneighbors.add(eastNeighbor);\r\n\t\tneighbors.add(westNeighbor);\r\n\r\n\t\tif (northNeighbor.getSite().owner == myID && southNeighbor.getSite().owner == myID &&\r\n\t\t\t\teastNeighbor.getSite().owner == myID && westNeighbor.getSite().owner == myID){\r\n\t\t\t\r\n\t\t\treturn true;\r\n\t\t}\r\n\t\t\treturn false;\r\n\r\n\t}", "@java.lang.Override\n public boolean hasRegionLocationMatrix() {\n return regionLocationMatrix_ != null;\n }", "@Test\n public void getCurrentLocationTest()\n {\n Location loc = new Location(\"doggo\", \"fluffy\", \"squishy\");\n boolean set = _city.setCurrentLocation(loc);\n assertTrue(set);\n Location res = _city.getCurrentLocation();\n assertEquals(loc, res);\n }", "public boolean isAtLocation(Location loc) {\n return loc.equals(loc);\n }", "@Override\n public void checkLocationValues(LocationAddressAndGeoDto dto) {\n if (locationService.findByLatAndLng(dto.getLat(), dto.getLng()).isPresent()) {\n throw new BadRequestException(ErrorMessage.LOCATION_IS_PRESENT);\n }\n }", "public boolean isSetLocNum() {\n\t\treturn this.locNum != null;\n\t}", "Location createLocation();", "Location createLocation();", "Location createLocation();", "private boolean canFindLocationAddress(){\n\n Geocoder geo = new Geocoder(this);\n\n //Get address provided for location as Address object\n try{\n List<Address> foundAddresses = geo.getFromLocationName(location.getAddress(),1);\n //Return true if an address is found\n return (foundAddresses.size() == 1);\n }\n catch(IOException e){\n e.printStackTrace();\n return false;\n }\n\n }", "public boolean hasRegionLocationMatrix() {\n return regionLocationMatrixBuilder_ != null || regionLocationMatrix_ != null;\n }", "public void checkLocation(int location2[])\n\t{\n\t\t\n\t\tif(this.eatable && this.location[0]==location2[0] && this.location[1]==location2[1])\n\t\t{\t\n\t\t\t\tthis.deadOrAlive=\"Dead\";\t\t\n\t\t}\n\t\telse\n\t\t\tthis.deadOrAlive=\"Alive\";\n\t\t\n\t}", "public Location inRange()\n\t{\n\t\tboolean equals = false;\n\t\tif(getGrid() == null)\n\t\t\treturn null;\n\t\tfor(int i = -5; i < 6; i++)\n\t\t{\n\t\t\tfor(int j = -5; j < 6; j++)\n\t\t\t{\t\t\t\t\n\t\t\t\tif(getGrid().isValid(new Location(getLocation().getRow() + i, getLocation().getCol() + j)))\n\t\t\t\t{\n\t\t\t\t\tif(getGrid().get(new Location(getLocation().getRow() + i, getLocation().getCol() + j)) instanceof User)\n\t\t\t\t\t{\n\t\t\t\t\t\tequals = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tif(!equals)\n\t\t{\n\t\t\tArrayList<Location> locs = getGrid().getEmptyAdjacentLocations(getLocation());\n\t\t\tif(locs.size() != 0)\n\t\t\t\t return locs.get( (int) (Math.random() * locs.size()));\n\t\t\telse\n\t\t\t\treturn getLocation();\n\t\t}\n\t\t\t\n\t\tLocation moveLocation;\n\t\t\n\t\t\n\t\tif(getGrid().getNeighbors(getLocation()).contains(getGrid().getUser()))\n\t\t{\n\t\t\tmoveLocation = getGrid().getUser().getLocation();\n\t\t}\n\t\telse\n {\n PathFinder a = new PathFinder(getGrid(),20);\n Path path = a.findPath(this, this.getGrid().getUser().getLocation().getRow(), this.getGrid().getUser().getLocation().getCol(),true);\n if(path.getLength() != 0)\n moveLocation = a.findPath(this, this.getGrid().getUser().getLocation().getRow(), this.getGrid().getUser().getLocation().getCol(),true).getStep(0);\n else\n moveLocation = null;\n\n }\n\n\t\tif(moveLocation == null)\n\t\t{\n\t\t\tArrayList<Location> locs = getGrid().getEmptyAdjacentLocations(getLocation());\n\t\t\tif(locs.size() != 0)\n\t\t\t\tmoveLocation = locs.get( (int) (Math.random() * locs.size()));\n\t\t\telse\n\t\t\t\tmoveLocation = getLocation();\n\t\t}\n\t\t\n\t\treturn moveLocation;\n\t}", "public boolean canGetLocation() {\r\n return canGetLocation;\r\n }", "public Location getEnterLocation() {\r\n return location;\r\n }", "@Test\r\n\tpublic void testLocation() {\r\n\t\tLocation l = new Location(3, 3);\r\n\t\tassertEquals(l.getCol(), 3);\r\n\t\tassertEquals(l.getRow(), 3);\r\n\t}", "Set<T> get(Location loc);", "private boolean checkExistLocationPoint(String point, String lPoint) {\n\n ArrayList<LocationPointModel> listLocationPoint ;\n\n listLocationPoint = point.equals(\"loading\")?listLoadingnPoint : listDestinationPoint ;\n\n for (LocationPointModel lPointModel:listLocationPoint) {\n if(lPointModel.locPoint.toLowerCase().trim().equals(lPoint.toLowerCase().trim()))\n {\n Toast.makeText(getActivity(),(point.equals(\"loading\")?\"Loading\":\"Destination\")+\" point already exists!\", Toast.LENGTH_SHORT).show();\n return true ;\n }\n }\n return false ;\n\n }", "public boolean isSetNrLoc() {\r\n return org.apache.thrift.EncodingUtils.testBit(__isset_bitfield, __NRLOC_ISSET_ID);\r\n }", "public Location getLocation(Location loc) {\n return getLocation(loc.getX(), loc.getY());\n}", "@Override\n public boolean isLocationEmpty(XYCoord coords)\n {\n return isLocationEmpty(null, coords.xCoord, coords.yCoord);\n }", "private InputLocation getOtherLocation( Object key )\n {\n return ( locations != null ) ? locations.get( key ) : null;\n }", "private ArrayList<Location> canMoveInit() {\n if (last == null) {\n ArrayList<Location> firstList = new ArrayList<>();\n firstList.add(getLocation());\n firstList.add(null);\n crossLocation.push(firstList);\n }\n if (crossLocation.empty() || isEnd) {\n return null;\n }\n Grid gr = getGrid();\n if (gr == null) {\n return null;\n }\n last = getLocation();\n return getValid(getLocation());\n }", "public boolean isMaybeSingleAllocationSite() {\n checkNotPolymorphicOrUnknown();\n return object_labels != null && newSet(getObjectSourceLocations()).size() == 1;\n }", "public boolean checkPill(Node location);", "boolean hasAuvLoc();", "protected boolean wouldBeNewCoordinator(Address potential_new_coord) {\n Address new_coord;\n\n if(potential_new_coord == null) return false;\n\n synchronized(members) {\n if(members.size() < 2) return false;\n new_coord=(Address)members.elementAt(1); // member at 2nd place\n return new_coord != null && new_coord.equals(potential_new_coord);\n }\n }", "public void assignAddingLocation(final boolean val) {\n addingLocation = val;\n }", "public boolean canGetLocation() {\r\n return this.canGetLocation;\r\n }", "Place resolveLocation( Place place );", "public void testSetLocation() {\n try {\n container.setLocation(null);\n fail(\"the location is null, IllegalArgumentException is expected.\");\n } catch (IllegalArgumentException e) {\n // expected\n }\n }", "private Address determineCoordinator() {\r\n synchronized(members) {\r\n for(Address member:members) {\r\n if(!local_addr.equals(member)) {\r\n return member;\r\n }\r\n }\r\n }\r\n return null;\r\n }", "private void saveLocation()\n {\n willLocationBeSaved = !willLocationBeSaved;\n }", "@Override\n\tpublic ArrayList<BoardLocation> findLocation() {\n\t\treturn null;\n\t}", "@Override\n public void onLocationChanged(Location location) {\n Location location1 = location;\n\n }", "private boolean knowMyLocation(LatLng myloc) {\n\t\tboolean isindoor = true;\n\t\tif((myloc.latitude>42.395||myloc.latitude<42.393) && (myloc.longitude>-72.528||myloc.longitude<-72.529)){\n\t\t\tisindoor = false;\n\t\t}\n\t\treturn isindoor;\n\t}", "Optional<VisitedLocation> getUserLocation(String userName) throws UserNotFoundException;", "public void gotLocation(Location location){\r\n \tif(location!=null){\r\n\t \tConstants.gpslat = location.getLatitude()+\"\";\r\n\t Constants.gpslng = location.getLongitude()+\"\";\r\n\t Log.d(\"location changed: lattitue & longitude\",Constants.gpslat+\" & \"+Constants.gpslng);\r\n \t}\r\n }", "@Override\r\n\t@Transactional\r\n\tpublic EmployeeMaster getLocationId(int locationid) {\r\n\t\t@SuppressWarnings(\"unchecked\")\r\n\t\tList<EmployeeMaster> getLocationId = sessionFactory.getCurrentSession()\r\n\t\t\t\t.createQuery(\"from EmployeeMaster where obsolete = 'N' and location_id =\" +locationid).list();\r\n\t\tif(getLocationId != null && !getLocationId.isEmpty()){\r\n\t\t\treturn getLocationId.get(0);\r\n\t\t}\r\n\t\treturn null;\r\n\t}", "public abstract boolean canMoveTo(Case Location);", "boolean hasUserLocationView();", "protected Location nextLocation()\n {\n // Get list of neighboring empty locations.\n ArrayList emptyNbrs = emptyNeighbors();\n\n // Remove the location behind, since fish do not move backwards.\n Direction oppositeDir = direction().reverse();\n Location locationBehind = environment().getNeighbor(location(),\n oppositeDir);\n emptyNbrs.remove(locationBehind);\n Debug.print(\"Possible new locations are: \" + emptyNbrs.toString());\n\n // If there are no valid empty neighboring locations, then we're done.\n if ( emptyNbrs.size() == 0 )\n return location();\n\n // Return a randomly chosen neighboring empty location.\n Random randNumGen = RandNumGenerator.getInstance();\n int randNum = randNumGen.nextInt(emptyNbrs.size());\n\t return (Location) emptyNbrs.get(randNum);\n }", "public void setLocation(String location);", "public static boolean isValid(Location l)\n\t{\n\t\treturn l != null || Maze.isInBounds(l);\n\t}", "public void setLocationId(String value) { _locationId = value; }", "private Location verifyLocation(Location location)\n {\n Block playerBlock = location.getBlock();\n World world = location.getWorld();\n\n if (rootC.getStringList(RootNode.WORLDS).contains(world.getName()))\n {\n // Only spawn monsters in normal world. End is crowded with endermen\n // and nether is too extreme anyway, add config later\n int lightLvl = location.getBlock().getLightFromSky();\n if (world.getEnvironment() == Environment.NORMAL\n && (location.getY() < rootC.getInt(RootNode.MORE_MONSTERS_MAX_Y) && lightLvl < 3))\n {\n // the playerBlock should always be air, but if the player stands\n // on a slab he actually is in the slab, checking a few blocks under because player could have jumped etc..\n if (playerBlock.getType().equals(Material.AIR))\n {\n for (int i = 0; i <= 3; i++)\n {\n playerBlock = location.getBlock().getRelative(BlockFace.DOWN, 1);\n\n if (playerBlock.getType().equals(Material.AIR))\n {\n location.subtract(0, 1, 0);\n playerBlock = location.getBlock();\n // the playerBlock is now the block where the monster\n // should spawn on, next up: verify block\n }\n else\n {\n break;\n }\n }\n }\n // no spawning on steps, stairs and transparent blocks\n if (playerBlock.getType().name().endsWith(\"STEP\") || playerBlock.getType().name().endsWith(\"STAIRS\")\n || playerBlock.getType().isTransparent() || !playerBlock.getType().isOccluding() || playerBlock.getType().equals(Material.AIR))\n {\n // don't spawn here\n return null;\n }\n\n if (quickVerify(location))\n return location;\n }\n\n }\n return null;\n }", "private void ensureLocationPointFound(Integer row, Integer column) {\n\n\t\tif (row == null || column == null || row <= 0 || column <= 0) {\n\n\t\t\tthrow new SomethingWentWrongException(\"Wrong Location Point\");\n\t\t}\n\t}", "@Override\n public boolean equals(Object o) {\n if ((o == null) || !(o instanceof Location)) {\n return false;\n }\n\n // Check x- and y-coordinates.\n Location other = (Location) o;\n if ((this.x == other.x) && (this.y == other.y)) {\n return true;\n }\n\n return false;\n }", "@Override\n public boolean isLocationEmpty(Unit unit, XYCoord coords)\n {\n return isLocationEmpty(unit, coords.xCoord, coords.yCoord);\n }" ]
[ "0.75946355", "0.67540824", "0.6509028", "0.6509028", "0.6374776", "0.6369616", "0.62951946", "0.6275729", "0.62536806", "0.6168746", "0.61548114", "0.6001782", "0.59637386", "0.59273773", "0.59021795", "0.5833946", "0.5793509", "0.5738115", "0.5718358", "0.56969386", "0.56787914", "0.56742495", "0.56636167", "0.56626594", "0.5657394", "0.56464136", "0.56451553", "0.5634125", "0.5624422", "0.5619966", "0.56095165", "0.55755377", "0.55672413", "0.55670047", "0.55631787", "0.55568147", "0.55446064", "0.5517615", "0.5502818", "0.548169", "0.54752064", "0.5471747", "0.5457981", "0.54463094", "0.54396814", "0.54186255", "0.54111814", "0.5410274", "0.5407457", "0.54019415", "0.53998494", "0.53993654", "0.5387743", "0.5383857", "0.53725046", "0.53667873", "0.53565395", "0.5342731", "0.53404045", "0.53404045", "0.53404045", "0.5338721", "0.53318685", "0.5331429", "0.53216356", "0.5318496", "0.5296008", "0.52861255", "0.5281032", "0.5279175", "0.5277412", "0.5257044", "0.525017", "0.5250074", "0.52435035", "0.5242452", "0.52380323", "0.5232011", "0.5230862", "0.52286595", "0.52275974", "0.5215317", "0.5211417", "0.52107996", "0.5208124", "0.51976407", "0.51965135", "0.5187006", "0.51827854", "0.51807696", "0.5180617", "0.5180589", "0.5178163", "0.51717144", "0.51667553", "0.51616263", "0.51584536", "0.5153574", "0.51522076", "0.51445436", "0.5142949" ]
0.0
-1
Gets a future that completes once the task execution reaches a terminal state. The future will be completed with specific state that the execution reached. This future is always completed from the job master's main thread.
@Override public CompletableFuture<ExecutionState> getTerminalStateFuture() { return terminalStateFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean get_task_completion()\n {\n return task_completion_boolean;\n }", "@Test\n public void thenApply() {\n CompletableFuture<String> cf = CompletableFuture.completedFuture(\"message\")\n .thenApply(s -> {\n assertFalse(Thread.currentThread().isDaemon());\n System.out.println(Thread.currentThread().getName());\n return s.toUpperCase();\n });\n System.out.println(Thread.currentThread().getName());\n assertEquals(\"MESSAGE\", cf.getNow(null));\n }", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n CompletableFuture<String> future = CompletableFuture.supplyAsync(new Supplier<String>() {\n @Override\n public String get() {\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n throw new IllegalStateException(e);\n }\n return \"Result of the asynchronous computation\";\n }\n });\n\n// Block and get the result of the Future\n String result = future.get();\n System.out.println(result);\n }", "public static void main(String[] args) throws InterruptedException {\n\r\n FutureService futureService = new FutureService();\r\n Future<String> future = futureService.submit(() -> {\r\n try {\r\n Thread.sleep(10_000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n return \"FINISH\";\r\n }, System.out::println);\r\n System.out.println(\"================\");\r\n System.out.println(\"do other thing.\");\r\n Thread.sleep(1_000L);\r\n System.out.println(\"================\");\r\n\r\n// System.out.println(future.get());\r\n }", "void Finished(Task task, Action<TResult> lastFinishedAction);", "@Override\n public boolean isDone() {\n return future.isDone();\n }", "@Override\r\n\tpublic boolean finishCurrentTask() {\r\n\t\treturn finished;\r\n\t}", "CompletableFuture<Void> next();", "public static <R> DurableBackgroundTaskResult<R> complete() {\n return new DurableBackgroundTaskResult<>(COMPLETED, null, null);\n }", "public CompletionState\n getCompletionState() \n {\n return CompletionState.Unfinished;\n }", "public Status waitUntilFinished();", "public boolean getStatus() {\n return this.isDone;\n }", "public void awaitTermination() throws InterruptedException, ExecutionException {\n executor.awaitTermination(1, TimeUnit.SECONDS);\n if (future != null) {\n future.get();\n }\n }", "public void testThread() {\n ExecutorService executor = Executors.newSingleThreadExecutor();\n // result of the thread\n Future<String> future = null;\n\n future = executor.submit(new TestTask());\n try {\n String result = future.get(2000, TimeUnit.MILLISECONDS);\n System.out.println(result);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n } catch (TimeoutException e) {\n System.out.println(\"the execution was terminated after 5 s\");\n boolean cancelled = future.cancel(true);\n System.out.println(cancelled);\n\n\n }\n\n try {\n System.out.println(\"attempt to shutdown executor\");\n executor.shutdown();\n executor.awaitTermination(5, TimeUnit.SECONDS);\n }\n catch (InterruptedException e) {\n System.err.println(\"tasks interrupted\");\n }\n finally {\n if (!executor.isTerminated()) {\n System.err.println(\"cancel non-finished tasks\");\n }\n executor.shutdownNow();\n System.out.println(\"shutdown finished\");\n }\n\n }", "public boolean isComplete() {\n return future != null && future.isDone();\n }", "public static void main(String[] args) throws Exception {\n FutureTask<String> futureTask = new FutureTask<String>(new Callable<String>() {\n @Override\n public String call() throws Exception {\n Thread.sleep(10000);\n System.out.println(\"thread done ...\");\n return \"hello world\";\n }\n });\n futureTask.run();\n// executorService.submit(futureTask);\n System.out.println(futureTask.get());\n// executorService.shutdown();\n }", "com.google.dataflow.v1beta3.ExecutionState getState();", "public boolean isDone(){\r\n\t\tif(worker.getState()==Thread.State.TERMINATED) return true;\r\n\t\treturn false;\r\n\t}", "private synchronized ListenableFuture<?> getFutureStateChange()\n {\n if (!exchangeClient.isClosed()) {\n return exchangeClient.isBlocked();\n }\n\n // otherwise, wait for the query to finish\n queryManager.recordHeartbeat(queryId);\n try {\n return queryDoneFuture(queryManager.getQueryState(queryId));\n }\n catch (NoSuchElementException e) {\n return immediateFuture(null);\n }\n }", "Future<T> then(Runnable result);", "public boolean isDone() { return true; }", "public boolean isDone(){\n return status;\n }", "@Override\n public boolean isFinished() {\n return isDone;\n }", "@Override\n public boolean isFinished() {\n return isDone;\n }", "public StatusEnum solve()\n {\n while (status == StatusEnum.RUNNING)\n {\n step();\n }\n return status;\n }", "public synchronized Status getStatus() {\n return execStatus;\n }", "public void completeTask() {\n completed = true;\n }", "@Test\n @DisplayName(\"Future with result\")\n void testFutureWithResult() throws ExecutionException, InterruptedException {\n final ExecutorService executor = Executors.newSingleThreadExecutor();\n final Future<String> future = executor.submit(this::getThreadName);\n\n // check if the future has already been finished. this isn't the case since the above callable sleeps for one second before returning the integer\n assertFalse(future.isDone());\n // calling the method get() blocks the current thread and waits until the callable completes before returning the actual result\n final String result = future.get();\n // now the future is finally done\n assertTrue(future.isDone());\n\n assertThat(result).matches(Pattern.compile(\"Thread \\\"pool-\\\\d-thread-\\\\d\\\"\"));\n }", "public E redo() {\n if (canRedo()) {\n past.addLast(present);\n present = future.pollLast();\n }\n return getCurrentState();\n }", "<T> T endProcess(AsyncResult<T> asyncResult) throws ExecutionException, InterruptedException;", "@DISPID(18)\r\n\t// = 0x12. The runtime will prefer the VTID if present\r\n\t@VTID(20)\r\n\tjava.lang.String completionStatus();", "public final int awaitExit() throws InterruptedException {\n int result = doAwaitExit();\n stopped();\n return result;\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public abstract boolean terminal();", "CompletableFuture<?> submit(Runnable request);", "protected abstract int doAwaitExit() throws InterruptedException;", "public String getDone() {\n return (isDone ? \"1\" : \"0\");\n }", "public boolean hasFuture();", "public interface _11_shutdown_on_success {\n static void main(String[] args) throws InterruptedException, ExecutionException {\n try (var scope = new StructuredTaskScope.ShutdownOnSuccess<Integer>()) {\n scope.fork(() -> {\n Thread.sleep(1_000);\n return 1;\n });\n scope.fork(() -> {\n Thread.sleep(42);\n return 2;\n });\n var result = scope.join().result();\n System.out.println(result);\n }\n }\n}", "public boolean isDone();", "public boolean isDone();", "@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "TaskStatus getStatus();", "public TaskState getTaskState() {\n return this.taskState;\n }", "public boolean getDone() {\n return isDone;\n }", "public boolean isDone() { return false; }", "@Override\n \t\t\t\tpublic void operationComplete(ChannelFuture future) throws Exception {\n \t\t\t\t\tif (future.isSuccess()) {\n \t\t\t\t\t\tdetermineNextChannelAction(channel, currentSequenceNumber + 1, follow);\n \t\t\t\t\t}\n \t\t\t\t}", "boolean getFinished();", "public Task markAsDone() {\n isDone = true;\n status = \"\\u2713\"; // A tick symbol indicating the task is done.\n\n return this;\n }", "public Long doInBackground() {\n\t\treturn nthFib = fibonacci(n);\n\t}", "@Override\n public boolean isDone() {\n return done;\n }", "public String getProcessCompleteQueueName()\n {\n return DONE; \n }", "@Test\n public void testUnfinishedTrace() throws InterruptedException\n {\n final CountDownLatch cdl = new CountDownLatch(1);\n\n final SettablePromise<Void> promise = Promises.settable();\n\n final Task<Void> task = new BaseTask<Void>()\n {\n @Override\n public Promise<Void> run(final Context context) throws Exception\n {\n cdl.countDown();\n\n // Return a promise that won't be satisfied until after out test\n return promise;\n }\n };\n\n getEngine().run(task);\n\n assertTrue(cdl.await(5, TimeUnit.SECONDS));\n\n final Trace trace = task.getTrace();\n assertShallowTraceMatches(task, trace);\n\n // Finish task\n promise.done(null);\n }", "public static void main(String[] args)\n {\n ExecutorService executorService = Executors.newCachedThreadPool();\n Future<Integer> future = executorService.submit(new Callable<Integer>() {\n public Integer call()\n {\n Random random = new Random();\n int duration = random.nextInt(500);\n System.out.println(\"Starting...\");\n try {\n Thread.sleep(duration);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n System.out.println(\"Finished\");\n return duration;\n }\n });\n executorService.shutdown();\n try {\n System.out.println(\"result is : \"+future.get());\n\n\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n System.out.println(\"future object done? :\"+future.isDone());\n System.out.println(\"future object cancelled? :\"+future.isCancelled());\n }", "public boolean isDone()\r\n/* 69: */ {\r\n/* 70:106 */ return isDone0(this.result);\r\n/* 71: */ }", "private void supplyAsyncThenApply() {\n CompletableFuture<String> completableFuture\n = CompletableFuture.supplyAsync(() -> {\n sleep();\n return \"Hello from \" + Thread.currentThread().getName();\n });\n\n CompletableFuture<String> future = completableFuture\n .thenApply(s -> s + \" World from \" + Thread.currentThread().getName());\n\n try {\n String s = future.get();\n System.out.println(\"supplyAsyncThenApply : \" + s);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "public boolean isDone() {\n return done;\n }", "public String getStatus() {\n return isDone ? \"1\" : \"0\";\n }", "public boolean isDone() {\n return isDone;\n }", "public boolean isDone() {\n return isDone;\n }", "public boolean isDone() {\n return isDone;\n }", "@Override\n public TaskForceState getState() {\n return TaskForceState.ACTIVE;\n }", "private ISuspendableSchedulableProcess currentStep() {\n if (!processQ_NonInterruptable.isEmpty()) {\r\n return processQ_NonInterruptable.peek();\r\n } else {\r\n return processQ_Interruptable.peek();\r\n }\r\n }", "public boolean isDone() {\r\n return isDone;\r\n }", "public final boolean isDone() {\n return TrustedListenableFutureTask.this.isDone();\n }", "@Override\n public boolean isDone() {\n return this.isDone;\n }", "CompletableFuture<CalculationResult> goInfiniteAsync();", "public synchronized void execute() {\n\t\tthis.timeoutFuture = SCHEDULER.schedule(this::processTimeout, 5, TimeUnit.SECONDS);\n\t\tthis.statuses.put(this.localNode.getInfo(), NodeStatus.Unasked);\n\t\tcheckFinishAndProcess();\n\t}", "public @NonNull CompletableFuture<?> ready() {\n return this.readyFuture;\n }", "@Test\n public void testFutureWithoutDone() throws Exception {\n Callable<String> task = new Callable<String>() {\n public String call() throws Exception {\n // do something that takes some time\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }\n };\n\n // this is the thread pool we will use\n ExecutorService executor = Executors.newCachedThreadPool();\n\n // now submit the task to the thread pool\n // and get the Future handle back so we can later get the result\n LOG.info(\"Submitting task to ExecutorService\");\n Future<String> future = executor.submit(task);\n LOG.info(\"Task submitted and we got a Future handle\");\n\n // instead of testing when we are done we can just get\n // the result and it will automatic wait until the task is done\n String answer = future.get();\n LOG.info(\"The answer is: \" + answer);\n }", "@SuppressWarnings(\"unchecked\")\n public static <T> State<T> finished() {\n return (State<T>)FINISHED;\n }", "@Override\n public String markComplete() {\n if (this.isDone) {\n return Ui.getTaskAlrCompletedMessage(this);\n } else {\n this.isDone = true;\n return Ui.getMarkCompleteEventMessage(this);\n }\n }", "@Test\n public void testFutureWithDone() throws Exception {\n Callable<String> task = new Callable<String>() {\n public String call() throws Exception {\n // do something that takes some time\n LOG.info(\"Starting to process task\");\n Thread.sleep(5000);\n LOG.info(\"Task is now done\");\n return \"Camel rocks\";\n }\n };\n\n // this is the thread pool we will use\n ExecutorService executor = Executors.newCachedThreadPool();\n\n // now submit the task to the thread pool\n // and get the Future handle back so we can later get the result\n LOG.info(\"Submitting task to ExecutorService\");\n Future<String> future = executor.submit(task);\n LOG.info(\"Task submitted and we got a Future handle\");\n\n // test when we are done\n boolean done = false;\n while (!done) {\n done = future.isDone();\n LOG.info(\"Is the task done? \" + done);\n if (!done) {\n Thread.sleep(2000);\n }\n }\n\n // and get the answer\n String answer = future.get();\n LOG.info(\"The answer is: \" + answer);\n }", "@Override\n\tprotected void done() {\n\t\tif (isCancelled()) {\n\t\t\tSystem.out.printf(\"%s: Has been canceled\\n\", name);\n\t\t} else {\n\t\t\tSystem.out.printf(\"%s: Has finished\\n\", name);\n\t\t}\n\t}", "public Boolean getTaskCompletedOption() {\n return (Boolean) commandData.get(CommandProperties.TASKS_COMPLETED_OPTION);\n }", "public int waitFor() throws Exception {\n \n int result = future.get();\n service.shutdown();\n return result;\n }", "boolean isDone();", "public boolean is_completed();", "public int getDone() {\n\t\treturn done;\n\t}", "public ExecutionStatus status() {\n return this.status;\n }", "public static void main(String[] args) {\n System.out.println(\"Begin\");\n //create().thenAccept(data-> print(data));\n //CompletableFuture<Integer> cFuture=create();\n CompletableFuture<Integer> cFuture=new CompletableFuture<>();\n process(cFuture);\n try {\n Thread.sleep(2000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n cFuture.complete(3);\n System.out.println(\"END\");\n }", "public final CountedCompleter<?> nextComplete()\n/* */ {\n/* */ CountedCompleter localCountedCompleter;\n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* */ \n/* 675 */ if ((localCountedCompleter = this.completer) != null) {\n/* 676 */ return localCountedCompleter.firstComplete();\n/* */ }\n/* 678 */ quietlyComplete();\n/* 679 */ return null;\n/* */ }", "Future_<V> take() throws InterruptedException;", "public static Task getCurrentTask(Fiber paramFiber)\n/* 194 */ throws Pausable { return null; }", "public boolean getIsDone() {\n return this.isDone;\n }", "public abstract boolean isCompleted();", "public synchronized boolean getFinished(){\n return finished;\n }", "public boolean isDone(){\n return done;\n }", "public String getIsDone() {\n if (isDone) {\n return \"1\";\n } else {\n return \"0\";\n }\n }", "public boolean getDone(){\r\n\t\treturn done;\r\n\t}", "public boolean isFinished();", "@Override\n public boolean isFinished() {\n return complete;\n }", "public abstract Task markAsDone();", "public boolean isDone() {\n return done;\n }", "public boolean isDone() {\n return done;\n }", "private synchronized Task takeTask() {\n while (true) {\n Task task = null;\n if (runningActions < maxConcurrentActions) {\n task = runnableActions.poll();\n }\n if (task == null) {\n task = runnableTasks.poll();\n }\n\n if (task != null) {\n runningTasks++;\n if (task.isAction()) {\n runningActions++;\n }\n return task;\n }\n\n if (isExhausted()) {\n return null;\n }\n\n try {\n wait();\n } catch (InterruptedException e) {\n throw new AssertionError();\n }\n }\n }", "public CompletedToDoTask finish() {\n\t\treturn new CompletedToDoTask(this);\n\t}", "public boolean isDone() {\n return this.done;\n }", "public void waitCompletion()\n {\n\n if (isThreadEnabled())\n {\n try\n {\n executionThread.join();\n }\n catch (InterruptedException ex)\n {\n throw new RuntimeException(ex);\n }\n }\n }" ]
[ "0.5383916", "0.537811", "0.53719205", "0.5153612", "0.5015007", "0.5005458", "0.49692452", "0.49584407", "0.49546483", "0.49535778", "0.49320683", "0.49134496", "0.4890702", "0.48648092", "0.4845038", "0.48345283", "0.48094434", "0.48063812", "0.47968423", "0.4790497", "0.4786094", "0.47748113", "0.4753376", "0.4753376", "0.47522175", "0.47001544", "0.4691766", "0.46885934", "0.46871313", "0.46862325", "0.4679232", "0.46708316", "0.46499503", "0.46412027", "0.46382606", "0.46332544", "0.46277416", "0.46104372", "0.4604916", "0.46006805", "0.46006805", "0.4586686", "0.45667094", "0.45646268", "0.45564336", "0.45507896", "0.4546846", "0.45467338", "0.45382267", "0.45369697", "0.45367944", "0.45338657", "0.45270178", "0.4517295", "0.45051768", "0.45005792", "0.44851366", "0.44712326", "0.4471143", "0.4463364", "0.4463364", "0.4463364", "0.44622737", "0.4461661", "0.44612893", "0.44527352", "0.4450623", "0.4449164", "0.4447233", "0.44438943", "0.4441875", "0.44408232", "0.44403708", "0.4436325", "0.44277292", "0.44275138", "0.44255766", "0.44245678", "0.44185358", "0.4415644", "0.44129232", "0.4411404", "0.4409926", "0.44069332", "0.43997046", "0.43967223", "0.43920383", "0.4390783", "0.43895423", "0.43863928", "0.43819216", "0.43745494", "0.43729094", "0.4361862", "0.43516877", "0.43516877", "0.43463838", "0.43461633", "0.43364725", "0.43233502" ]
0.6890561
0
Gets the release future which is completed once the execution reaches a terminal state and the assigned resource has been released. This future is always completed from the job master's main thread.
public CompletableFuture<?> getReleaseFuture() { return releaseFuture; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void releaseAssignedResource(@Nullable Throwable cause) {\n\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\tif (slot != null) {\n\t\t\tComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tgetVertex().getExecutionGraph().getJobMasterMainThreadExecutor();\n\n\t\t\tslot.releaseSlot(cause)\n\t\t\t\t.whenComplete((Object ignored, Throwable throwable) -> {\n\t\t\t\t\tjobMasterMainThreadExecutor.assertRunningInMainThread();\n\t\t\t\t\tif (throwable != null) {\n\t\t\t\t\t\treleaseFuture.completeExceptionally(throwable);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treleaseFuture.complete(null);\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t} else {\n\t\t\t// no assigned resource --> we can directly complete the release future\n\t\t\treleaseFuture.complete(null);\n\t\t}\n\t}", "public Release release() {\n if (_release == null)\n _release = new Release(this, Keys.BCC_MANIFEST_RELEASE_ID_FK);\n\n return _release;\n }", "@Override\n\tpublic void release() {\n\t\tmRendererTask.release();\n\t\tsynchronized (mSync) {\n\t\t\tisRunning = false;\n\t\t\tmSync.notifyAll();\n\t\t}\n//\t\tif (DEBUG) Log.v(TAG, \"release:finished\");\n\t}", "public Object getReleased() {\n\t\treturn this.released;\n\t}", "private DispatchTask next()\n {\n synchronized (m_lock)\n {\n while (null == m_runnable)\n {\n if (m_released)\n {\n return null;\n }\n\n try\n {\n m_lock.wait();\n } catch (InterruptedException e)\n {\n // Not needed\n }\n }\n\n return m_runnable;\n }\n }", "@Test\n public void canObtainOwnRelease() throws Exception {\n final Release release = release();\n final RtReleaseAsset asset = new RtReleaseAsset(\n new FakeRequest(),\n release,\n 1\n );\n MatcherAssert.assertThat(\n asset.release(),\n Matchers.is(release)\n );\n }", "public synchronized void release() {\n m_available = true;\n notify();\n }", "void _release();", "public static void main(String[] args) throws InterruptedException, ExecutionException {\n CompletableFuture<String> future = CompletableFuture.supplyAsync(new Supplier<String>() {\n @Override\n public String get() {\n try {\n TimeUnit.SECONDS.sleep(1);\n } catch (InterruptedException e) {\n throw new IllegalStateException(e);\n }\n return \"Result of the asynchronous computation\";\n }\n });\n\n// Block and get the result of the Future\n String result = future.get();\n System.out.println(result);\n }", "@Override\n\tpublic V get() {\n\t\tV result = null;\n\t\ttry {\n\t\t\tresult = fTask.get();\n\t\t} catch (InterruptedException | ExecutionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn result;\n\t}", "public K release()\n {\n return (K) destroy().getResponse();\n }", "@Override\n\tpublic void setReleaseOnFinish(boolean isRelease) {\n\t\t\n\t}", "Future_<V> take() throws InterruptedException;", "public String getRelease()\n {\n return release;\n }", "@Override\n\t public void onRelease() {\n\n\t }", "public abstract void release();", "public abstract void release();", "public abstract void release();", "public void ReleaseTask() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(\"//input[@id='checkAll_c0_dataForm:lv1:dataTable']\", \"XPATH\", \"CheckBox\");\n\t\tThread.sleep(2000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"btnRelease\"), \"Release Button\");\n\t\tThread.sleep(1000);\n\t}", "private Resource deployReleasedResource(Resource releasedResource) throws Exception {\n List<Resource> deployedResources = findResources(m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (deployedResources.size() == 0) {\n System.out.println(\"Uploading released resource: \" + getString(releasedResource));\n List<Resource> copied = copyResources(m_releaseRepo, m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (copied.size() != 1) {\n throw new IllegalStateException(\"Expected one result after copy: \" + getString(releasedResource));\n }\n return copied.get(0);\n }\n else {\n System.out.println(\"Released resource already deployed: \" + getString(releasedResource));\n return deployedResources.get(0);\n }\n }", "@Override\n public Object get() throws InterruptedException, ExecutionException {\n return getSafely();\n }", "public String gettRelease() {\n return tRelease;\n }", "public boolean isReadyForRelease() {\r\n return true;\r\n }", "public void release() {\r\n return;\r\n }", "public boolean isReleased() {\n return released;\n }", "public Locks release() {\n\t\tif( DB.getConf().getBoolean(\"locks.disabled\")) return this;\n\t\tproxy.tell( new ReleaseLock(lockId), ActorRef.noSender());\n\t\treturn this;\n\t}", "CompletableFuture<?> submit(Runnable request);", "public java.lang.String getRelease()\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(RELEASE$4, 0);\r\n if (target == null)\r\n {\r\n return null;\r\n }\r\n return target.getStringValue();\r\n }\r\n }", "private static Release release() throws Exception {\n final Release release = Mockito.mock(Release.class);\n final Repo repo = new MkGithub(\"john\").repos().create(\n new Repos.RepoCreate(\"blueharvest\", false)\n );\n Mockito.doReturn(repo).when(release).repo();\n Mockito.doReturn(1).when(release).number();\n return release;\n }", "public boolean getIsReleased() {\n\t\treturn _isReleased;\n\t}", "public boolean isReleasable() { return isDone(); }", "public void releaseDeferredLock() {\r\n return;\r\n }", "int release();", "public void awaitTermination() throws InterruptedException, ExecutionException {\n executor.awaitTermination(1, TimeUnit.SECONDS);\n if (future != null) {\n future.get();\n }\n }", "public PPMFile getfinishedImage() {\n while (finishedImage == null) {\n // if you call this before you know we're ready due to the semaphore, having to spinlock is your own fault\n }\n\n return finishedImage;\n }", "synchronized boolean releaseLock(int leaseIdToRelease, RemoteThread remoteThread) {\n return releaseLock(leaseIdToRelease, remoteThread, true);\n }", "@Test\n public void testTake() {\n \tBoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n try {\n Callable<String> c = new StringTask();\n ecs.submit(c);\n Future<String> f = ecs.take();\n Assert.assertTrue(f.isDone());\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "public void release() {\n }", "public void release();", "public void release();", "public void acquire() {\r\n return;\r\n }", "public final void release() {\n explicitlyLocked = false;\n byteBase.unlock();\n }", "@Override\n\tpublic CompletableFuture<ExecutionState> getTerminalStateFuture() {\n\t\treturn terminalStateFuture;\n\t}", "@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\t\t\n\t}", "public org.apache.xmlbeans.XmlString xgetRelease()\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(RELEASE$4, 0);\r\n return target;\r\n }\r\n }", "public ReleaseRecord getRelease() { return (ReleaseRecord)Database.getReleaseIndex().getRecord(releaseId); }", "@Override\n public void release() {\n \n }", "@Override\n\tpublic void release() {\n\t\t\n\t}", "public void _release() {\n throw new NO_IMPLEMENT(reason);\n }", "public void hydrogen(Runnable releaseHydrogen) throws InterruptedException {\n h.acquire();\n releaseHydrogen.run();\n try {\n c.await();\n } catch (BrokenBarrierException e) {\n e.printStackTrace();\n }\n }", "@Override\r\n\tpublic void release()\r\n\t{\n\t}", "private void supplyAsyncThenApply() {\n CompletableFuture<String> completableFuture\n = CompletableFuture.supplyAsync(() -> {\n sleep();\n return \"Hello from \" + Thread.currentThread().getName();\n });\n\n CompletableFuture<String> future = completableFuture\n .thenApply(s -> s + \" World from \" + Thread.currentThread().getName());\n\n try {\n String s = future.get();\n System.out.println(\"supplyAsyncThenApply : \" + s);\n } catch (InterruptedException e) {\n e.printStackTrace();\n } catch (ExecutionException e) {\n e.printStackTrace();\n }\n }", "public void release() {\n\t\t\n\t}", "@Override\n public boolean release(ResourceConsumer consumer) {\n return false;\n }", "@Override\n\tpublic void release() {\n\n\t}", "@Override\n\tpublic void release() {\n\n\t}", "@Override\n\tpublic void release() {\n\t}", "@Override\n public void release() {\n }", "protected void release()\n {\n }", "public void release() {\n }", "@Override\n\tpublic void onRelease(RobotAPI arg0) {\n\n\t}", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n try {\n\n DefaultArtifact artifact = new DefaultArtifact(\n getProject().getGroupId(),\n getProject().getArtifactId(),\n artifactHandlerManager\n .getArtifactHandler(getProject().getPackaging())\n .getExtension(),\n \"[0,)\");\n\n getLog().debug(\"Artifact for lookup released version: \" + artifact);\n VersionRangeRequest request =\n new VersionRangeRequest(artifact, getProject().getRemoteProjectRepositories(), null);\n\n VersionRangeResult versionRangeResult = repoSystem.resolveVersionRange(repoSession, request);\n\n getLog().debug(\"Resolved versions: \" + versionRangeResult.getVersions());\n\n DefaultArtifactVersion releasedVersion = versionRangeResult.getVersions().stream()\n .filter(v -> !ArtifactUtils.isSnapshot(v.toString()))\n .map(v -> new DefaultArtifactVersion(v.toString()))\n .max(DefaultArtifactVersion::compareTo)\n .orElse(null);\n\n getLog().debug(\"Released version: \" + releasedVersion);\n\n if (releasedVersion != null) {\n // Use ArtifactVersion.toString(), the major, minor and incrementalVersion return all an int.\n String releasedVersionValue = releasedVersion.toString();\n\n // This would not always reflect the expected version.\n int dashIndex = releasedVersionValue.indexOf('-');\n if (dashIndex >= 0) {\n releasedVersionValue = releasedVersionValue.substring(0, dashIndex);\n }\n\n defineVersionProperty(\"version\", releasedVersionValue);\n defineVersionProperty(\"majorVersion\", releasedVersion.getMajorVersion());\n defineVersionProperty(\"minorVersion\", releasedVersion.getMinorVersion());\n defineVersionProperty(\"incrementalVersion\", releasedVersion.getIncrementalVersion());\n defineVersionProperty(\"buildNumber\", releasedVersion.getBuildNumber());\n defineVersionProperty(\"qualifier\", releasedVersion.getQualifier());\n } else {\n getLog().debug(\"No released version found.\");\n }\n\n } catch (VersionRangeResolutionException e) {\n if (getLog().isWarnEnabled()) {\n getLog().warn(\"Failed to retrieve artifacts metadata, cannot resolve the released version\");\n }\n }\n }", "void release()\n {\n synchronized (m_lock)\n {\n m_released = true;\n\n m_lock.notifyAll();\n }\n }", "public @NonNull CompletableFuture<?> ready() {\n return this.readyFuture;\n }", "@Override\n public Completable closeAsync() {\n return defer(() -> {\n try {\n applicationHandler.onShutdown(container);\n return completed();\n } catch (final Throwable t) {\n return failed(t);\n }\n });\n }", "V m19258a() throws CancellationException, ExecutionException, InterruptedException {\n acquireSharedInterruptibly(-1);\n return getValue();\n }", "public static void release() {\n\t}", "public Status waitUntilFinished();", "@Override\n public void release() {\n }", "final void internalRelease() {\n if(!explicitlyLocked) {\n byteBase.unlock();\n }\n }", "void release();", "void release();", "public Status getLastReleaseStatus() {\n\treturn Status.toStatus(resolver.getLastReleaseStatus());\n }", "public static native void release();", "private Runnable pollSubmission() {\n StealingPool p = pool;\n while (p.hasQueuedSubmissions()) {\n Runnable t;\n if (tryActivate() && (t = p.pollSubmission()) != null)\n return t;\n }\n return null;\n }", "protected abstract int doAwaitExit() throws InterruptedException;", "final Runnable locallyDeqTask() {\n Runnable work = dispatchQueue.poll();\n if( work!=null ) {\n return work;\n }\n int b;\n while (sp != (b = base)) {\n if (tryActivate()) {\n Runnable[] q = queue;\n int i = (q.length - 1) & b;\n Runnable t = q[i];\n if (t != null && casSlotNull(q, i, t)) {\n base = b + 1;\n return t;\n }\n }\n }\n return dispatchQueue.getSourceQueue().poll();\n }", "@Test\n public void testTakeWillWaitTillSubmitCompletes() {\n final BoundedCompletionService<String> ecs = new BoundedCompletionService<String>(\n new ExecutorCompletionService<String>(e));\n final int delaySecs = 1;\n try {\n Assert.assertNull(ecs.poll());\n Thread t = new Thread() {\n @Override\n public void run() {\n ecs.submit(new StringDelayableCallable(\"String delayab\", delaySecs));\n }\n };\n t.start();\n long t1 = System.nanoTime();\n Future<String> f = ecs.take();\n Assert.assertNotNull(f);\n Assert.assertTrue(f.isDone());\n long t2 = System.nanoTime();\n System.out.println(t2 - t1);\n Assert.assertTrue(t2 > t1 + delaySecs * 100000000L); // Need to check that take will wait till submit completes\n } catch (Exception ex) {\n unexpectedException();\n }\n }", "Future<T> then(Runnable result);", "public int waitFor() throws Exception {\n \n int result = future.get();\n service.shutdown();\n return result;\n }", "public void releaseManualCommand() {\n try {\n RequestUtils.writeProperty(DeviceService.localDevice,bacnetDevice,getObjectIdentifier(),\n PropertyIdentifier.presentValue,null,new PriorityValue(new Null()),\n new UnsignedInteger(8));\n LOG.info(\"Release: \" + getObjectIdentifier());\n } catch (BACnetException bac) {\n LOG.warn(\"Cant release: \" + getObjectIdentifier().toString());\n }\n }", "public void uponRelease() {\n try {\n\n int size = waitingList.size();\n if (size > 0) {\n int random = (int) (stream.getNumber() * size);\n NodeThread next = (NodeThread)waitingList.get(random);\n next.wakeUp();\n }\n\n } catch (IOException e) {}\n }", "public String getReleaseFlag() {\r\n\t\treturn releaseFlag;\r\n\t}", "public boolean get_task_completion()\n {\n return task_completion_boolean;\n }", "CompletableFuture<Void> next();", "public void release() {\n\t\tsynchronized (this) {\n\t\t\tcount++;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "public static void release(int resourceType, int amountReleased, Task currTask){\n currTask.resourceHoldings[resourceType - 1] -= amountReleased;\n releaseArr[resourceType - 1] += amountReleased;\n }", "CompletableFuture<String> getHardwareRevision();", "public java.lang.Integer getReleaseId() {\n return releaseId;\n }", "protected abstract long waitOnQueue();", "public ChannelProgressivePromise awaitUninterruptibly()\r\n/* 113: */ {\r\n/* 114:144 */ super.awaitUninterruptibly();\r\n/* 115:145 */ return this;\r\n/* 116: */ }", "@Override\r\n\tpublic void release() {\n\r\n\t}", "public void finalize() {\n acquire.release();\n }", "public void finalize() {\n acquire.release();\n }", "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n recursion = 0;\n ignoreForRecovery = false;\n\n decUsage();\n }", "public static void main(String[] args) throws InterruptedException {\n\r\n FutureService futureService = new FutureService();\r\n Future<String> future = futureService.submit(() -> {\r\n try {\r\n Thread.sleep(10_000);\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n return \"FINISH\";\r\n }, System.out::println);\r\n System.out.println(\"================\");\r\n System.out.println(\"do other thing.\");\r\n Thread.sleep(1_000L);\r\n System.out.println(\"================\");\r\n\r\n// System.out.println(future.get());\r\n }", "void handleSubchannelTerminated() {\n executorPool.returnObject(executor);\n terminatedLatch.countDown();\n }", "@Test\n @DisplayName(\"Future with result\")\n void testFutureWithResult() throws ExecutionException, InterruptedException {\n final ExecutorService executor = Executors.newSingleThreadExecutor();\n final Future<String> future = executor.submit(this::getThreadName);\n\n // check if the future has already been finished. this isn't the case since the above callable sleeps for one second before returning the integer\n assertFalse(future.isDone());\n // calling the method get() blocks the current thread and waits until the callable completes before returning the actual result\n final String result = future.get();\n // now the future is finally done\n assertTrue(future.isDone());\n\n assertThat(result).matches(Pattern.compile(\"Thread \\\"pool-\\\\d-thread-\\\\d\\\"\"));\n }", "public ChannelProgressivePromise unvoid()\r\n/* 141: */ {\r\n/* 142:172 */ return this;\r\n/* 143: */ }", "public Semaphore() {\n m_available = true;\n }" ]
[ "0.60133886", "0.5734774", "0.55804557", "0.5537356", "0.5235905", "0.5224636", "0.5193941", "0.5133358", "0.5113763", "0.50832516", "0.50808305", "0.5073623", "0.5064224", "0.5053517", "0.5041529", "0.50122285", "0.50122285", "0.50122285", "0.49882683", "0.49788785", "0.49731082", "0.49460357", "0.49419302", "0.49344727", "0.49150696", "0.49008846", "0.48685303", "0.486434", "0.4862054", "0.48345816", "0.4825494", "0.48240143", "0.481471", "0.4814303", "0.48078686", "0.47929037", "0.47835535", "0.4782257", "0.4781757", "0.4781757", "0.47789994", "0.4760296", "0.47549495", "0.47439414", "0.4727377", "0.4722158", "0.47081107", "0.4701477", "0.46957994", "0.4691341", "0.4688284", "0.4685211", "0.4678474", "0.46715522", "0.46690705", "0.46690705", "0.46679536", "0.4655523", "0.46542004", "0.46514827", "0.4648253", "0.46370822", "0.46368343", "0.4631434", "0.4628981", "0.46254584", "0.46254537", "0.4622959", "0.4619718", "0.46162924", "0.46119764", "0.46119764", "0.45999894", "0.45962375", "0.45823205", "0.457623", "0.456184", "0.4552375", "0.4551902", "0.4547845", "0.45448884", "0.4539865", "0.45248136", "0.451987", "0.45074788", "0.4506589", "0.45019802", "0.4499171", "0.44822776", "0.4477863", "0.44753465", "0.44745052", "0.44738454", "0.44738454", "0.4471681", "0.4458286", "0.4456458", "0.44500056", "0.44469705", "0.44388166" ]
0.76052165
0
Deploys the execution to the previously assigned resource.
public void deploy() throws JobException { assertRunningInJobMasterMainThread(); final LogicalSlot slot = assignedResource; // make sure exactly one deployment call happens from the correct state // note: the transition from CREATED to DEPLOYING is for testing purposes only ExecutionState previous = this.state; if (previous == SCHEDULED || previous == CREATED) { if (!transitionState(previous, DEPLOYING)) { // race condition, someone else beat us to the deploying call. // this should actually not happen and indicates a race somewhere else throw new IllegalStateException("Cannot deploy task: Concurrent deployment call race."); } } else { // vertex may have been cancelled, or it was already scheduled throw new IllegalStateException("The vertex must be in CREATED or SCHEDULED state to be deployed. Found state " + previous); } if (this != slot.getPayload()) { throw new IllegalStateException( String.format("The execution %s has not been assigned to the assigned slot.", this)); } try { // race double check, did we fail/cancel and do we need to release the slot? if (this.state != DEPLOYING) { slot.releaseSlot(new FlinkException("Actual state of execution " + this + " (" + state + ") does not match expected state DEPLOYING.")); return; } final TaskDeploymentDescriptor deployment = TaskDeploymentDescriptorFactory .fromExecutionVertex(vertex, attemptNumber) .createDeploymentDescriptor( slot.getAllocationId(), slot.getPhysicalSlotNumber(), taskRestore, producedPartitions.values()); // null taskRestore to let it be GC'ed // 手动GC taskRestore = null; final TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway(); final ComponentMainThreadExecutor jobMasterMainThreadExecutor = vertex.getExecutionGraph().getJobMasterMainThreadExecutor(); // 调用submitTask CompletableFuture.supplyAsync(() -> taskManagerGateway.submitTask(deployment, rpcTimeout), executor) .thenCompose(Function.identity()) .whenCompleteAsync( (ack, failure) -> { }, jobMasterMainThreadExecutor); } catch (Throwable t) { markFailed(t); if (isLegacyScheduling()) { ExceptionUtils.rethrow(t); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void execute() {\n if (valid()) {\n // behavior of the concrete command\n this.target_territory numArmies += to_deploy;\n }\n }", "public void execute() throws MojoExecutionException {\n deploy(service, dockerImage,Optional.ofNullable(kalixProject),Optional.ofNullable(kalixContext));\n }", "private void initialDeploy() {\n }", "public final void execute() {\n\t\tLogUtils.i(TAG, \"execute\");\n\t\tpurelySetState(TaskState.Preparing);\n\t\tTaskQueue.addTask(this);\n\t}", "public void execute() throws BuildException {\n \tServiceClientFactory scf=super.getServiceClientFactory();\n\n \ttry {\n \t\tApplicationManagerClient amClient=new ApplicationManagerClient(scf);\n \t\tamClient.deployApplication(applicationName,version);\n \t\t\n \t\t// Log success message for feedback\n \t\tlog(\"Successfully deployed application: \" + applicationName + \"/\" + version);\n\n \t} catch (Exception e){\n \t\tthrow new BuildException(\"Error deploying application:\"+e.getMessage());\n \t}\n }", "void execute() throws Exception {\n\n\t\tif (getSystemState(db) != SYSTEM_STATE_CREATED_COULD_BE_EXACTLY_ONE) {\n\t\t\tInteger ss = getSystemState(db);\n\t\t\tshutDown();\n\t\t\tthrow new Exception(\"System in wrong state for this task: \" + ss);\n\t\t}\n\n\t\tloadExecutionEngine(db);\n\t\tperformUpdate();\n\t\tshutDown();\n\t}", "public void execute(){\n if (pipeline != null){\n pipeline.addTask(this);\n } else {\n run();\n }\n }", "@Override\n public void execute() {\n pickUp.collect();\n \n }", "public void execute(){\n\t\tnew PayCarOrderTask().execute();\n\t}", "@Override\n\tprotected void start() {\n\t\tDeferred<Tool> promise = _warehouse.acquireTool(_toolName);\n\t\tif (promise.isResolved()) {\n\t\t\t_product.setFinalId(promise.get().useOn(_product));\n\t\t\t_warehouse.releaseTool(promise.get());\n\t\t\tcomplete(promise.get());\n\t\t} \n\t\telse {\n\t\t\tpromise.whenResolved(() -> {\n\t\t\t\t_product.setFinalId(promise.get().useOn(_product));\n\t\t\t\t_warehouse.releaseTool(promise.get());\n\t\t\t\tcomplete(promise.get());\n\t\t\t});\n\t\t}\n\n\t}", "public void execute(PvmExecutionImpl execution) {\n\n PvmActivity activityToStart = execution.getNextActivity();\n execution.setNextActivity(null);\n\n PvmExecutionImpl propagatingExecution = execution.createConcurrentExecution();\n\n // set next activity on propagating execution\n propagatingExecution.setActivity(activityToStart);\n concurrentExecutionCreated(propagatingExecution);\n }", "public synchronized Promise<DeployedInstanceManager, Throwable, Double> deploy() {\n final DeployedInstanceManager self = this;\n JSch.setConfig(\"StrictHostKeyChecking\", \"no\");\n final DeferredManager deferred = new DefaultDeferredManager();\n\n return deferred.when(new DeferredCallable<DeployedInstanceManager, Double>() {\n @Override\n public DeployedInstanceManager call() throws IOException {\n notify(0.2);\n scpFileToTarget(coreJar);\n notify(0.5);\n scpFileToTarget(projectFile);\n notify(1.0);\n return self;\n }\n\n });\n }", "public FinishDeploy() {\n addSequential(new AbortAll());\n addSequential(new HatchEject());\n }", "@Override\n public GetDeploymentResponse executeRequest() throws MorpheusApiRequestException {\n return (GetDeploymentResponse) RequestHelper.executeRequest(GetDeploymentResponse.class, this, \"/api/deployments/\" + deploymentId, HttpPut.METHOD_NAME);\n }", "@Override\n public void execute() throws BuildException {\n if (!isValidOs()) {\n return;\n }\n\n checkConfiguration();\n runExec(prepareExec());\n }", "protected void execute() {\n\t\tshooter.runShooter(power);\n\t}", "private Resource deployReleasedResource(Resource releasedResource) throws Exception {\n List<Resource> deployedResources = findResources(m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (deployedResources.size() == 0) {\n System.out.println(\"Uploading released resource: \" + getString(releasedResource));\n List<Resource> copied = copyResources(m_releaseRepo, m_deploymentRepo, getIdentityVersionRequirement(releasedResource));\n if (copied.size() != 1) {\n throw new IllegalStateException(\"Expected one result after copy: \" + getString(releasedResource));\n }\n return copied.get(0);\n }\n else {\n System.out.println(\"Released resource already deployed: \" + getString(releasedResource));\n return deployedResources.get(0);\n }\n }", "@Override\n public CommandResult execute() {\n tasks.add(taskToAdd);\n try {\n storage.appendToFile(taskToAdd);\n return new CommandResult(String.format(MESSAGE_SUCCESS, taskToAdd));\n } catch (IOException e) {\n return new CommandResult(e.getMessage());\n }\n }", "public void execute() {\n execute0();\n }", "private Resource deployResource(Resource developmentResource) throws Exception {\n List<Resource> releaseResources = findResources(m_releaseRepo, getIdentityVersionRequirement(developmentResource));\n if (releaseResources.size() > 0) {\n return deployReleasedResource(releaseResources.get(0));\n }\n else {\n return deploySnapshotResource(developmentResource);\n }\n }", "@Override\r\n\tpublic void execute() {\n\t\tversionsManager.changeStrategy();\r\n\t}", "public void execute() {\n\t\tlaunch();\n\t}", "public void execute() {\n\n\t}", "@Override\n public void evaluate() throws Throwable {\n tryDeploy();\n try {\n base.evaluate();\n } finally {\n // undeploy cannot be done while the components are started\n // RuntimeFeature will do a reset if needed\n // see RuntimeFeature.afterTeardown\n // undeploy();\n }\n }", "@Override\n\tpublic void execute() {\n\t\trecevier.doSomething();\n\t}", "public void execute() {\n\t\tthis.badgeId = studentWorkerOperation.AddNewBadge(this.badgeName, this.badgeDescription);\n\t}", "@Override\n public void execute(IEnvironment env)\n {\n \n }", "protected void execute() {\n \t\n }", "protected void execute() {\n \t\n }", "public void execute() {\n setExecuted(true);\n }", "public void execute() {\n }", "public void execute() {\n\t\t\n\t}", "@Override\n public void execute() throws ResourceUnavailableException, InsufficientCapacityException, ServerApiException, ConcurrentOperationException, ResourceAllocationException {\n try {\n ExternalFirewallDeviceVO fwDeviceVO = _srxFwService.addSrxFirewall(this);\n if (fwDeviceVO != null) {\n SrxFirewallResponse response = _srxFwService.createSrxFirewallResponse(fwDeviceVO);\n response.setObjectName(\"srxfirewall\");\n response.setResponseName(getCommandName());\n this.setResponseObject(response);\n } else {\n throw new ServerApiException(BaseAsyncCmd.INTERNAL_ERROR, \"Failed to add SRX firewall due to internal error.\");\n }\n } catch (InvalidParameterValueException invalidParamExcp) {\n throw new ServerApiException(BaseCmd.PARAM_ERROR, invalidParamExcp.getMessage());\n } catch (CloudRuntimeException runtimeExcp) {\n throw new ServerApiException(BaseCmd.INTERNAL_ERROR, runtimeExcp.getMessage());\n }\n }", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void execute() {\n\t\t\r\n\t}", "public void executeTask(Version theTask) {\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // todo: what to do here???\n\t // this task obviously didn't perform well .. \n\t // and now, there's another request to run it!\n\t if (true) {\n\t\t// either try the task again ... \n\t\t_stoppedTasks.remove(theTask);\n\t } else {\n\t\t// or, refuse to run it at all \n\t\treturn;\n\t }\n\t}\n\t\n\t// System.out.println(\" - - - - - - - - - - - PSL! entered executeTask, parameter version> \" + theTask);\n\t// if (_versionCache.contains(theTask)) return;\n\n\n\t// add the pre-execution task to our knowledge base\n\t// replicate it so that in case of a crash we may recover\n\t_versionCache.addVersion(theTask);\n\treplicate(theTask);\n\n\t// tell replicators that we are about to start executing\n\talertReplicatorsExecutingTask(theTask);\n\n\tString taskName = ((TaskDefinition)theTask.data()).getName();\n\n\t// execute the task and get the next task\n\tVersion nextTask = executeTaskLocal(theTask);\n\t_log.completedTaskLocal(theTask);\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // this task was supposed to be stopped .. can ignore result\n\t _stoppedTasks.remove(theTask);\n\t _log.ignoreResultsOfStoppedTask(theTask);\n\t} else if (nextTask == null) { \n\t // this only happens if we have reached\n\t // the end of the workflow execution \n\t // tell replicators that everything is done.\n\t System.out.println(\"WORKFLOW IS DONE\");\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t} else {\n\t nextTask.append(taskName);\n\t // todo: we need to find a way to replicate the \n\t // post-execution task in a clean way. The here-under\n\t // commented code does not work as it creates a version clash.\n\t // todo: 16-Feb maybe uncomment this??\n\t // _versionCache.addVersion(nextTask);\n\n\t // set the next task for execution\n\t queueTask(nextTask);\n\t // tell the replicators we are done executing the task, they\n\t // don't have to worry about things anymore.\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t}\n }", "public void startExecuting() {\n this.taskOwner.setAttackTarget(this.target);\n super.startExecuting();\n }", "public void execute() {\r\n\t\r\n\t}", "protected void execute() {\n\t\t//execution handled by pid thread\n\t}", "public void execute() {\n if (hasError())\n return;\n\n runLocally();\n runRemotely();\n }", "protected void execute() {\n\n\t}", "@SuppressWarnings(\"unchecked\")\n public void execute() {\n execute(null, null);\n }", "@Override\n\tpublic void execute() {\n\t\t// TODO Auto-generated method stub\n\t\tstate.setTimeForLastEvent(state.getCurrentTime());\n\t\tstate.setCurrentEvent(this);\n\t\tstate.setCurrentTime(startTime);\n\t\tstate.updateIdleTime();\n\t\tstate.updateQueueTime();\n\t\t\n\t\tstate.setCurrentCustomer(cust);\n\t\tstate.callChanged();\n\t\t\n\t\t\n\t\t\n\t\tif (state.isQueueEmpty()) {\n\t\t\tstate.increaseIdleChairs();\n\t\t}else {\n\t\t\tdouble timeForNext = state.getHairdresserFinishTime();\n\t\t\tHairSalonEvent finished = new HaircutFinishedEvent(timeForNext,state,store, state.getFirst());\n\t\t\tstore.add(finished);\n\t\t\tstate.removeFirst();\n\t\t\tstate.increaseCuttinTime(timeForNext);\n\t\t\tstate.setLatestCustomerFinishTime(timeForNext);\n\t\t\t\n\n\t\t}\n\t\tif (state.checkHaircut(cust)){\n\t\t\t\n\t\t\tdouble timeForNext = state.getUnsatisfiedCustomerArrivalTime();\n\t\t\tHairSalonEvent returning = new PriorityCustomerEntersEvent(timeForNext,state,store,cust);\n\t\t\tstore.add(returning);\n\t\t\t\n\t\t\t\n\t\t}else {\n\t\t\tstate.increaseNumberOfCust();\n\t\t}\n\t\t\n\t}", "protected void execute() {\n\t}", "protected void execute() {\n\t\t\n\t}", "public void execute(DelegateExecution ex) throws Exception {\n\t\tString gotsid = getVar(ex, \"gotsid\");\n\t\tString name = getVar(ex, \"name\");\n\t\tString pipeline_name = getVar(ex, \"pipeline_name\");\n\t\tString submodule_name = getVar(ex, \"submodule_name\");\n\t\tString process_name = getVar(ex, \"processName\");\n\t\tString pipelineId = getVar(ex, \"pipeline_id\");\n\t\tString index = getVar(ex, \"array_indexer\");\n\t\tex.setVariable(\"reviewSubmodule\", \"false\");\n\t\tex.setVariable(\"refreshRate\", Database.getSystemConfig(\"jenkinsRefreshRate\").toString());\n\t\tex.setVariable(\"associated\", Database.isAssociated(gotsid));\n\t\tString info = \"Beginning\";\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", info);\n\t\tString deployName = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\"deploymentName\", index);\n\n\t\t// Get the config attributes and values by index\n\t\tMap results = Database.getConfigAttributesByIndex(gotsid, name, pipeline_name, submodule_name, process_name,\n\t\t\t\tindex);\n\t\tif (!process_name.equals(\"RequestBuild\")) {\n\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" phase for the deployment (\" + deployName + \") in the \"\n\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage has started.\";\n\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t}\n\n\t\t// Set each attribute's value during execution.\n\t\tIterator it = results.entrySet().iterator();\n\t\tboolean automatic = false;\n\t\twhile (it.hasNext()) {\n\t\t\tMap.Entry pair = (Map.Entry) it.next();\n\t\t\tString attribute_name = pair.getKey().toString().trim();\n\t\t\tString attribute_value = pair.getValue().toString().trim();\n\t\t\tif (attribute_name.equals(\"assignTo\") && (attribute_value == null || attribute_value.isEmpty())) {\n\t\t\t\tex.setVariable(\"assignTo\", AAFConnector.getAdminList(gotsid));\n\t\t\t} else if (attribute_name.equals(\"enableApproval\")\n\t\t\t\t\t&& (attribute_value == null || attribute_value.isEmpty() || attribute_value.equals(\"false\"))) {\n\t\t\t\tex.setVariable(\"isApproved\", true);\n\t\t\t\tex.setVariable(attribute_name, \"false\");\n\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been disabled in the \"\n\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage. This step has been skipped.\";\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t} else {\n\t\t\t\tif (attribute_name.equals(\"enableApproval\")) {\n\t\t\t\t\tinfo = \"The \\\"\" + Database.getProcessNameLabel(process_name) + \"\\\" approval process has been enabled in the \"\n\t\t\t\t\t\t\t+ Database.getSubmoduleNameLabel(submodule_name) + \" stage for the deployment configuration (\" + deployName + \").\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tex.setVariable(attribute_name, attribute_value);\n\t\t\t\tinfo = \"Setting \" + attribute_name + \" = \" + attribute_value;\n\t\t\t\tif (attribute_name.equals(\"automatic\") && attribute_value.equals(\"true\")) {\n\t\t\t\t\tautomatic = true;\n\t\t\t\t\tinfo = \"The \" + Database.getSubmoduleNameLabel(submodule_name) + \" phase for the deployment (\" + deployName\n\t\t\t\t\t\t\t+ \") has been configured to be handled automatically. Starting the automatic build and/or deployment process. Please wait...\";\n\t\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\t\"GetConfig\", \"execute\", info, true);\n\t\t\t\t}\n\t\t\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name,\n\t\t\t\t\t\t\"GetConfig\", \"execute\", info);\n\t\t\t}\n\t\t}\n\n\t\t// Set process description\n\t\tif (automatic) {\n\t\t\tString description = Database.getDescription(\"descriptionAutomatic\", pipeline_name, submodule_name,\n\t\t\t\t\tprocess_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t} else {\n\t\t\tString description = Database.getDescription(\"description\", pipeline_name, submodule_name, process_name);\n\t\t\tString deployname = Database.getVariableWithIndex(gotsid, name, pipeline_name, submodule_name, \"global\",\n\t\t\t\t\t\"deploymentName\", index);\n\t\t\tString newDescription = description.replaceAll(Pattern.quote(\"((deployname))\"), deployname);\n\t\t\tex.setVariable(\"processDescription\", newDescription);\n\t\t}\n\t\tApplicationLogger.callLog(gotsid, name, pipelineId, pipeline_name, submodule_name, process_name, \"GetConfig\",\n\t\t\t\t\"execute\", \"End\");\n\t}", "@Override\n public void apply(Project project) {\n this.project = project;\n setupEnvironment();\n createTasks();\n setupInstallationTasks();\n }", "protected void tryDeploy() {\n ComponentManager mgr = harness.getContext().getRuntime().getComponentManager();\n // the stash may already contains contribs (from @Setup methods)\n if (mgr.hasChanged()) { // first reset the registry if it was changed by the last test\n mgr.reset();\n // the registry is now stopped\n }\n // deploy current test contributions if any\n deploy(runner, harness);\n mgr.refresh(true);\n // now the stash is empty\n mgr.start(); // ensure components are started\n }", "void execute()\n\t{\n\t\tVM.top++;\n\t\tVM.opStack[VM.top] = arg();\n\t\tVM.pc++;\n\t}", "public void performApply(ILaunchConfigurationWorkingCopy configuration) {\n\r\n\t}", "public void execute(){\n\t\t\n\t}", "public void execute() throws BuildException {\r\n\t\tlog(\"CustomizeSapAdapter.execute()\", Project.MSG_DEBUG);\r\n if (getProject() == null) {\r\n throw new IllegalStateException(\"project has not been set\");\r\n }\t\t\r\n \r\n\t\tif (this.action == null) {\r\n\t\t\tthrow new BuildException(\"action has not been set\");\r\n\t\t}\r\n\t\tlog(\"The action is \" + this.action, Project.MSG_DEBUG);\r\n\t\t\r\n\t\tif (this.sourceBarFile == null) {\r\n\t\t\tthrow new BuildException(\"sourceBarFile has not been set\");\r\n\t\t}\r\n\t\tlog(\"The sourceBarFile is \" + this.sourceBarFile, Project.MSG_DEBUG);\t\r\n\t\t\t\t\r\n\t\tif ((this.tempDir != null) && \r\n\t\t\t(!this.tempDir.exists())) {\r\n\t\t\t\tthis.tempDir.mkdirs();\r\n\t\t\t\tlog(\"Temp directory '\" + this.tempDir.getAbsolutePath().toString() + \"' created.\", Project.MSG_DEBUG);\r\n\t\t}\t\t\r\n\t\tlog(\"The tempDir is \" + this.tempDir, Project.MSG_DEBUG);\r\n\r\n\t\ttry {\r\n\t\t\ttempDirForBarFile = Utility.createTempDirectory(this.tempDir, \"bar_\", \".tmp\");\r\n\t\t\tlog(\"The tempDirForBarFile is \" + this.tempDirForBarFile.getAbsolutePath().toString(), Project.MSG_DEBUG);\r\n\r\n\t\t\tif (this.action.trim().equalsIgnoreCase(\"read\")) {\r\n\t\t\t\tthis.actionRead();\t\t\t\r\n\t\t\t} else if (this.action.trim().equalsIgnoreCase(\"write\")) {\r\n\t\t\t\tif (this.propertiesFile == null) {\r\n\t\t\t\t\tthrow new BuildException(\"propertiesFile has not been set!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif ((this.override == false) &&\r\n\t\t\t\t\t\t(this.targetBarFile.exists())) {\r\n\t\t\t\t\tthrow new BuildException(\"Target BAR file \" + this.targetBarFile + \" already exists.\");\r\n\t\t\t\t}\t\t\r\n\t\t\t\tif (this.override) {\r\n\t\t\t\t\tthis.targetBarFile.delete();\r\n\t\t\t\t\tlog(this.targetBarFile + \" deleted.\", Project.MSG_DEBUG);\r\n\t\t\t\t}\r\n\t\t\t\tthis.actionWrite();\r\n\t\t\t} else if (this.action.trim().equalsIgnoreCase(\"export\")) {\r\n\t\t\t\tif (this.propertiesFile == null) {\r\n\t\t\t\t\tthrow new BuildException(\"propertiesFile has not been set!\");\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif ((this.override == false) &&\r\n\t\t\t\t\t\t(this.propertiesFile.exists())) {\r\n\t\t\t\t\tthrow new BuildException(\"Properties file \" + this.propertiesFile + \" already exists.\");\r\n\t\t\t\t}\t\t\r\n\t\t\t\tif (this.override) {\r\n\t\t\t\t\tthis.propertiesFile.delete();\r\n\t\t\t\t\tlog(this.propertiesFile + \" deleted.\", Project.MSG_DEBUG);\r\n\t\t\t\t}\r\n\t\t\t\tthis.actionExport();\r\n\t\t\t} else {\r\n\t\t\t\tthrow new BuildException(\"Action '\" + this.action + \"' unknown!\");\t\t\t\r\n\t\t\t}\r\n\t\t} catch (BuildException e) {\r\n\t\t\tthrow e;\r\n\t\t} catch (UtilityException e) {\r\n\t\t\tthrow new BuildException(e);\r\n\t\t} finally {\r\n\t\t\ttry {\r\n\t\t\t\tUtility.deleteAll(tempDirForBarFile);\r\n\t\t\t} catch (UtilityException e) {\r\n\t\t\t\tlog(\"WARNING!I cannot delete temp directory \" + tempDir + \".\", Project.MSG_WARN);\r\n\t\t\t}\t\t\t\t\r\n\t\t}\r\n\t}", "public void execute() {\n // empty\n }", "@Override\r\n public void execute() throws BuildException {\r\n this.validateProperties(); // sanity check.\r\n if (this.isVerbose) {\r\n System.out.printf(\"Processing changelists for %s %s between %s and %s. %n\",\r\n this.port, this.depotPath, this.fromDate, this.toDate);\r\n }\r\n\r\n try {\r\n Map<String, SensorShell> shellCache = new HashMap<String, SensorShell>();\r\n SensorShellMap shellMap = new SensorShellMap(this.tool);\r\n if (this.isVerbose) {\r\n System.out.println(\"Checking for user maps at: \" + shellMap.getUserMapFile());\r\n System.out.println(\"Perforce accounts found: \" + shellMap.getToolAccounts(this.tool));\r\n }\r\n try {\r\n shellMap.validateHackystatInfo(this.tool);\r\n }\r\n catch (Exception e) {\r\n System.out.println(\"Warning: UserMap validation failed: \" + e.getMessage());\r\n }\r\n \r\n P4Environment p4Env = new P4Environment();\r\n p4Env.setP4Port(this.port);\r\n p4Env.setP4User(this.userName);\r\n p4Env.setP4Password(this.password);\r\n p4Env.setP4Executable(this.p4ExecutablePath);\r\n // These are given default values above. User need not set them in the Ant task unless\r\n // the defaults are not correct.\r\n p4Env.setP4SystemDrive(this.p4SysDrive);\r\n p4Env.setP4SystemRoot(this.p4SysRoot);\r\n p4Env.setVerbose(false); // could set this to true for lots of p4 debugging output. \r\n PerforceCommitProcessor processor = new PerforceCommitProcessor(p4Env, this.depotPath);\r\n processor.setIgnoreWhitespace(this.ignoreWhitespace);\r\n processor.processChangeLists(dateFormat.format(this.fromDate), \r\n dateFormat.format(this.toDate));\r\n int entriesAdded = 0;\r\n TstampSet tstampSet = new TstampSet();\r\n for (PerforceChangeListData data : processor.getChangeListDataList()) {\r\n if (this.isVerbose) {\r\n System.out.printf(\"Retrieved Perforce changelist: %d%n\", data.getId());\r\n }\r\n String author = data.getOwner();\r\n Date commitTime = data.getModTime();\r\n for (PerforceChangeListData.PerforceFileData fileData : data.getFileData()) {\r\n SensorShell shell = this.getShell(shellCache, shellMap, author);\r\n this.processCommitEntry(shell, author, tstampSet\r\n .getUniqueTstamp(commitTime.getTime()), commitTime, data.getId(), fileData);\r\n entriesAdded++;\r\n }\r\n }\r\n // Always make sure you call cleanup() at the end. \r\n processor.cleanup();\r\n if (this.isVerbose) {\r\n System.out.println(\"Found \" + entriesAdded + \" commit records.\");\r\n }\r\n\r\n // Send the sensor data after all entries have been processed.\r\n for (SensorShell shell : shellCache.values()) {\r\n if (this.isVerbose) {\r\n System.out.println(\"Sending data to \" + shell.getProperties().getSensorBaseUser() + \r\n \" at \" + shell.getProperties().getSensorBaseHost());\r\n }\r\n shell.send();\r\n shell.quit();\r\n }\r\n }\r\n catch (Exception ex) {\r\n throw new BuildException(ex);\r\n }\r\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {\n }", "protected void execute() {}", "protected void execute() {\r\n }", "public void execute() throws org.apache.ant.common.util.ExecutionException {\n try {\n executeMethod.invoke(worker, null);\n } catch (java.lang.Throwable t) {\n throw new org.apache.ant.common.util.ExecutionException(t);\n }\n }", "@Override\r\n\tpublic void execute() \r\n\t\t{\n\t\tsourceArcs = parent.getSourceArcsFromID(child.getServerName());\r\n\t\ttargetArcs = parent.getTargetArcsFromID(child.getServerName());\r\n\t\tredo();\r\n\t\t}", "protected void finishExecution() {\r\n\r\n\t}", "public static void execute() {\n EFsupply.standardGroundSupply(70036690, -63257400, \"EF Tasmania Supply 1\");\n\n //Default Zeon supply i Tasmania.\n ZeonSupply.standardGroundSupply(69616733, -63019640, \"Zeon Tasmania Supply 1\");\n\n ZeonNpcEF1();\n EfNpcZeon1();\n }", "protected void execute()\n\t{\n\t}", "public void innerExecute() {\n execute(new ArrayList<>(this.commandList));\n this.commandList.clear();\n }", "public void commit() throws ResourceException;", "@Override\n\tpublic void postExecution() throws CommandListenerException {\n\t\tString extraContents = \"0xbeef\";\n\t\tByteArrayInputStream inputStream = new ByteArrayInputStream(extraContents.getBytes());\n\t\tSourcesFile sources = fedoraProjectRoot.getSourcesFile();\n\t\tfor (String filename: sources.getAllSources()) {\n\t\t\tIFile sourceFile;\n\t\t\t\tsourceFile = (IFile)fedoraProjectRoot.getContainer().findMember(new Path(filename));\n\t\t\tif (sourceFile != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsourceFile.appendContents(inputStream, IResource.FORCE, new NullProgressMonitor());\n\t\t\t\t} catch (CoreException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\ttry {\n\t\t\tfedoraProjectRoot.getContainer().refreshLocal(IResource.DEPTH_ONE, null);\n\t\t} catch (CoreException e) {\n\t\t\t// ignore\n\t\t}\n\n\t}", "public void execute() {\n\t\t\n\t\tdrivetrain.updateAnglePID();\n\t\t\n//\t\tif (drivetrain.currentControl()) {\n//\t\t\tdrivetrain.shiftGears();\n//\t\t}\n\t}", "public void execute() {\n\t\t/* Create a new thread and kick it off */\n\t\tThread tempThread = new Thread(exec, \"ROSpec Executer\");\n\t\ttempThread.start();\n\t}", "public void sfDeploy() throws SmartFrogException, RemoteException {\n super.sfDeploy();\n sfLog().info(\"DEPLOYED \"+sfCompleteNameSafe().toString());\n }", "@Override\r\n\tpublic Integer call() throws Exception {\n\t\treturn ps.executeUpdate(); // TDOD release resources\r\n\t}", "@Override\n\tpublic void assemble(final OperationCall operationCall) {\n\t\tfinal DeployedOperation caller = operationCall.getParent() != null ? operationCall.getParent().getOperation() : null; // NOCS (declarative)\n\t\tfinal DeployedOperation callee = operationCall.getOperation();\n\n\t\tthis.addExecution(caller, callee);\n\t}", "@Override\n\tpublic void execute() {\n\t\tempfaengerA.doAction1();\n\t\tempfaengerA.doAction2();\n\t\tempfaengerA.doAction3();\n\n\t}", "protected void execute()\n {\n }", "private static void deployOperatorPre73Way() {\n log.info(\"Deploying operator using pre-7.3 way\");\n OpenShiftBinaryClient.getInstance().executeCommandAndConsumeOutput(\n \"Unable to create operator resource \" + TestConfiguration.syndesisOperatorUrl(),\n istream -> log.info(IOUtils.toString(istream, \"UTF-8\")),\n \"create\",\n \"-n\", TestConfiguration.openShiftNamespace(),\n \"-f\", TestConfiguration.syndesisOperatorUrl()\n );\n\n importProdImage(\"operator\");\n\n log.info(\"Waiting for syndesis-operator to be ready\");\n OpenShiftUtils.xtf().waiters()\n .areExactlyNPodsReady(1, \"syndesis.io/component\", \"syndesis-operator\")\n .interval(TimeUnit.SECONDS, 20)\n .timeout(TimeUnit.MINUTES, 10)\n .assertEventually();\n }", "void execute() throws CommandExecutionException;", "void saveOrUpdateExecution(Execution request);", "public void Execute() {\n\n }", "@Override\n public void deploy() throws Exception {\n assert !this.deploymentDone();\n PubSub pubSub = PubSub.newBuilder(this)\n .build();\n\n this.publisher1 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.publisher2 = Publisher.newBuilder(this, pubSub.getInBoundPortURI()).build();\n this.subscriber1 = Subscriber.newBuilder(this, pubSub.getInBoundPortURI()).build();\n\n\n // --------------------------------------------------------------------\n // Connection phase\n // --------------------------------------------------------------------\n\n\n super.deploy();\n assert this.deploymentDone();\n }", "protected abstract void doExecute() throws IOException, MojoExecutionException;", "protected void execute() {\n \tRobot.DRIVE_SUBSYSTEM.tankDrive(expoDrive(RobotMap.DRIVE_EXPO_MIN,\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_DEADZONE,\n \t\t\t\t\t\t\t\t\t\t\t Robot.oi.getDriveLeftY(),\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_EXPO),\n \t\t\t\t\t\t\t\t\texpoDrive(RobotMap.DRIVE_EXPO_MIN,\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_DEADZONE,\n \t\t\t\t\t\t\t\t\t\t\t Robot.oi.getDriveRightY(),\n \t\t\t\t\t\t\t\t\t\t\t RobotMap.DRIVE_EXPO_EXPO));\n }", "public void execute(ExecutionContext executionContext) throws Exception \n {\n // TODO: Allow submit parameters to be passed into this action handler\n // rather than pulling directly from execution context\n \n // retrieve submitted package\n NodeRef pkg = ((JBPMNode)executionContext.getContextInstance().getVariable(\"bpm_package\")).getNodeRef();\n Pair<Integer, String> pkgPath = AVMNodeConverter.ToAVMVersionPath(pkg);\n \n // Now delete the stores in the WCM workflow sandbox\n final String avmPath = pkgPath.getSecond();\n \n AuthenticationUtil.runAs(new AuthenticationUtil.RunAsWork<Object>()\n {\n public Object doWork() throws Exception\n {\n sbService.deleteSandbox(WCMUtil.getSandboxStoreId(avmPath));\n \n return null;\n }\n }, AuthenticationUtil.getSystemUserName());\n \n }", "@Override\n protected void execute() {\n Robot.toteLifterSubsystem.setEjectorState(EjectorState.EXTENDING, ramper.process(1.0));\n }", "public void execute(ActivityExecution execution) throws Exception {\n\t\tString var = (String) execution.getVariable(\"var\");\n\n\t\tPvmTransition transition = null;\n\t\ttry {\n\t\t\tlogger.info(\"Pre email listener executed.\");\n\t\t\ttransition = execution.getActivity().findOutgoingTransition(\n\t\t\t\t\t\"no-exception\");\n\t\t} catch (Exception e) {\n\t\t\ttransition = execution.getActivity().findOutgoingTransition(\n\t\t\t\t\t\"exception\");\n\t\t}\n\t\texecution.take(transition);\n\t}", "void deploy(String template, Map<String, String> parameters, String group, String regionStr) throws IOException {\n String deploymentName = \"SunstoneDeployment-\" + UUID.randomUUID().toString().substring(0, 5);\n Region region = Region.fromName(regionStr);\n if (region == null) {\n throw new IllegalArgumentException(\"Unknown region \" + regionStr);\n }\n\n if (!armManager.resourceGroups().contain(group)) {\n armManager.resourceGroups().define(group)\n .withRegion(region)\n .create();\n } else {\n LOGGER.warn(\"Azure resource group '{}' already exists! It will be reused and deleted when tests are finished.\", group);\n }\n\n armManager.deployments().define(deploymentName)\n .withExistingResourceGroup(group)\n .withTemplate(template)\n .withParameters(parametersFromMap(template, parameters))\n .withMode(DeploymentMode.INCREMENTAL)\n .create();\n LOGGER.debug(\"Azure deployment from template {} in \\\"{}\\\" group is ready\", deploymentName, group);\n }", "@Override\r\n\tpublic void execute() {\n\t}", "@Override\r\n\tpublic void execute() {\n\t}", "void activate() throws ResourceActivatorException, InterruptedException, ExecutionException;", "public void perform() {\n\t\tlog.info(\"begin to play the drum\");\n\t\tthrow new RuntimeException();\n\t}", "@Override\r\n\tprotected void execute() {\r\n\t}" ]
[ "0.6447338", "0.5964242", "0.57477474", "0.5744614", "0.5616218", "0.5607082", "0.5559749", "0.55403715", "0.55294245", "0.5521441", "0.5424477", "0.5413938", "0.5377183", "0.5319319", "0.5318608", "0.53046846", "0.5293595", "0.5289343", "0.5228126", "0.5204677", "0.5203316", "0.5194753", "0.5191584", "0.5177704", "0.5147408", "0.5133233", "0.5132089", "0.51213855", "0.51213855", "0.51207316", "0.5112849", "0.51108074", "0.5100824", "0.50957006", "0.50957006", "0.50957006", "0.5079395", "0.5075719", "0.5064073", "0.5048213", "0.5042449", "0.5039209", "0.50362575", "0.50000155", "0.49992412", "0.4992516", "0.49837217", "0.49831402", "0.4971637", "0.496264", "0.49555287", "0.4953263", "0.49523515", "0.4950681", "0.49472877", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49382082", "0.49363616", "0.49269348", "0.49204227", "0.49169746", "0.49080577", "0.49065188", "0.48977715", "0.48956266", "0.4886957", "0.48857927", "0.48797718", "0.4879554", "0.48783678", "0.4877989", "0.48760638", "0.4871117", "0.48684952", "0.48642388", "0.4860887", "0.48551404", "0.48485693", "0.48448852", "0.48441955", "0.48344842", "0.48343813", "0.4831482", "0.48282862", "0.48209983", "0.4817623", "0.4817623", "0.47961316", "0.47941577", "0.4793905" ]
0.6289594
1
depending on the previous state, we go directly to cancelled (no cancel call necessary) or to canceling (cancel call needs to be sent to the task manager) because of several possibly previous states, we need to again loop until we make a successful atomic state transition
public void cancel() { assertRunningInJobMasterMainThread(); while (true) { ExecutionState current = this.state; if (current == CANCELING || current == CANCELED) { // already taken care of, no need to cancel again return; } // these two are the common cases where we need to send a cancel call else if (current == RUNNING || current == DEPLOYING) { // try to transition to canceling, if successful, send the cancel call if (startCancelling(NUM_CANCEL_CALL_TRIES)) { return; } // else: fall through the loop } else if (current == FINISHED) { // finished before it could be cancelled. // in any case, the task is removed from the TaskManager already // a pipelined partition whose consumer has never been deployed could still be buffered on the TM // release it here since pipelined partitions for FINISHED executions aren't handled elsewhere // covers the following cases: // a) restarts of this vertex // b) a global failure (which may result in a FAILED job state) sendReleaseIntermediateResultPartitionsRpcCall(); return; } else if (current == FAILED) { // failed before it could be cancelled. // in any case, the task is removed from the TaskManager already return; } else if (current == CREATED || current == SCHEDULED) { // from here, we can directly switch to cancelled, because no task has been deployed if (cancelAtomically()) { return; } // else: fall through the loop } else { throw new IllegalStateException(current.name()); } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void ensureFinalState() {\n if (!isComplete() && !isPaused() && getInternalState() != INTERNAL_STATE_QUEUED) {\n // we first try to complete a cancel operation and if that fails, we just fail\n // the operation.\n if (!tryChangeState(INTERNAL_STATE_CANCELED, false)) {\n tryChangeState(INTERNAL_STATE_FAILURE, false);\n }\n }\n }", "void completeCancelling(Map<String, Accumulator<?, ?>> userAccumulators, boolean releasePartitions) {\n\n\t\twhile (true) {\n\t\t\tExecutionState current = this.state;\n\n\t\t\tif (current == CANCELED) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (current == CANCELING || current == RUNNING || current == DEPLOYING) {\n\n\t\t\t\tupdateAccumulatorsAndMetrics(userAccumulators);\n\n\t\t\t\tif (transitionState(current, CANCELED)) {\n\t\t\t\t\tfinishCancellation(releasePartitions);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\n\t\t\t\t// else fall through the loop\n\t\t\t}\n\t\t\telse {\n\t\t\t\t// failing in the meantime may happen and is no problem.\n\t\t\t\t// anything else is a serious problem !!!\n\t\t\t\tif (current != FAILED) {\n\t\t\t\t\tString message = String.format(\"Asynchronous race: Found %s in state %s after successful cancel call.\", vertex.getTaskNameWithSubtaskIndex(), state);\n\t\t\t\t\tLOG.error(message);\n\t\t\t\t\tvertex.getExecutionGraph().failGlobal(new Exception(message));\n\t\t\t\t}\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t}", "synchronized void revertState()\n {\n state = state.revert();\n notifyAll();\n }", "private void handleCancel(int result, HistoryClipIn history) throws SchedulerException {\n if (result == WorkflowActionManager.CANCEL) {\n return;\n } else if (result == WorkflowActionManager.RESET) {\n handleResetAfterCancel();\n } else if (result == WorkflowActionManager.RESET_AND_RUN) {\n handleResetRunAfterCancel(history);\n }\n }", "public void checkCancel() throws CancellationException;", "@Test\n public void testCancel_3() throws IllegalStateTransitionException {\n TrainPlanningEntry entry = singleton();\n entry.setResources(Arrays.asList(new TrainCabin(1, TrainCabinType.BUSINESS, 10, 2020),\n new TrainCabin(2, TrainCabinType.FIRST_CLASS, 20, 2020)));\n entry.allocated();\n entry.run();\n entry.block();\n entry.cancel();\n assertTrue(entry.getState() instanceof CancelledState);\n }", "synchronized void cancel()\n {\n state = DNSState.CANCELED;\n notifyAll();\n }", "void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }", "@Test\n public void testCancel_2() throws IllegalStateTransitionException {\n TrainPlanningEntry entry = singleton();\n entry.setResources(Arrays.asList(new TrainCabin(1, TrainCabinType.BUSINESS, 10, 2020),\n new TrainCabin(2, TrainCabinType.FIRST_CLASS, 20, 2020)));\n entry.allocated();\n entry.cancel();\n assertTrue(entry.getState() instanceof CancelledState);\n }", "public boolean cancel(boolean mayInterruptIfRunning)\r\n/* 351: */ {\r\n/* 352:433 */ Object result = this.result;\r\n/* 353:434 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 354:435 */ return false;\r\n/* 355: */ }\r\n/* 356:438 */ synchronized (this)\r\n/* 357: */ {\r\n/* 358:440 */ result = this.result;\r\n/* 359:441 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 360:442 */ return false;\r\n/* 361: */ }\r\n/* 362:445 */ this.result = CANCELLATION_CAUSE_HOLDER;\r\n/* 363:446 */ if (hasWaiters()) {\r\n/* 364:447 */ notifyAll();\r\n/* 365: */ }\r\n/* 366: */ }\r\n/* 367:451 */ notifyListeners();\r\n/* 368:452 */ return true;\r\n/* 369: */ }", "public void cancel(){\n cancelled = true;\n }", "synchronized void advanceState()\n {\n state = state.advance();\n notifyAll();\n }", "public void onRestorePendingState() {\n }", "@Override\n public boolean cancelIfCannotGoBack() {\n return true;\n }", "public void cancel() {\n ei();\n this.fd.eT();\n this.oJ.b(this);\n this.oM = Status.CANCELLED;\n if (this.oL != null) {\n this.oL.cancel();\n this.oL = null;\n }\n }", "private void processState(Event event)\n {\n queue.add(event);\n if (event== Event.Bad)\n bad.incrementAndGet();\n else\n good.incrementAndGet();\n\n int size = queue.size();\n if (size <= numberOfEvents)\n return ;\n Event old = queue.remove();\n if (old== Event.Bad)\n bad.decrementAndGet();\n else\n good.decrementAndGet();\n\n if((state.get()==Closed) && ((bad.get()/good.get())*100>percentageError))\n {\n state.set(Open);\n CompletableFuture.runAsync(()->{\n try {\n Thread.sleep(waitDuration*1000);\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n bad.set(0);\n good.set(0);\n queue.clear();\n state.set(Closed);\n });\n }\n\n }", "public void transitionIfNotPreviously(T fromState, T toState, Runnable action) {\n Thread previousOwner = takeOwnership();\n try {\n if (achievedStates.contains(toState)) {\n return;\n }\n doTransition(fromState, toState, action);\n } finally {\n releaseOwnership(previousOwner);\n }\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "private void dealWithState(FindPairLogic.State state) {\n buttons[state.getI()][state.getJ()].setText(Integer.toString(state.getN()));\n buttons[state.getI()][state.getJ()].setDisable(true);\n if (state.hasResult()) {\n if (!state.isSuccess()) {\n isGameEnable.set(false);\n threadPool.schedule(() -> Platform.runLater(() -> {\n buttons[state.getI()][state.getJ()].setText(\"\");\n buttons[state.getI()][state.getJ()].setDisable(false);\n buttons[state.getPreviousI()][state.getPreviousJ()].setText(\"\");\n buttons[state.getPreviousI()][state.getPreviousJ()].setDisable(false);\n isGameEnable.set(true);\n }), 1, TimeUnit.SECONDS);\n }\n }\n if (state.isEndGame()) {\n endGame();\n }\n }", "public void cancel() {\n\t\tcancelled = true;\n\t}", "public void transitionStates () {\n myCurrentState = myNextState;\n myNextState = null;\n }", "private void cancelPrevRegisterTask()\n\t{\n\t\tsynchronized (mSyncObj)\n\t\t{\n\t\t\tif (null != mRegistrationAsyncTask)\n\t\t\t{\n\t\t\t\tmRegistrationAsyncTask.cancel(true);\n\t\t\t}\n\t\t\tmRegistrationAsyncTask = null;\n\t\t}\n\t}", "private void doBack() {\n\t\tif (!haveTaskRunning) {\r\n\t\t\tfinish();\r\n\t\t} else if (mStep == READ_BAGLOACK) { // 读袋锁阶段,初始化信息,启用码\r\n\t\t\tmVReadBagLock.setDoing(false);\r\n\t\t\tmBagInItTask.stop();\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\thaveTaskRunning = false;\r\n\t\t} else if (mStep == READ_UHF) { // 读TID\r\n\t\t\tmVReadUhfLock.setDoing(false);\r\n\t\t\tmReadInitEPCTask.stop();\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\tmStep = READ_BAGLOACK;\r\n\t\t\thaveTaskRunning = false;\r\n\t\t} else if (mStep == NET_CHECK ) { \r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\tmVNetCheck.setDoing(false);\r\n\t\t\tmBtnConfirm.setEnabled(true);\r\n\t\t\thaveTaskRunning = false;\r\n\t\t\t//更新袋锁,索引,条码,封签信息,标志位\r\n\t\t} else if (mStep == UPDATE_BAGLOCK) { // \r\n\t\t\tmVUpdateBagLock.setDoing(false);\r\n\t\t\tmWriteRfidTask.stop();\r\n\t\t\thaveTaskRunning = false;\r\n\t\t// 将条码等数据发送到服务器验证,是否已经封签过\r\n\t\t} \r\n\t}", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "@SuppressWarnings(\"resource\")\n\tpublic synchronized void advance() {\n\t\t/*\n\t\t * Do not advance the state machine if it is still valid. This is a convenience to application code\n\t\t * that can now try to advance the state machine redundantly without it getting costly.\n\t\t * \n\t\t * Here we have to be careful. We cannot just read valid() flag as that would create reactive dependency\n\t\t * that would be invalidated a few lines below when the valid() flag is set to true.\n\t\t * Such immediate invalidation would force another controlling (outer) reactive computation to run immediately after the current one ends.\n\t\t * While such overhead is common in reactive code and it is usually acceptable, it can be very wasteful here in some important use cases,\n\t\t * for example in ReactiveLazy where it would double compute cost of all reactive computations that read new/changed ReactiveLazy.\n\t\t *\n\t\t * We cannot just check for non-null trigger either as that would make the check completely non-reactive.\n\t\t * The controlling (outer) computation wouldn't run again when the state is invalidated and advancement would stop forever.\n\t\t *\n\t\t * Instead of creating dependency on the full valid() flag, we will reactively depend only on trigger state.\n\t\t * The difference is that trigger state only tracks validity of the last controlled (inner) computation\n\t\t * while the valid() flag tracks all current and future state of the whole reactive state machine.\n\t\t * Trigger state can change only in one direction from not fired to fired while valid() changes both ways.\n\t\t * This reduction in the scope of the dependency is sufficient to avoid redundant reactive computations\n\t\t * while keeping the dependency wide enough to ensure the state machine appears to be fully reactive.\n\t\t * \n\t\t * Trigger itself is of course non-reactive, because it is a low-level reactive primitive.\n\t\t * So how do we depend on its state? We will read valid() flag but only after we have already set it to true.\n\t\t * This breaks the basic principle of reactive programming that dependencies are recorded before reads,\n\t\t * but it is safe here, because it is equivalent to a scenario, in which another thread advances the state machine\n\t\t * and the current thread executed shortly afterwards, reads the valid() flag (which is true), and returns without advancing.\n\t\t * \n\t\t * This solution is so efficient that a lot of code can just blindly advance all the time without ever checking valid().\n\t\t * This may be actually more performant thanks to the reduced dependency optimization.\n\t\t */\n\t\tif (trigger != null) {\n\t\t\t/*\n\t\t\t * If the trigger is non-null, then valid() is true and we can just return without advancing.\n\t\t\t * We will record dependency on valid() to ensure that the controlling (outer) computation\n\t\t\t * tries to advance the state machine again when valid() becomes false.\n\t\t\t */\n\t\t\tvalid.get();\n\t\t\treturn;\n\t\t}\n\t\tReactiveScope scope = OwnerTrace.of(new ReactiveScope())\n\t\t\t.parent(this)\n\t\t\t.target();\n\t\tif (pins != null)\n\t\t\tscope.pins(pins);\n\t\tpins = null;\n\t\ttry (CloseableScope computation = scope.enter()) {\n\t\t\tReactiveValue<T> value = ReactiveValue.capture(supplier);\n\t\t\t/*\n\t\t\t * We will be sending two invalidations to the controlling reactive computation.\n\t\t\t * We will first discourage redundant advancement by setting valid() to true.\n\t\t\t * Only then we set the output. This prevents unnecessary attempts to advance the state machine.\n\t\t\t */\n\t\t\tvalid.set(true);\n\t\t\toutput.value(value);\n\t\t}\n\t\t/*\n\t\t * As mentioned above, we will create dependency on valid() to ensure the controlling (outer) computation\n\t\t * tries to advance again when the current state is invalidated, i.e. when valid() is set to false.\n\t\t * We have to do this after setting valid() to true above to avoid immediately invalidating current computation.\n\t\t * We also have to do it before arming the trigger, because trigger could fire immediately (inline)\n\t\t * and such firing involves setting valid() to false, by which time the dependency on valid() must already exist.\n\t\t * We have to be additionally careful not to create the dependency inside the controlled (inner) computation.\n\t\t */\n\t\tvalid.get();\n\t\tif (scope.blocked())\n\t\t\tpins = scope.pins();\n\t\ttrigger = OwnerTrace\n\t\t\t.of(new ReactiveTrigger()\n\t\t\t\t.callback(this::invalidate))\n\t\t\t.parent(this)\n\t\t\t.target();\n\t\t/*\n\t\t * Arming the trigger can cause it to fire immediately.\n\t\t * We don't worry about that, because our invalidation callback is very fast and non-conflicting.\n\t\t */\n\t\ttrigger.arm(scope.versions());\n\t}", "private void cancelMoveTask2(boolean shouldNotifySector) {\n if (_movementTask != null && !_movementTask.isDone()) {\n _movementTask.cancel(true);\n\n if (shouldNotifySector) {\n notifySector(false);\n }\n }\n }", "private void cancelHeavyLifting()\n {\n }", "public abstract boolean cancel();", "public boolean setUncancellable()\r\n/* 372: */ {\r\n/* 373:457 */ Object result = this.result;\r\n/* 374:458 */ if (isDone0(result)) {\r\n/* 375:459 */ return !isCancelled0(result);\r\n/* 376: */ }\r\n/* 377:462 */ synchronized (this)\r\n/* 378: */ {\r\n/* 379:464 */ result = this.result;\r\n/* 380:465 */ if (isDone0(result)) {\r\n/* 381:466 */ return !isCancelled0(result);\r\n/* 382: */ }\r\n/* 383:469 */ this.result = UNCANCELLABLE;\r\n/* 384: */ }\r\n/* 385:471 */ return true;\r\n/* 386: */ }", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "private ScanState switchState(ScanState desired,EnumSet<ScanState> allowed) {\n final ScanState old;\n final long timestamp;\n final long sequence;\n synchronized(this) {\n old = state;\n if (!allowed.contains(state))\n throw new IllegalStateException(state.toString());\n state = desired;\n timestamp = System.currentTimeMillis();\n sequence = getNextSeqNumber();\n }\n LOG.fine(\"switched state: \"+old+\" -> \"+desired);\n if (old != desired)\n queueStateChangedNotification(sequence,timestamp,old,desired);\n return old;\n }", "private void updateState() {\n\t while(!isGoodState()) {\n\t\t updateStateOnce();\n\t }\n }", "public void cancelCurrentComputation(){\n\t\tft.cancel(true);\n\t}", "private void checkStateChange() {\n\t\tif(previousState == null){\n\t\t\tpreviousState = getOrientation();\n\t\t}\n\t\telse{\n\t\t\tif(previousState != getOrientation()){\n\t\t\t\tif(isTurningLeft){\n\t\t\t\t\tisTurningLeft = false;\n\t\t\t\t}\n\t\t\t\tif(isTurningRight){\n\t\t\t\t\tisTurningRight = false;\n\t\t\t\t}\n\t\t\t\tpreviousState = getOrientation();\n\t\t\t}\n\t\t}\n\t}", "private boolean rollBack(TaskState state){\n\n do state.moveStack.pop().rollBack();\n while(!state.moveStack.isEmpty() && !state.moveStack.peek().hasNextMove());\n\n return !state.moveStack.isEmpty();\n\n }", "@Override\n\t\tprotected void doCurrentState() {\n\t\t\tswitch(currentState) {\n\t\t\t\n\t\t\t// follow operator commands, but respect limit switches\n\t\t\tcase manual:\n\t\t\t\tcd.gearLeftOpen.set(rd.gearManualLeftOpen && !rd.leftOpenSwitch, rd.gearManualLeftClose && !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(rd.gearManualRightOpen && !rd.rightOpenSwitch, rd.gearManualRightClose && !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\n\t\t\t// close each motor until fully closed, if one motor is closed stop that motor\n\t\t\tcase autoClose:\n\t\t\t\tcd.gearLeftOpen.set(false, !rd.leftCloseSwitch );\n\t\t\t\tcd.gearRightOpen.set(false, !rd.rightCloseSwitch);\n\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t// open each motor until fully open, if one motor is open stop that motor\t\n\t\t\tcase autoOpen:\n\t\t\t\tcd.gearLeftOpen.set(!rd.leftOpenSwitch, false);\n\t\t\t\tcd.gearRightOpen.set(!rd.rightOpenSwitch, false);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "void onSynchronizationCancel();", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tmoving = false;\n\t\t}", "@Override\n\tpublic void stateMachineAbort() {\n\n\t}", "@Override\n\tpublic void stateMachineAbort() {\n\n\t}", "@Override\n\tpublic void stateMachineAbort() {\n\n\t}", "@Override\n\tpublic void stateMachineAbort() {\n\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "private void cancelFetch() {\n cancelOperation(QUERY_NEW_CALLS_TOKEN);\n cancelOperation(QUERY_OLD_CALLS_TOKEN);\n }", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel ;\r\n\t\t\t\t\r\n\t}", "@Override\n public void cancelMoveTask() {\n if (_movementTask != null) {\n cancelMoveTask2(true);\n _movementTask = null;\n }\n }", "private void cancel() {\n mFuture.cancel(mMayInterruptIfRunning);\n }", "public boolean isCancellable()\r\n/* 64: */ {\r\n/* 65:101 */ return this.result == null;\r\n/* 66: */ }", "@Override\n\tpublic void stateMachineAbort() {\n\t}", "@Override\n public void cancel() {\n }", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "@Override\n public void syncState() {\n scheduledCounter.check();\n }", "public final synchronized void restart() {\r\n\t\tunblocked = false;\r\n\t\tcancelled = null;\r\n\t\terror = null;\r\n\t}", "public boolean checkCancel() {\r\n\t\t\r\n\t\treturn cancel;\r\n\t\t\t\t\r\n\t}", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "public void cancelOperation() {\n\n System.out.println(\"Sorry, a problem occurred, deposit money operation is unsuccessful\");\n System.out.println(\"Current information : \");\n while (!storage.isEmpty()) {\n Command command = storage.pop();\n command.undo();\n }\n }", "public void restart() {\r\n\t\tthis.cancel = false;\r\n\t}", "@Override\n public void run() {\n t.cancel();\n onBackPressed();\n }", "public void cancel() {\r\n\t\tthis.cancel = true;\r\n\t}", "protected boolean reallyCancel() throws Exception { return true; }", "@Override\n public void cancel() {\n }", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "@Override\n public void checkCancelled() throws SVNCancelException {\n }", "protected abstract void handleCancel();", "@Override\r\n\tpublic void resume() {\n\t\tcurrentState.resume();\r\n\t}", "@Override\r\n public FlowState call() {\r\n // TODO: We should not need? to pass the flowState because this flow is already known (reapplying same values???)\r\n FlowState flowState = getFlowState();\r\n if ( flowState == null ) {\r\n throw new FlowException(\"No flowState with id:\", getExistingFlowStateLookupKey());\r\n } else {\r\n return getFlowManagementWithCheck().continueFlowState(getExistingFlowStateLookupKey(), true, this.getInitialFlowState());\r\n }\r\n }", "@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}", "public abstract boolean cancelable();", "@Override\n public void cancel() {\n\n }", "public static void doCancel ( RunData data)\n\t{\n\t\tSessionState state = ((JetspeedRunData)data).getPortletSessionState (((JetspeedRunData)data).getJs_peid ());\n\n\t\tstate.setAttribute(STATE_LIST_SELECTIONS, new TreeSet());\n\n\t\tif(!isStackEmpty(state))\n\t\t{\n\t\t\tMap current_stack_frame = peekAtStack(state);\n\t\t\tcurrent_stack_frame.put(STATE_HELPER_CANCELED_BY_USER, Boolean.TRUE.toString());\n\n\t\t\tpopFromStack(state);\n\t\t}\n\n\t\tresetCurrentMode(state);\n\n\t}", "public synchronized void cancel() {\n this.executionState = JobExecutionState.CANCELLED;\n this.finished = Instant.now();\n }", "public synchronized void cancel() {\n }", "@Override\r\n\tpublic boolean isCanceled() {\n\t\treturn false;\r\n\t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n cancelCurrentTask();\n }", "Update withCancelRequested(Boolean cancelRequested);", "private void setTOStateFailed(TCSObjectReference<TransportOrder> ref) {\n requireNonNull(ref, \"ref\");\n\n TransportOrder failedOrder = kernel.getTCSObject(TransportOrder.class, ref);\n kernel.setTransportOrderState(ref, TransportOrder.State.FAILED);\n // A transport order has failed - check if it's part of an order\n // sequence that we need to take care of.\n if (failedOrder.getWrappingSequence() == null) {\n return;\n }\n OrderSequence sequence = kernel.getTCSObject(OrderSequence.class,\n failedOrder.getWrappingSequence());\n\n if (sequence.isFailureFatal()) {\n // Mark the sequence as complete to make sure no further orders are\n // added.\n kernel.setOrderSequenceComplete(sequence.getReference());\n // Mark all orders of the sequence that are not in a final state as\n // FAILED.\n sequence.getOrders().stream()\n .map(curRef -> kernel.getTCSObject(TransportOrder.class, curRef))\n .filter(o -> !o.getState().isFinalState())\n .forEach(o -> updateTransportOrderState(o.getReference(), TransportOrder.State.FAILED));\n // Move the finished index of the sequence to its end.\n kernel.setOrderSequenceFinishedIndex(sequence.getReference(),\n sequence.getOrders().size() - 1);\n }\n else {\n // Since failure of an order in the sequence is not fatal, increment the\n // finished index of the sequence by one to move to the next order.\n kernel.setOrderSequenceFinishedIndex(sequence.getReference(),\n sequence.getFinishedIndex() + 1);\n }\n // The sequence may have changed. Get an up-to-date copy.\n sequence = kernel.getTCSObject(OrderSequence.class, failedOrder.getWrappingSequence());\n // Mark the sequence as finished if there's nothing more to do in it.\n if (sequence.isComplete() && sequence.getNextUnfinishedOrder() == null) {\n kernel.setOrderSequenceFinished(sequence.getReference());\n // If the sequence was assigned to a vehicle, reset its back reference\n // on the sequence to make it available for orders again.\n if (sequence.getProcessingVehicle() != null) {\n kernel.setVehicleOrderSequence(sequence.getProcessingVehicle(), null);\n }\n }\n }", "@Override\n\t\tpublic boolean isCanceled() {\n\t\t\treturn false;\n\t\t}", "protected abstract void onCancel();", "@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n QQTetris.calculationThread.cancel();\n return INITIAL_BOARD.execute(false);\n }", "void cancelOriginal();", "public void flowAbrupted() {\n prevInstruction = null;\n }", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "TransitionRequestResult forceCancel(String namespace, String wid) throws Exception;", "public void cancel();", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\r\n\tpublic void updateState() {\r\n\t\tState<A> result = null;\r\n\t\tif(events.size() > 0){\r\n\t\t\tfor(Event<A> a : events){\r\n\t\t\t\tstate = (result = state.perform(this,a)) == null ? state : result;\r\n\t\t\t}\r\n\t\t\tevents.removeAllElements();\r\n\t\t}\r\n\t\tstate = (result = state.perform(this, null)) == null ? state : result;\r\n\t\trequestInput();\r\n\t\t\r\n\t}", "private void cancel() {\n\t\tfinish();\n\t}", "@Override\n\t\tprotected void calcNextState() {\n\t\t\tboolean manualPress = rd.gearManualLeftClose||rd.gearManualLeftOpen||rd.gearManualRightClose||rd.gearManualRightOpen;\n\t\t\t\n\t\t\t// if we complete an autoOpen/autoClose then switch to manual which is also like idle\n\t\t\tif (currentState==GearStates.autoOpen && rd.leftOpenSwitch && rd.rightOpenSwitch) {\n\t\t\t\tnextState = GearStates.manual;\n\t\t\t}\n\t\t\tif (currentState==GearStates.autoClose && rd.leftCloseSwitch && rd.rightCloseSwitch) {\n\t\t\t\tnextState = GearStates.manual;\n\t\t\t}\n\n\t\t\t// if the operator hits a button go to that state - manual overrides auto\n\t\t\tif(manualPress) nextState = GearStates.manual;\n\t\t\telse if (rd.gearAutoOpen) nextState = GearStates.autoOpen;\n\t\t\telse if (rd.gearAutoClose) nextState = GearStates.autoClose;\n\t\t\t\n\t\t\t// timeout - there is no way to timeout from manual operations, they're manual.\n\t\t\tif(secondsInState>3) nextState = GearStates.manual;\n\t\t}", "@Test\n public void cancelTicket() {\n Ticket ticket = givenTicketInOrderedBilled();\n\n // when\n boolean activateTicket = ticket.cancelTicket();\n\n // then\n assertTrue(activateTicket);\n assertTicketInState(ticket, TicketStateType.TICKET_CANCELLED, TransactionStateType.TRANSACTION_BILLED, 6);\n }" ]
[ "0.6910581", "0.60665536", "0.60588604", "0.60213995", "0.59733045", "0.5941269", "0.5806953", "0.5785227", "0.5764021", "0.57458526", "0.5705972", "0.56564784", "0.5651841", "0.56277347", "0.5586894", "0.5585142", "0.55739236", "0.555758", "0.55560523", "0.5555013", "0.5550831", "0.55468655", "0.554376", "0.5534179", "0.5504314", "0.55020297", "0.5488885", "0.54846305", "0.5465423", "0.54231066", "0.5419871", "0.54153764", "0.5397585", "0.5391541", "0.5381781", "0.53771377", "0.5376545", "0.5374358", "0.5367551", "0.5360157", "0.5360157", "0.5360157", "0.5360157", "0.53577363", "0.53577363", "0.53577363", "0.5356568", "0.5350513", "0.53490335", "0.5343038", "0.5337488", "0.5337488", "0.5330689", "0.53295", "0.53256506", "0.53082275", "0.5306646", "0.5305083", "0.5304858", "0.5300858", "0.5300159", "0.52872497", "0.52789885", "0.5278211", "0.5273259", "0.52724093", "0.5272004", "0.5271678", "0.5268342", "0.52586186", "0.52544516", "0.52492034", "0.52477384", "0.5237847", "0.5236982", "0.52349937", "0.52233976", "0.5222375", "0.5217462", "0.52147794", "0.5211609", "0.52094585", "0.5206456", "0.5203423", "0.52032995", "0.52032745", "0.5196119", "0.5196119", "0.5196119", "0.5196119", "0.5196119", "0.5187691", "0.51863885", "0.518323", "0.518323", "0.518323", "0.51830566", "0.51828605", "0.51696014", "0.5166971" ]
0.67497253
1
This method fails the vertex due to an external condition. The task will move to state FAILED. If the task was in state RUNNING or DEPLOYING before, it will send a cancel call to the TaskManager.
@Override public void fail(Throwable t) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancel() {\n\t\tassertRunningInJobMasterMainThread();\n\t\twhile (true) {\n\n\t\t\tExecutionState current = this.state;\n\n\t\t\tif (current == CANCELING || current == CANCELED) {\n\t\t\t\t// already taken care of, no need to cancel again\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// these two are the common cases where we need to send a cancel call\n\t\t\telse if (current == RUNNING || current == DEPLOYING) {\n\t\t\t\t// try to transition to canceling, if successful, send the cancel call\n\t\t\t\tif (startCancelling(NUM_CANCEL_CALL_TRIES)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// else: fall through the loop\n\t\t\t}\n\n\t\t\telse if (current == FINISHED) {\n\t\t\t\t// finished before it could be cancelled.\n\t\t\t\t// in any case, the task is removed from the TaskManager already\n\n\t\t\t\t// a pipelined partition whose consumer has never been deployed could still be buffered on the TM\n\t\t\t\t// release it here since pipelined partitions for FINISHED executions aren't handled elsewhere\n\t\t\t\t// covers the following cases:\n\t\t\t\t// \t\ta) restarts of this vertex\n\t\t\t\t// \t\tb) a global failure (which may result in a FAILED job state)\n\t\t\t\tsendReleaseIntermediateResultPartitionsRpcCall();\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (current == FAILED) {\n\t\t\t\t// failed before it could be cancelled.\n\t\t\t\t// in any case, the task is removed from the TaskManager already\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (current == CREATED || current == SCHEDULED) {\n\t\t\t\t// from here, we can directly switch to cancelled, because no task has been deployed\n\t\t\t\tif (cancelAtomically()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// else: fall through the loop\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new IllegalStateException(current.name());\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void testTaskManagerFailure(\n TestEnvironment testEnv,\n ExternalContext<RowData> externalContext,\n ClusterControllable controller)\n throws Exception {\n }", "public void deploy() throws JobException {\n\t\tassertRunningInJobMasterMainThread();\n\n\t\tfinal LogicalSlot slot = assignedResource;\n\n\t\t// make sure exactly one deployment call happens from the correct state\n\t\t// note: the transition from CREATED to DEPLOYING is for testing purposes only\n\t\tExecutionState previous = this.state;\n\t\tif (previous == SCHEDULED || previous == CREATED) {\n\t\t\tif (!transitionState(previous, DEPLOYING)) {\n\t\t\t\t// race condition, someone else beat us to the deploying call.\n\t\t\t\t// this should actually not happen and indicates a race somewhere else\n\t\t\t\tthrow new IllegalStateException(\"Cannot deploy task: Concurrent deployment call race.\");\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\t// vertex may have been cancelled, or it was already scheduled\n\t\t\tthrow new IllegalStateException(\"The vertex must be in CREATED or SCHEDULED state to be deployed. Found state \" + previous);\n\t\t}\n\n\t\tif (this != slot.getPayload()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\tString.format(\"The execution %s has not been assigned to the assigned slot.\", this));\n\t\t}\n\n\t\ttry {\n\n\t\t\t// race double check, did we fail/cancel and do we need to release the slot?\n\t\t\tif (this.state != DEPLOYING) {\n\t\t\t\tslot.releaseSlot(new FlinkException(\"Actual state of execution \" + this + \" (\" + state + \") does not match expected state DEPLOYING.\"));\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\tfinal TaskDeploymentDescriptor deployment = TaskDeploymentDescriptorFactory\n\t\t\t\t.fromExecutionVertex(vertex, attemptNumber)\n\t\t\t\t.createDeploymentDescriptor(\n\t\t\t\t\tslot.getAllocationId(),\n\t\t\t\t\tslot.getPhysicalSlotNumber(),\n\t\t\t\t\ttaskRestore,\n\t\t\t\t\tproducedPartitions.values());\n\n\t\t\t// null taskRestore to let it be GC'ed\n\t\t\t// 手动GC\n\t\t\ttaskRestore = null;\n\n\t\t\tfinal TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway();\n\n\t\t\tfinal ComponentMainThreadExecutor jobMasterMainThreadExecutor =\n\t\t\t\tvertex.getExecutionGraph().getJobMasterMainThreadExecutor();\n\n\t\t\t// 调用submitTask\n\t\t\tCompletableFuture.supplyAsync(() -> taskManagerGateway.submitTask(deployment, rpcTimeout), executor)\n\t\t\t\t.thenCompose(Function.identity())\n\t\t\t\t.whenCompleteAsync(\n\t\t\t\t\t(ack, failure) -> { },\n\t\t\t\t\tjobMasterMainThreadExecutor);\n\n\t\t}\n\t\tcatch (Throwable t) {\n\t\t\tmarkFailed(t);\n\n\t\t\tif (isLegacyScheduling()) {\n\t\t\t\tExceptionUtils.rethrow(t);\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tpublic void onTaskFail() {\n\t\t\n\t}", "@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n QQTetris.calculationThread.cancel();\n return INITIAL_BOARD.execute(false);\n }", "public void finish(){\n //check start vertex is valid for given algorithm\n }", "public void markAsFailed() {\n \n \t\texecutionStateChanged(ExecutionState.FAILED, \"Execution thread died unexpectedly\");\n \t}", "private void createNodeFailure(String path) {\n LOG.warn(\"failed to create task node\" + path);\n setDone(path, FAILURE);\n }", "private void handleTrainTaskFailure(final BackendEngineStatus queued, final ServerTracker server,\n final ServerConnector.AiServicesException exception) {\n\n // queue flag\n boolean requeueThis = !exception.getPermanentError();\n String logMessage;\n // get the first error with a non-zero result code\n ServerConnector.AiServicesException httpError = findFirstSuppressedHttpError(exception);\n // if there is one\n if (httpError != null) {\n switch (httpError.getResponseStatus()) {\n case HttpURLConnection.HTTP_BAD_REQUEST:\n case HttpURLConnection.HTTP_NOT_FOUND:\n requeueThis = false;\n break;\n default:\n break;\n }\n logMessage = httpError.getMessage();\n } else {\n logMessage = exception.toString();\n }\n\n try {\n if (requeueThis) {\n\n this.logger.logError(this.logFrom,\n String.format(\"REQUEUE train task that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // requeue the task now\n this.database.queueUpdate(this.serviceIdentity, queued.getAiid(),\n true, this.config.getProcessQueueScheduleFutureCommand(), QueueAction.TRAIN);\n } else {\n // don't requeue\n this.logger.logError(this.logFrom,\n String.format(\"DROP train-task that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // and permanently flag the AI state as ERROR\n this.database.updateAIStatus(this.serviceIdentity, queued.getAiid(), TrainingStatus.AI_ERROR,\n server.getServerIdentifier(), 0.0, 0.0);\n }\n } catch (DatabaseException e1) {\n this.logger.logException(this.logFrom, e1);\n }\n }", "@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n return INITIAL_BOARD.execute(false);\n }", "private void failBuild(final Exception e, final BuildListener listener) throws IOException {\n System.out.print(e.getStackTrace());\n if (this.getShouldNotFailBuild()) {\n listener.error(\"Remote build failed for the following reason, but the build will continue:\");\n listener.error(e.getMessage());\n } else {\n listener.error(\"Remote build failed for the following reason:\");\n throw new AbortException(e.getMessage());\n }\n }", "public void fail() {\r\n\t\tcontestantIt.currentC().updatePoints(-FAIL);\r\n\t}", "public TransactionBuilder checkInternalVertexExistence();", "public void halt() {\n\t\t// Task can not currently be halted.\n\t}", "void nodeFailedToStop(Exception e);", "public void engineFailureStatus() {\n \tthis.engineFailureActive = this.trainModelGUI.engineFailStatus();\n }", "public void onTaskFailure(Task<?> tsk, Exception ex)\n {\n m_RunningTasks.remove(tsk);\n }", "private void setTOStateFailed(TCSObjectReference<TransportOrder> ref) {\n requireNonNull(ref, \"ref\");\n\n TransportOrder failedOrder = kernel.getTCSObject(TransportOrder.class, ref);\n kernel.setTransportOrderState(ref, TransportOrder.State.FAILED);\n // A transport order has failed - check if it's part of an order\n // sequence that we need to take care of.\n if (failedOrder.getWrappingSequence() == null) {\n return;\n }\n OrderSequence sequence = kernel.getTCSObject(OrderSequence.class,\n failedOrder.getWrappingSequence());\n\n if (sequence.isFailureFatal()) {\n // Mark the sequence as complete to make sure no further orders are\n // added.\n kernel.setOrderSequenceComplete(sequence.getReference());\n // Mark all orders of the sequence that are not in a final state as\n // FAILED.\n sequence.getOrders().stream()\n .map(curRef -> kernel.getTCSObject(TransportOrder.class, curRef))\n .filter(o -> !o.getState().isFinalState())\n .forEach(o -> updateTransportOrderState(o.getReference(), TransportOrder.State.FAILED));\n // Move the finished index of the sequence to its end.\n kernel.setOrderSequenceFinishedIndex(sequence.getReference(),\n sequence.getOrders().size() - 1);\n }\n else {\n // Since failure of an order in the sequence is not fatal, increment the\n // finished index of the sequence by one to move to the next order.\n kernel.setOrderSequenceFinishedIndex(sequence.getReference(),\n sequence.getFinishedIndex() + 1);\n }\n // The sequence may have changed. Get an up-to-date copy.\n sequence = kernel.getTCSObject(OrderSequence.class, failedOrder.getWrappingSequence());\n // Mark the sequence as finished if there's nothing more to do in it.\n if (sequence.isComplete() && sequence.getNextUnfinishedOrder() == null) {\n kernel.setOrderSequenceFinished(sequence.getReference());\n // If the sequence was assigned to a vehicle, reset its back reference\n // on the sequence to make it available for orders again.\n if (sequence.getProcessingVehicle() != null) {\n kernel.setVehicleOrderSequence(sequence.getProcessingVehicle(), null);\n }\n }\n }", "private void checkExecutionStatus() {\r\n\t\tif (detenido) {\r\n\t\t\tthrow new RejectedExecutionException(\"el procesador está detenido. no puede aceptar más tareas\");\r\n\t\t}\r\n\t}", "@Override\n\tpublic void notifyFailure(ResourceOperationDescription operationDescription, Task task, OperationResult parentResult) {\n\t\tnotifyAny(operationDescription);\n\t}", "@Test\n public void testErrorFlow() throws Exception {\n String cacheName = DEFAULT_CACHE_NAME;\n\n IgniteEx n = prepareNodeToCreateNewIndex(cacheName, 10, true);\n\n String idxName = \"IDX0\";\n BreakBuildIndexConsumer breakBuildIdxConsumer = addBreakIdxCreateConsumer(n, idxName, 1);\n\n IgniteInternalFuture<List<List<?>>> createIdxFut = createIdxAsync(n.cache(cacheName), idxName);\n\n breakBuildIdxConsumer.startBuildIdxFut.get(getTestTimeout());\n\n checkInitStatus(n, cacheName, false, 1);\n\n breakBuildIdxConsumer.finishBuildIdxFut.onDone();\n assertThrows(log, () -> createIdxFut.get(getTestTimeout()), IgniteCheckedException.class, null);\n\n checkCompletedStatus(n, cacheName);\n\n enableCheckpointsAsync(n, getTestIgniteInstanceName(), true).get(getTestTimeout());\n\n checkNoStatus(n, cacheName);\n }", "public static void handleInvalidTaskException() {\n System.out.println(\"\\tSorry sir, no such task was found in the list.\");\n Duke.jarvis.printDivider();\n }", "public boolean isIfTaskFails() {\n return getFlow().isIfTaskFails();\n }", "@Override\n public boolean onStepThrowable(FlowStep flowStep , Throwable throwable) {\n HadoopStepStats stats = (HadoopStepStats)flowStep.getFlowStepStats();\n String jobName = flowStep.getName();\n\n //get job node\n DAGNode<CascadingJob> node = dagNodeNameMap.get(jobName);\n if (node == null) {\n log.warn(\"Unrecognized jobId reported for succeeded job: \" + stats.getJobID());\n return false;\n }\n addCompletedJobStats(node.getJob(), stats);\n pushEvent(currentFlowId, new Event.JobFailedEvent(node));\n return false;\n }", "private synchronized void processTaskFailureEvent(final UniqueIdentifier subEvent, final Object parameter) {\n final AssignmentContent assignmentContent = (AssignmentContent) parameter;\n final UniqueIdentifier agentIdentifier = assignmentContent.getAgentIdentifier();\n final UniqueIdentifier roleIdentifier = assignmentContent.getRoleIdentifier();\n final UniqueIdentifier instanceGoalIdentifier = assignmentContent.getInstanceGoalIdentifier();\n final Assignment assignment = getAssignment(agentIdentifier, roleIdentifier, instanceGoalIdentifier);\n if (debug) LOG.debug(\"processEvent(): {} Failed To Achieve {}\", agentIdentifier, instanceGoalIdentifier);\n if (assignment != null) {\n this.getOrganizationModel().removeAssignment(assignment.getIdentifier());\n }\n }", "private static void testFail() throws Throwable {\n Scheduler userInt = SchedulerTHelper.getSchedulerInterface();\n\n for (int i = 0; i < jobs_fail; i++) {\n String job_path = new File(jobs_path.toURI()).getAbsolutePath() + \"/flow_fail_\" + (i + 1) +\n \".xml\";\n\n Exception exc = null;\n JobId job = null;\n try {\n job = userInt.submit(JobFactory.getFactory().createJob(job_path));\n } catch (Exception e) {\n exc = e;\n }\n Assert\n .assertTrue(\"Job \" + job_path + \" was supposed to be rejected but was created\",\n job == null);\n Assert.assertTrue(exc != null);\n }\n SchedulerTHelper.log(jobs_fail + \" invalid jobs successfully rejected\");\n }", "private ProjectedVertex() {\n this.valid = false;\n this.edge = null;\n }", "public void fail() {\n _siteStatus = false;\n _lockTable.clear();\n _accessedTransactions.clear();\n _uncommitDataMap.clear();\n _lastFailTime = _tm.getCurrentTime();\n }", "@Test\n public void testInDegreesInvalidEdgeTrgId() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n env.setParallelism(PARALLELISM);\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeInvalidTrgData(env),\n env);\n\n try {\n graph.inDegrees().output(new DiscardingOutputFormat<>());\n env.execute();\n\n fail(\"graph.inDegrees() did not fail.\");\n } catch (Exception e) {\n // We expect the job to fail with an exception\n }\n }", "public void failTask(Long taskId, Map<String, Object> outboundTaskVars, String userId, String faultName, boolean disposeKsession) {\n TaskServiceSession taskSession = null;\n try {\n taskSession = jtaTaskService.createSession();\n \n Task taskObj = taskSession.getTask(taskId);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n long pInstanceId = taskObj.getTaskData().getProcessInstanceId();\n if(taskObj.getTaskData().getStatus() != Status.InProgress) {\n throw new PermissionDeniedException(\"failTask() will not attempt operation due to incorrect existing status of : \"+taskObj.getTaskData().getStatus());\n }\n if(userId == null){\n userId = taskObj.getTaskData().getActualOwner().getId();\n }\n FaultData contentData = (FaultData)this.convertTaskVarsToContentData(outboundTaskVars, faultName);\n taskSession.taskOperation(Operation.Fail, taskId, userId, null, contentData, null);\n eventSupport.fireTaskFailed(taskId, userId);\n \n StringBuilder sBuilder = new StringBuilder(\"failTask()\");\n this.dumpTaskDetails(taskObj, sBuilder);\n \n kSessionProxy.completeWorkItem(taskObj.getTaskData().getWorkItemId(), outboundTaskVars, pInstanceId, sessionId);\n \n if(disposeKsession)\n kSessionProxy.disposeStatefulKnowledgeSessionAndExtras(sessionId);\n }catch(PermissionDeniedException x) {\n throw new RuntimeException(x);\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "@Override\n\t\t\t\tpublic void doFail() {\n\t\t\t\t}", "public void setToFailed() {\n if (currentStep.getCurrentPhase() != Step.Phase.FAILED) {\n changeCurrentStep(Step.Phase.FAILED);\n }\n setCompleteTime(System.currentTimeMillis());\n }", "private void handleLostExecutor(Protos.SchedulerTask task)\n {\n SchedulerNode.State state = this.app.getState(task.getNodeId());\n\n //dont deliver the failure if it was already sent in some form\n if( state.equals(SchedulerNode.State.FAILED)\n || state.equals(SchedulerNode.State.FINISHED)\n || state.equals(SchedulerNode.State.KILLED))\n {\n return;\n }\n\n //this.app.nodeFailed(this, task.getNodeId());\n }", "@Test\n public void testGetDegreesInvalidEdgeSrcTrgId() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n env.setParallelism(PARALLELISM);\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeInvalidSrcTrgData(env),\n env);\n\n try {\n graph.getDegrees().output(new DiscardingOutputFormat<>());\n env.execute();\n\n fail(\"graph.getDegrees() did not fail.\");\n } catch (Exception e) {\n // We expect the job to fail with an exception\n }\n }", "public void executeTask(Version theTask) {\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // todo: what to do here???\n\t // this task obviously didn't perform well .. \n\t // and now, there's another request to run it!\n\t if (true) {\n\t\t// either try the task again ... \n\t\t_stoppedTasks.remove(theTask);\n\t } else {\n\t\t// or, refuse to run it at all \n\t\treturn;\n\t }\n\t}\n\t\n\t// System.out.println(\" - - - - - - - - - - - PSL! entered executeTask, parameter version> \" + theTask);\n\t// if (_versionCache.contains(theTask)) return;\n\n\n\t// add the pre-execution task to our knowledge base\n\t// replicate it so that in case of a crash we may recover\n\t_versionCache.addVersion(theTask);\n\treplicate(theTask);\n\n\t// tell replicators that we are about to start executing\n\talertReplicatorsExecutingTask(theTask);\n\n\tString taskName = ((TaskDefinition)theTask.data()).getName();\n\n\t// execute the task and get the next task\n\tVersion nextTask = executeTaskLocal(theTask);\n\t_log.completedTaskLocal(theTask);\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // this task was supposed to be stopped .. can ignore result\n\t _stoppedTasks.remove(theTask);\n\t _log.ignoreResultsOfStoppedTask(theTask);\n\t} else if (nextTask == null) { \n\t // this only happens if we have reached\n\t // the end of the workflow execution \n\t // tell replicators that everything is done.\n\t System.out.println(\"WORKFLOW IS DONE\");\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t} else {\n\t nextTask.append(taskName);\n\t // todo: we need to find a way to replicate the \n\t // post-execution task in a clean way. The here-under\n\t // commented code does not work as it creates a version clash.\n\t // todo: 16-Feb maybe uncomment this??\n\t // _versionCache.addVersion(nextTask);\n\n\t // set the next task for execution\n\t queueTask(nextTask);\n\t // tell the replicators we are done executing the task, they\n\t // don't have to worry about things anymore.\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t}\n }", "@Override\n\tpublic void abortWorkItem(WorkItem arg0, WorkItemManager arg1) {\n\t}", "public void markAsFailed() {\n execution.setErrorReported();\n }", "void markFailed(Execution execution, Throwable cause);", "public void brakeFailureStatus() {\n \tthis.brakeFailureActive = this.trainModelGUI.brakeFailStatus();\n }", "@Test\n public void testGetDegreesInvalidEdgeTrgId() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n env.setParallelism(PARALLELISM);\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeInvalidTrgData(env),\n env);\n\n try {\n graph.getDegrees().output(new DiscardingOutputFormat<>());\n env.execute();\n\n fail(\"graph.getDegrees() did not fail.\");\n } catch (Exception e) {\n // We expect the job to fail with an exception\n }\n }", "@RequiresLock(\"SeaLock\")\r\n protected void dependentInvalidAction() {\r\n // by default do nothing\r\n }", "@Override\n\tpublic void execute(GamePlayer player, PBMessage packet) throws Exception {\n\t\tTaskSetFailReqMsg req = TaskSetFailReqMsg.parseFrom(packet.getBytes());\n\t\tint taskId = req.getTaskId();\n\t\tDate current = new Date();\n\t\tTaskInfo info = player.getTaskInventory().getTaskInfos().get(taskId).getInfo();\n\t\tTaskCfg cfg = TaskTemplateMgr.getTaskCfg(taskId);\n\t\tif (cfg.getTaskTime() > 0) {\n\t\t\tif (current.getTime() - info.getCreateTime().getTime() >= cfg.getTaskTime() * 1000) {\n\t\t\t\tinfo.setCreateTime(current);\n\t\t\t\tinfo.setUpdateTime(current);\n\t\t\t\tinfo.setProcess(0);\n\t\t\t\tinfo.setState(TaskInfo.UN_ACCEPT);\n\t\t\t\tinfo.setOp(Option.Update);\n\n\t\t\t\tTaskSetFailRespMsg.Builder resp = TaskSetFailRespMsg.newBuilder();\n\t\t\t\tresp.setTaskId(taskId);\n\t\t\t\tPBMessage pkg = MessageUtil.buildMessage(Protocol.U_RESP_SETTASKFAIL, resp);\n\t\t\t\tplayer.sendPbMessage(pkg);\n\n\t\t\t\tTaskUpdateRespMsg.Builder notify = TaskUpdateRespMsg.newBuilder();\n\t\t\t\tnotify.setInfo(TaskManager.getTaskMsg(info));\n\t\t\t\tpkg = MessageUtil.buildMessage(Protocol.U_RESP_TASKUPDATE, notify);\n\t\t\t\tplayer.sendPbMessage(pkg);\n\t\t\t} else {\n\t\t\t\tErrorMsgUtil.sendErrorMsg(player, ErrorCode.UNKNOW_ERROR, Protocol.C_REQ_SETTASKFAIL, \"时间未到:\" + taskId);\n\t\t\t}\n\t\t} else {\n\t\t\tErrorMsgUtil.sendErrorMsg(player, ErrorCode.UNKNOW_ERROR, Protocol.C_REQ_SETTASKFAIL, \"非定时任务:\" + taskId);\n\t\t}\n\t}", "public VertexExistsException() {\r\n\t\tsuper(\"The VextexExistsException occured!\");\r\n\t}", "@Override\n public void markAsDone(long vertexId) {\n numActiveVertices--;\n }", "@Override\r\n\tpublic void onFail() {\n\t\tif(bSendStatus)\r\n\t\t\tnativeadstatus(E_ONFAIL);\r\n\t}", "private void onFailImageTransfer()\n {\n Log.d(TAG, \"onFailImageTransfer: finished.\");\n this.fragmentActivity.runOnUiThread(() -> Toast.makeText(this.fragmentActivity,\n \"Image transfer failed\", Toast.LENGTH_SHORT).show());\n\n switchToPickLayout();\n }", "com.google.cloud.networkmanagement.v1.AbortInfo.Cause getCause();", "public void pause() throws ClientException {\n taskgraph.getProperties().getEngine().execute(new Runnable() {\n public void run() {\n int result = WorkflowActionManager.CANCEL;\n\n try {\n result = WorkflowActionManager.authorizeWorkflowAction(WorkflowActions.PAUSE_ACTION, taskgraph,\n scheduler.getExecutionState());\n } catch (WorkflowException except) {\n except.printStackTrace();\n }\n\n try {\n if (result == WorkflowActionManager.AUTHORIZE) {\n scheduler.pauseTaskGraph();\n } else {\n handleCancel(result, null);\n }\n } catch (SchedulerException except) {\n except.printStackTrace();\n }\n }\n });\n }", "public VertexEvent() {\n\t\tsuper();\n\n\t\tthis.jobVertexID = new JobVertexID();\n\t\tthis.jobVertexName = null;\n\t\tthis.totalNumberOfSubtasks = -1;\n\t\tthis.indexOfSubtask = -1;\n\t\tthis.currentExecutionState = ExecutionState.CREATED;\n\t\tthis.description = null;\n\t}", "@RequiresLock(\"SeaLock\")\r\n protected void deponentInvalidAction(Drop invalidDeponent) {\r\n invalidate();\r\n }", "@When(\"je verifie le montant des frais de port et clique sur suivant\")\n\tpublic void je_verifie_le_montant_des_frais_de_port_et_clique_sur_suivant() {\n\t throw new PendingException();\n\t}", "@Override\n boolean isFailed() {\n return false;\n }", "@Test\n public void execute_invalidTaskIndexFilteredList_failure() {\n showTaskAtIndex(model, INDEX_FIRST_TASK);\n Index outOfBoundIndex = INDEX_SECOND_TASK;\n // ensures that outOfBoundIndex is still in bounds of deadline manager list\n assertTrue(outOfBoundIndex.getZeroBased() < model.getTaskCollection().getTaskList().size());\n\n EditCommand editCommand = new EditCommand(outOfBoundIndex,\n new EditTaskDescriptorBuilder().withName(VALID_NAME_BOB).build());\n\n assertCommandFailure(editCommand, model, commandHistory,\n Messages.MESSAGE_INVALID_TASK_DISPLAYED_INDEX);\n }", "protected abstract Version executeTaskLocal(Version theTask);", "protected Vertex() {\n\t\tisInDepot = false;\n\t}", "public void abortWorkItem(WorkItem workItem, WorkItemManager manager) {\n\n }", "@Override\n\t\t\tprotected Void doInBackground() throws Exception {\n\t\t\t\tif (!verifyStartEndVerticesExist(true, false)) {\n\t\t\t\t\tsetRunning(false);\n\t\t\t\t\treturn null;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t// Queue\n\t\t\t\tQueue<Vertex> q = new LinkedList<Vertex>();\n\t\t\t\t\n\t\t\t\t// set start vertex as visited\n\t\t\t\tpanel.getStartVertex().setVisited(true);\n\t\t\t\tq.add(panel.getStartVertex());\n\t\t\t\twhile (!q.isEmpty()) {\n\t\t\t\t\tVertex v = q.remove();\n\t\t\t\t\tv.setSelected(true);\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\tfor (Vertex vertex : getNeighbors(v)) {\n\t\t\t\t\t\tvertex.setHighlighted();\n\t\t\t\t\t\tpublish();\n\t\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t\t\tif (!vertex.isVisited()) {\n\t\t\t\t\t\t\tvertex.setVisited(true);\n\t\t\t\t\t\t\tvertex.setParent(v);\n\t\t\t\t\t\t\tq.add(vertex);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tv.setSelected(false);\n\t\t\t\t\tv.setHighlighted();\n\t\t\t\t\tpublish();\n\t\t\t\t\tThread.sleep(panel.getCurrentDelay());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tSystem.out.println(\"BFS Finished!\");\n\t\t\t\tpublish();\n\t\t\t\tsetRunning(false);\n\t\t\t\treturn null;\n\t\t\t}", "protected void onCancelled()\n {\n Update activity = (Update)m_ctx;\n activity.DeploymentFinished(false, m_ErrorCode);\n }", "private void handleDeleteTaskFailure(final BackendEngineStatus queued, final ServerTracker server,\n final ServerConnector.AiServicesException exception) {\n\n // requeue flag\n boolean requeueThis = true;\n String logMessage;\n // get the first suppressed error with a non-zero http error code\n ServerConnector.AiServicesException httpError = findFirstSuppressedHttpError(exception);\n if (httpError != null) {\n switch (httpError.getResponseStatus()) {\n case HttpURLConnection.HTTP_NOT_FOUND:\n requeueThis = false;\n break;\n default:\n break;\n }\n logMessage = httpError.getMessage();\n } else {\n logMessage = exception.toString();\n }\n\n try {\n if (requeueThis) {\n this.logger.logError(this.logFrom,\n String.format(\"REQUEUE delete that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // requeue\n this.database.queueUpdate(this.serviceIdentity, queued.getAiid(),\n true, this.config.getProcessQueueScheduleFutureCommand(), QueueAction.DELETE);\n } else {\n // drop the delete command and ignore permanently\n this.logger.logError(this.logFrom,\n String.format(\"DROP delete that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n }\n } catch (DatabaseException e1) {\n this.logger.logException(this.logFrom, e1);\n }\n }", "public abstract TaskResult runTask(TaskKey taskKey) throws JobException;", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n mListener.onWaitFragmentInteractionHide();\n }", "public void threadFail(Throwable e) {\n failure = e;\n resume(mainThread);\n }", "@Override\n public void abort(RuntimeStep exe) {\n }", "public void abortWorkItem(WorkItem workItem, WorkItemManager manager) {\n }", "private boolean isNotStopped(PersistentTasksCustomMetadata.PersistentTask<?> task) {\n TransformState state = (TransformState) task.getState();\n return state != null && state.getTaskState().equals(TransformTaskState.STOPPED) == false;\n }", "public interface ITaskFailure<E> {\n /**\n * \n * <i>Description:</i> ID that identifies the task that caused the failure\n * \n * @return the id\n */\n Object getTaskId();\n\n /**\n * \n * <i>Description:</i> The task can be used to retry to recover the failure\n * \n * @return the task\n */\n Callable<E> getTask();\n\n /**\n * \n * <i>Description:</i> transfer an <code>error</code> exception to a\n * FailureType so we a Failure Manager can handle the failure properly\n * \n * @param error\n * the exception that cause the failure\n * @return the {@link FailureType}\n */\n FailureType getFailureType(Throwable error);\n\n /**\n * \n * <i>Description:</i> called when the failure is identified as\n * unrecoverable\n * \n */\n void onFatal();\n}", "void taskFinished(Throwable t);", "private AvmTransactionResult runExternalInvoke(KernelInterface parentKernel, TransactionTask task, TransactionContext ctx) {\n AvmTransactionResult.Code error = null;\n\n // Sanity checks around energy pricing and nonce are done in the caller.\n // balance check\n Address sender = ctx.getSenderAddress();\n\n BigInteger transactionCost = BigInteger.valueOf(ctx.getTransaction().getEnergyLimit() * ctx.getTransactionEnergyPrice()).add(ctx.getTransferValue());\n if (!parentKernel.accountBalanceIsAtLeast(sender, transactionCost)) {\n error = AvmTransactionResult.Code.REJECTED_INSUFFICIENT_BALANCE;\n }\n\n // exit if validation check fails\n if (error != null) {\n AvmTransactionResult result = new AvmTransactionResult(ctx.getTransaction().getEnergyLimit(), ctx.getTransaction().getEnergyLimit());\n result.setResultCode(error);\n return result;\n }\n\n /*\n * After this point, no rejection should occur.\n */\n\n // Deduct the total energy cost\n parentKernel.adjustBalance(sender, BigInteger.valueOf(ctx.getTransaction().getEnergyLimit() * ctx.getTransactionEnergyPrice()).negate());\n\n // Run the common logic with the parent kernel as the top-level one.\n AvmTransactionResult result = commonInvoke(parentKernel, task, ctx);\n\n // Refund energy for transaction\n long energyRemaining = result.getEnergyRemaining() * ctx.getTransactionEnergyPrice();\n parentKernel.refundAccount(sender, BigInteger.valueOf(energyRemaining));\n\n // Transfer fees to miner\n parentKernel.adjustBalance(ctx.getMinerAddress(), BigInteger.valueOf(result.getEnergyUsed() * ctx.getTransactionEnergyPrice()));\n\n return result;\n }", "public void abortWorkItem(WorkItem workItem, WorkItemManager manager) {\n }", "@Override\n public void onTaskFailure(String result) {\n connectionProgressDialog.dismiss();\n\n }", "private void failJobAndIndependentStages(ActiveJob activeJob, String reason) {\n failJobAndIndependentStages(activeJob, reason, null);\n }", "@Override\n\t\t\tpublic void onFail() {\n\t\t\t\tcallBack.onCheckUpdate(-1, null); // 检查出错\n\t\t\t}", "@Override\n public WorkflowStep fail() {\n return DETECT_WINDOW;\n }", "protected void status(String status) throws InvalidKeyException {\n task.setStatus(status);\n }", "@Override\n public void onResponse(PersistentTasksCustomMetadata.PersistentTask<?> task) {\n onFailure.accept(exception);\n }", "public void setRunningTasksToFailure() {\r\n\t\tsetRunningTasksToFailureRecursive(elements);\r\n\t}", "void failure(ServiceExecutionEvent e) {\n\n }", "public void\n validate\n (\n TaskStatus status, \n TreeSet<String> privileged\n )\n throws PipelineException\n {\n throw new PipelineException\n (\"The task (\" + status + \") can only be created once!\");\n }", "@Override\n public void taskErrorMessage(Object result) {\n\n }", "@Override\n protected void checkCanceled() {\n long l = System.currentTimeMillis();\n if (l >= myTime) {\n throw new ProcessCanceledException();\n }\n }", "@Override\n\tpublic void failed(int taskId, JSONObject jObject) {\n\t\tdimissDialog();\n\t}", "@Override\n\tpublic void endFail() {\n\t\t\n\t}", "@Override\n public void onStepStopping(FlowStep flowStep) {\n }", "private void createTaskByTask(Job dependentJob, Layer dependentLayer, Job dependOnJob, Layer dependOnLayer) {\n final FrameRange dependentRange = layerDao.getFrameRange(dependentLayer);\n final FrameRange dependOnRange = layerDao.getFrameRange(dependOnLayer);\n final Set<Integer> dependOnTaskNumbers = Sets.newLinkedHashSet();\n\n final Map<Integer, UUID> dependentTaskCache = taskDao.buildTaskCache(dependentLayer, dependentRange.numFrames);\n final Map<Integer, UUID> dependOnTaskCache = taskDao.buildTaskCache(dependOnLayer, dependOnRange.numFrames);\n\n final TaskOnTaskBatch batch = new TaskOnTaskBatch(\n dependentRange.frameSet.size() / dependentRange.chunkSize);\n batch.dependentJob = dependentJob;\n batch.dependentLayer = dependentLayer;\n batch.dependOnJob = dependOnJob;\n batch.dependOnLayer = dependOnLayer;\n\n for (int i=0; i<dependentRange.frameSet.size(); i=i+dependentRange.chunkSize) {\n dependOnTaskNumbers.clear();\n\n // get the task number for the given index.\n int depTaskNum = dependentRange.frameSet.get(i);\n\n for (int c=0; c<dependentRange.chunkSize; c++) {\n int onTaskNum = depTaskNum + c;\n\n if (dependOnRange.frameSet.contains(onTaskNum)) {\n if (dependOnRange.chunkSize == 1) {\n dependOnTaskNumbers.add(onTaskNum);\n }\n else if (dependOnRange.chunkSize > 1) {\n int idx = (dependOnRange.frameSet.indexOf(onTaskNum)\n / dependOnRange.chunkSize) * dependOnRange.chunkSize;\n dependOnTaskNumbers.add(dependOnRange.frameSet.get(idx));\n }\n else if (dependOnRange.chunkSize <=0 ) {\n dependOnTaskNumbers.add(dependOnRange.frameSet.get(0));\n }\n }\n }\n\n if (dependOnTaskNumbers.isEmpty()) {\n continue;\n }\n\n final UUID[] dependOns = new UUID[dependOnTaskNumbers.size()];\n final int[] dependOnNumbers = new int[dependOnTaskNumbers.size()];\n\n int index = 0;\n for (int taskNum: dependOnTaskNumbers) {\n final UUID dependOnId = dependOnTaskCache.get(taskNum);\n if (dependOnId == null) {\n throw new DependencyException(\"Unable to find task \" +\n \"\" + taskNum + \" in \" + dependOnLayer.getName() + \", \" +\n \"while setting up dependencies.\");\n }\n dependOns[index] = dependOnId;\n dependOnNumbers[index] = taskNum;\n index++;\n }\n\n batch.addEntry(dependentTaskCache.get(depTaskNum), depTaskNum, dependOns, dependOnNumbers);\n }\n\n dependDao.batchCreateTaskOnTask(batch);\n dependDao.batchIncrementDependCounts(batch);\n }", "public synchronized void backendFailed\n\t\t(JobFrontendRef theJobFrontend,\n\t\t String name)\n\t\tthrows IOException\n\t\t{\n\t\tBackendInfo backendinfo = myNameToBackendMap.get (name);\n\t\tif (backendinfo != null)\n\t\t\t{\n\t\t\tlong now = System.currentTimeMillis();\n\t\t\tmyLog.log (now, \"Backend \" + name + \" failed\");\n//\t\t\tif (backendinfo.state != BackendInfo.State.FAILED)\n//\t\t\t\t{\n//\t\t\t\t/*TBD*/ Cancel any reserved or running job\n//\t\t\t\tbackendinfo.state = BackendInfo.State.FAILED;\n//\t\t\t\tbackendinfo.stateTime = now;\n//\t\t\t\tbackendinfo.job = null;\n//\t\t\t\tassignResourcesToJobs (now);\n//\t\t\t\t}\n\t\t\t}\n\t\t}", "private AvmTransactionResult backgroundProcessTransaction(TransactionTask task) {\n AvmTransactionResult.Code error = null;\n\n RuntimeAssertionError.assertTrue(task != null);\n TransactionContext ctx = task.getExternalTransactionCtx();\n RuntimeAssertionError.assertTrue(ctx != null);\n\n // All IO will be performed on an per task transactional kernel so we can abort the whole task in one go\n TransactionalKernel taskTransactionalKernel = new TransactionalKernel(this.kernel);\n task.setTaskKernel(taskTransactionalKernel);\n\n // value/energyPrice/energyLimit sanity check\n if ((ctx.getTransferValue().compareTo(BigInteger.ZERO) < 0) || (ctx.getTransactionEnergyPrice() <= 0)) {\n error = AvmTransactionResult.Code.REJECTED;\n }\n \n if (ctx.getTransactionKind() == Type.CREATE.toInt()) {\n if (!taskTransactionalKernel.isValidEnergyLimitForCreate(ctx.getTransaction().getEnergyLimit())) {\n error = AvmTransactionResult.Code.REJECTED;\n }\n } else {\n if (!taskTransactionalKernel.isValidEnergyLimitForNonCreate(ctx.getTransaction().getEnergyLimit())) {\n error = AvmTransactionResult.Code.REJECTED;\n }\n }\n\n // Acquire both sender and target resources\n Address sender = ctx.getSenderAddress();\n Address target = (ctx.getTransactionKind() == Type.CREATE.toInt()) ? ctx.getContractAddress() : ctx.getDestinationAddress();\n\n this.resourceMonitor.acquire(sender.toBytes(), task);\n this.resourceMonitor.acquire(target.toBytes(), task);\n\n // nonce check\n if (!taskTransactionalKernel.accountNonceEquals(sender, new BigInteger(ctx.getTransaction().getNonce()))) {\n error = AvmTransactionResult.Code.REJECTED_INVALID_NONCE;\n }\n\n AvmTransactionResult result = null;\n if (null == error) {\n // If this is a GC, we need to handle it specially. Otherwise, use the common invoke path (handles both CREATE and CALL).\n if (ctx.getTransactionKind() == Type.GARBAGE_COLLECT.toInt()) {\n // The GC case operates directly on the top-level KernelInterface.\n // (remember that the \"sender\" is who we are updating).\n result = runGc(taskTransactionalKernel, sender, ctx);\n } else {\n // The CREATE/CALL case is handled via the common external invoke path.\n result = runExternalInvoke(taskTransactionalKernel, task, ctx);\n }\n } else {\n result = new AvmTransactionResult(ctx.getTransaction().getEnergyLimit(), ctx.getTransaction().getEnergyLimit());\n result.setResultCode(error);\n }\n\n // Task transactional kernel commits are serialized through address resource monitor\n if (!this.resourceMonitor.commitKernelForTask(task, result.getResultCode().isRejected())){\n result.setResultCode(AvmTransactionResult.Code.FAILED_ABORT);\n }\n\n if (AvmTransactionResult.Code.FAILED_ABORT != result.getResultCode()){\n result.setKernelInterface(taskTransactionalKernel);\n }\n\n return result;\n }", "@Test\r\n void remove_nonexistent_vertex() {\r\n graph.addEdge(\"A\", \"B\");\r\n graph.addEdge(\"B\", \"C\");\r\n graph.removeVertex(\"D\");\r\n List<String> adjacent;\r\n vertices = graph.getAllVertices(); \r\n // Check that graph has all added vertexes\r\n if(!vertices.contains(\"A\")| !vertices.contains(\"B\")|\r\n !vertices.contains(\"C\")) {\r\n fail();\r\n }\r\n adjacent = graph.getAdjacentVerticesOf(\"A\");\r\n if (!adjacent.contains(\"B\"))\r\n fail();\r\n adjacent = graph.getAdjacentVerticesOf(\"B\");\r\n if (!adjacent.contains(\"C\"))\r\n fail();\r\n \r\n }", "public void onFailure(Throwable caught) {\n\t\t\tGWT.log(\"Error changing status\", caught);\t\n\t\t}", "private void validateVertex(int v) {\r\n\t if (v < 0 || v >= V)\r\n\t throw new IndexOutOfBoundsException(\"vertex \" + v + \" is not between 0 and \" + (V-1));\r\n\t }", "private void maybeInsertVertex(VerifiedVertex verifiedVertex) {\n\t\ttry {\n\t\t\tthis.vertexStore.insertVertex(verifiedVertex);\n\t\t} catch (MissingParentException e) {\n\t\t\tlog.debug(\"Could not insert timeout vertex: {}\", e.getMessage());\n\t\t}\n\t}", "public void testCancelOnBlocked() {\n \t\t//create a dummy project\n \t\tensureExistsInWorkspace(getWorkspace().getRoot().getProject(\"P1\"), true);\n \t\t//add a resource change listener that blocks forever, thus \n \t\t//simulating a scenario where workspace lock is held indefinitely\n \t\tfinal int[] barrier = new int[1];\n \t\tfinal Throwable[] error = new Throwable[1];\n \t\tIResourceChangeListener listener = new IResourceChangeListener() {\n \t\t\tpublic void resourceChanged(IResourceChangeEvent event) {\n \t\t\t\t//block until we are told to do otherwise\n \t\t\t\tbarrier[0] = TestBarrier.STATUS_START;\n \t\t\t\ttry {\n \t\t\t\t\tTestBarrier.waitForStatus(barrier, TestBarrier.STATUS_DONE);\n \t\t\t\t} catch (Throwable e) {\n \t\t\t\t\terror[0] = e;\n \t\t\t\t}\n \t\t\t}\n \t\t};\n \t\tgetWorkspace().addResourceChangeListener(listener);\n \t\ttry {\n \t\t\t//create a thread that modifies the workspace. This should \n\t\t\t//hang indefintely due to the misbehaving listener\n \t\t\tTestWorkspaceJob testJob = new TestWorkspaceJob(10);\n \t\t\ttestJob.setTouch(true);\n \t\t\ttestJob.setRule(getWorkspace().getRoot());\n \t\t\ttestJob.schedule();\n \n \t\t\t//wait until blocked on the listener\n \t\t\tTestBarrier.waitForStatus(barrier, TestBarrier.STATUS_START);\n \n \t\t\t//create a second thread that attempts to modify the workspace, but immediately\n \t\t\t//cancels itself. This thread should terminate immediately with a cancelation exception\n \t\t\tfinal boolean[] canceled = new boolean[] {false};\n \t\t\tThread t2 = new Thread(new Runnable() {\n \t\t\t\tpublic void run() {\n \t\t\t\t\ttry {\n \t\t\t\t\t\tgetWorkspace().run(new IWorkspaceRunnable() {\n \t\t\t\t\t\t\tpublic void run(IProgressMonitor monitor) {\n\t\t\t\t\t\t\t\t//noop\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t}, new CancelingProgressMonitor());\n \t\t\t\t\t} catch (CoreException e) {\n \t\t\t\t\t\tfail(\"1.99\", e);\n \t\t\t\t\t} catch (OperationCanceledException e) {\n \t\t\t\t\t\tcanceled[0] = true;\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \t\t\tt2.start();\n \t\t\ttry {\n \t\t\t\tt2.join();\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tfail(\"1.88\", e);\n \t\t\t}\n \t\t\t//should have canceled\n \t\t\tassertTrue(\"2.0\", canceled[0]);\n \n \t\t\t//finally release the listener and ensure the first thread completes\n \t\t\tbarrier[0] = TestBarrier.STATUS_DONE;\n \t\t\ttry {\n \t\t\t\ttestJob.join();\n \t\t\t} catch (InterruptedException e1) {\n \t\t\t\t//ignore\n \t\t\t}\n \t\t\tif (error[0] != null)\n \t\t\t\tfail(\"3.0\", error[0]);\n \t\t} finally {\n \t\t\tgetWorkspace().removeResourceChangeListener(listener);\n \t\t}\n \t}", "public void abortWorkItem(WorkItem workItem, WorkItemManager manager) {\n\t}", "public void onFailure(WorkContainer<K, V> wc) {\n wc.fail(clock);\n putBack(wc);\n }", "@Override\n public void taskIsUncompleted(final String taskId) {\n trace(LogMessage.TASK_3, taskId);\n final Task task = getTaskService().createTaskQuery().taskId(taskId).active().singleResult();\n assertThat(task, is(notNullValue()));\n\n // Assert the process is not completed\n new ProcessInstanceAssert(getConfiguration()).processIsActive(task.getProcessInstanceId());\n\n }", "void nodeFailedToStart(Exception e);", "@Entao(\"^nao sera possivel por falta de estoque$\")\n\tpublic void naoSeraPossivelPorFaltaDeEstoque() throws Throwable {\n\t throw new PendingException();\n\t}", "private synchronized void onJobFailure(final JobStatusProto jobStatusProto) {\n assert jobStatusProto.getState() == ReefServiceProtos.State.FAILED;\n\n final String id = this.jobId;\n final Optional<byte[]> data = jobStatusProto.hasException() ?\n Optional.of(jobStatusProto.getException().toByteArray()) :\n Optional.<byte[]>empty();\n final Optional<Throwable> cause = this.exceptionCodec.fromBytes(data);\n\n final String message;\n if (cause.isPresent() && cause.get().getMessage() != null) {\n message = cause.get().getMessage();\n } else {\n message = \"No Message sent by the Job in exception \" + cause.get();\n LOG.log(Level.WARNING, message, cause.get());\n }\n final Optional<String> description = Optional.of(message);\n\n final FailedJob failedJob = new FailedJob(id, message, description, cause, data);\n this.failedJobEventHandler.onNext(failedJob);\n }", "@Test\n public void testGetDegreesInvalidEdgeSrcId() throws Exception {\n\n final ExecutionEnvironment env = ExecutionEnvironment.getExecutionEnvironment();\n env.setParallelism(PARALLELISM);\n\n Graph<Long, Long, Long> graph =\n Graph.fromDataSet(\n TestGraphUtils.getLongLongVertexData(env),\n TestGraphUtils.getLongLongEdgeInvalidSrcData(env),\n env);\n\n try {\n graph.getDegrees().output(new DiscardingOutputFormat<>());\n env.execute();\n\n fail(\"graph.getDegrees() did not fail.\");\n } catch (Exception e) {\n // We expect the job to fail with an exception\n }\n }", "public void failOnMappingUpdate(Exception cause) {\n assert assertInvariants(ItemProcessingState.WAIT_FOR_MAPPING_UPDATE);\n currentItemState = ItemProcessingState.EXECUTED;\n final DocWriteRequest docWriteRequest = getCurrentItem().request();\n executionResult = new BulkItemResponse(\n getCurrentItem().id(),\n docWriteRequest.opType(),\n // Make sure to use getCurrentItem().index() here, if you use docWriteRequest.index() it will use the\n // concrete index instead of an alias if used!\n new BulkItemResponse.Failure(getCurrentItem().index(), docWriteRequest.id(), cause)\n );\n markAsCompleted(executionResult);\n }", "public ExecutionResult failed(Throwable throwable) {\n var duration = Duration.between(start(), Instant.now());\n return new ExecutionResult(1, duration, out.toString(), err.toString(), throwable);\n }", "public void stopTask(Version v) {\n\t_stoppedTasks.add(v);\n\t_log.stopTaskLocal(v);\n }" ]
[ "0.62132066", "0.59585834", "0.5882235", "0.5797789", "0.5565855", "0.5553254", "0.53191596", "0.5314658", "0.5308729", "0.53013796", "0.52905744", "0.52615577", "0.5142935", "0.5125396", "0.50998956", "0.508742", "0.50861007", "0.5075508", "0.50621", "0.5056842", "0.5055178", "0.5051642", "0.5042792", "0.5019139", "0.5018797", "0.49992403", "0.49607238", "0.49566555", "0.4928346", "0.4914457", "0.4912439", "0.4912342", "0.48855793", "0.48809835", "0.48064518", "0.4803854", "0.47933072", "0.4791186", "0.47909263", "0.4787708", "0.4771328", "0.47679958", "0.47618586", "0.4760936", "0.4755314", "0.47416034", "0.4729479", "0.47053275", "0.47049743", "0.4702526", "0.46995842", "0.46922636", "0.46885395", "0.46835354", "0.4680819", "0.46711996", "0.4666452", "0.4661546", "0.46534255", "0.46465257", "0.464356", "0.464248", "0.4633036", "0.46252975", "0.46204048", "0.46159804", "0.4612021", "0.46063486", "0.45896348", "0.4589118", "0.45845282", "0.45830116", "0.45822683", "0.4578944", "0.45717418", "0.45685095", "0.45664933", "0.45641312", "0.45594615", "0.4558778", "0.45561567", "0.4554543", "0.45525363", "0.45500702", "0.4548235", "0.454168", "0.45408368", "0.45261523", "0.45259982", "0.45186666", "0.45184043", "0.45165634", "0.4509676", "0.45091954", "0.45085013", "0.45077312", "0.45027423", "0.44960907", "0.44955218", "0.44939607", "0.44891778" ]
0.0
-1
Callbacks This method marks the task as failed, but will make no attempt to remove task execution from the task manager. It is intended for cases where the task is known not to be running, or then the TaskManager reports failure (in which case it has already removed the task).
void markFailed(Throwable t) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void onTaskFailure(Task<?> tsk, Exception ex)\n {\n m_RunningTasks.remove(tsk);\n }", "@Override\n\tpublic void onTaskFail() {\n\t\t\n\t}", "public void afterExecute(Runnable runnable, Throwable th) {\n Task task = (Task) runnable;\n task.setFinished(true);\n task.setError(th);\n getQueue().recycleBlockedQueue();\n super.afterExecute(runnable, th);\n }", "public void markAsFailed() {\n \n \t\texecutionStateChanged(ExecutionState.FAILED, \"Execution thread died unexpectedly\");\n \t}", "public void setRunningTasksToFailure() {\r\n\t\tsetRunningTasksToFailureRecursive(elements);\r\n\t}", "public void onTaskCompletion(Task<?> task)\n {\n m_RunningTasks.remove(task);\n }", "void taskFinished(Throwable t);", "void markFailed(Execution execution, Throwable cause);", "private void handleLostExecutor(Protos.SchedulerTask task)\n {\n SchedulerNode.State state = this.app.getState(task.getNodeId());\n\n //dont deliver the failure if it was already sent in some form\n if( state.equals(SchedulerNode.State.FAILED)\n || state.equals(SchedulerNode.State.FINISHED)\n || state.equals(SchedulerNode.State.KILLED))\n {\n return;\n }\n\n //this.app.nodeFailed(this, task.getNodeId());\n }", "@Override\n public void onResponse(PersistentTasksCustomMetadata.PersistentTask<?> task) {\n onFailure.accept(exception);\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n mListener.onWaitFragmentInteractionHide();\n }", "public void markAsFailed() {\n execution.setErrorReported();\n }", "@Override\n\tpublic void notifyFailure(ResourceOperationDescription operationDescription, Task task, OperationResult parentResult) {\n\t\tnotifyAny(operationDescription);\n\t}", "public void failTask(Long taskId, Map<String, Object> outboundTaskVars, String userId, String faultName, boolean disposeKsession) {\n TaskServiceSession taskSession = null;\n try {\n taskSession = jtaTaskService.createSession();\n \n Task taskObj = taskSession.getTask(taskId);\n int sessionId = taskObj.getTaskData().getProcessSessionId();\n long pInstanceId = taskObj.getTaskData().getProcessInstanceId();\n if(taskObj.getTaskData().getStatus() != Status.InProgress) {\n throw new PermissionDeniedException(\"failTask() will not attempt operation due to incorrect existing status of : \"+taskObj.getTaskData().getStatus());\n }\n if(userId == null){\n userId = taskObj.getTaskData().getActualOwner().getId();\n }\n FaultData contentData = (FaultData)this.convertTaskVarsToContentData(outboundTaskVars, faultName);\n taskSession.taskOperation(Operation.Fail, taskId, userId, null, contentData, null);\n eventSupport.fireTaskFailed(taskId, userId);\n \n StringBuilder sBuilder = new StringBuilder(\"failTask()\");\n this.dumpTaskDetails(taskObj, sBuilder);\n \n kSessionProxy.completeWorkItem(taskObj.getTaskData().getWorkItemId(), outboundTaskVars, pInstanceId, sessionId);\n \n if(disposeKsession)\n kSessionProxy.disposeStatefulKnowledgeSessionAndExtras(sessionId);\n }catch(PermissionDeniedException x) {\n throw new RuntimeException(x);\n }finally {\n if(taskSession != null)\n taskSession.dispose();\n }\n }", "public void setTaskCompleted(TaskAttemptID taskID) {\n taskStatuses.get(taskID).setState(TaskStatus.SUCCEEDED);\n successfulTaskID = taskID;\n activeTasks.remove(taskID);\n }", "@Override\n public void onFailure(Throwable t) {\n isSucessful.compareAndSet(true, false);\n failedMessages.put(id.getName(), t.getMessage());\n handleIfFinished(t, isSucessful.get());\n }", "protected void handleCompletedTask(Future<Task> task)\n {\n m_RunningTasks.remove(task);\n\n }", "@Override\n\tpublic void failed(int taskId, JSONObject jObject) {\n\t\tdimissDialog();\n\t}", "void stopTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<java.lang.Boolean> callback );", "public interface ITaskFailure<E> {\n /**\n * \n * <i>Description:</i> ID that identifies the task that caused the failure\n * \n * @return the id\n */\n Object getTaskId();\n\n /**\n * \n * <i>Description:</i> The task can be used to retry to recover the failure\n * \n * @return the task\n */\n Callable<E> getTask();\n\n /**\n * \n * <i>Description:</i> transfer an <code>error</code> exception to a\n * FailureType so we a Failure Manager can handle the failure properly\n * \n * @param error\n * the exception that cause the failure\n * @return the {@link FailureType}\n */\n FailureType getFailureType(Throwable error);\n\n /**\n * \n * <i>Description:</i> called when the failure is identified as\n * unrecoverable\n * \n */\n void onFatal();\n}", "@Override\n\tpublic int exec_task (PendingTask task) {\n\t\treturn exec_cleanup_pdl_stop (task);\n\t}", "protected void teardownTask(Task task) {\n }", "@Override\n public void taskIsUncompleted(final String taskId) {\n trace(LogMessage.TASK_3, taskId);\n final Task task = getTaskService().createTaskQuery().taskId(taskId).active().singleResult();\n assertThat(task, is(notNullValue()));\n\n // Assert the process is not completed\n new ProcessInstanceAssert(getConfiguration()).processIsActive(task.getProcessInstanceId());\n\n }", "@Override\n public void afterExecute(Task task, TaskState taskState) {\n String taskImpl = task.getClass().getSimpleName();\n if (taskImpl.endsWith(\"_Decorated\")) {\n taskImpl = taskImpl.substring(0, taskImpl.length() - \"_Decorated\".length());\n }\n String potentialExecutionTypeName = \"TASK_\" +\n CaseFormat.LOWER_CAMEL.converterTo(CaseFormat.UPPER_UNDERSCORE).\n convert(taskImpl);\n ExecutionType executionType;\n try {\n executionType = ExecutionType.valueOf(potentialExecutionTypeName);\n } catch (IllegalArgumentException ignored) {\n executionType = ExecutionType.GENERIC_TASK_EXECUTION;\n }\n\n List<Recorder.Property> properties = new ArrayList<Recorder.Property>();\n properties.add(new Recorder.Property(\"project\", task.getProject().getName()));\n properties.add(new Recorder.Property(\"task\", task.getName()));\n\n if (task instanceof DefaultAndroidTask) {\n String variantName = ((DefaultAndroidTask) task).getVariantName();\n if (variantName == null) {\n throw new IllegalStateException(\"Task with type \" + task.getClass().getName() +\n \" does not include a variantName\");\n }\n if (!variantName.isEmpty()) {\n properties.add(new Recorder.Property(\"variant\", variantName));\n }\n }\n\n TaskRecord taskRecord = taskRecords.get(task.getName());\n mRecorder.closeRecord(new ExecutionRecord(\n taskRecord.recordId,\n 0 /* parentId */,\n taskRecord.startTime,\n System.currentTimeMillis() - taskRecord.startTime,\n executionType,\n properties));\n }", "public void setToFailed() {\n if (currentStep.getCurrentPhase() != Step.Phase.FAILED) {\n changeCurrentStep(Step.Phase.FAILED);\n }\n setCompleteTime(System.currentTimeMillis());\n }", "void addDoneTask(Task task);", "public void uncheckTask() {\n isDone = false;\n }", "void setFailed(Throwable lastFailure);", "void deleteDoneTask(ReadOnlyTask floatingTask) throws TaskNotFoundException;", "void TaskFinished(Task task) {\n\n repository.finishTask(task);\n }", "private synchronized void processTaskFailureEvent(final UniqueIdentifier subEvent, final Object parameter) {\n final AssignmentContent assignmentContent = (AssignmentContent) parameter;\n final UniqueIdentifier agentIdentifier = assignmentContent.getAgentIdentifier();\n final UniqueIdentifier roleIdentifier = assignmentContent.getRoleIdentifier();\n final UniqueIdentifier instanceGoalIdentifier = assignmentContent.getInstanceGoalIdentifier();\n final Assignment assignment = getAssignment(agentIdentifier, roleIdentifier, instanceGoalIdentifier);\n if (debug) LOG.debug(\"processEvent(): {} Failed To Achieve {}\", agentIdentifier, instanceGoalIdentifier);\n if (assignment != null) {\n this.getOrganizationModel().removeAssignment(assignment.getIdentifier());\n }\n }", "public void taskSetFailed(TaskSet taskSet, String reason, Throwable exception) {\n eventProcessLoop.post(new TaskSetFailed(taskSet, reason, exception));\n }", "private void setTaskNothing(ITaskCluster taskCluster, ICommonTask task, Object taskServiceResult, Throwable throwable) {\n getTaskManagerConfiguration().getTaskManagerWriter().saveNothingTask(taskCluster, task, taskServiceResult, throwable);\n\n onNothingTasks(taskCluster, Collections.singletonList(task));\n }", "private TasksLists setTaskDone(ITaskCluster taskCluster, ICommonTask task, Object taskServiceResult) {\n return nextTasks(taskCluster, task, taskServiceResult);\n }", "void deleteTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "private void postTaskToExecutor(Runnable task) {\n try {\n mExecutor.execute(task);\n } catch (RejectedExecutionException failException) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception posting task to executor\",\n failException);\n // If posting a task throws an exception, then there is no choice\n // but to destroy the stream without invoking the callback.\n synchronized (mNativeStreamLock) {\n mReadState = mWriteState = State.ERROR;\n destroyNativeStreamLocked(false);\n }\n }\n }", "public void handleFailedContainer(TaskAttemptId attemptID);", "@Override\n public void taskErrorMessage(Object result) {\n\n }", "public void afterDone() {\n super.afterDone();\n if (wasInterrupted()) {\n InterruptibleTask interruptibleTask = this.task;\n if (interruptibleTask != null) {\n interruptibleTask.interruptTask();\n }\n }\n this.task = null;\n }", "public SubTaskGroup createFailedPrecheckTask(Map<String, String> failedNodes) {\n return createFailedPrecheckTask(failedNodes, false);\n }", "public void taskComplete() {\n mTasksLeft--;\n if ((mTasksLeft==0) & mHasCloRequest){\n onAllTasksCompleted();\n }\n }", "public static void setPermanentlyFailed(StateStore stateStore, PodInstance podInstance) {\n stateStore.storeTasks(\n StateStoreUtils.fetchPodTasks(stateStore, podInstance).stream()\n .map(taskInfo -> taskInfo.toBuilder()\n .setLabels(new TaskLabelWriter(taskInfo).setPermanentlyFailed().toProto())\n .build())\n .collect(Collectors.toList()));\n }", "@Override\n protected void afterExecute(final Runnable r, final Throwable t) {\n mActiveTasks.remove(r);\n\n // Perform a quick check to see if there are any remaining requests in\n // the blocked queue. Peek the head and check for duplicates in the \n // active and task queues. If no duplicates exist, add the request to\n // the task queue. Repeat this until a duplicate is found\n synchronized (mBlockedTasks) {\n while(mBlockedTasks.peek()!=null && \n !mTaskQueue.contains(mBlockedTasks.peek()) && \n !mActiveTasks.contains(mBlockedTasks.peek())){\n Runnable runnable = mBlockedTasks.poll();\n if(runnable!=null){\n mThreadPool.execute(runnable);\n }\n }\n }\n super.afterExecute(r, t);\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "private void handleErrorsInTask(String result) {\n Log.e(\"ASYNC_TASK_ERROR\", result);\n }", "private static void taskCompleted(Context context, String uniqueId) {\n context.getContentResolver().delete(TaskContract.TaskEntry.CONTENT_URI,\n TaskContract.TaskEntry.UNIQUE_ID+\"=?\",\n new String[] {uniqueId});\n NotificationUtils.clearAllNotifications(context);\n }", "private void createNodeFailure(String path) {\n LOG.warn(\"failed to create task node\" + path);\n setDone(path, FAILURE);\n }", "protected void dofinally(TaskResult taskResult){\n }", "@Override\n public void testTaskManagerFailure(\n TestEnvironment testEnv,\n ExternalContext<RowData> externalContext,\n ClusterControllable controller)\n throws Exception {\n }", "public void taskFinished(NewsRssUrlCheckTask finishedTask, boolean result);", "public abstract Task markAsDone();", "public void execute(RunnableX task, Consumer<Throwable> onError) {\n if (isCancelled())\n return;\n\n executor.execute(qryId, fragmentId(), () -> {\n try {\n task.run();\n }\n catch (Throwable e) {\n onError.accept(e);\n\n throw new IgniteInternalException(\"Unexpected exception\", e);\n }\n });\n }", "@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n this.missingFutures = 0;\n this.missingTetromino = 0;\n return INITIAL_BOARD.execute(false);\n }", "public void finishTask() {\n\t\t\n\t}", "private void handleDeleteTaskFailure(final BackendEngineStatus queued, final ServerTracker server,\n final ServerConnector.AiServicesException exception) {\n\n // requeue flag\n boolean requeueThis = true;\n String logMessage;\n // get the first suppressed error with a non-zero http error code\n ServerConnector.AiServicesException httpError = findFirstSuppressedHttpError(exception);\n if (httpError != null) {\n switch (httpError.getResponseStatus()) {\n case HttpURLConnection.HTTP_NOT_FOUND:\n requeueThis = false;\n break;\n default:\n break;\n }\n logMessage = httpError.getMessage();\n } else {\n logMessage = exception.toString();\n }\n\n try {\n if (requeueThis) {\n this.logger.logError(this.logFrom,\n String.format(\"REQUEUE delete that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // requeue\n this.database.queueUpdate(this.serviceIdentity, queued.getAiid(),\n true, this.config.getProcessQueueScheduleFutureCommand(), QueueAction.DELETE);\n } else {\n // drop the delete command and ignore permanently\n this.logger.logError(this.logFrom,\n String.format(\"DROP delete that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n }\n } catch (DatabaseException e1) {\n this.logger.logException(this.logFrom, e1);\n }\n }", "@Override\n public void run() {\n //如果本延迟任务已经执行,那么做个标识标注本清楚任务已经执行,然后手按下的时候那里就不会移除本任务\n b = false;\n cleanLine();\n }", "public void stopTask() {\n if(canRunTaskThread != null)\n canRunTaskThread.set(false);\n }", "private void handleTrainTaskFailure(final BackendEngineStatus queued, final ServerTracker server,\n final ServerConnector.AiServicesException exception) {\n\n // queue flag\n boolean requeueThis = !exception.getPermanentError();\n String logMessage;\n // get the first error with a non-zero result code\n ServerConnector.AiServicesException httpError = findFirstSuppressedHttpError(exception);\n // if there is one\n if (httpError != null) {\n switch (httpError.getResponseStatus()) {\n case HttpURLConnection.HTTP_BAD_REQUEST:\n case HttpURLConnection.HTTP_NOT_FOUND:\n requeueThis = false;\n break;\n default:\n break;\n }\n logMessage = httpError.getMessage();\n } else {\n logMessage = exception.toString();\n }\n\n try {\n if (requeueThis) {\n\n this.logger.logError(this.logFrom,\n String.format(\"REQUEUE train task that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // requeue the task now\n this.database.queueUpdate(this.serviceIdentity, queued.getAiid(),\n true, this.config.getProcessQueueScheduleFutureCommand(), QueueAction.TRAIN);\n } else {\n // don't requeue\n this.logger.logError(this.logFrom,\n String.format(\"DROP train-task that failed on backend %s with error %s\",\n server.getServerIdentifier(), logMessage));\n // and permanently flag the AI state as ERROR\n this.database.updateAIStatus(this.serviceIdentity, queued.getAiid(), TrainingStatus.AI_ERROR,\n server.getServerIdentifier(), 0.0, 0.0);\n }\n } catch (DatabaseException e1) {\n this.logger.logException(this.logFrom, e1);\n }\n }", "void saveTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<Void> callback );", "private void notifyUploadFail() {\n numberOfFail++;\n notificationBuilder.setContentText(getNotificationContent());\n notificationManger.notify(0, notificationBuilder.build());\n }", "private void finishTask(int idOfTask, boolean finished){\n Task taskToEdit = taskManager.getTaskById(idOfTask);\n taskToEdit.setFinished(finished);\n updateTaskInDatabase(taskToEdit);\n TextView taskText = (TextView) getView().findViewById(idOfTask);\n if (finished){\n taskText.setPaintFlags(taskText.getPaintFlags() | Paint.STRIKE_THRU_TEXT_FLAG);\n } else {\n taskText.setPaintFlags(taskText.getPaintFlags() & ~ Paint.STRIKE_THRU_TEXT_FLAG);\n }\n }", "public void resetTask() {}", "boolean fail(int rc) {\n if (complete.compareAndSet(false, true)) {\n this.rc = rc;\n submitCallback(rc);\n return true;\n } else {\n return false;\n }\n }", "@Override\n protected void succeeded() {\n eventService.publish(new TaskEndedEvent(this));\n\n }", "public void onFailure(Throwable caught) {\n if (attempt > 20) {\n fail();\n }\n \n int token = getToken();\n log(\"onFailure: attempt = \" + attempt + \", token = \" + token\n + \", caught = \" + caught);\n new Timer() {\n @Override\n public void run() {\n runAsync1(attempt + 1);\n }\n }.schedule(100);\n }", "void Finished(Task task, Action<TResult> lastFinishedAction);", "public void checkOffTask() {\n isDone = true;\n }", "@Test\n public void testTaskNeedingOtherTasksToCheckIfDoneWithTimeout() throws InterruptedException, TaskException {\n final ScheduledPoolingTask<Integer> scheduledPoolingTask = this.createFakeScheduledPoolingTask(1, 1, 7, 8, 100);\n\n final Task<Integer> simpleTask = this.createFakeSimpleTask(2);\n\n final TaskDependingOnOtherTasksExample task = new TaskDependingOnOtherTasksExample.Builder()\n .willTake(2)\n .withTimeout(10)\n .withDependingTask(simpleTask)\n .withDependingTask(scheduledPoolingTask)\n .build();\n\n task.execute();\n\n assertTrue(\"The task should be finished ok\", task.isDone());\n\n assertTrue(\"The simple should be finished NO ok\", simpleTask.isDone());\n assertTrue(\"The scheduled should be finished ok\", !scheduledPoolingTask.isDone());\n\n assertTrue(\"The task should be finished ok\", task.getResult()==0);\n assertTrue(\"The simpleTask should be finished ok\", simpleTask.getResult()==0);\n assertTrue(\"The scheduledPoolingTask should be finished ok\", scheduledPoolingTask.getResult()==1);\n\n\n }", "@Override\n\t\t\t\t\tpublic void onSuccess(String response) {\n\t\t\t\t\t\tString taskId = getTaskId(response);\n\t\t\t\t\t\tif(taskId != null)\n\t\t\t\t\t\tcontroller.removeTask(taskId);\n\t\t\t\t\t}", "void remove(final Task task);", "@Override\n\tpublic void exceptioned(int taskId, String msg) {\n\t\tdimissDialog();\n\t}", "void onBatchFailure(Exception failure) {\n this.failure = Objects.requireNonNull(failure);\n this.publishedStateConsumer = null;\n this.clusterStateAckListener = null;\n }", "public void unmarkTask(int taskIndex) {\n tasks.get(taskIndex).markTaskAsUncompleted();\n }", "default void terminateTask(UUID taskId, Consumer<Exception> failure) {\n this.terminateTask(taskId, Optional.empty(), Optional.ofNullable(failure));\n }", "public void executeTask(Version theTask) {\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // todo: what to do here???\n\t // this task obviously didn't perform well .. \n\t // and now, there's another request to run it!\n\t if (true) {\n\t\t// either try the task again ... \n\t\t_stoppedTasks.remove(theTask);\n\t } else {\n\t\t// or, refuse to run it at all \n\t\treturn;\n\t }\n\t}\n\t\n\t// System.out.println(\" - - - - - - - - - - - PSL! entered executeTask, parameter version> \" + theTask);\n\t// if (_versionCache.contains(theTask)) return;\n\n\n\t// add the pre-execution task to our knowledge base\n\t// replicate it so that in case of a crash we may recover\n\t_versionCache.addVersion(theTask);\n\treplicate(theTask);\n\n\t// tell replicators that we are about to start executing\n\talertReplicatorsExecutingTask(theTask);\n\n\tString taskName = ((TaskDefinition)theTask.data()).getName();\n\n\t// execute the task and get the next task\n\tVersion nextTask = executeTaskLocal(theTask);\n\t_log.completedTaskLocal(theTask);\n\n\tif (_stoppedTasks.contains(theTask)) {\n\t // this task was supposed to be stopped .. can ignore result\n\t _stoppedTasks.remove(theTask);\n\t _log.ignoreResultsOfStoppedTask(theTask);\n\t} else if (nextTask == null) { \n\t // this only happens if we have reached\n\t // the end of the workflow execution \n\t // tell replicators that everything is done.\n\t System.out.println(\"WORKFLOW IS DONE\");\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t} else {\n\t nextTask.append(taskName);\n\t // todo: we need to find a way to replicate the \n\t // post-execution task in a clean way. The here-under\n\t // commented code does not work as it creates a version clash.\n\t // todo: 16-Feb maybe uncomment this??\n\t // _versionCache.addVersion(nextTask);\n\n\t // set the next task for execution\n\t queueTask(nextTask);\n\t // tell the replicators we are done executing the task, they\n\t // don't have to worry about things anymore.\n\t alertReplicatorsDoneExecutingTask(theTask);\n\t}\n }", "public void onTaskVanished() {\n this.mHandler.post(new Runnable() {\n /* class com.android.systemui.stackdivider.$$Lambda$Divider$JQC7s2DcACmP1thtllRZ30N2PIw */\n\n public final void run() {\n Divider.this.removeDivider();\n }\n });\n }", "public interface TaskListener {\n void onFinished(boolean result);\n }", "private void handleMarkDone()\n throws InvalidTaskDisplayedException, DuplicateTaskException {\n Status done = new Status(true);\n ArrayList<ReadOnlyTask> markDoneTasks = tracker.getTasksFromIndexes(\n model, this.toDo.split(StringUtil.STRING_WHITESPACE), done);\n model.mark(markDoneTasks, done);\n }", "private TaskResourceRep finishDeactivateTask(BlockConsistencyGroup consistencyGroup, String task) {\n URI id = consistencyGroup.getId();\n Operation op = new Operation();\n op.ready();\n op.setProgress(100);\n op.setResourceType(ResourceOperationTypeEnum.DELETE_CONSISTENCY_GROUP);\n Operation status = _dbClient.createTaskOpStatus(BlockConsistencyGroup.class, id, task, op);\n return toTask(consistencyGroup, task, status);\n }", "@Override\n @NonNull\n public StorageTask<ResultT> addOnFailureListener(@NonNull OnFailureListener listener) {\n Preconditions.checkNotNull(listener);\n failureManager.addListener(null, null, listener);\n return this;\n }", "public void setFailure(boolean value) {\n\t\tif (value) {\n\t\t\tcountdown = EXIT_COUNT;\n\t\t}\n\t\tfailed = value;\n\t}", "public static void handleInvalidTaskException() {\n System.out.println(\"\\tSorry sir, no such task was found in the list.\");\n Duke.jarvis.printDivider();\n }", "public void removeTasks() {\n\t\t\r\n\t}", "void deleteUndoneTask(ReadOnlyTask target) throws UniqueTaskList.TaskNotFoundException;", "@Override\n public WorkflowStep fail() {\n this.boardChangeDetected = 0;\n QQTetris.calculationThread.cancel();\n return INITIAL_BOARD.execute(false);\n }", "public void markAsDone() throws TaskAlreadyDoneException {\n if (!this.isDone) {\n this.isDone = true;\n } else {\n throw new TaskAlreadyDoneException();\n }\n }", "public abstract Task onDeath() throws Exception;", "private void alertReplicatorsDoneExecutingTask(Version theTask) {\n\tsynchronized(_replicatorQueue) {\n\t for (int i = 0; i < _replicatorQueue.size(); i++) {\n\t\tReplicatorHandle rh = (ReplicatorHandle) \n\t\t _replicatorQueue.get(i);\n\t\trh.alertDoneExecutingTask(theTask, this);\n\t }\n\t}\t\n }", "public void finish() {\n\t\ttask.run();\n\t\ttask.cancel();\n\t}", "@Override\n\tprotected void onCancelled(BackgroundTaskResult result)\n\t{\n\t\ttaskCompleted = true;\n\t\tdismissProgressDialog();\n\t\tnotifyTaskCancelled(result);\n\t}", "void reportJobTaskRejected(final String jobTaskId, final JobTrackingWorkerFailure rejectionDetails) throws JobReportingException;", "protected void postTask(Task __task) {\r\n\t\tlock.lock();\r\n\t\ttry {\r\n\t\t\ttaskList.addLast(__task);\r\n\t\t\tcondition.signalAll();\r\n\t\t} finally {\r\n\t\t\tlock.unlock();\r\n\t\t}\r\n\t}", "@Override\n public void jobFailedNotification(String scriptId, JobStats stats) {\n if (stats.getJobId() == null) {\n log.warn(\"jobId for failed job not found. This should only happen in local mode\");\n return;\n }\n\n DAGNode<PigJob> node = dagNodeJobIdMap.get(stats.getJobId());\n if (node == null) {\n log.warn(\"Unrecognized jobId reported for failed job: \" + stats.getJobId());\n return;\n }\n\n addCompletedJobStats(node.getJob(), stats);\n pushEvent(scriptId, new Event.JobFailedEvent(node));\n }", "void finish(Task task);", "private void handleUnassignedTask(String path) {\n if (ZKSplitLog.isRescanNode(watcher, path)) {\n return;\n }\n Task task = findOrCreateOrphanTask(path);\n if (task.isOrphan() && (task.incarnation.get() == 0)) {\n LOG.info(\"resubmitting unassigned orphan task \" + path);\n // ignore failure to resubmit. The timeout-monitor will handle it later\n // albeit in a more crude fashion\n resubmitTask(path, task, FORCE);\n }\n }", "public void recoverTask(int index, Task task) {\n tasks.add(index, task);\n }", "public void deleteTask() {\n\t\tsuper.deleteTask();\n\t\tif (mTaskDetailNavigator != null) {\n\t\t\tmTaskDetailNavigator.onTaskDeleted();\n\t\t}\n\t}", "@Override\n public void cleanUpPendingTask(String workflowExtRef) throws WorkflowException {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Starting cleanup task for APIStateChangeWSWorkflowExecutor for :\" + workflowExtRef);\n }\n String errorMsg;\n super.cleanUpPendingTask(workflowExtRef);\n try {\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n apiMgtDAO.deleteWorkflowRequest(workflowExtRef);\n } catch (APIManagementException axisFault) {\n errorMsg = \"Error sending out cancel pending application approval process message. cause: \" + axisFault\n .getMessage();\n throw new WorkflowException(errorMsg, axisFault);\n }\n }", "@Override\n protected void onPostExecute(Void aVoid) {\n if (checkDelay.onDownloadImageTaskCheck()) {\n checkDelay.onDelayDownloadingError();\n }\n }", "@Override\n\tpublic void onError(TaskItem item) {\n\t\treportFailure((IMediaFile) item.getUserData().get(\"file\"), item.getError());\n\t\titem.setHandler(null);\n\t\titem.setOperation(null);\n\t\titem.getUserData().clear();\n\t}" ]
[ "0.7784734", "0.6900677", "0.67817724", "0.66658735", "0.6341427", "0.63091713", "0.62535673", "0.6238594", "0.6158871", "0.61276114", "0.6022079", "0.6005159", "0.5996002", "0.5985765", "0.5964076", "0.5957707", "0.5941183", "0.5873363", "0.5844057", "0.5838744", "0.5836642", "0.58154416", "0.5772119", "0.5750251", "0.5747615", "0.57431257", "0.5725124", "0.570755", "0.566126", "0.5647116", "0.564593", "0.5634436", "0.56335855", "0.56198806", "0.55742615", "0.556721", "0.5549129", "0.5540577", "0.55211323", "0.54943025", "0.5493258", "0.5487123", "0.5465923", "0.5461527", "0.5461527", "0.5461465", "0.5441458", "0.5436173", "0.54337955", "0.54318845", "0.53763556", "0.5376098", "0.5370754", "0.5362739", "0.53603864", "0.53583515", "0.5346681", "0.5327248", "0.5322067", "0.53061616", "0.53006446", "0.529872", "0.5292209", "0.5262934", "0.5258994", "0.5255469", "0.5251407", "0.5244273", "0.5243692", "0.52436733", "0.52361566", "0.5212158", "0.5211991", "0.52099174", "0.5208862", "0.5204532", "0.5203828", "0.5199769", "0.5198126", "0.5190139", "0.5186873", "0.5183449", "0.5171724", "0.5168787", "0.51686716", "0.5161561", "0.5160781", "0.514731", "0.51393485", "0.51377535", "0.51340616", "0.51307565", "0.51279646", "0.51265705", "0.51217663", "0.51071817", "0.5103152", "0.5098051", "0.50930184", "0.50902563" ]
0.56347406
31
the taskmanagers can themselves cancel tasks without an external trigger, if they find that the network stack is canceled (for example by a failing / canceling receiver or sender this is an artifact of the old network runtime, but for now we need to support task transitions from running directly to canceled
void completeCancelling(Map<String, Accumulator<?, ?>> userAccumulators, boolean releasePartitions) { while (true) { ExecutionState current = this.state; if (current == CANCELED) { return; } else if (current == CANCELING || current == RUNNING || current == DEPLOYING) { updateAccumulatorsAndMetrics(userAccumulators); if (transitionState(current, CANCELED)) { finishCancellation(releasePartitions); return; } // else fall through the loop } else { // failing in the meantime may happen and is no problem. // anything else is a serious problem !!! if (current != FAILED) { String message = String.format("Asynchronous race: Found %s in state %s after successful cancel call.", vertex.getTaskNameWithSubtaskIndex(), state); LOG.error(message); vertex.getExecutionGraph().failGlobal(new Exception(message)); } return; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void cancelTask(String id);", "public void cancelRunnable() {\n\t\tif (taskID != null) {\n\t\t\tplugin.getServer().getScheduler().cancelTask(taskID);\n\t\t}\n\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tLog.d(\"cancel\", \"cancel my task\");\n\t\t\n\t\t}", "public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}", "public static void cancelTask() {\n try {\n if (Utils.isNotNull(tt)) {\n tt.cancel();\n }\n if (Utils.isNotNull(t)) {\n t.cancel();\n }\n } catch (Throwable e) {\n //Utils.debugModePrintStack(e, \"FMap\", \"cancelTask\");\n } finally {\n tt = null;\n t = null;\n }\n timeoutValue = 0;\n }", "public static synchronized void cancelAll(String id, boolean mayInterruptIfRunning) {\n for (int i = TASKS.size() - 1; i >= 0; i--) {\n Task task = TASKS.get(i);\n if (id.equals(task.id)) {\n if (task.future != null) {\n task.future.cancel(mayInterruptIfRunning);\n if (!task.managed.getAndSet(true)) {\n /*\n * the task has been submitted to the executor, but its\n * execution has not started yet, so that its run()\n * method will never call postExecute()\n */\n task.postExecute();\n }\n } else if (task.executionAsked) {\n Log.w(TAG, \"A task with id \" + task.id + \" cannot be cancelled (the executor set does not support it)\");\n } else {\n /* this task has not been submitted to the executor */\n TASKS.remove(i);\n }\n }\n }\n\n }", "private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}", "private void cancelPrevRegisterTask()\n\t{\n\t\tsynchronized (mSyncObj)\n\t\t{\n\t\t\tif (null != mRegistrationAsyncTask)\n\t\t\t{\n\t\t\t\tmRegistrationAsyncTask.cancel(true);\n\t\t\t}\n\t\t\tmRegistrationAsyncTask = null;\n\t\t}\n\t}", "private void cancelAllTasks() {\n if(artistTask != null) {\n artistTask.cancel(true);\n artistTask = null;\n }\n }", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "public void cancel() {\n\t\tassertRunningInJobMasterMainThread();\n\t\twhile (true) {\n\n\t\t\tExecutionState current = this.state;\n\n\t\t\tif (current == CANCELING || current == CANCELED) {\n\t\t\t\t// already taken care of, no need to cancel again\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// these two are the common cases where we need to send a cancel call\n\t\t\telse if (current == RUNNING || current == DEPLOYING) {\n\t\t\t\t// try to transition to canceling, if successful, send the cancel call\n\t\t\t\tif (startCancelling(NUM_CANCEL_CALL_TRIES)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// else: fall through the loop\n\t\t\t}\n\n\t\t\telse if (current == FINISHED) {\n\t\t\t\t// finished before it could be cancelled.\n\t\t\t\t// in any case, the task is removed from the TaskManager already\n\n\t\t\t\t// a pipelined partition whose consumer has never been deployed could still be buffered on the TM\n\t\t\t\t// release it here since pipelined partitions for FINISHED executions aren't handled elsewhere\n\t\t\t\t// covers the following cases:\n\t\t\t\t// \t\ta) restarts of this vertex\n\t\t\t\t// \t\tb) a global failure (which may result in a FAILED job state)\n\t\t\t\tsendReleaseIntermediateResultPartitionsRpcCall();\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (current == FAILED) {\n\t\t\t\t// failed before it could be cancelled.\n\t\t\t\t// in any case, the task is removed from the TaskManager already\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (current == CREATED || current == SCHEDULED) {\n\t\t\t\t// from here, we can directly switch to cancelled, because no task has been deployed\n\t\t\t\tif (cancelAtomically()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// else: fall through the loop\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new IllegalStateException(current.name());\n\t\t\t}\n\t\t}\n\t}", "@SuppressWarnings(\"unused\")\n @CalledByNative\n private void onCanceled() {\n postTaskToExecutor(new Runnable() {\n @Override\n public void run() {\n try {\n mCallback.onCanceled(CronetBidirectionalStream.this, mResponseInfo);\n } catch (Exception e) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception in onCanceled method\", e);\n }\n mInflightDoneCallbackCount.decrement();\n }\n });\n }", "@Override\n public void cancelMoveTask() {\n if (_movementTask != null) {\n cancelMoveTask2(true);\n _movementTask = null;\n }\n }", "@Override\n\tpublic void onDetach() {\n\t\tsuper.onDetach();\n\n\t\tif(taskFetcAllComments!=null&&taskFetcAllComments.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskFetcAllComments.cancel(true);\n\t\t}\n\n\t\tif(taskFetchNode!=null&&taskFetchNode.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskFetchNode.cancel(true);\n\t\t}\n\n\t\tif(taskPostComment!=null&&taskPostComment.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskPostComment.cancel(true);\n\t\t}\n\n\t\tif(taskPostImage!=null&&taskPostImage.getStatus()==AsyncTask.Status.RUNNING){\n\t\t\ttaskPostImage.cancel(true);\n\t\t}\n\t}", "final void interruptTask() {\n/* 82 */ Thread currentRunner = this.runner;\n/* 83 */ if (currentRunner != null) {\n/* 84 */ currentRunner.interrupt();\n/* */ }\n/* 86 */ this.doneInterrupting = true;\n/* */ }", "@Override\n public void onClick(DialogInterface dialog, int which) {\n cancelCurrentTask();\n }", "java.util.concurrent.Future<CancelSolNetworkOperationResult> cancelSolNetworkOperationAsync(\n CancelSolNetworkOperationRequest cancelSolNetworkOperationRequest);", "public void cancel() {\n if( this.attachedThread != null ) {\n this.attachedThread.interrupt();\n }\n else {\n this.attachedFuture.cancel( true );\n\n if( this.attachedHipanFuture != null ) {\n this.attachedHipanFuture.fail( new InterruptedException( \"Task was canceled\" ) );\n }\n }\n }", "private void cancel() {\n mFuture.cancel(mMayInterruptIfRunning);\n }", "@Override\n public void onCanceled(WorkerOperation.Result data) {\n super.onCanceled(data);\n\n }", "public void resetTask() {}", "public void cancel(){\n \tLog.v(TAG, \"Cancel request\");\n \t// Cancel the initialization task\n \tif(initTask != null){\n \t\tLog.i(TAG, \"initTask was not null.\");\n \t\tinitTask.cancel(true);\n \t\tinitTask = null;\n \t}\n }", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "@Override\n\tpublic void canceled() {\n\t\t\n\t}", "void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }", "public void interruptTask() {\n }", "public void interruptTask() {\n }", "@Override\n public void cancel() {\n }", "@Override\n public boolean cancel(boolean mayInterruptIfRunning) {\n callable.kill();\n\n return super.cancel(mayInterruptIfRunning);\n }", "@Override\n public void cancel() {\n }", "public static void cancelPendingOperations()\n {\n DELEGATE.cancelPendingOperations();\n }", "@Override\n\t\tpublic boolean isCanceled() {\n\t\t\treturn false;\n\t\t}", "@Override\r\n\tpublic boolean isCanceled() {\n\t\treturn false;\r\n\t}", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic boolean isCanceled() {\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public void cancel() {\n\n }", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "public boolean cancel(boolean mayInterruptIfRunning)\r\n/* 351: */ {\r\n/* 352:433 */ Object result = this.result;\r\n/* 353:434 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 354:435 */ return false;\r\n/* 355: */ }\r\n/* 356:438 */ synchronized (this)\r\n/* 357: */ {\r\n/* 358:440 */ result = this.result;\r\n/* 359:441 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 360:442 */ return false;\r\n/* 361: */ }\r\n/* 362:445 */ this.result = CANCELLATION_CAUSE_HOLDER;\r\n/* 363:446 */ if (hasWaiters()) {\r\n/* 364:447 */ notifyAll();\r\n/* 365: */ }\r\n/* 366: */ }\r\n/* 367:451 */ notifyListeners();\r\n/* 368:452 */ return true;\r\n/* 369: */ }", "void cancel(@NonNull java.lang.Runnable command, boolean mayInterruptIfRunning);", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "void onSynchronizationCancel();", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "@Override\n public void cancel() {\n\n }", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "public void cancelExecution() {\n \n \t\tcancelOrKillExecution(true);\n \t}", "public void checkCancel() throws CancellationException;", "public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }", "protected void cancelTimerTask() {\n ScheduledTimerTask scheduledTimerTask = this.scheduledTimerTask;\n if (null != scheduledTimerTask) {\n this.scheduledTimerTask = null;\n scheduledTimerTask.cancel();\n }\n }", "Completable cancelAsync(String resourceGroupName, String workflowName, String runName);", "public synchronized void cancelExecution() {\n this.status = EXECUTION_CANCELED;\n if (this.context != null)\n context.close(true);\n }", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tmStateHolder.cancelGetDataTask();\n\t\t}", "public static BucketbotTask createTaskCANCEL() {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.CANCEL;\r\n\t\treturn t;\r\n\t}", "public void stopTask() {\n if(canRunTaskThread != null)\n canRunTaskThread.set(false);\n }", "public void cancel();", "@Override\n\t\t\tpublic void setCanceled(boolean value) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic boolean cancel(boolean mayInterruptIfRunning) {\n\t\tboolean done = inner.cancel(mayInterruptIfRunning);\n\t\tif(done) {\n\t\t\tfor(Runnable r: completionListeners) {\n\t\t\t\tr.run();\n\t\t\t}\t\t\t\n\t\t}\n\t\tcompletionListeners.clear();\n\t\treturn done;\n\t}", "protected void abortScheduledTasks() {\r\n\r\n\t\tfor (ParallelTask<?> task : scheduledSubtasks) {\r\n\t\t\ttask.cancel();\r\n\t\t}\r\n\r\n\t\tscheduledSubtasks.clear();\r\n\t}", "void onCanceled();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "protected abstract void onCancel();", "public void removeTasks() {\n\t\t\r\n\t}", "@Override\n\t\tpublic void setCanceled(boolean arg0) {\n\n\t\t}", "public void computationCanceled(ComputationThread thread, WorkSection work);", "public void cancelTask() {\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save?\", null,\r\n JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTask();\r\n }\r\n todoListGui();\r\n }", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void cancel();", "void canceledPendingNodeStop();", "protected void stopTimeTask() {\n\t\tif (chatAsyncTask!=null) {\n\t\t\tchatAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (liveAsyncTask!=null) {\n\t\t\tliveAsyncTask.cancel(true);\n\t\t}\n\t\t\n\t\tif (timerTask!=null) {\n\t\t\ttimerTask.cancel();\n\t\t\ttimerTask = null;\n\t\t}\n\t\t\n\t\tif (timer!=null) {\n\t\t\ttimer.cancel();\n\t\t\ttimer = null;\n\t\t}\n\t\t\n\t\t\n\t}", "@Override\n protected void onStop() {\n cancellationTokenSource.cancel();\n\n super.onStop();\n }", "void cancelDataflow(TimelyResultProcessor resultProcessor, String queryId);", "private void handleCancel(int result, HistoryClipIn history) throws SchedulerException {\n if (result == WorkflowActionManager.CANCEL) {\n return;\n } else if (result == WorkflowActionManager.RESET) {\n handleResetAfterCancel();\n } else if (result == WorkflowActionManager.RESET_AND_RUN) {\n handleResetRunAfterCancel(history);\n }\n }", "public void cancel()\n\t{\n\t}", "public abstract boolean cancel();", "public void cancel() {\n\t}", "public void cancel(){\n cancelled = true;\n }", "private void handleLostExecutor(Protos.SchedulerTask task)\n {\n SchedulerNode.State state = this.app.getState(task.getNodeId());\n\n //dont deliver the failure if it was already sent in some form\n if( state.equals(SchedulerNode.State.FAILED)\n || state.equals(SchedulerNode.State.FINISHED)\n || state.equals(SchedulerNode.State.KILLED))\n {\n return;\n }\n\n //this.app.nodeFailed(this, task.getNodeId());\n }", "@Override\n\tpublic int exec_task (PendingTask task) {\n\t\treturn exec_cleanup_pdl_stop (task);\n\t}", "public synchronized void cancel() {\n }", "private int cancelSessionTasks(StringBuilder b) {\n int errcount = 0;\n // Stops scheduled tasks if any...\n //\n for (SessionTask task : tasklist) {\n try {\n task.cancel();\n tasklist.remove(task);\n } catch (Exception ex) {\n errcount++;\n append(b,\"\\t\",ex);\n }\n }\n return errcount;\n }", "@Override\n public void cleanUpPendingTask(String workflowExtRef) throws WorkflowException {\n\n if (log.isDebugEnabled()) {\n log.debug(\"Starting cleanup task for APIStateChangeWSWorkflowExecutor for :\" + workflowExtRef);\n }\n String errorMsg;\n super.cleanUpPendingTask(workflowExtRef);\n try {\n ApiMgtDAO apiMgtDAO = ApiMgtDAO.getInstance();\n apiMgtDAO.deleteWorkflowRequest(workflowExtRef);\n } catch (APIManagementException axisFault) {\n errorMsg = \"Error sending out cancel pending application approval process message. cause: \" + axisFault\n .getMessage();\n throw new WorkflowException(errorMsg, axisFault);\n }\n }", "void stopTask( org.openxdata.server.admin.model.TaskDef task, AsyncCallback<java.lang.Boolean> callback );", "public void onCancel();", "default void cancel() {\n\t\tcancelOriginal();\n\t\tFutureStream.super.cancel();\n\n\t}", "private void cancelMoveTask2(boolean shouldNotifySector) {\n if (_movementTask != null && !_movementTask.isDone()) {\n _movementTask.cancel(true);\n\n if (shouldNotifySector) {\n notifySector(false);\n }\n }\n }", "public boolean isCancelled();", "public boolean isCancelled();", "public boolean isCancelled();" ]
[ "0.69175273", "0.68795556", "0.68289053", "0.68140656", "0.6784301", "0.66803116", "0.66514826", "0.6631519", "0.66161615", "0.65427136", "0.6542423", "0.6507417", "0.64979416", "0.6443801", "0.6385522", "0.6355836", "0.6347096", "0.62913024", "0.6288894", "0.6261946", "0.6258842", "0.62405133", "0.62168384", "0.62168384", "0.62156254", "0.6178165", "0.6178165", "0.61769074", "0.61589885", "0.61370546", "0.61369574", "0.612995", "0.6122446", "0.6121331", "0.61160153", "0.6081073", "0.6079674", "0.60702187", "0.60674006", "0.6067266", "0.60557014", "0.60557014", "0.60557014", "0.6047933", "0.6028646", "0.6028646", "0.6028646", "0.60255253", "0.6014596", "0.6009542", "0.6005454", "0.5992786", "0.5988649", "0.5984452", "0.5971242", "0.596676", "0.59552765", "0.5930762", "0.59298956", "0.59181905", "0.5916084", "0.59132004", "0.59021246", "0.5891376", "0.58772594", "0.58772594", "0.58772594", "0.58772594", "0.58772594", "0.58772594", "0.587575", "0.5871789", "0.5864555", "0.5860703", "0.5854198", "0.5845572", "0.5845572", "0.5845572", "0.5845572", "0.5845572", "0.5843132", "0.58361125", "0.5830473", "0.58303946", "0.582847", "0.5821469", "0.58210534", "0.58182764", "0.5806152", "0.5797273", "0.5796748", "0.5796188", "0.57759887", "0.5771594", "0.5750643", "0.5743102", "0.573883", "0.5733414", "0.57290554", "0.57290554", "0.57290554" ]
0.0
-1
This method sends a CancelTask message to the instance of the assigned slot. The sending is tried up to NUM_CANCEL_CALL_TRIES times.
private void sendCancelRpcCall(int numberRetries) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "void sendCancelMessage();", "protected abstract void sendCancel(Status reason);", "public void cancelTask(String id);", "public static void cancelTask() {\n try {\n if (Utils.isNotNull(tt)) {\n tt.cancel();\n }\n if (Utils.isNotNull(t)) {\n t.cancel();\n }\n } catch (Throwable e) {\n //Utils.debugModePrintStack(e, \"FMap\", \"cancelTask\");\n } finally {\n tt = null;\n t = null;\n }\n timeoutValue = 0;\n }", "public void notifyCancel() {\n Player senderPlayer = this.getToTeleport().getPlayerReference(Player.class),\n targetPlayer = this.getTarget().getPlayerReference(Player.class);\n\n if (senderPlayer == null || targetPlayer == null) {\n return;\n }\n\n MainData.getIns().getMessageManager().getMessage(\"TPA_CANCELLED\").sendTo(senderPlayer);\n MainData.getIns().getMessageManager().getMessage(\"TPA_SELF_CANCELLED\").sendTo(targetPlayer);\n\n }", "public static BucketbotTask createTaskCANCEL() {\r\n\t\tBucketbotTask t = new BucketbotTask();\r\n\t\tt.taskType = TaskType.CANCEL;\r\n\t\treturn t;\r\n\t}", "Completable cancelAsync(String resourceGroupName, String workflowName, String runName);", "public boolean cancel(String experimentID, String taskID, String gatewayID, String tokenId)throws GFacException;", "public void cancelTask(){\n\t\tif(main.teleporting.containsKey(teleporter.getName())){\n\t\t\tmain.teleporting.remove(teleporter.getName());\n\t\t}\n\t\tthis.cancel();\n\t}", "pb4server.CancelCureSoliderAskReqOrBuilder getCancelCureSoliderAskReqOrBuilder();", "@Override\n public void onClick(DialogInterface dialog, int which) {\n cancelCurrentTask();\n }", "@objid (\"26d79ec6-186f-11e2-bc4e-002564c97630\")\n @Override\n public void performCancel() {\n }", "public abstract void cancel(float timeoutInSeconds)\n throws NotImplementedException, IncorrectStateException,\n TimeoutException, NoSuccessException;", "public void cancelRunnable() {\n\t\tif (taskID != null) {\n\t\t\tplugin.getServer().getScheduler().cancelTask(taskID);\n\t\t}\n\t}", "synchronized void cancel()\n {\n state = DNSState.CANCELED;\n notifyAll();\n }", "pb4server.CancelCureSoliderAskReq getCancelCureSoliderAskReq();", "public void cancel(){\n \tLog.v(TAG, \"Cancel request\");\n \t// Cancel the initialization task\n \tif(initTask != null){\n \t\tLog.i(TAG, \"initTask was not null.\");\n \t\tinitTask.cancel(true);\n \t\tinitTask = null;\n \t}\n }", "private void cancelPrevRegisterTask()\n\t{\n\t\tsynchronized (mSyncObj)\n\t\t{\n\t\t\tif (null != mRegistrationAsyncTask)\n\t\t\t{\n\t\t\t\tmRegistrationAsyncTask.cancel(true);\n\t\t\t}\n\t\t\tmRegistrationAsyncTask = null;\n\t\t}\n\t}", "java.util.concurrent.Future<CancelSolNetworkOperationResult> cancelSolNetworkOperationAsync(\n CancelSolNetworkOperationRequest cancelSolNetworkOperationRequest);", "@Override\n public boolean cancel(boolean mayInterruptIfRunning) {\n callable.kill();\n\n return super.cancel(mayInterruptIfRunning);\n }", "public void cancel() {\n\t\tassertRunningInJobMasterMainThread();\n\t\twhile (true) {\n\n\t\t\tExecutionState current = this.state;\n\n\t\t\tif (current == CANCELING || current == CANCELED) {\n\t\t\t\t// already taken care of, no need to cancel again\n\t\t\t\treturn;\n\t\t\t}\n\n\t\t\t// these two are the common cases where we need to send a cancel call\n\t\t\telse if (current == RUNNING || current == DEPLOYING) {\n\t\t\t\t// try to transition to canceling, if successful, send the cancel call\n\t\t\t\tif (startCancelling(NUM_CANCEL_CALL_TRIES)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// else: fall through the loop\n\t\t\t}\n\n\t\t\telse if (current == FINISHED) {\n\t\t\t\t// finished before it could be cancelled.\n\t\t\t\t// in any case, the task is removed from the TaskManager already\n\n\t\t\t\t// a pipelined partition whose consumer has never been deployed could still be buffered on the TM\n\t\t\t\t// release it here since pipelined partitions for FINISHED executions aren't handled elsewhere\n\t\t\t\t// covers the following cases:\n\t\t\t\t// \t\ta) restarts of this vertex\n\t\t\t\t// \t\tb) a global failure (which may result in a FAILED job state)\n\t\t\t\tsendReleaseIntermediateResultPartitionsRpcCall();\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (current == FAILED) {\n\t\t\t\t// failed before it could be cancelled.\n\t\t\t\t// in any case, the task is removed from the TaskManager already\n\n\t\t\t\treturn;\n\t\t\t}\n\t\t\telse if (current == CREATED || current == SCHEDULED) {\n\t\t\t\t// from here, we can directly switch to cancelled, because no task has been deployed\n\t\t\t\tif (cancelAtomically()) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t// else: fall through the loop\n\t\t\t}\n\t\t\telse {\n\t\t\t\tthrow new IllegalStateException(current.name());\n\t\t\t}\n\t\t}\n\t}", "protected abstract void onCancel();", "public void cancel( String reason );", "public void cancelAll() {\n terminateScheduleTask();\n for (CancellableCommand request : outstandingRequests) {\n request.onCancelled();\n }\n outstandingRequests.clear();\n }", "public abstract boolean cancel();", "protected MessageBody cancel() {\n\t\tPlatformMessage msg = cancelRequest(incidentAddress).getMessage();\n\t\talarm.cancel(context, msg);\n\t\treturn msg.getValue();\n\t}", "public void cancelTask() {\r\n int reply = JOptionPane.showConfirmDialog(null, \"Do you want to save?\", null,\r\n JOptionPane.YES_NO_OPTION);\r\n if (reply == JOptionPane.YES_OPTION) {\r\n saveTask();\r\n }\r\n todoListGui();\r\n }", "public synchronized void cancel() {\n }", "@SuppressWarnings(\"unused\")\n @CalledByNative\n private void onCanceled() {\n postTaskToExecutor(new Runnable() {\n @Override\n public void run() {\n try {\n mCallback.onCanceled(CronetBidirectionalStream.this, mResponseInfo);\n } catch (Exception e) {\n Log.e(CronetUrlRequestContext.LOG_TAG, \"Exception in onCanceled method\", e);\n }\n mInflightDoneCallbackCount.decrement();\n }\n });\n }", "@Override\n\t\t\t\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t}", "public boolean cancel(String requestId);", "@Override\r\n public void cancelMsg() {\n System.out.println(\"Transaction has been cancelled for gas pump #1..\");\r\n }", "public void checkCancel() throws CancellationException;", "void cancel(long inId);", "public void cancel() {\n try {\n bluetoothServerSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public CancelBundleTaskResponse cancelBundleTask(CancelBundleTask cancelBundleTask) {\n \t\treturn null;\r\n \t}", "@Override\n public void onClick(DialogInterface dialog, int which) {\n executor.cancel();\n }", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public void cancel();", "public boolean cancel(boolean mayInterruptIfRunning)\r\n/* 351: */ {\r\n/* 352:433 */ Object result = this.result;\r\n/* 353:434 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 354:435 */ return false;\r\n/* 355: */ }\r\n/* 356:438 */ synchronized (this)\r\n/* 357: */ {\r\n/* 358:440 */ result = this.result;\r\n/* 359:441 */ if ((isDone0(result)) || (result == UNCANCELLABLE)) {\r\n/* 360:442 */ return false;\r\n/* 361: */ }\r\n/* 362:445 */ this.result = CANCELLATION_CAUSE_HOLDER;\r\n/* 363:446 */ if (hasWaiters()) {\r\n/* 364:447 */ notifyAll();\r\n/* 365: */ }\r\n/* 366: */ }\r\n/* 367:451 */ notifyListeners();\r\n/* 368:452 */ return true;\r\n/* 369: */ }", "public void cancel(){\r\n\t\t\r\n\t\ttry{\t\t\t\r\n\t\t\t// Stop the runnable job\r\n\t\t\trunning = false;\r\n\t\t\tjoin(1000);\r\n\t\t\t\r\n\t\t\t// Close socket\r\n\t\t\toSocket.close();\r\n\t\t\t\r\n\t\t}catch(InterruptedException e1){\r\n\t\t\tLog.e(TAG, \"terminating tread failed\", e1);\r\n\t\t}catch (IOException e2) {\r\n\t\t\tLog.e(TAG, \"cancel(), closing socket failed\", e2);\r\n\t\t}\t\r\n\t}", "protected abstract void handleCancel();", "private void processCancelReservation() {\n System.out.println(\"Which reservation would you want to cancel? (the number associated to the reservation)\");\n\n boolean keepgoing = true;\n int command = 0;\n while (keepgoing) {\n command = input.nextInt();\n if (command > 0 && command < pickedAccount.getReservations().size() + 1) {\n keepgoing = false;\n } else {\n System.out.println(\"Invalid number, try again.\");\n }\n }\n pickedAccount.getReservations().get(command - 1).cancel();\n pickedAccount.getReservations().remove(command - 1);\n System.out.println(\"Reservation Cancelled\");\n }", "public void cancel()\n\t{\n\t}", "public void onCancel();", "@Override\n\t\tpublic void cancel() {\n\t\t\t\n\t\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\tpublic void cancel() {\n\n\t}", "@Override\n\t\tprotected void onCancelled() {\n\t\t\tsuper.onCancelled();\n\t\t\tLog.d(\"cancel\", \"cancel my task\");\n\t\t\n\t\t}", "public void cancel() {\r\n\t\tcanceled = true;\r\n\t\ttry {\r\n\t\t\tThread.sleep(51);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\n\t\t\t\t\t\tpublic void cancel() {\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}", "void cancel(@NonNull java.lang.Runnable command, boolean mayInterruptIfRunning);", "pb4server.CancelMakeSoliderAskReqOrBuilder getCancelMakeSoliderAskReqOrBuilder();", "public CancelSpotInstanceRequestsResponse cancelSpotInstanceRequests(CancelSpotInstanceRequests cancelSpotInstanceRequests) {\n \t\treturn null;\r\n \t}", "public void cancel() {\n request.disconnect();\n }", "public static synchronized void cancelAll(String id, boolean mayInterruptIfRunning) {\n for (int i = TASKS.size() - 1; i >= 0; i--) {\n Task task = TASKS.get(i);\n if (id.equals(task.id)) {\n if (task.future != null) {\n task.future.cancel(mayInterruptIfRunning);\n if (!task.managed.getAndSet(true)) {\n /*\n * the task has been submitted to the executor, but its\n * execution has not started yet, so that its run()\n * method will never call postExecute()\n */\n task.postExecute();\n }\n } else if (task.executionAsked) {\n Log.w(TAG, \"A task with id \" + task.id + \" cannot be cancelled (the executor set does not support it)\");\n } else {\n /* this task has not been submitted to the executor */\n TASKS.remove(i);\n }\n }\n }\n\n }", "void onSynchronizationCancel();", "abstract protected void cancelCommands();", "public void cancel(){\n cancelled = true;\n }", "@Override\r\n public void sendCancel(int id, int sliceId, int size, Instrument i, int clientId)\r\n {\n try\r\n {\r\n /* THIS SHIT HASNT ACTUALLY BEEN IMPLEMENTED YET!*/\r\n os = new ObjectOutputStream(omConn.getOutputStream());\r\n os.writeObject(\"orderCancelled\");\r\n os.writeInt(id);\r\n os.writeInt(clientId);\r\n os.flush();\r\n\r\n } catch (IOException e)\r\n {\r\n System.err.println(\"IOException occured in sendCancel, message: \"+e.getMessage());\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\tpublic void cancel() {\n\t\t\n\t}", "public boolean cancel();", "@Override\n public void cancelMoveTask() {\n if (_movementTask != null) {\n cancelMoveTask2(true);\n _movementTask = null;\n }\n }", "@Override\n public void cancel() {\n }", "@Override\n\t\t\t\t public void onCancel() {\n\t\t\t\t\t errorMessage = \"You cancelled Operation\";\n\t\t\t\t\t getResponse();\n\t\t\t\t }", "public void cancel() {\n\t}", "@Override\n public void cancel() {\n }", "public String cancel() {\n endConversation();\n return CANCEL_OUTCOME_ID;\n }", "public synchronized void cancelExecution() {\n this.status = EXECUTION_CANCELED;\n if (this.context != null)\n context.close(true);\n }", "@Override\r\n\tpublic void cancel() {\n\t\t\r\n\t}", "public void cancel() {\n try {\n mSocket.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "pb4server.CancelMakeSoliderAskReq getCancelMakeSoliderAskReq();", "@SuppressWarnings(\"unused\")\n\t\t\tpublic void cancel() {\n\t try {\n\t mmSocket.close();\n\t } catch (IOException e) { }\n\t }", "public void cancel() {\n btCancel().push();\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "public void cancel() {\n if( this.attachedThread != null ) {\n this.attachedThread.interrupt();\n }\n else {\n this.attachedFuture.cancel( true );\n\n if( this.attachedHipanFuture != null ) {\n this.attachedHipanFuture.fail( new InterruptedException( \"Task was canceled\" ) );\n }\n }\n }", "public synchronized void cancel() {\n this.executionState = JobExecutionState.CANCELLED;\n this.finished = Instant.now();\n }", "private void cancelTasks() {\n\t\ttimer.cancel();\n\t\ttimer.purge();\n\t}", "void cancel()\n {\n cancelled = true;\n subjobComplete = true;\n result = null;\n }", "@Override\n public void cancel() {\n\n }", "@Override\n public void cancel() {\n\n }", "public void cancel() {\r\n\t\t\ttry {\r\n\t\t\t\tsocket.close();\r\n\t\t\t} catch (IOException e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t}\r\n\t\t}", "protected abstract void handleCancel() throws Exception;", "java.util.concurrent.Future<CancelJobRunResult> cancelJobRunAsync(CancelJobRunRequest cancelJobRunRequest);", "public void cancel() {\n\t\tcancelled = true;\n\t}", "public void cancel() {\n try {\n\n mServerSocket.close();\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "private void closeAndCancel() {\n try {\n stats.removeKey(key);\n key.cancel();\n channel.close();\n } catch (IOException e) {\n System.err.println(\"Error while trying to close Task channel\");\n }\n }", "public void cancel(Object content){\n\t\t\n\t\tif (isInitiator() && (getState() != RequestProtocolState.DONE) && (getState() != RequestProtocolState.CANCELED)\n\t\t\t\t&& (getState() != RequestProtocolState.NOT_STARTED)) \n\t\t{\n\t\t\tsendMessage(content, Performative.CANCEL, getParticipants().get(0));\n\t\t\tsetState(RequestProtocolState.CANCELING);\n\t\t}\n\t\telse if (isParticipant()) {\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.21\")); //$NON-NLS-1$\n\t\t}\n\t\telse{\n\t\t\taddError(Locale.getString(\"FipaRequestProtocol.22\")); //$NON-NLS-1$\n\t\t}\n\t}", "private int cancelSessionTasks(StringBuilder b) {\n int errcount = 0;\n // Stops scheduled tasks if any...\n //\n for (SessionTask task : tasklist) {\n try {\n task.cancel();\n tasklist.remove(task);\n } catch (Exception ex) {\n errcount++;\n append(b,\"\\t\",ex);\n }\n }\n return errcount;\n }", "void cancel() {\n\tsleepThread.interrupt();\n }", "@Test\n\tpublic void testRejectCallWithSimultaneousCancel() throws Exception {\n\t\tlog.info(\"-------------------- Test Invite with Reject and simultaneous CANCEL --------------------\");\n\n\t\tEndPointEvent endPointEvent;\n\t\tCallEvent callEvent;\n\n\t\t// C:---INVITE---------->:S\n\t\tlog.info(clientName + \" dial to \" + serverName + \"...\");\n\t\tSipCallController clientCallController = new SipCallController(\n\t\t\t\tclientName);\n\t\tCall clientCall = clientEndPoint.dial(serverUri, clientCallController);\n\t\tlog.info(\"OK\");\n\n\t\tlog.info(serverName + \" expects incoming call from \" + clientName\n\t\t\t\t+ \"...\");\n\t\tendPointEvent = serverEndPointController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in server UA\", endPointEvent != null);\n\t\tassertTrue(\n\t\t\t\t\"Bad message received in server UA: \"\n\t\t\t\t\t\t+ endPointEvent.getEventType(),\n\t\t\t\tEndPointEvent.INCOMING_CALL.equals(endPointEvent.getEventType()));\n\n\t\tfinal Call serverCallFinal = endPointEvent.getCallSource();\n\t\tlog.info(\"OK\");\n\n\t\tlog.info(clientName + \" expects call rejected from \" + serverName\n\t\t\t\t+ \"...\");\n\t\tcallEvent = clientCallController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in client UA\", callEvent != null);\n\t\tassertTrue(\"Bad message received in client UA\",\n\t\t\t\tCallEvent.CALL_RINGING.equals(callEvent.getEventType()));\n\t\tlog.info(\"OK\");\n\n\t\t// C:<------REJECT-------:S\n\t\t// Reject call in a new thread to enable simultaneous CANCEL\n\t\tlog.info(serverName + \" rejects call...\");\n\t\tSipCallController serverCallController = new SipCallController(\n\t\t\t\tserverName);\n\t\tserverCallFinal.addListener(serverCallController);\n\t\tnew Thread(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tserverCallFinal.terminate();\n\t\t\t\t} catch (ServerInternalErrorException e) {\n\t\t\t\t\tlog.error(\"Unable to accept call\", e);\n\t\t\t\t}\n\t\t\t}\n\t\t}).start();\n\t\tlog.info(\"OK\");\n\n\t\t// Send cancel request from Client\n\t\t// C:--- CANCEL ---X\n\t\t// Wait just a moment to assure the cancel will be issued after response\n\t\tThread.sleep(1);\n\t\tclientCall.terminate();\n\n\t\t// Server controller expects call rejected\n\t\tlog.info(serverName + \" expects call rejected\");\n\t\tcallEvent = serverCallController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in client UA\", callEvent != null);\n\t\tassertTrue(\"Bad message received in client UA\",\n\t\t\t\tCallEvent.CALL_REJECT.equals(callEvent.getEventType()));\n\t\tlog.info(\"OK\");\n\n\t\t// Server controller expects call terminated\n\t\tlog.info(serverName + \" expects call terminated\");\n\t\tcallEvent = serverCallController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in client UA\", callEvent != null);\n\t\tassertTrue(\"Bad message received in client UA\",\n\t\t\t\tCallEvent.CALL_TERMINATE.equals(callEvent.getEventType()));\n\t\tlog.info(\"OK\");\n\n\t\t// Client controller expects call rejected\n\t\tlog.info(clientName + \" expects call rejected from \" + serverName\n\t\t\t\t+ \"...\");\n\t\tcallEvent = clientCallController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in client UA\", callEvent != null);\n\t\tassertTrue(\"Bad message received in client UA\",\n\t\t\t\tCallEvent.CALL_REJECT.equals(callEvent.getEventType()));\n\t\tlog.info(\"OK\");\n\n\t\t// Client controller expects call terminated\n\t\tlog.info(clientName + \" expects call termianted ...\");\n\t\tcallEvent = clientCallController\n\t\t\t\t.pollSipEndPointEvent(TestConfig.WAIT_TIME);\n\t\tassertTrue(\"No message received in client UA\", callEvent != null);\n\t\tassertTrue(\"Bad message received in client UA\",\n\t\t\t\tCallEvent.CALL_TERMINATE.equals(callEvent.getEventType()));\n\t\tlog.info(\"OK\");\n\n\t\tlog.info(\"-------------------- Test Invite with Reject and simultaneous CANCEL finished OK --------------------\");\n\t}", "public void stop()\n {\n if (task == -1) {\n return;\n }\n\n library.getPlugin().getServer().getScheduler().cancelTask(task);\n task = -1;\n }" ]
[ "0.6087822", "0.6079527", "0.60423535", "0.5946422", "0.58983886", "0.58790165", "0.58368397", "0.580734", "0.57598525", "0.5755551", "0.571801", "0.5716549", "0.566804", "0.5625846", "0.5611931", "0.55412096", "0.55381244", "0.55300945", "0.5507496", "0.5474173", "0.54696417", "0.54634416", "0.5443179", "0.5425034", "0.5415955", "0.54119986", "0.5409587", "0.5401867", "0.53955245", "0.5390755", "0.5373259", "0.5365463", "0.5356073", "0.53559285", "0.53537804", "0.53325844", "0.5332247", "0.5321845", "0.5321845", "0.5321845", "0.5321845", "0.5321845", "0.5321845", "0.5320993", "0.5315906", "0.53155476", "0.5310654", "0.5284994", "0.5267188", "0.52507854", "0.5249398", "0.52403396", "0.52403396", "0.52403396", "0.52397275", "0.5235481", "0.52291733", "0.5227274", "0.5223919", "0.5223042", "0.5219766", "0.5219102", "0.5215734", "0.5214826", "0.5214623", "0.52100307", "0.5206756", "0.5204454", "0.52020025", "0.5201526", "0.52002954", "0.5196097", "0.5195259", "0.51936746", "0.51736146", "0.5170185", "0.5169797", "0.5165017", "0.51643395", "0.51628953", "0.51594573", "0.51594573", "0.51594573", "0.5157732", "0.5156417", "0.51545036", "0.51409507", "0.51375663", "0.51259375", "0.5121455", "0.51165795", "0.51164174", "0.5116137", "0.50921243", "0.50754386", "0.50657237", "0.50557226", "0.503333", "0.5022676", "0.50207" ]
0.5753893
10
Update the partition infos on the assigned resource.
private void sendUpdatePartitionInfoRpcCall( final Iterable<PartitionInfo> partitionInfos) { final LogicalSlot slot = assignedResource; if (slot != null) { final TaskManagerGateway taskManagerGateway = slot.getTaskManagerGateway(); final TaskManagerLocation taskManagerLocation = slot.getTaskManagerLocation(); CompletableFuture<Acknowledge> updatePartitionsResultFuture = taskManagerGateway.updatePartitions(attemptId, partitionInfos, rpcTimeout); updatePartitionsResultFuture.whenCompleteAsync( (ack, failure) -> { // fail if there was a failure if (failure != null) { fail(new IllegalStateException("Update to task [" + getVertexWithAttempt() + "] on TaskManager " + taskManagerLocation + " failed", failure)); } }, getVertex().getExecutionGraph().getJobMasterMainThreadExecutor()); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void updateResourceInformation() {\n\t}", "@Override\n\tpublic void updateResourceInformation() {\n\t}", "Update withPartitionCount(int count);", "public void setPartParam(PartitionUpdateParam partParam) {\n this.partParam = partParam;\n }", "public void setPartitionNumber(int part) {\n\tpartitionNumber = part;\n }", "@Override\n public void createPartition(Partition partition) {\n \n }", "public void doPartition() {\n int sum = 0;\n for (int q = 0; q < w.queryCount; q++) {\n for (int a = 0; a < w.attributeCount; a++) {\n sum += w.usageMatrix[q][a];\n }\n }\n\n if (sum == w.queryCount * w.attributeCount) {\n partitioning = new int[w.attributeCount];\n return;\n }\n\n\t\t//ArrayUtils.printArray(usageMatrix, \"Usage Matrix\", \"Query\", null);\n\t\t\n\t\t// generate candidate partitions (all possible primary partitions)\n\t\tint[][] candidatePartitions = generateCandidates(w.usageMatrix);\n\t\t//ArrayUtils.printArray(candidatePartitions, \"Number of primary partitions:\"+candidatePartitions.length, \"Partition \", null);\n\t\t\n\t\t// generate the affinity matrix and METIS input file \n\t\tint[][] matrix = affinityMatrix(candidatePartitions, w.usageMatrix);\n\t\t//ArrayUtils.printArray(matrix, \"Partition Affinity Matrix Size: \"+matrix.length, null, null);\n\t\twriteGraphFile(graphFileName, matrix);\n\t\t\n\t\t// run METIS using the graph file\n\t\ttry {\n\t\t\tProcess p = Runtime.getRuntime().exec(metisLocation+\" \"+graphFileName+\" \"+K);\n\t\t\tp.waitFor();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t\tSystem.exit(1);\n\t\t} catch (InterruptedException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t\t\n\t\t// read primary partition groups created by METIS \n\t\tint[][][] primaryPartitionGroups = readPartitionFile(candidatePartitions); // TODO exception here for too few groups or attributes...\n\t\t//for(int[][] primaryPartitionGroup: primaryPartitionGroups)\n\t\t//\tArrayUtils.printArray(primaryPartitionGroup, \"Partition Group\", \"Partition\", null);\n\t\t\n\t\t\n\t\t//int i=0;\n\t\tList<int[][]> bestLayouts = new ArrayList<int[][]>();\n\t\tfor(int[][] primaryPartitionGroup: primaryPartitionGroups){\n\t\t\tminCost = Double.MAX_VALUE;\n\t\t\t\n\t\t\t// Candidate Merging\n\t\t\t//System.out.println(\"Primary Partition Group:\"+(i+1));\n\t\t\tList<BigInteger> mergedCandidatePartitions = mergeCandidates(primaryPartitionGroup);\n\t\t\t//System.out.println(\"Number of merged partitions:\"+mergedCandidatePartitions.size());\n\t\t\t\n\t\t\t// Layout Generation\n\t\t\tgenerateLayout(mergedCandidatePartitions, primaryPartitionGroup);\n\t\t\tbestLayouts.add(bestLayout);\t\t\t\n\t\t\t//ArrayUtils.printArray(bestLayout, \"Layout:\"+(++i), null, null);\n\t\t}\n\t\t\n\t\t// Combine sub-Layouts\n\t\tList<int[][]> mergedBestLayouts = mergeAcrossLayouts(bestLayouts, bestLayouts.size());\n\t\tpartitioning = PartitioningUtils.getPartitioning(mergedBestLayouts);\n\t}", "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}", "@Override\n public void onPartitionsAssigned(Collection<TopicPartition> partitions) {\n pm.onPartitionsAssigned(partitions);\n }", "public void partition() \n\t{\n\t\tXPath xPath = getXPathHandler();\n\t\tNodeList parentNodes;\n\t\ttry {\n\t\t\tparentNodes = (NodeList)xPath.compile(this.getParentContainerXPath()).evaluate(this.document, XPathConstants.NODESET);\n\t\t\t\n\t\t\tlogger.info(\">>> \" + this.getPartitionType().name() + \" Partitioner: partition()\");\n\t\t\t\n\t\t\tfor (int i = 0; i < parentNodes.getLength(); i++) \n\t\t\t{ \t\n\t\t\t\tNode parentNode = (Node)parentNodes.item(i);\n\t\t\t\t\n\t\t\t\tif (parentNode instanceof Element)\n\t\t\t\t{\n\t\t\t\t\tString sParentClass = parentNode.getAttributes().getNamedItem(\"class\") != null ? parentNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t\tlogger.info(\"\\tParent Node Name=\" + parentNode.getNodeName()+\":class=\"+ sParentClass);\n\t\t\t\t\t\n\t\t\t\t\tNodeList nodeList = parentNode.getChildNodes();\n\t\t\t\t\tNode xDivNode = null;\n\t\t\t\t\t\n\t\t\t\t\tNode xIntroDivNode = this.document.createElement(\"div\");\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"class\", this.getPartitionTypeAsString());\n\t\t\t\t\t((Element)xIntroDivNode).setAttribute(\"title\", this.getIntroPartitionTitle());\n\t\t\t\t\t\n\t\t\t\t\tboolean first = true;\n\t\t\t\t\tboolean keepFirst = this.getKeepFirstElements();\n\t\t\t\t\tboolean hasIntroNode = false;\n\t\t\t \n\t\t\t\t\tfor (int j = 0, pCount = 0; j < nodeList.getLength(); j++) \n\t\t\t\t\t{ \t\n\t\t\t \tNode xNode = nodeList.item(j);\n\t\t\t \tif (xNode instanceof Element)\n\t\t\t \t{\n\t\t\t \t\tif (first && keepFirst)\n\t\t\t \t\t{\n\t\t\t \t\t\tif (!hasIntroNode) {\n\t\t\t\t \t\t\t((Element)xIntroDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t \t\t\t\tDomUtils.insertBefore(xIntroDivNode, xNode);\t\t \t\t\t\t\n\t\t\t\t \t\t\tj++;\n\t\t\t\t \t\t\thasIntroNode = true;\n\t\t\t \t\t\t}\n\t\t\t \t\t}\n\t\t\t \t\t\n\t\t\t \t\tString sClass = xNode.getAttributes().getNamedItem(\"class\") != null ? xNode.getAttributes().getNamedItem(this.getMatchingAttributeName()).getNodeValue() : \"\";\n\t\t\t\t \tboolean isTable = xNode.getNodeName().equalsIgnoreCase(\"table\") ? true : false;\n\t\t\t\t \tString sId = isTable && xNode.getAttributes().getNamedItem(\"id\") != null ? xNode.getAttributes().getNamedItem(\"id\").getNodeValue() : \"\";\n\t\t\t\t \t\n\t\t\t\t \tif (sClass != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\tNode Name=\" + xNode.getNodeName()+\":class=\"+ sClass);\n\t\t\t\t \t\t\n\t\t\t\t \t\tboolean match = false;\n\t\t\t\t \t\tswitch ((TaskExprType)this.getAttributeMatchExpression())\n\t\t\t\t \t\t{\n\t\t\t\t \t\tcase NOT_SET:\n\t\t\t\t \t\tcase STARTS_WITH:\n\t\t\t\t \t\t\tmatch = sClass.startsWith(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\tcase CONTAINS:\n\t\t\t\t \t\t\tmatch = sClass.contains(this.getMatchingAttributeValue());\n\t\t\t\t \t\t\tbreak;\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\t// Process the title name match condition if it exists\n\t\t\t\t \t\tString title = null;\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\ttitle = DomUtils.extractTextChildren(xNode);\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameMatchCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\tif (title != null && this.getTitleNameMatchType() == TaskMatchType.EXPR)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t \t\t\t\tswitch ((TaskExprType)this.getTitleNameMatchExprType())\n\t\t\t\t\t \t\t\t\t{\n\t\t\t\t\t \t\t\t\t\tcase STARTS_WITH:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.startsWith(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase CONTAINS:\n\t\t\t\t\t \t\t\t\t\t\tmatch = title.contains(this.getTitleNameMatchExprValue());\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tcase NOT_SET:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t\tdefault:\n\t\t\t\t\t \t\t\t\t\t\tbreak;\n\t\t\t\t\t \t\t\t\t}\n\t\t\t\t\t \t\t\t\t\n\t\t\t\t\t \t\t\t} else if (this.getTitleNameMatchType() == TaskMatchType.REGEX)\n\t\t\t\t\t \t\t\t{\n\t\t\t\t\t\t \t\t\tPattern r = Pattern.compile(this.getTitleNameMatchRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\t\t \t\t\t\n\t\t\t\t\t\t \t\t\tmatch = m.matches();\n\t\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t\t\n\t\t\t\t \t\tif (match)\n\t\t\t\t \t\t{\n\t\t\t\t \t\t\tif (first)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPartition partition = new Partition();\n\t\t\t\t \t\t\t\tpartition.setType(this.getPartitionType());\n\t\t\t\t \t\t\t\tpartition.setsId(sId);\n\t\t\t\t \t\t\t\tthis.setFirstPartition(partition);\n\t\t\t\t \t\t\t}\n\n\t\t\t\t \t\t\tfirst = false;\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tif (this.isTitleNameReplaceCondition())\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\tPattern r = Pattern.compile(this.getTitleNameReplaceRegexPattern());\t\t\t \t\t\t\n\t\t\t\t\t \t\t\tMatcher m = r.matcher(title);\t\n\t\t\t\t\t \t\t\ttitle = m.replaceAll(this.getTitleNameReplaceWithRegexPattern());\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\txDivNode = this.document.createElement(\"div\");\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"class\", getPartitionTypeAsString());\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"title\", title);\n\t\t\t\t \t\t\t((Element)xDivNode).setAttribute(\"id\", Integer.toString(++pCount));\n\t\t\t\t \t\t\t\n\t\t\t\t \t\t\tDomUtils.insertBefore(xDivNode, xNode);\n\t\t\t\t \t\t\tDomUtils.removeElement((Element) xNode, false);\t \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\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t\t \t\t\t{\n\t\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t\t \t\t\t\tj--;\n\t\t\t\t \t\t\t}\n\t\t\t\t \t\t}\n\t\t\t\t \t} else if (isTable && sId != null)\n\t\t\t\t \t{\n\t\t\t\t \t\tlogger.info(\"\\t\\tNode Name=\" + xNode.getNodeName()+\":id=\"+ sId);\n\t\t\t \t\t\t// Skip over all nodes leading up to the first Heading1 node\n\t\t\t \t\t\tif (!first && xDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t \t\t\telse if (first && keepFirst && xIntroDivNode != null)\n\t\t\t \t\t\t{\n\t\t\t \t\t\t\txIntroDivNode.appendChild(xNode);\n\t\t\t \t\t\t\tj--;\n\t\t\t \t\t\t}\n\t\t\t\t \t}\t \t\n\t\t\t \t}\n\t\t\t } // end for j\n\t\t\t\t} // end if parentNode\n\t\t\t} // end for i\n\t\t} catch (XPathExpressionException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\t\n\t\t\n\t}", "public void update()\n {\n modifier = coral.getCurrentSubject();\n modified = new Date();\n try\n {\n persistence.save(this);\n }\n catch(SQLException e)\n {\n throw new BackendException(\"failed to update resource's persitent image\", e);\n }\n try\n {\n Resource impl = coral.getStore().getResource(getId());\n coralEventHub.getGlobal().fireResourceChangeEvent(impl, modifier);\n }\n catch(EntityDoesNotExistException e)\n {\n throw new BackendException(\"inconsistent data\", e);\n }\n }", "public void setPartitionId(String partitionId) {\n this.partitionId = partitionId;\n }", "public static void updatePart(Part updated){\r\n int updateID = updated.getPartID();\r\n Part.partsMap.put(updateID,updated);\r\n }", "@Override\n\tpublic void updateStockAccountInfo(StockAccount account) {\n\t\t\n\t}", "void alterPartitionStatistics(\n ObjectPath tablePath,\n CatalogPartitionSpec partitionSpec,\n CatalogTableStatistics partitionStatistics,\n boolean ignoreIfNotExists)\n throws PartitionNotExistException, CatalogException;", "void notifyNewDepositSlot(int maxDim, ResourceType resourceType);", "private void loadPartition(Path p, Context context) throws IOException {\n\t\treader = new BufferedReader(new FileReader(p.toString()));\n\t\tString inputline = reader.readLine();\n\t\tString[] input;\n\t\twhile (inputline != null) {\n\t\t\tinput = inputline.split(\"\\t\");\n\t\t\tlong key=Long.parseLong(input[0].replace(\"\\\"\", \"\"));\n\t\t\tString[] corners=input[1].split(\",\");\n\t\t\tpartition.put(key, new partition.Rectangle(corners[0].replace(\"\\\"\", \"\"),corners[1]\n\t\t\t\t\t.replace(\"\\\"\", \"\"),\n\t\t\t\t\tcorners[2].replace(\"\\\"\", \"\")\n\t\t\t\t\t,corners[3].replace(\"\\\"\", \"\")));\n\t\t\tinputline = reader.readLine();\n\t\t}\n\t\t\n\t\t\n\t}", "public void createPartition(int nPid);", "public void updatePart(int index, Part selectedPart) {\n Part part = allParts.get(index);\n part.setId(selectedPart.getId());\n part.setName(selectedPart.getName());\n part.setPrice(selectedPart.getPrice());\n part.setStock(selectedPart.getStock());\n part.setMin(selectedPart.getMin());\n part.setMax(selectedPart.getMax());\n if(part instanceof InHousePart) {\n ((InHousePart)part).setMachineId(((InHousePart)selectedPart).getMachineId());\n } else if(part instanceof OutSourcedPart) {\n ((OutSourcedPart)part).setCompanyName(((OutSourcedPart)part).getCompanyName());\n }\n }", "public void updateParts()\n {\n ObservableList<Part> inventoryParts = this.inventory.getAllParts();\n\n // Configure part table and bind with inventory parts\n partIDColumn.setCellValueFactory(new PropertyValueFactory<Part,String>(\"id\"));\n partNameColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"name\"));\n partInventoryColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"stock\"));\n partCostColumn.setCellValueFactory(new PropertyValueFactory<Part, String>(\"price\"));\n\n partTable.setItems(inventory.getAllParts());\n // Unselect parts in table after part is deleted\n partTable.getSelectionModel().clearSelection();\n partTable.getSelectionModel().setSelectionMode(SelectionMode.MULTIPLE);\n }", "@Override\n\t\t\tpublic void onPartitionsAssigned(Collection<TopicPartition> partitions) {\n\t\t\t\tconsumer.seek(tp0, 123L); //for partition 0, we want to consume starting from offset 123\n\t\t\t\tconsumer.seek(tp1, 54L); //the offset number must be in Long format\n\t\t\t\tconsumer.seek(tp2, 10000L);\n\t\t\t}", "void setHAPartition(HAPartition clusterPartition);", "public PartitionUpdateParam getPartParam() {\n return partParam;\n }", "void updateInformation();", "public void updateSupplierDetail(Supplier obj) {\n\t\t\r\n\t}", "public void update() {\n\t\trl = DBManager.getReservationList();\n\t}", "public abstract void updateAttributes(TaskRepository repository, IProgressMonitor monitor) throws CoreException;", "private void updateFileResource(Long fileId) {\n editResourceService.getVMFile(fileId, new AsyncCallback<VMFile>() {\n @Override\n public void onFailure(Throwable caught) {\n SC.warn(caught.getMessage());\n }\n\n @Override\n public void onSuccess(VMFile result) {\n FileTreeNode targetNode = (FileTreeNode) fileTreeNodeFactory.findTreeNode(tree, fileId);\n targetNode.setResource(result);\n }\n });\n }", "private void updateResourceMetaInfo(COElementAbstract element) {\r\n\telement.setId(UUID.uuid());\r\n\telement.setIdParent(null);\r\n\tif (element.isCOContentResourceProxy()) {\r\n\t COContentResourceProxy coResProxy =\r\n\t\t (COContentResourceProxy) element;\r\n\t if (COContentResourceType.DOCUMENT.equals(coResProxy.getResource()\r\n\t\t .getType())) {\r\n\t\tContentResourceEdit newResource;\r\n\t\ttry {\r\n\t\t String uri =\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.IDENTIFIER,\r\n\t\t\t\t COPropertiesType.IDENTIFIER_TYPE_URI);\r\n\t\t newResource = contentHostingService.editResource(uri);\r\n\r\n\t\t newResource.getPropertiesEdit().addProperty(\r\n\t\t\t ResourceProperties.PROP_DESCRIPTION,\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.DESCRIPTION));\r\n\t\t newResource.getPropertiesEdit().addProperty(\r\n\t\t\t ResourceProperties.PROP_COPYRIGHT_CHOICE,\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.LICENSE));\r\n\t/*\r\n\t * SAKAI 11: check for \t ResourceProperties.PROP_TYPE_RESOURCE\r\n\t * \r\n\t * newResource.getPropertiesEdit().addProperty(\r\n\t\t\t ResourceProperties.PROP_TYPE_RESOURCE,\r\n\t\t\t coResProxy.getResource().getProperty(\r\n\t\t\t\t COPropertiesType.ASM_RESOURCE_TYPE));*/\r\n\r\n\t\t contentHostingService.commitResource(newResource,\r\n\t\t\t NotificationService.NOTI_NONE);\r\n\t\t} catch (PermissionException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (IdUnusedException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (TypeException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (InUseException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (OverQuotaException e) {\r\n\t\t e.printStackTrace();\r\n\t\t} catch (ServerOverloadException e) {\r\n\t\t e.printStackTrace();\r\n\t\t}\r\n\t }\r\n\t} else {\r\n\t for (int i = 0; i < element.getChildrens().size(); i++) {\r\n\t\tCOElementAbstract childElement =\r\n\t\t\t(COElementAbstract) element.getChildrens().get(i);\r\n\t\tupdateResourceMetaInfo(childElement);\r\n\t }\r\n\t}\r\n }", "public void upateResources() {\r\n\t\tResourceBase resourcesBase = parent.getResources();\r\n\t\tresourcesBase.getAll().forEach((key, value) -> {\r\n\t\t\tif(resources.containsKey(key))\t//ak už je vypísaná\r\n\t\t\t\tresources.get(key).updateValue();\t//aktualizuje ju to\r\n\t\t\telse{\t//ináč\r\n\t\t\t\tint need = resourcesBase.getRequired(key);\r\n\t\t\t\tint have = resourcesBase.getOwned(key);\r\n\t\t\t\tOtherResourceViewer newViewer = new OtherResourceViewer(key,need, have, parent);\t//vytvorí nový viewer \r\n\t\t\t\tresources.put(key, newViewer);\t//pridá ho do zoznamu viewerov\r\n\t\t\t\tadd(newViewer);\t//aj do panelu\r\n\t\t\t}\r\n\t\t});\r\n\t}", "public void doPreSaveActions() {\n\t\tcalculateBlockedPartitions();\n\t}", "@Override\n protected void update(List<Event> result, Ec2LaunchConfiguration oldResource, Ec2LaunchConfiguration newResource) {\n \n }", "@Override\n\tpublic PI update(PIDTO updated) throws NotFoundException {\n\t\treturn null;\n\t}", "public void updateStorage(Map<Resource, Integer> newStorage) {\n\n this.gameboardPanel.updateStorage(newStorage);\n\n }", "private void updateAction(String taskId) {\n setupPrioritySpinner();\n try {\n QueryBuilder<Task, String> queryBuilder = taskDao.queryBuilder();\n taskForUpdate = taskDao.queryForFirst(queryBuilder.where().eq(Task.TASK_ID, taskId).prepare());\n mTitle.setText(taskForUpdate.getTitle());\n mDescription.setText(taskForUpdate.getDescription());\n mDate.setDate(taskForUpdate.getDate().getTime());\n mPriority.setSelection(taskForUpdate.getPriority());\n } catch (SQLException e) {\n e.printStackTrace();\n }\n }", "public void updateInfo() {\n\t}", "@Override\n\tpublic void updateEntries(Reservation reservation) {\n\t\tresTable.save(reservation);\n\t\t\n\t}", "public void updatePart(int index, Part part) {\n allParts.set(index, part);\n }", "public void merge(PartitionAttributesImpl pa) {\n if (pa.hasRedundancy) {\n setRedundantCopies(pa.getRedundantCopies());\n }\n if (pa.hasLocalMaxMemory) {\n setLocalMaxMemory(pa.getLocalMaxMemory());\n }\n if (pa.hasOffHeap) {\n setOffHeap(pa.getOffHeap());\n }\n if (pa.hasTotalMaxMemory) {\n setTotalMaxMemory(pa.getTotalMaxMemory());\n }\n if (pa.hasTotalNumBuckets) {\n setTotalNumBuckets(pa.getTotalNumBuckets());\n }\n if (pa.hasPartitionResolver) {\n setPartitionResolver(pa.getPartitionResolver());\n }\n if (pa.hasColocatedRegionName) {\n setColocatedWith(pa.getColocatedWith());\n }\n if (pa.hasRecoveryDelay) {\n setRecoveryDelay(pa.getRecoveryDelay());\n }\n if (pa.hasStartupRecoveryDelay) {\n setStartupRecoveryDelay(pa.getStartupRecoveryDelay());\n }\n if (pa.hasFixedPAttrs) {\n addFixedPartitionAttributes(pa.getFixedPartitionAttributes());\n }\n if (pa.hasPartitionListeners) {\n addPartitionListeners(pa.partitionListeners);\n }\n }", "@Override\n\tpublic void setResourcePrimKey(long resourcePrimKey) {\n\t\t_changesetEntry.setResourcePrimKey(resourcePrimKey);\n\t}", "@Test\n public void testRepositoryPartitions() {\n ObjectPartitionStatisticsImpl stat1 = getPartitionStatistics(1);\n ObjectPartitionStatisticsImpl stat10 = getPartitionStatistics(10);\n\n ObjectPartitionStatisticsImpl stat1_2 = getPartitionStatistics(1);\n\n assertTrue(repo.getLocalPartitionsStatistics(K1).isEmpty());\n assertTrue(repo.getLocalPartitionsStatistics(K2).isEmpty());\n\n IgniteStatisticsStore store = repo.statisticsStore();\n store.saveLocalPartitionStatistics(K1, stat1);\n store.saveLocalPartitionStatistics(K1, stat10);\n store.saveLocalPartitionStatistics(K2, stat1_2);\n\n ObjectPartitionStatisticsImpl stat1Readed = repo.getLocalPartitionStatistics(K1, 1);\n assertNotNull(stat1Readed);\n assertEquals(1, stat1Readed.partId());\n\n ObjectPartitionStatisticsImpl stat10Readed = repo.getLocalPartitionStatistics(K1, 10);\n assertNotNull(stat10Readed);\n assertEquals(10, stat10Readed.partId());\n\n assertNull(repo.getLocalPartitionStatistics(K1, 2));\n\n assertEquals(2, repo.getLocalPartitionsStatistics(K1).size());\n assertEquals(1, repo.getLocalPartitionsStatistics(K2).size());\n }", "public void updateUsedStorage(long consumedStorage) {\n this.usedStorage = consumedStorage;\n }", "@Override\r\n\tpublic void increaseDomesticTradeResourceAmount(ResourceType resource) {\n\t\t\r\n\t}", "public void refresh(){\n totalSpace = drv.getTotalSpace();\n freeSpace = drv.getUsableSpace();\n checkSetup();\n }", "void refreshTaskInformation();", "public synchronized void waitForAssignment(\n final HRegionInfo hri) throws InterruptedException {\n if (!isRegionAssigned(hri)) return;\n\n while(!server.isStopped() && !isRegionAssigned(hri)) {\n RegionState rs = getRegionState(hri);\n LOG.info(\"Waiting on \" + rs + \" to be assigned\");\n waitForUpdate(100);\n }\n\n if (server.isStopped()) {\n LOG.info(\"Giving up wait on region \" +\n \"assignment because stoppable.isStopped is set\");\n }\n }", "public void editDataInPriority(String alias, ArrayList<String> nameForManipulator, ArrayList<Integer> nameIndicator, ArrayList<Integer> classST,\n ArrayList<Integer> superST, ArrayList<String> classString, ArrayList<String> superSting, boolean exist, int id) {\n Priority priority = dataModel.getPriority(id);\n dataModel.addDataToPriority(priority, alias, nameForManipulator, nameIndicator, classST, superST, classString, superSting, exist);\n\n }", "public void editDataInResolution(String alias, ArrayList<String> nameForManipulator, ArrayList<Integer> nameIndicator, ArrayList<Integer> classST,\n ArrayList<Integer> superST, ArrayList<String> classString, ArrayList<String> superSting, boolean exist, int id) {\n Resolution relation = dataModel.getResolution(id);\n dataModel.addDataToResolution(relation, alias, nameForManipulator, nameIndicator, classST, superST, classString, superSting, exist);\n }", "@Override\n\tpublic void update(ExportProduct exportProduct) {\n\t\t\n\t}", "@Override\n\tpublic void prepareResult(Partition partition) {\n\t}", "public void setResource(ResourceInfo resource) {\n\t\tif (this.resource != null) {\n\t\t\tthrow new IllegalStateException(\"The resource pointer can only be set once for Resource [\" + name + \"]\");\n\t\t}\n\t\tthis.resource = resource;\n\t}", "interface WithPartitionCount {\n /**\n * Specifies the Partitions count of the Search service.\n * @param count the partitions count; Partitions allow for scaling of document counts as well as faster data ingestion by spanning your index over multiple Azure Search Units (applies to Standard tiers only)\n * @return the next stage of the definition\n */\n Update withPartitionCount(int count);\n }", "public void setPartitions(Long Partitions) {\n this.Partitions = Partitions;\n }", "public void update() {\n\t\tthis.quantity = item.getRequiredQuantity();\n\t}", "default void update() throws ResourceActivatorException, InterruptedException, ExecutionException {\n deactivate();\n activate();\n }", "@Override\r\n\tpublic void update(Resources resources) {\n\t\t\r\n\t}", "public void handleModifyParts()\n {\n FXMLLoader fxmlLoader = new FXMLLoader(getClass().getResource(\"/UI/Views/parts.fxml\"));\n Parent root = null;\n try {\n root = (Parent) fxmlLoader.load();\n\n // Get controller and configure controller settings\n PartController partController = fxmlLoader.getController();\n\n if (getPartToModify() != null)\n {\n partController.setModifyParts(true);\n partController.setPartToModify(getPartToModify());\n partController.setInventory(inventory);\n partController.setHomeController(this);\n\n // Spin up part form\n Stage stage = new Stage();\n stage.initModality(Modality.APPLICATION_MODAL);\n stage.initStyle(StageStyle.DECORATED);\n stage.setTitle(\"Modify Parts\");\n stage.setScene(new Scene(root));\n stage.show();\n\n }\n else {\n Alert alert = new Alert(Alert.AlertType.ERROR);\n alert.setTitle(\"Input Invalid\");\n alert.setHeaderText(\"No part was selected!\");\n alert.setContentText(\"Please select a part to modify from the part table!\");\n alert.show();\n }\n\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@FXML\r\n private void modifyPartAction() throws IOException {\r\n \r\n if (!partsTbl.getSelectionModel().isEmpty()) {\r\n Part selected = partsTbl.getSelectionModel().getSelectedItem();\r\n partToMod = selected.getId();\r\n generateScreen(\"AddModifyPartScreen.fxml\", \"Modify Part\");\r\n }\r\n else {\r\n displayMessage(\"No part selected for modification\");\r\n }\r\n \r\n }", "ManagementLockObject.Update update();", "void update(Reservierung reservierung, int id) throws ReservierungException;", "private void initSystemPartition() throws Exception {\n // change the working directory to something that is unique\n // on the system and somewhere either under target directory\n // or somewhere in a temp area of the machine.\n\n // Inject the System Partition\n Partition systemPartition = factory.createPartition(service.getSchemaManager(),\n service.getDnFactory(),\n \"system\", ServerDNConstants.SYSTEM_DN, 500,\n new File(service.getInstanceLayout().getPartitionsDirectory(), \"system\"));\n systemPartition.setSchemaManager(service.getSchemaManager());\n\n factory.addIndex(systemPartition, SchemaConstants.OBJECT_CLASS_AT, 100);\n\n service.setSystemPartition(systemPartition);\n }", "public void updateResources(Coordinate coord) {\n\t\t\tif (parcels.contains(coord)) {\n\t\t\t\tparcels.remove(coord);\n\t\t\t} else if (water.contains(coord)) {\n\t\t\t\twater.remove(coord);\n\t\t\t}\n\t\t}", "@Override\n public UpdateResourcePositionResult updateResourcePosition(UpdateResourcePositionRequest request) {\n request = beforeClientExecution(request);\n return executeUpdateResourcePosition(request);\n }", "protected abstract void updateTableDescriptor(HTableDescriptor desc)\n throws IOException;", "public interface Partitioner {\n\n Set<String> getPartitions();\n\n String getNextObjectName(String topic, String previousObject);\n\n boolean shouldReconfigure();\n\n}", "public void setFirstPartition(Partition partition)\n\t{\n\t\tfirstPartition = partition;\n\t}", "@Test\n public void setResolutionConfigSlot_faultUpdate_changed() throws Exception {\n EqpAssmblBom lOldResolutionConfigSlot =\n createResolutionConfigSlot( CONFIG_SLOT_1_ATA, CONFIG_SLOT_1_NAME );\n EqpAssmblBom lNewResolutionConfigSlot =\n createResolutionConfigSlot( CONFIG_SLOT_2_ATA, CONFIG_SLOT_2_NAME );\n SdFaultTable lExistingFault = createFault( lOldResolutionConfigSlot.getPk() );\n\n iService.setResolutionConfigSlot( lExistingFault, lNewResolutionConfigSlot.getAlternateKey(),\n HumanResourceKey.ADMIN );\n\n // Ensure the value has been set on the fault object\n assertEquals( lNewResolutionConfigSlot.getPk(), lExistingFault.getResolutionConfigSlot() );\n\n // Ensure history note is logged on creation\n List<EvtStageTable> lFaultHistoryNotes = getFaultHistoryNotes( lExistingFault.getPk() );\n\n assertFalse( lFaultHistoryNotes.isEmpty() );\n\n String lExpectedMessage = \"The fault resolution config slot has been changed from\";\n assertHistoryNoteWasAdded( lFaultHistoryNotes.get( 0 ), lExpectedMessage );\n }", "@Override\n\tpublic void updateUserProfileInfo(String name) throws Exception {\n\n\t}", "public void setResource(int newResource) throws java.rmi.RemoteException;", "@Override\r\n\tpublic void update(Responsible p) {\n\t\t\r\n\t}", "protected abstract void updateInfos();", "public void extraProductionOn(Resource resource, Resource resourceLeader) throws IOException, InterruptedException, ImpossibleProductionException {\n try {\n currentPlayer.extraProductionOn(resource);\n } catch (LastSpaceReachedException e) {\n exceptionHandler(e);\n } catch (CallForCouncilException e) {\n exceptionHandler(e);\n }\n\n ArrayList<Resource> list =new ArrayList<>();\n list.add(resourceLeader);\n notifyToOneObserver(new ProductionMessageForCurrentMessage(list));\n notifyAllObserverLessOne(new ProductionMessageForNotCurrentMessage(currentPlayer.getNickName(), list) );\n notifyToOneObserver(new FaithPathMessage(1));\n notifyAllObserverLessOne(new FaithPathOpponentMessage(currentPlayer.getNickName(), 1));\n }", "private void updateResorce() {\n }", "int updateByPrimaryKey(SupplierInfo record);", "private void updateSoldProductInfo() { public static final String COL_SOLD_PRODUCT_CODE = \"sells_code\";\n// public static final String COL_SOLD_PRODUCT_SELL_ID = \"sells_id\";\n// public static final String COL_SOLD_PRODUCT_PRODUCT_ID = \"sells_product_id\";\n// public static final String COL_SOLD_PRODUCT_PRICE = \"product_price\";\n// public static final String COL_SOLD_PRODUCT_QUANTITY = \"quantity\";\n// public static final String COL_SOLD_PRODUCT_TOTAL_PRICE = \"total_price\";\n// public static final String COL_SOLD_PRODUCT_PENDING_STATUS = \"pending_status\";\n//\n\n for (ProductListModel product : products){\n soldProductInfo.storeSoldProductInfo(new SoldProductModel(\n printInfo.getInvoiceTv(),\n printInfo.getInvoiceTv(),\n product.getpCode(),\n product.getpPrice(),\n product.getpSelectQuantity(),\n printInfo.getTotalAmountTv(),\n paymentStatus+\"\"\n ));\n\n }\n }", "public AssetDiskPartitionInfo(AssetDiskPartitionInfo source) {\n if (source.Name != null) {\n this.Name = new String(source.Name);\n }\n if (source.Size != null) {\n this.Size = new Long(source.Size);\n }\n if (source.Percent != null) {\n this.Percent = new Float(source.Percent);\n }\n if (source.Type != null) {\n this.Type = new String(source.Type);\n }\n if (source.Path != null) {\n this.Path = new String(source.Path);\n }\n if (source.Used != null) {\n this.Used = new Long(source.Used);\n }\n }", "@Test\n public void setResolutionConfigSlot_faultUpdate_set() throws Exception {\n EqpAssmblBom lResolutionConfigSlot =\n createResolutionConfigSlot( CONFIG_SLOT_1_ATA, CONFIG_SLOT_1_NAME );\n SdFaultTable lExistingFault = createFault( null );\n\n iService.setResolutionConfigSlot( lExistingFault, lResolutionConfigSlot.getAlternateKey(),\n HumanResourceKey.ADMIN );\n\n // Ensure the value has been set on the fault object\n assertEquals( lResolutionConfigSlot.getPk(), lExistingFault.getResolutionConfigSlot() );\n\n // Ensure history note is logged on creation\n List<EvtStageTable> lFaultHistoryNotes = getFaultHistoryNotes( lExistingFault.getPk() );\n assertFalse( lFaultHistoryNotes.isEmpty() );\n\n String lExpectedMessage = \"The fault resolution config slot has been set to\";\n assertHistoryNoteWasAdded( lFaultHistoryNotes.get( 0 ), lExpectedMessage );\n }", "public static void updatePart(int index, Part selectedPart) {\n allParts.set(index, selectedPart);\n }", "int getPartitionId();", "public void anotherExtraProductionOn(Resource resource, Resource resourceLeader) throws ImpossibleProductionException, IOException, InterruptedException {\n try {\n currentPlayer.anotherExtraProductionOn(resource);\n } catch (LastSpaceReachedException e) {\n exceptionHandler(e);\n } catch (CallForCouncilException e) {\n exceptionHandler(e);\n }\n\n ArrayList<Resource> list =new ArrayList<>();\n list.add(resourceLeader);\n notifyToOneObserver(new ProductionMessageForCurrentMessage(list));\n notifyAllObserverLessOne(new ProductionMessageForNotCurrentMessage(currentPlayer.getNickName(), list) );\n notifyToOneObserver(new FaithPathMessage(1));\n notifyAllObserverLessOne(new FaithPathOpponentMessage(currentPlayer.getNickName(), 1));\n }", "protected void updateAlertDefinitions() {\n LOG.info(\"Updating alert definitions.\");\n AmbariManagementController ambariManagementController = injector.getInstance(AmbariManagementController.class);\n AlertDefinitionDAO alertDefinitionDAO = injector.getInstance(AlertDefinitionDAO.class);\n Clusters clusters = ambariManagementController.getClusters();\n\n Map<String, Cluster> clusterMap = getCheckedClusterMap(clusters);\n for (final Cluster cluster : clusterMap.values()) {\n long clusterID = cluster.getClusterId();\n\n final AlertDefinitionEntity journalNodeProcessAlertDefinitionEntity = alertDefinitionDAO.findByName(\n clusterID, \"journalnode_process\");\n final AlertDefinitionEntity hostDiskUsageAlertDefinitionEntity = alertDefinitionDAO.findByName(\n clusterID, \"ambari_agent_disk_usage\");\n\n if (journalNodeProcessAlertDefinitionEntity != null) {\n String source = journalNodeProcessAlertDefinitionEntity.getSource();\n\n journalNodeProcessAlertDefinitionEntity.setSource(modifyJournalnodeProcessAlertSource(source));\n journalNodeProcessAlertDefinitionEntity.setSourceType(SourceType.WEB);\n journalNodeProcessAlertDefinitionEntity.setHash(UUID.randomUUID().toString());\n\n alertDefinitionDAO.merge(journalNodeProcessAlertDefinitionEntity);\n LOG.info(\"journalnode_process alert definition was updated.\");\n }\n\n if (hostDiskUsageAlertDefinitionEntity != null) {\n hostDiskUsageAlertDefinitionEntity.setDescription(\"This host-level alert is triggered if the amount of disk space \" +\n \"used goes above specific thresholds. The default threshold values are 50% for WARNING and 80% for CRITICAL.\");\n hostDiskUsageAlertDefinitionEntity.setLabel(\"Host Disk Usage\");\n\n alertDefinitionDAO.merge(hostDiskUsageAlertDefinitionEntity);\n LOG.info(\"ambari_agent_disk_usage alert definition was updated.\");\n }\n\n }\n }", "@Override\n\tpublic int updateBookshelfinfo(BookshelfinfoEntity bookshelfinfoEntity) {\n\t\treturn this.sqlSessionTemplate.update(\"bookshelfinfo.update\", bookshelfinfoEntity);\n\t}", "private void updateDatFile() {\n\t\tIOService<?> ioManager = new IOService<Entity>();\n\t\ttry {\n\t\t\tioManager.writeToFile(FileDataWrapper.productMap.values(), new Product());\n\t\t\tioManager = null;\n\t\t} catch (Exception ex) {\n\t\t\tDisplayUtil.displayValidationError(buttonPanel, StoreConstants.ERROR + \" saving new product\");\n\t\t\tioManager = null;\n\t\t}\n\t}", "public void setPartitionNumber(int partitionNumber) {\n\t\tthis.partitionNumber = partitionNumber;\n\t}", "int updateByPrimaryKeySelective(SupplierInfo record);", "@Override\n public void execute() {\n final VpcOffering result = _vpcProvSvc.updateVpcOffering(getId(), getVpcOfferingName(), getDisplayText(), getState());\n if (result != null) {\n final VpcOfferingResponse response = _responseGenerator.createVpcOfferingResponse(result);\n response.setResponseName(getCommandName());\n this.setResponseObject(response);\n } else {\n throw new ServerApiException(ApiErrorCode.INTERNAL_ERROR, \"Failed to update VPC offering\");\n }\n }", "void put(int partitionID, String key, String value);", "public boolean put(PhysicalResource res)\n {\n resources.replace(res.getType(), (resources.get(res.getType()) + res.getQuantity()));\n return true;\n }", "@Override\r\n\tpublic void update(StoragePrimary storagePrimary) {\n\t\tstoragePrimaryDao.update(storagePrimary);\r\n\t}", "private void complete(final Resource resource) throws PersistenceException {\n final ModifiableValueMap mvm = resource.adaptTo(ModifiableValueMap.class);\n final String jobName = mvm.get(KEY_JOB_NAME, String.class);\n\n if (StringUtils.isNotBlank(jobName)) {\n scheduler.removeJob(jobName);\n\n log.info(\"Bulk Workflow Manager completed for [ {} ]\", jobName);\n\n mvm.put(KEY_STATE, STATE_COMPLETE);\n mvm.put(KEY_COMPLETED_AT, Calendar.getInstance());\n\n resource.getResourceResolver().commit();\n } else {\n log.error(\"Trying to complete a job without a name from Bulk Workflow Manager resource [ {} ]\",\n resource.getPath());\n }\n }", "public void update(SupplierCard supplier) {\n supplier_dao.update(supplier);\n }", "public void updateResources(List<Resource> resources) {\n\t\t\n\t}", "@Override\r\n\tpublic void updateParamInfoById(ParamInfo info) {\n\t\t\r\n\t\tpm.updateByPrimaryKey(info);\r\n\t\t\r\n\t}", "public static void updateResources(){\n for(int i = 0 ; i < releaseArr.length; i ++){\n resourceArr[i] += releaseArr[i];\n }\n }", "void update(Information info);", "private void editCPRPerson(ConfigPersonRelation segment, ArrayList<Integer> elementIdList) {\n List<Integer> type = segment.getPersonIndex();\n List<Integer> personId = dataModel.getRoleId(type);\n\n for (int deleteId : elementIdList) {\n int deleteIndexInProject = dataModel.getPersonIndexInProject(deleteId);\n for (int i = 0; i < personId.size(); i++) {\n int index = type.get(i);\n if (personId.get(i) == deleteId) {\n segment.getPersonIndex().remove(i);\n segment.getPersonIndicator().remove(i);\n } else if (index > deleteIndexInProject) {\n segment.getPersonIndex().remove(i);\n segment.getPersonIndex().add(i, index - 1);\n segment.getPersonIndicator().remove(index);\n }\n }\n }\n }", "public static void update(Resource resource){\n String newUpdate;\n String display = \"What would you like to update?\"+\n \"[1] Type: \" + resource.getType() + \"\\n\" +\n \"[2] Title: \" + resource.getName() + \"\\n\" +\n \"[3] Genre: \" + resource.getGenre() + \"\\n\" +\n \"[4] Author: \" + resource.getAuthor() + \"\\n\" +\n \"[5] Year: \" + resource.getYear() + \"\\n\" +\n \"[0] Exit\";\n\n int edit = getIntInput(display, 0,5);\n\n switch(edit){\n case 1:\n newUpdate = edit(\"type\", resource.getType());\n resource.setType(newUpdate);\n break;\n case 2:\n newUpdate = edit(\"title\", resource.getName());\n resource.setName(newUpdate);\n break;\n case 3:\n newUpdate = edit(\"genre\", resource.getGenre());\n resource.setGenre(newUpdate);\n break;\n case 4:\n newUpdate = edit(\"author\", resource.getAuthor());\n resource.setAuthor(newUpdate);\n break;\n case 5:\n newUpdate = edit(\"year\", resource.getYear());\n resource.setYear(newUpdate);\n break;\n case 0:\n break;\n default:\n JOptionPane.showMessageDialog(null, \"should not reach here\");\n }\n }", "private void fetchPartitioningConfig() {\n SegmentPartitionConfig segmentPartitionConfig = _tableConfig.getIndexingConfig().getSegmentPartitionConfig();\n if (segmentPartitionConfig != null) {\n Map<String, ColumnPartitionConfig> columnPartitionMap = segmentPartitionConfig.getColumnPartitionMap();\n Preconditions.checkArgument(columnPartitionMap.size() <= 1, \"There should be at most 1 partition setting in the table.\");\n if (columnPartitionMap.size() == 1) {\n _partitionColumn = columnPartitionMap.keySet().iterator().next();\n _numberOfPartitions = segmentPartitionConfig.getNumPartitions(_partitionColumn);\n _partitionFunction = segmentPartitionConfig.getFunctionName(_partitionColumn);\n }\n } else {\n _logger.info(\"Segment partition config is null for table: {}\", _tableConfig.getTableName());\n }\n }", "public void update(String entity_name, String key, String[] parts) {\r\n Entity entity = getEntity(entity_name);\r\n int RF = entity.RF;\r\n\r\n //For each node, each Instance, search Instance\r\n for (int iNod=0; iNod < numar_noduri && RF > 0; iNod++) {\r\n for (int iInst=0; iInst < noduri.get(iNod).dimensiune && RF > 0;iInst++) {\r\n\r\n Instance instance = noduri.get(iNod).instances.get(iInst);\r\n \r\n if (instance.entity_name.equals(entity_name)\r\n && String.valueOf(instance.values.get(0)).equals(key)) {\r\n \r\n instance.update(entity,parts);\r\n Collections.sort(noduri.get(iNod).instances);\r\n RF--;\r\n }\r\n }\r\n } \r\n }", "@Override\n public void removePartition(Partition partition) {\n \n }" ]
[ "0.59623426", "0.59510547", "0.57473713", "0.5358482", "0.5313085", "0.52211607", "0.519269", "0.50553316", "0.5044845", "0.49821365", "0.49347526", "0.49284062", "0.48776776", "0.48466313", "0.48384547", "0.48337197", "0.48296952", "0.48230484", "0.48053777", "0.48028615", "0.4796485", "0.47960827", "0.47720316", "0.47541773", "0.4722309", "0.4717646", "0.4704168", "0.46867362", "0.46668583", "0.4648571", "0.4625963", "0.46081698", "0.46027863", "0.45957792", "0.45929098", "0.4589204", "0.45886946", "0.4588118", "0.45848164", "0.45778298", "0.45653856", "0.45650518", "0.4564377", "0.45568192", "0.4555935", "0.45419753", "0.4541209", "0.453744", "0.45266932", "0.45240328", "0.45199007", "0.45188338", "0.45149025", "0.45062226", "0.4505209", "0.4504232", "0.4503212", "0.44898978", "0.44880652", "0.44806883", "0.4477637", "0.44755495", "0.44693527", "0.446876", "0.44660357", "0.44659936", "0.44653735", "0.44593778", "0.44567588", "0.44562382", "0.44540218", "0.44500476", "0.4440024", "0.44377252", "0.4436684", "0.44360352", "0.44333833", "0.44322342", "0.44307992", "0.44238886", "0.44211546", "0.44054374", "0.44023067", "0.44014952", "0.43960312", "0.43899715", "0.4388648", "0.43850553", "0.437852", "0.437586", "0.43671468", "0.43649393", "0.43613592", "0.43598133", "0.43551412", "0.43540552", "0.4352018", "0.4351834", "0.43483204", "0.43389714" ]
0.5639123
3
Releases the assigned resource and completes the release future once the assigned resource has been successfully released.
private void releaseAssignedResource(@Nullable Throwable cause) { assertRunningInJobMasterMainThread(); final LogicalSlot slot = assignedResource; if (slot != null) { ComponentMainThreadExecutor jobMasterMainThreadExecutor = getVertex().getExecutionGraph().getJobMasterMainThreadExecutor(); slot.releaseSlot(cause) .whenComplete((Object ignored, Throwable throwable) -> { jobMasterMainThreadExecutor.assertRunningInMainThread(); if (throwable != null) { releaseFuture.completeExceptionally(throwable); } else { releaseFuture.complete(null); } }); } else { // no assigned resource --> we can directly complete the release future releaseFuture.complete(null); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void release() {\n m_available = true;\n notify();\n }", "public final void release() {\n explicitlyLocked = false;\n byteBase.unlock();\n }", "public abstract void release();", "public abstract void release();", "public abstract void release();", "void _release();", "public void release() {\n }", "public void release() {\n }", "public void release()\n\t{\n\t\t// System.out.println(usedBy.getName() + \": Releasing \" + toString());\n\t\tthis.usedBy = null;\n\t}", "public void releaseResource(T resource){\n\t\tif(resource!=null){\n\t\t\tfor(ResourceStatus<T> resourceStatus:this.resourcesStatus){\n\t\t\t\tif(resourceStatus!=null){\n\t\t\t\t\t//find the resource and set in use false\n\t\t\t\t\tif(resource.equals(resourceStatus.getResource())){\n\t\t\t\t\t\tresourceStatus.setInUse(false);\n\t\t\t\t\t\tresourceStatus.setLastNotInUseTime(System.currentTimeMillis());\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public void release() {\n\t\t\n\t}", "public void release() {\r\n return;\r\n }", "public void release();", "public void release();", "@Override\r\n\tpublic void release()\r\n\t{\n\t}", "public void _release() {\n throw new NO_IMPLEMENT(reason);\n }", "@Override\n public void release() {\n }", "@Override\n\tpublic void release() {\n\t\t\n\t}", "protected void release()\n {\n }", "@Override\n\tpublic void release() {\n\n\t}", "@Override\n\tpublic void release() {\n\n\t}", "@Override\n\tpublic void release() {\n\t}", "@Override\n public void release() {\n }", "@Override\n\tpublic void release() {\n\t\tmRendererTask.release();\n\t\tsynchronized (mSync) {\n\t\t\tisRunning = false;\n\t\t\tmSync.notifyAll();\n\t\t}\n//\t\tif (DEBUG) Log.v(TAG, \"release:finished\");\n\t}", "public void releaseResource() {\n if (!isPreConnected() && !isInCallServiceBinded() && this.mCallMapById.isEmpty() && this.mPreAddedCall == null && this.mPendingDisconnectPreAddedCall == null) {\n release();\n }\n }", "@Override\n\tpublic void release() {\n\t\tsuper.release();\n\t\t\n\t\tthis.privilegeCode = null;\n\t\tthis.controlId = null;\n\t\tthis.controlType = null;\n\t\tthis.desc = null;\n\t}", "public static void release() {\n\t}", "@Override\n public void release() {\n \n }", "@Override\n\t public void onRelease() {\n\n\t }", "public static void release(int resourceType, int amountReleased, Task currTask){\n currTask.resourceHoldings[resourceType - 1] -= amountReleased;\n releaseArr[resourceType - 1] += amountReleased;\n }", "void release()\n {\n synchronized (m_lock)\n {\n m_released = true;\n\n m_lock.notifyAll();\n }\n }", "public void finalize() {\n acquire.release();\n }", "public void finalize() {\n acquire.release();\n }", "public void release() {\n if (this.compositeDisposable != null) {\n this.compositeDisposable.clear();\n }\n }", "@Override\n public boolean release(ResourceConsumer consumer) {\n return false;\n }", "private void release() {\n\t\tinitialized = false;\n\t\tpause();\n\t\tsetOnCompletionListener(null);\n\t\tgetMp().release();\n\t\tmp = null;\n\t}", "final void internalRelease() {\n if(!explicitlyLocked) {\n byteBase.unlock();\n }\n }", "public void releaseResources();", "@Override\r\n\tpublic void release() {\n\r\n\t}", "void release();", "void release();", "void release(String id);", "public void release() throws IOException;", "public void release()\n {\n \n release_0(nativeObj);\n \n return;\n }", "public static void playerRelease() {\n\t\tPlayer.release();\n\t}", "public void release() {\n assertExecuted();\n method.releaseConnection();\n }", "public void release() {\n simConnection.doCommand(\"DynamicsSetGearValue DoneControlling\");\n }", "public final void release() { \n native_release();\n }", "public void release() {\n\t\tsynchronized (this) {\n\t\t\tcount++;\n\t\t\tthis.notifyAll();\n\t\t}\n\t}", "@Override\n public void releasePermit() {\n balancer.release();\n }", "int release();", "public K release()\n {\n return (K) destroy().getResponse();\n }", "public CompletableFuture<?> getReleaseFuture() {\n\t\treturn releaseFuture;\n\t}", "public void ReleaseTask() throws InterruptedException{\n\t\tThread.sleep(1000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(\"//input[@id='checkAll_c0_dataForm:lv1:dataTable']\", \"XPATH\", \"CheckBox\");\n\t\tThread.sleep(2000);\n\t\tlibManhattanCommonFunctions.clickAnyElement(getPageElement(\"btnRelease\"), \"Release Button\");\n\t\tThread.sleep(1000);\n\t}", "public Locks release() {\n\t\tif( DB.getConf().getBoolean(\"locks.disabled\")) return this;\n\t\tproxy.tell( new ReleaseLock(lockId), ActorRef.noSender());\n\t\treturn this;\n\t}", "public void release()\r\n throws IOException\r\n {\r\n // nothing needs to be done\r\n }", "void release(PooledObject<T> t);", "@Override\n @Deprecated\n public void release() {\n close();\n }", "public void releaseDeferredLock() {\r\n return;\r\n }", "public void release() { \r\n\t remoteControlClient = null;\r\n\t }", "@Override\n protected void doRelease() {\n if (mNativePtr != 0) {\n nativeRelease(mNativePtr);\n mNativePtr = 0;\n }\n }", "void release(Object o);", "public void release() throws JenaProviderException {\t\t\n\t}", "void releaseTask(String userId, Long taskId);", "public void release() {\n HiLog.info(LOG_LABEL, \"release.\", new Object[0]);\n this.mCallMapById.clear();\n this.mRemote = null;\n disconnect();\n destroyHandler();\n this.mContext = null;\n this.mPendingCallAudioState = null;\n this.mCurrentCallAudioState = null;\n this.mPendingCanAddCall = null;\n this.mPreAddedCall = null;\n this.mPendingDisconnectPreAddedCall = null;\n this.mIsConnected = false;\n this.mIsBound = false;\n this.mIsInCallServiceBinded = false;\n this.mIsPreConnected = false;\n Listener listener = this.mListener;\n if (listener != null) {\n listener.onReleased(this);\n this.mListener = null;\n }\n }", "public void release()\r\n\t{\r\n\t\tsuper.release();\r\n\t\t_href = null;\r\n\t\t_box = null;\r\n\t\t_bracket = null;\r\n\t\t_bracketFont = null;\r\n\r\n\t}", "private void basicReleaseLock() {\n if (logger.isTraceEnabled(LogMarker.DLS_VERBOSE)) {\n logger.trace(LogMarker.DLS_VERBOSE, \"[DLockToken.basicReleaseLock] releasing ownership: {}\",\n this);\n }\n\n leaseId = -1;\n lesseeThread = null;\n leaseExpireTime = -1;\n thread = null;\n recursion = 0;\n ignoreForRecovery = false;\n\n decUsage();\n }", "public void release() {\n super.release();\n _gboss = null;\n }", "@Override\n public void release() {\n super.release();\n init();\n }", "public void releaseInstance() {\n\t\tif (isFree() || isBusy()) {\n\t\t\tthrow new IllegalStateException(\n\t\t\t\t\t\"instance is already free or is busy\");\n\t\t}\n\n\t\tsetFree(true);\n\t\tsetBusy(false);\n\t}", "public void release() throws SQLException\r\n\t{\r\n\t\tst.close();\r\n\t}", "public void release() {\n nRelease(mNativeInstance);\n mNativeInstance = 0;\n }", "public void release() {\n changeToUninitialized();\n mHasDisplay = false;\n mPlayer.release();\n }", "public void release() throws DeviceException {\n \t\ttry {\n \t\t\tcontroller.caput(holdChannel, 0, 2.0);\n \t\t} catch (Throwable e) {\n \t\t\tthrow new DeviceException(\"failed to release hole on robot\", e);\n \t\t}\n \t}", "public void unlock() {\n if(semaphore != null && semaphore.availablePermits() == 0) {\n semaphore.release();\n }\n }", "public void release (WfAssignment from_assigment, String release_info) throws BaseException, NotAssigned {\n throw new BaseException(\"Not implemented\");\n }", "public\n void close() throws ResourceException;", "public static native void release();", "public void release() {\n super.release();\n this.name = null;\n this.originalName = null;\n this.originalNesting = null;\n this.originalNestingName = null;\n }", "public void release() {\r\n if (BuildConfig.DEBUG) {\r\n HiLog.debug(LABEL, \"release()\", new Object[0]);\r\n }\r\n if (!this.mNativeSurfaceHandle.equals(BigInteger.ZERO)) {\r\n this.mAgpContext.getEngine().destroySwapchain();\r\n Core.destroyAndroidSurface(this.mAgpContext.getDevice(), this.mNativeSurfaceHandle);\r\n this.mNativeSurfaceHandle = BigInteger.ZERO;\r\n }\r\n this.mAgpContext = null;\r\n }", "public void release() {\n\n mTextureRender = null;\n mSurfaceTexture = null;\n }", "public void release() {\n\t\t\treset();\n\t\t\tmCurrentMediaPlayer.release();\n\t\t}", "void releasePlayer();", "@Override\r\n\tpublic void releaseObject() {\r\n\t\tfinished = false;\r\n\r\n\t\tarm.rotate(90);\r\n\r\n\t\topenHand();\r\n\t\ttry {\r\n\t\t\tThread.sleep(WAIT_TIME);\r\n\t\t} catch (InterruptedException e) {\r\n\t\t}\r\n\r\n\t\tarm.rotate(-90);\r\n\t\tarm.stop();\r\n\t\tarm.flt();\r\n\t\tfinished = true;\r\n\t}", "synchronized boolean releaseLock(int leaseIdToRelease, RemoteThread remoteThread) {\n return releaseLock(leaseIdToRelease, remoteThread, true);\n }", "public void releaseManualCommand() {\n try {\n RequestUtils.writeProperty(DeviceService.localDevice,bacnetDevice,getObjectIdentifier(),\n PropertyIdentifier.presentValue,null,new PriorityValue(new Null()),\n new UnsignedInteger(8));\n LOG.info(\"Release: \" + getObjectIdentifier());\n } catch (BACnetException bac) {\n LOG.warn(\"Cant release: \" + getObjectIdentifier().toString());\n }\n }", "public abstract void releasePresenter();", "public Release release() {\n if (_release == null)\n _release = new Release(this, Keys.BCC_MANIFEST_RELEASE_ID_FK);\n\n return _release;\n }", "public void closeResource(Object resource);", "public void release(){\n\t\tthis.motor.forward();\n\t}", "private void signalFree() {\n block.release();\n }", "@Override\n public boolean release(List<ResourceAllocation> allocations) {\n return false;\n }", "public final void dispose() {\n lock.writeLock().lock();\n try {\n if (available) {\n available = false;\n _dispose();\n }\n } finally {\n lock.writeLock().unlock();\n }\n }", "@Override\n\tpublic void releaseResouces() {\n\t\tsuper.releaseResouces();\n\t}", "protected abstract void onReleaseResources(final D data);", "public void releaseLock() throws JedisException {\n if (fetch == true) {\n redisTemplate.delete(lockKey);\n LOGGER.info(\"release redis distribution_lock [{}] suceess \", lockKey);\n }\n }", "protected void releaseFromPrison() {\n\t\tisInPrison = false;\r\n\t\tnumberOfRound = 0;\r\n\t}", "private void ensureConnectionRelease() {\n if (responseConnection != null) {\n responseConnection.releaseConnection();\n responseConnection = null;\n }\n }", "void releaseConnection(Connection connection) throws InterruptedException;", "public void Release(String name, int type) throws RemoteException\r\n\t{\r\n\t\tSyncRecord rec;\r\n\t\ttry {\r\n\t\ttry {\r\n\t\t\trec = findObject(name,type);\r\n\t\t} catch (NotFoundException e) {\r\n\t\t\treturn;\r\n\t\t}\r\n\t\t// Decrement semaphore count\r\n\t\tif (rec.max!=0)\r\n\t\t{\r\n\t\t\trec.count--;\r\n\t\t}\r\n\t\t// for signals, resume all waiting threads,\r\n\t\t// for mutex and semaphores, just the first\r\n\t\tif (type==SIGNAL)\r\n\t\t{\r\n\t\t\twhile (!rec.queue.isEmpty())\r\n\t\t\t\tresumeThread(rec);\r\n\t\t}\r\n\t\telse\r\n\t\t\tresumeThread(rec);\r\n\t\t} catch (Exception e) {\r\n\t\t\tDebug.DisplayException(\"Release\",e);\r\n\t\t}\r\n\t}" ]
[ "0.66296935", "0.6485471", "0.64694095", "0.64694095", "0.64694095", "0.63593405", "0.6357326", "0.6316288", "0.6308285", "0.6305081", "0.62973744", "0.6287774", "0.6284391", "0.6284391", "0.626116", "0.62505466", "0.6235397", "0.6206931", "0.61983335", "0.6197356", "0.6197356", "0.6196218", "0.6184875", "0.61328536", "0.6121986", "0.612198", "0.6113023", "0.6086365", "0.60456115", "0.6042898", "0.6021457", "0.6003242", "0.6003242", "0.5979941", "0.5974917", "0.5974832", "0.59717095", "0.59365886", "0.5936026", "0.59299093", "0.59299093", "0.59279895", "0.5917369", "0.59120905", "0.58820516", "0.58764106", "0.5872686", "0.5848828", "0.58470935", "0.579032", "0.57897735", "0.5787715", "0.57573456", "0.57459694", "0.5744932", "0.5727892", "0.56951445", "0.5685835", "0.56633204", "0.5657144", "0.5657027", "0.5620921", "0.56075877", "0.5601358", "0.55891645", "0.5580023", "0.55763644", "0.5554207", "0.55099094", "0.55037194", "0.5496697", "0.54929656", "0.5490147", "0.5475593", "0.5472891", "0.5450401", "0.5436919", "0.5435364", "0.54161143", "0.5410828", "0.5404215", "0.53955036", "0.5383213", "0.53828984", "0.5369949", "0.5368567", "0.5359285", "0.53561944", "0.5348808", "0.5321831", "0.5316978", "0.5307215", "0.530535", "0.5285967", "0.52740246", "0.5263351", "0.52616334", "0.52510554", "0.52446914", "0.52431667" ]
0.7552894
0
Accumulators Update accumulators (discarded when the Execution has already been terminated).
public void setAccumulators(Map<String, Accumulator<?, ?>> userAccumulators) { synchronized (accumulatorLock) { if (!state.isTerminal()) { this.userAccumulators = userAccumulators; } } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "CompletableFuture<Map<String, Object>> getAccumulators();", "final private void accumulate()\n\t{\n\t\tfinal int argb = target.get().get();\n\t\taccA += ( ( argb >> 24 ) & 0xff ) * weights[ code ];\n\t\taccR += ( ( argb >> 16 ) & 0xff ) * weights[ code ];\n\t\taccG += ( ( argb >> 8 ) & 0xff ) * weights[ code ];\n\t\taccB += ( argb & 0xff ) * weights[ code ];\n\n//\t\tSystem.out.print( \"accumulating value at \" + target );\n//\t\tSystem.out.print( \"with weights [\" );\n//\t\tprintCode();\n//\t\tSystem.out.printf( \"] = %f\" + \"\\n\", weights[ code ] );\n\t}", "public synchronized void update() {\n\t\tcurrentIteration.clear();\n\t\tcurrentIteration.addAll(currentCalls.values());\n\t\tfor (RegisteredCall i : currentIteration) {\n\t\t\ti.update();\n\t\t}\n\t}", "void recalc() {\n\t\tthis.currentValue = baseValue;\n\t\tthis.modifiers.stream().forEach(a -> this.currentValue += a.getValue());\n\t}", "public synchronized void restart() {\n printReport();\n printGlobalOpsPerSec();\n metrics.clear();\n intervalStartedAt = null;\n startedAt = null;\n\n reportStream.println(\"\");\n reportStream.println(\"Metrics have been reset\");\n reportStream.println(\"\");\n }", "@Test\n public void enumerateAccumulatorTest() throws Exception\n {\n Enumerate enumerate = new Enumerate();\n\n Tuple tuple1 = TupleFactory.getInstance().newTuple(1);\n tuple1.set(0, 10);\n\n Tuple tuple2 = TupleFactory.getInstance().newTuple(1);\n tuple2.set(0, 20);\n\n Tuple tuple3 = TupleFactory.getInstance().newTuple(1);\n tuple3.set(0, 30);\n\n Tuple tuple4 = TupleFactory.getInstance().newTuple(1);\n tuple4.set(0, 40);\n\n Tuple tuple5 = TupleFactory.getInstance().newTuple(1);\n tuple5.set(0, 50);\n\n DataBag bag1 = BagFactory.getInstance().newDefaultBag();\n bag1.add(tuple1);\n bag1.add(tuple2);\n bag1.add(tuple3);\n\n DataBag bag2 = BagFactory.getInstance().newDefaultBag();\n bag2.add(tuple4);\n bag2.add(tuple5);\n\n Tuple inputTuple1 = TupleFactory.getInstance().newTuple(1);\n inputTuple1.set(0,bag1);\n\n Tuple inputTuple2 = TupleFactory.getInstance().newTuple(1);\n inputTuple2.set(0,bag2);\n\n enumerate.accumulate(inputTuple1);\n enumerate.accumulate(inputTuple2);\n assertEquals(enumerate.getValue().toString(), \"{(10,0),(20,1),(30,2),(40,3),(50,4)}\");\n\n // Testing that cleanup code is correct by calling cleanup() and passing inputs back to Enumerate instance\n enumerate.cleanup();\n enumerate.accumulate(inputTuple1);\n enumerate.accumulate(inputTuple2);\n assertEquals(enumerate.getValue().toString(), \"{(10,0),(20,1),(30,2),(40,3),(50,4)}\");\n }", "public void aggregateState(MapReduceState mrState, List<ShardState> shardStates) {\n List<Long> mapperCounts = new ArrayList<Long>();\n Counters counters = new Counters();\n for (ShardState shardState : shardStates) {\n Counters shardCounters = shardState.getCounters();\n // findCounter creates the counter if it doesn't exist.\n mapperCounts.add(shardCounters.findCounter(\n HadoopCounterNames.MAP_INPUT_RECORDS_GROUP, \n HadoopCounterNames.MAP_INPUT_RECORDS_NAME).getValue());\n \n for (CounterGroup shardCounterGroup : shardCounters) {\n for (Counter shardCounter : shardCounterGroup) {\n counters.findCounter(\n shardCounterGroup.getName(), shardCounter.getName()).increment(\n shardCounter.getValue());\n }\n }\n }\n \n log.fine(\"Aggregated counters: \" + counters);\n mrState.setCounters(counters);\n mrState.setProcessedCounts(mapperCounts);\n }", "Measurement getAccumulation();", "private void updateStatsCAE(){\n\t\tupdateQueueSize();\n\t}", "protected void updateSummaries() { }", "protected void updateSummaries() { }", "public void summarize() {\n if (!waitlist.isEmpty()) {\n waitlist.clear();\n }\n workingReached.clear();\n }", "@Override\n public BiConsumer<ObjectNode, Map.Entry<String, JsonNode>> accumulator() {\n return (acc, entry) -> acc.set(entry.getKey(), entry.getValue());\n }", "@Override\n public long[] createAccumulator() {\n return new long[] {0};\n }", "protected void postRun() {\r\n\t\tthis.calculateFlowBandwidthHops();\r\n\t\tdouble abt = this.ABT();\r\n\t\tdouble agt = this.AGT();\r\n\t\tthis.metrics.add(new ResultMetric(\"ABT\", abt));\r\n\t\tthis.metrics.add(new ResultMetric(\"AGT\", agt));\r\n\t\tthis.metrics.add(new ResultMetric(\"Hops\", this.Hops()));\r\n\t\tthis.metrics.add(new ResultMetric(\"AveHops\", this.Hops()\r\n\t\t\t\t/ this.flows.size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"SuccCount\", this.successfulCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"FailCount\", this.failedCount));\r\n\t\tthis.metrics.add(new ResultMetric(\"ServerNum\", this.dcn\r\n\t\t\t\t.getServerUUIDs().size()));\r\n\t\tthis.metrics.add(new ResultMetric(\"ThroughputPerLink\", abt\r\n\t\t\t\t/ this.dcn.linkCount()));\r\n\t}", "private void updateMetrics(ContainerStatus status) {\n if (status != null) {\n switch (status.getExitStatus()) {\n case SUCCESS:\n componentMetrics.containersSucceeded.incr();\n scheduler.getServiceMetrics().containersSucceeded.incr();\n return;\n case PREEMPTED:\n componentMetrics.containersPreempted.incr();\n scheduler.getServiceMetrics().containersPreempted.incr();\n break;\n case DISKS_FAILED:\n componentMetrics.containersDiskFailure.incr();\n scheduler.getServiceMetrics().containersDiskFailure.incr();\n break;\n default:\n break;\n }\n }\n\n // containersFailed include preempted, disks_failed etc.\n componentMetrics.containersFailed.incr();\n scheduler.getServiceMetrics().containersFailed.incr();\n\n if (status != null && Apps.shouldCountTowardsNodeBlacklisting(\n status.getExitStatus())) {\n String host = scheduler.getLiveInstances().get(status.getContainerId())\n .getNodeId().getHost();\n failureTracker.incNodeFailure(host);\n currentContainerFailure.getAndIncrement();\n }\n }", "@Override\r\n public void update() {\r\n this.total = calculateTotal();\r\n }", "public void growStats() {\r\n\t\tLIFE += increment;\r\n\t\tSTRENGTH += increment;\r\n\t}", "@Override\n public StringBuilder createAccumulator() {\n return null;\n }", "private void calcFinanceTotals() {\n System.out.println(\"calcFinanceTotals\");\n financeWindow.clear();\n for (int i = 0; i < clubEventList.totalSize(); i++) {\n financeWindow.calcPlus(clubEventList.getUnfiltered(i));\n }\n financeWindow.display();\n }", "@Override\n public BiConsumer<List<Integer>, Employee> accumulator() {\n return (resultList, employee) -> {\n if (resultList.isEmpty()) resultList.add(employee.getSalary());\n else {\n Integer currentTotal = resultList.get(0);\n currentTotal += employee.getSalary();\n resultList.set(0, currentTotal);\n }\n };\n }", "public void doUpdates(MetricsContext unused) {\n synchronized (this) {\n this.cluster_requests.pushMetric(metricsRecord);\n }\n this.metricsRecord.update();\n }", "protected void applyPendingAdds ()\n {\n while (!m_aAddStack.isEmpty ())\n addMonitoredFile (m_aAddStack.pop ());\n }", "private void summarizeTimeslot ()\n {\n if (null == brokers) {\n // first time through\n brokers = new ArrayList<>();\n stats = new HashMap<>();\n\n data.print(\"Broker Name,\");\n data.print(\"Power Type,\");\n data.print(\"Customers,\");\n data.print(\"Usage (kWh),\");\n data.println(\"Income Gained\");\n\n // set up the maps of brokers, and stats by power type\n for (Broker broker : brokerRepo.findRetailBrokers())\n {\n brokers.add(broker);\n stats.put(broker, new HashMap<>());\n for (PowerType type : powerTypes)\n {\n StatsTracked theseStats = new StatsTracked();\n HashMap<PowerType, StatsTracked> map = stats.get(broker);\n map.put(type, theseStats);\n stats.put(broker, map);\n }\n }\n\n // store customer statistics\n\n }\n\n if (ttx.size() > 0) {\n // there are some signups and withdraws here\n for (TariffTransaction tx : ttx) {\n Broker broker = tx.getBroker();\n PowerType type = tx.getTariffSpec().getPowerType();\n HashMap<PowerType, StatsTracked> brokerMap = stats.get(broker);\n StatsTracked theseStats = brokerMap.get(type);\n if (tx.getTxType() == TariffTransaction.Type.CONSUME ||\n tx.getTxType() == TariffTransaction.Type.PRODUCE) {\n theseStats.updateUsage(tx.getKWh());\n theseStats.updateProfit(tx.getCharge());\n }\n else if (tx.getTxType() == TariffTransaction.Type.SIGNUP)\n theseStats.updateCustomers(tx.getCustomerCount());\n\n // reupdate the tracking...\n brokerMap.put(type, theseStats);\n stats.put(broker, brokerMap);\n }\n }\n ttx.clear();\n }", "public static synchronized void updateExecutionStateProperty(){\n collumsCalculatedProperty.setValue(collumsCalculated);\n }", "public void resetActiveStats() {\n if (!valid)\n return;\n\n\n Handler handler = new Handler(getLooper());\n handler.post(() -> {\n recentStats.activeRequests = toLoad.size() + loading.size();\n recentStats.maxActiveRequests = recentStats.activeRequests;\n });\n }", "public void calculateMetrics(){\n //precision\n precisionFinal = precision.stream().mapToDouble(f -> f).sum()/precision.size();\n System.out.print(\"Precision: \");\n System.out.println(precisionFinal);\n //recall\n recallFinal = recall.stream().mapToDouble(f -> f).sum()/recall.size();\n System.out.print(\"Recall: \");\n System.out.println(recallFinal);\n //fMeasures\n fMeausureFinal = fMeasures.stream().mapToDouble(f -> f).sum()/fMeasures.size();\n System.out.print(\"Fmeasure: \");\n System.out.println(fMeausureFinal);\n\n //MAP\n mapFinal = apRes.stream().mapToDouble(d->d).sum()/apRes.size();\n System.out.print(\"Mean Avarage Precision: \");\n System.out.println(mapFinal);\n \n mapLimitedFinal = apResRankedTopLimited.stream().mapToDouble(d->d).sum()/apResRankedTopLimited.size();\n System.out.print(\"Mean Precision at rank 10: \");\n System.out.println(mapLimitedFinal);\n \n //NDCG\n ndcgResultsFinal =0;\n ndcgResults.stream().forEach(l-> {\n //it is always true, only added to ensure that doesnt' break with another examples where some queries doens't have results.\n if(l.size()>0){\n ndcgResultsFinal= l.get(l.size()-1)+ndcgResultsFinal;\n }\n });\n ndcgResultsFinal=ndcgResultsFinal/ndcgResults.size();\n \n System.out.print(\"NDCG: \");\n System.out.println(ndcgResultsFinal);\n }", "public void step() {\n stats.record();\n updateGraph();\n }", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000_ = 0;\nint a001_ = 0;\nint a002_ = 0;\nint a003_ = 0;\nint a004_ = 0;\nint a005_ = 0;\nint a006_ = 0;\nint a007_ = 0;\nint a008_ = 0;\nint a009_ = 0;\nint a010_ = 0;\nint a011_ = 0;\nint a012_ = 0;\nint a013_ = 0;\nint a014_ = 0;\nint a015_ = 0;\nint a016_ = 0;\nint a017_ = 0;\nint a018_ = 0;\nint a019_ = 0;\nint cur_ = 0;\n\nwhile (iter.hasNext()) {\ncur_ = iter.next().get();\na011_ = a015_ - a008_;\na003_ = a000_ + a003_;\na005_ = a005_ + a006_;\na015_ = a012_ + a011_;\na008_ = a014_ + a001_;\na007_ = a005_ + a015_;\na002_ = a000_ - a009_;\na012_ = a005_ + a012_;\na010_ = a018_ + a003_;\na014_ = a014_ + a004_;\ncur_ = a002_ + a004_;\na017_ = a007_ + a009_;\na005_ = cur_ - a014_;\na000_ = a012_ - a006_;\na006_ = a013_ - a011_;\na000_ = 0 - a008_;\na006_ = a007_ + a003_;\na015_ = a014_ - a019_;\na004_ = a012_ + cur_;\na005_ = a018_ - a017_;\na007_ = a006_ + a000_;\na005_ = cur_ - a009_;\na001_ = a009_ + a008_;\na015_ = cur_ + a010_;\na013_ = a018_ * -2;\ncur_ = a013_ - a012_;\na019_ = a002_ - a001_;\na017_ = a014_ + a004_;\na005_ = a017_ - a006_;\na016_ = a019_ - a019_;\na009_ = a000_ + cur_;\na013_ = a003_ * -1;\nif (a010_ >= a004_) {\na015_ = a018_ + a015_;\na010_ = a009_ - a010_;\na012_ = a011_ - a005_;\na014_ = a002_ - a012_;\nif (a000_ != a013_) {\na004_ = a015_ + cur_;\na013_ = a019_ + a016_;\na013_ = a012_ + a009_;\na016_ = a014_ - -5;\na001_ = a002_ - a004_;\n} else {\na007_ = a013_ - a003_;\na016_ = a007_ - a018_;\na016_ = a013_ + a011_;\na013_ = a013_ - a012_;\na013_ = -1 + a006_;\ncur_ = a002_ - a017_;\na007_ = a002_ + a018_;\ncur_ = a002_ + a015_;\na003_ = a015_ + a007_;\na017_ = a005_ + a009_;\na013_ = a006_ - -2;\na008_ = a005_ - a003_;\na002_ = a017_ - a014_;\na006_ = a006_ + a010_;\na008_ = a018_ + a010_;\na000_ = a015_ + -4;\na014_ = a004_ - a010_;\na012_ = a009_ - a016_;\na008_ = a002_ - a019_;\na015_ = a007_ + a005_;\na004_ = cur_ + a018_;\na011_ = a007_ + a012_;\na007_ = 4 - a011_;\na001_ = a012_ + cur_;\na011_ = a010_ - a013_;\na003_ = a006_ - a011_;\na006_ = a012_ - a008_;\na015_ = a010_ - a013_;\na019_ = a012_ + a011_;\nif (a017_ != a015_) {\ncur_ = a010_ - cur_;\na013_ = a009_ - a002_;\na008_ = a011_ - a008_;\na019_ = a005_ - a000_;\na010_ = a019_ + a010_;\na002_ = a004_ - 1;\na017_ = a015_ - cur_;\ncur_ = 1 - a005_;\na004_ = a000_ + a003_;\na001_ = a012_ + 2;\na004_ = a003_ - 2;\na003_ = a010_ - -4;\na019_ = a014_ - a002_;\na011_ = a002_ - a007_;\na000_ = a007_ + a015_;\na018_ = a009_ + cur_;\na006_ = a003_ - a017_;\nif (a008_ == a013_) {\na005_ = a017_ + a016_;\na005_ = a005_ + a013_;\na017_ = a015_ + a007_;\na016_ = a016_ + a018_;\na016_ = a014_ - a015_;\na003_ = a019_ - a018_;\ncur_ = a010_ + a005_;\na003_ = a001_ + a010_;\na016_ = -4 + a003_;\na002_ = a017_ + a008_;\na016_ = a003_ - a009_;\na003_ = a009_ + a015_;\na016_ = a004_ - a000_;\na005_ = a015_ + cur_;\na018_ = a010_ + a003_;\na016_ = a017_ - a004_;\n} else {\na018_ = a019_ + a009_;\na015_ = a004_ + a018_;\na019_ = a005_ - a003_;\na009_ = -5 + a008_;\na010_ = a000_ + a000_;\na009_ = a009_ - a011_;\na005_ = a006_ - cur_;\na019_ = a018_ + a009_;\na014_ = a005_ + cur_;\na004_ = a010_ + a008_;\na000_ = a015_ - a018_;\na015_ = a017_ - a017_;\na008_ = a001_ + a008_;\na002_ = a009_ - a012_;\na010_ = a006_ - a012_;\na014_ = a009_ + a001_;\na016_ = a000_ - a016_;\na004_ = a018_ - a019_;\na007_ = a003_ + a011_;\na019_ = a004_ - a017_;\na015_ = a018_ - a017_;\na003_ = a000_ + a002_;\na005_ = a007_ - a014_;\na001_ = cur_ + a017_;\n}\na012_ = a012_ + cur_;\n} else {\na010_ = a018_ + a000_;\na002_ = a000_ - a003_;\na005_ = a012_ + a012_;\na015_ = a004_ + a004_;\na008_ = a013_ - a019_;\na004_ = a002_ + a015_;\na011_ = a014_ + a012_;\na004_ = a019_ + a010_;\na002_ = a018_ + a010_;\ncur_ = a017_ + a019_;\na017_ = a013_ + a005_;\na013_ = a008_ - a012_;\na004_ = a012_ + a007_;\n}\na009_ = a015_ - a016_;\na000_ = a006_ + a008_;\na003_ = a008_ - a011_;\na001_ = a016_ - a006_;\na016_ = a014_ + a016_;\na000_ = a011_ + a003_;\na004_ = a010_ + a019_;\na013_ = a008_ + cur_;\na016_ = a016_ + a015_;\n}\na010_ = a003_ + a007_;\na006_ = a009_ - a000_;\na002_ = a017_ - a001_;\na013_ = a016_ + a019_;\na013_ = a009_ - a015_;\na005_ = a002_ - a018_;\na009_ = a002_ + a007_;\na008_ = a008_ + a002_;\na007_ = a005_ + a009_;\na017_ = a019_ + a013_;\na012_ = a003_ + a004_;\na008_ = a012_ + a012_;\na003_ = a007_ + a005_;\ncur_ = a014_ + a007_;\na009_ = a016_ + a010_;\na006_ = a005_ - a003_;\na014_ = a019_ + cur_;\na006_ = a007_ + a000_;\na013_ = a011_ - a011_;\na018_ = a009_ - 1;\na002_ = a004_ - a014_;\n} else {\na004_ = a006_ - a014_;\na016_ = a017_ + 2;\na014_ = a006_ - a002_;\na002_ = a016_ + cur_;\na014_ = -3 + a018_;\n}\ncur_ = a017_ + a015_;\na005_ = a003_ - a015_;\na014_ = a019_ + a009_;\ncur_ = cur_ + a005_;\na009_ = a007_ - a004_;\ncur_ = a014_ + a006_;\na013_ = a002_ - a012_;\na002_ = a008_ + a014_;\na000_ = a006_ + a004_;\na017_ = 1 - a009_;\na012_ = a017_ + a001_;\na011_ = a009_ - a010_;\na011_ = a018_ - a014_;\na016_ = a003_ - cur_;\na013_ = cur_ + a012_;\na015_ = a012_ + a010_;\na017_ = a007_ + a017_;\na000_ = -1 + a008_;\na010_ = a008_ + a003_;\na016_ = a009_ + a010_;\na002_ = a011_ + a008_;\na016_ = a015_ + a016_;\na002_ = a012_ + a008_;\na017_ = a013_ + a004_;\n}\noutput.collect(prefix, new IntWritable(a005_));\n}", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000 = 0;\nint a001 = 0;\nint a002 = 0;\nint a003 = 0;\nint a004 = 0;\nint a005 = 0;\nint a006 = 0;\nint a007 = 0;\nint a008 = 0;\nint a009 = 0;\nint a010 = 0;\nint a011 = 0;\nint a012 = 0;\nint a013 = 0;\nint a014 = 0;\nint a015 = 0;\nint a016 = 0;\nint a017 = 0;\nint a018 = 0;\nint a019 = 0;\nint a020 = 0;\nint a021 = 0;\nint a022 = 0;\nint a023 = 0;\nint a024 = 0;\nint cur = 0;\n\nwhile (iter.hasNext()) {\ncur = iter.next().get();\na003 += a021;\na011 += a023;\na017 -= -2;\na003 += a009;\na018 += a016;\na015 -= a004;\na020 -= a018;\na007 = a015 - a024;\na006 = a017 - a023;\na006 -= a024;\na019 += a014;\na008 = a015 - a023;\na015 += a024;\na004 += a004;\na021 -= a018;\na008 = a024 - a010;\na011 = a020 + a019;\na023 = a004 - a018;\ncur = a024 - a015;\na007 += a014;\na002 = a014 + a000;\na010 = a010 - a013;\na022 = a010 - a023;\na016 -= a014;\na004 -= a024;\na004 -= a005;\na014 = a005 + a012;\na001 = a018 + a018;\nif (a014 != a017) {\na019 = a023 + a007;\na000 -= cur;\na011 = a016 + a024;\na003 = a000 + a008;\na001 -= a012;\na011 = a016 + a022;\na009 += a011;\na012 -= a002;\na007 += a012;\n} else {\na003 -= a002;\na011 = a022 + a012;\na022 = a004 - a018;\na001 += a022;\na018 -= a005;\na001 = a004 - a017;\na021 = a011 + a021;\na005 -= a010;\na011 += a002;\na016 = a016 - a018;\na006 = a000 - a006;\na019 -= a002;\na009 -= a003;\na016 -= a019;\na013 = a000 + a005;\na008 += a002;\na013 = a002 + a007;\na010 += a018;\na005 -= a022;\na015 = a021 + a018;\na000 = a019 - a001;\nif (a005 == a018) {\nif (a011 >= a018) {\na018 += a005;\na012 -= a005;\na007 = a007 - a004;\n} else {\na015 = a017 + a022;\na022 += a015;\na019 += a010;\na014 -= cur;\na023 += a008;\na015 = a013 - a014;\nif (a011 != -2) {\na013 = a021 - a019;\na016 -= a010;\na000 = a021 + a024;\na009 = a009 + a015;\na005 = a018 + a002;\na004 = a021 * 4;\na008 = a018 + a007;\na021 = a011 + a013;\na015 = a002 + a023;\na022 = a007 - a012;\na005 -= a021;\na022 = a015 - a015;\na007 = a007 + a020;\na001 = a013 - a002;\na015 += a011;\na011 -= a002;\na010 = a015 * -2;\na020 -= a011;\na023 -= a013;\na013 = a004 - a023;\na023 = a023 - a017;\na016 = a008 + a014;\na015 -= cur;\na023 -= a022;\na005 -= a011;\na002 = a009 + a008;\na023 = a015 * 4;\na014 = 0 - a010;\na012 = a016 - a024;\na004 += a000;\na022 = a010 - a022;\na013 += a015;\na016 = a020 - a023;\nif (a012 < -4) {\na019 -= a019;\na015 -= a005;\na023 = a007 - a018;\na013 = a015 - a017;\na021 -= a013;\na005 = a004 - a020;\na004 = 0 - a022;\na021 -= a013;\na004 += a004;\na012 = a022 + a022;\n} else {\na018 = a013 + a014;\na004 += a017;\na007 = a021 + a009;\na009 -= a019;\na024 -= a000;\na001 = a001 - a021;\na001 = a011 + a001;\na005 = a003 + a006;\na012 -= a000;\na016 = a004 - a019;\na010 = a007 - a013;\na011 += cur;\na020 -= a021;\na024 = a015 - cur;\na000 = a012 - a015;\na011 -= a015;\na022 = a007 - a019;\na004 -= a013;\na016 = a015 - a016;\na022 = a023 + a006;\n}\na019 -= a000;\na000 = a012 - a019;\na005 = a014 + a004;\na022 -= a021;\na006 = a009 + a011;\na001 = a007 + a006;\na013 = a009 - a021;\na006 = a004 - a000;\na011 += a020;\na012 -= cur;\na010 -= a011;\na000 = a009 + cur;\na013 += a002;\na019 -= a013;\na021 -= a011;\na005 = 2 + a009;\na023 = a007 - a016;\na009 -= a024;\na024 -= a019;\n} else {\na010 -= cur;\na018 -= a001;\na007 -= a022;\na022 += a005;\na022 = a006 + a020;\na013 = cur - a001;\n}\na003 = a013 + a010;\na023 -= a010;\na011 = a002 - a015;\na017 = a010 + a008;\ncur = a020 - a018;\na011 += a009;\na018 = a012 + a017;\na000 += a023;\na012 = a001 - a007;\na009 += a005;\na018 += a006;\na020 = a016 - a016;\na007 = a007 + a002;\na005 = a021 - a018;\na023 = a006 - a002;\na006 = cur - a016;\na007 = a007 + a013;\ncur += a021;\na014 += -3;\na013 -= a007;\na016 += a012;\ncur += a005;\na007 += a018;\na013 = a006 - a022;\na008 -= a008;\na000 = a006 - a011;\ncur += a023;\na002 = a005 - a024;\na022 -= a019;\na016 = a007 - a002;\na002 = a012 + a020;\n}\na003 += a004;\na005 = a022 - a000;\na004 = a003 - a021;\na011 -= a009;\na000 -= a024;\na019 += a012;\na024 = a021 + a020;\na016 -= a005;\na024 += a006;\na006 = a005 - a008;\na003 = a021 + a000;\na012 -= a012;\na012 += a003;\na002 += a013;\na020 = 0 + a007;\na013 -= a006;\na022 = a020 - a010;\n} else {\na002 -= a002;\na017 = a000 + a018;\na012 += cur;\na014 -= a006;\na024 += a000;\na008 = a023 - a009;\na009 += a012;\na013 += a007;\na001 += a011;\na020 += 1;\na011 = a006 + a023;\na017 += a024;\na002 = a014 + a014;\na016 = a012 - a009;\n}\na018 -= a010;\na023 += a020;\na012 = a013 - a012;\na015 -= a021;\na004 = a001 - a016;\na001 += a004;\na023 -= a021;\na014 += a002;\na001 = a007 - a006;\na007 = a022 - -5;\na012 -= a006;\na022 += a010;\na007 = a001 + -2;\na016 = a015 + a005;\na021 += a004;\na006 -= a023;\na017 += a013;\na012 -= a010;\na018 -= 0;\na023 = -3 - a006;\na012 -= a014;\n}\na005 += a020;\na016 = a012 - a008;\na016 = a012 + a002;\na019 = a007 + a017;\na009 = a009 + a009;\na001 += 1;\na020 = a021 + a024;\na001 = a020 - a011;\na015 = a011 - a013;\na003 += a021;\na004 -= a009;\na014 -= a022;\n}\noutput.collect(prefix, new IntWritable(a015));\n}", "public void change(double increment)\n\t{\n\t\tthis.accumulation += increment;\n\t}", "protected void updateValues(){\n double total = 0;\n for(int i = 0; i < values.length; i++){\n values[i] = \n operation(minimum + i * (double)(maximum - minimum) / (double)numSteps);\n \n total += values[i];\n }\n for(int i = 0; i < values.length; i++){\n values[i] /= total;\n }\n }", "@Override public void postGlobal() {\n for(int i=1;i<_chkSums.length;++i) _chkSums[i] += _chkSums[i-1];\n }", "public synchronized void endUpdates() {\n checkState(_recentlyTouched != null, \"The beginUpdates method has not been called.\");\n Iterator<String> iter = _metrics.keySet().iterator();\n while (iter.hasNext()) {\n String metric = iter.next();\n if (!_recentlyTouched.contains(metric)) {\n _registry.remove(metric);\n iter.remove();\n }\n }\n _recentlyTouched = null;\n }", "@SuppressWarnings({ \"deprecation\", \"serial\" })\n\tprivate void doBatchCompute() {\n\t\tHConnection hConnection = null;\n\t\tHTableInterface hTableInterface = null;\n\t\tHBaseAdmin admin = null;\n\t\ttry {\n\t\t\t//scan the events table\n\t\t\thConnection = HConnectionManager.createConnection(conf);\n\t\t\thTableInterface = hConnection.getTable(DashboardUtils.curatedEvents);\n\t\t\tadmin = new HBaseAdmin(conf);\n\t\t\t\n\t\t\t//create an empty dataset here and do union or intersections in subsequent nested iterations\n\t\t\tList<DatasetBean> emptyFeed = new ArrayList<DatasetBean>();\n\t\t\tDatasetBean datasetBean = new DatasetBean();\n\t\t\t\n\t\t\t//start scanning through the table\n\t\t\tScan scan = new Scan();\n\t\t\tResultScanner scanner = hTableInterface.getScanner(scan);\n\t\t\tfor(Result r = scanner.next(); r != null; r = scanner.next()) {\n\t\t\t\t//to stop scanner from creating too many threads\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t} catch(InterruptedException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t//cumulative set which is empty containing the DatasetBean class object\n\t\t\t\tDataset<Row> cumulativeSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\n\t\t\t\t//scan through every row of feedEvents table and process each corresponding event\n\t\t\t\tif(!r.isEmpty()) {\n\t\t\t\t\teventTable = Bytes.toString(r.getRow());\n\t\t\t\t\t\n\t\t\t\t\t//create table if it didn't already exist\n\t\t\t\t\tif(!admin.tableExists(eventTable)) {\n\t\t\t\t\t\tHTableDescriptor creator = new HTableDescriptor(eventTable);\n\t\t\t\t\t\tcreator.addFamily(new HColumnDescriptor(DashboardUtils.eventTab_cf));\n\t\t\t\t\t\tadmin.createTable(creator);\n\t\t\t\t\t\tlogger.info(\"**************** just created the following table in batch process since it didn't exist: \" + eventTable);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t//declare the dataset storing the data from betaFeed\n\t\t\t\t\tDataset<Row> feedDataSet;\n\t\t\t\t\t//long eventdatacount = eventmap.get(eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcurrentStore = RSSFeedUtils.betatable;\n\t\t\t\t\t//this dataset is populated with betaFeed data\n\t\t\t\t\tfeedDataSet = loadbetaFeed();\n\t\t\t\t\t\n\t\t\t\t\t//store the data as a temporary table to process via sparkSQL\n\t\t\t\t\tfeedDataSet.createOrReplaceTempView(currentStore);\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tfeedevents = Job.getInstance(conf);\n\t\t\t\t\tfeedevents.getConfiguration().set(TableOutputFormat.OUTPUT_TABLE, eventTable);\n\t\t\t\t\tfeedevents.setOutputFormatClass(TableOutputFormat.class);\n\t\t\t\t\t\n\t\t\t\t\t//read the tags attribute of the event, and start reading it from left to right....tags are in format as in the documentation\n\t\t\t\t\t//break the OR tag, followed by breaking the AND tag, followed by processing each tag or event contained in it\n\t\t\t\t\tString tags = \"\";\n\t\t\t\t\tif(r.containsColumn(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags))) {\n\t\t\t\t\t\ttags = Bytes.toString(r.getValue(Bytes.toBytes(DashboardUtils.curatedEvents_cf), Bytes.toBytes(DashboardUtils.curatedTags)));\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tString backupTagStr = tags;\n\t\t\t\t\t\n\t\t\t\t\twhile(tags.contains(\")\")) {\n\t\t\t\t\t\tString threstr=null;\n\t\t\t\t\t\tSystem.out.println(\"tags:\" + tags.trim());\n\t\t\t\t\t\t\n\t\t\t\t\t\tString[] ortagstrings = tags.trim().split(\"OR\");\n\t\t\t\t\t\tfor(String ortag : ortagstrings) {\n\t\t\t\t\t\t\tSystem.out.println(\"val of ortag:\" + ortag);\n\t\t\t\t\t\t\tthrestr = ortag.trim();\n\t\t\t\t\t\t\t//these are the parameters being fetched and populated in the events...i.e, feedname,totle,link,description,categories and date\n\t\t\t\t\t\t\tString qry =\"SELECT rssFeed, title, articleLink, description, categories, articleDate FROM \" + currentStore + \" WHERE \";\n\t\t\t\t\t\t\tStringBuilder querybuilder = new StringBuilder(qry);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tSystem.out.println(\"tag:\"+ortag.trim());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString[] andtagstrings = ortag.trim().split(\"AND\");\n\t\t\t\t\t\t\tDataset<Row> andSet = sparkSession.createDataFrame(emptyFeed, datasetBean.getClass());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tString proctag=null;\n\t\t\t\t\t\t\tfor(int i=0; i<andtagstrings.length; i++) {\n\t\t\t\t\t\t\t\tproctag = andtagstrings[i];\n\t\t\t\t\t\t\t\tSystem.out.println(\"process tag:\" + proctag);\n\t\t\t\t\t\t\t\t//if the part of the tag being processed is an event, open up a second stream to load data from corresponding table\n\t\t\t\t\t\t\t\tif(proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"qwerty:\" + proctag.trim());\n\t\t\t\t\t\t\t\t\tString curatedevent = proctag.trim().substring(6, proctag.trim().length()).trim().replaceAll(\" \", \"__\").replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t\t\t\t\tlogger.info(\"################################################################################# event:\"+curatedevent);\n\t\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\t\tif(admin.tableExists(curatedevent)) {\n\t\t\t\t\t\t\t\t\t\tDataset<Row> eventdataset = loadcuratedEvent(curatedevent);\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"**************************************************** event:\" + curatedevent + \" while processing:\"+eventTable);\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\tif(i==0) {\n\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tif(andSet.count() == 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.union(andSet);\n\t\t\t\t\t\t\t\t\t\t\t} else if(andSet.count() > 0) {\n\t\t\t\t\t\t\t\t\t\t\t\tandSet = eventdataset.intersect(andSet);\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\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\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\tlogger.info(\"*************************** event \" + curatedevent + \" does not exist *********************************\");\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t//if it's a normal tag, make a sparkSQL query out of it\n\t\t\t\t\t\t\t\t} else if(!proctag.trim().replaceAll(\"\\\\(\", \"\").startsWith(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tquerybuilder.append(\"categories RLIKE '\" + proctag.trim().replaceAll(\"\\\\(\", \"\").replaceAll(\"\\\\)\", \"\") + \"' AND \");\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t//once the tag is fully processed, merge all data points and store in a resultant dataset\n\t\t\t\t\t\t\tif(querybuilder.toString().length() > qry.length()) {\n\t\t\t\t\t\t\t\t//logger.info(\"^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ inside query string ###############################\");\n\t\t\t\t\t\t\t\tquerybuilder = new StringBuilder(querybuilder.toString().substring(0, querybuilder.toString().length() -5));\n\t\t\t\t\t\t\t\t//dataset comes here\n\t\t\t\t\t\t\t\tDataset<Row> queryset = sparkSession.sql(querybuilder.toString());\n\n\t\t\t\t\t\t\t\t//id the set it empty, fill it with the single data point\n\t\t\t\t\t\t\t\tif(andSet.count() == 0 && !backupTagStr.contains(\"EVENT\")) {\n\t\t\t\t\t\t\t\t\tandSet = queryset.union(andSet);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ doing query string with zero count:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tlogger.info(\"@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ doing intersect for query:\" + eventTable);\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet.createOrReplaceTempView(\"andSet1\");\n\t\t\t\t\t\t\t\t\tqueryset.createOrReplaceTempView(\"querySet1\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tDataset<Row> fSet = sparkSession.sql(\"SELECT DISTINCT(a.*) FROM andSet1 a INNER JOIN querySet1 b ON a.title = b.title\");\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tandSet = fSet;\n\t\t\t\t\t\t\t\t\tqueryset.unpersist();\n\t\t\t\t\t\t\t\t\tfSet.unpersist();\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tcumulativeSet = andSet.union(cumulativeSet);\n\t\t\t\t\t\t\tandSet.unpersist();\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\ttags = tags.substring(threstr.length(), tags.length()).trim().replaceAll(\"\\\\)\", \"\");\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"########################################################################################################### table:\"+eventTable);\n\t\t\t\t\t\n\t\t\t\t\tcumulativeSet.createOrReplaceTempView(\"cumulativeEvent\");\n\t\t\t\t\n\t\t\t\t\t//as a double check, only fetch distinct records from all the merges...done via sparkSQL\n\t\t\t\t\tDataset<Row> finalSet = sparkSession.sql(\"SELECT DISTINCT(*) FROM cumulativeEvent\");\n\t\t\t\t\t\n\t\t\t\t\tJavaRDD<Row> eventRDD = finalSet.toJavaRDD();\n\t\t\t\t\tJavaPairRDD<ImmutableBytesWritable, Put> eventpairRDD = eventRDD.mapToPair(new PairFunction<Row, ImmutableBytesWritable, Put>() {\n\n\t\t\t\t\t\tpublic Tuple2<ImmutableBytesWritable, Put> call(Row arg0) throws Exception {\n\t\t\t\t\t\t\tObject link = arg0.getAs(\"articleLink\");\n\t\t\t\t\t\t\tif((String)link != null) {\n\t\t\t\t\t\t\t\t//parameters being populated into the events table\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), link, arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\treturn DashboardUtils.objectsofCuratedEvents(arg0.getAs(\"rssFeed\"), arg0.getAs(\"title\"), \"link not available\", arg0.getAs(\"description\"), \n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\targ0.getAs(\"categories\"), arg0.getAs(\"articleDate\"));\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});\n\t\t\t\t\t\n\t\t\t\t\tlogger.info(\"******************************** going to dump curated events data in hbase for event: \" + eventTable);\n\t\t\t\t\teventpairRDD.saveAsNewAPIHadoopDataset(feedevents.getConfiguration());\n\t\t\t\t\t\n\t\t\t\t\teventRDD.unpersist();\n\t\t\t\t\tfinalSet.unpersist();\n\t\t\t\t\tcumulativeSet.unpersist();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tscanner.close();\n\t\t\thTableInterface.close();\n\t\t\thConnection.close();\n\t\t\t\n\t\t} catch(IOException e) {\n\t\t\tlogger.info(\"error while establishing Hbase connection...\");\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void update() {\n if (!isEnd()) index++;\n state++;\n return;\n }", "public void updateValues() {\r\n\t\tSystem.out.println(\"LastTime: \" + lastTime);\r\n\t\t// System.out.println(\"Rerouted: \" + restoredLSP.toString());\r\n\t\t// System.out.println(\"Crack rerouted success: \" +\r\n\t\t// reroutedLSP.toString());\r\n\t\tSystem.out.println(\"Number of Crack rerouted success: \"\r\n\t\t\t\t+ reroutedLSP.size());\r\n\t}", "private synchronized void updateLogCount() {\n this.logCount++;\n }", "private void flushData()\n {\n try\n {\n while(state.get().ordinal() < SimulationState.TEARING_DOWN.ordinal() || !flushing.isEmpty())\n {\n ICardinality cardinality = flushing.poll(1, TimeUnit.MILLISECONDS);\n if (cardinality == null)\n continue;\n\n long numToFlush = cardinality.cardinality();\n counters.numFlushed.addAndGet(numToFlush);\n generateSSTables(cardinality, numToFlush, partitioner.getMinimumToken(), partitioner.getMaximumToken(), \"flushing\", true);\n }\n }\n catch (InterruptedException e)\n {\n logger.error(\"Exception happen during flushing\", e);\n }\n }", "@SuppressWarnings(\"deprecation\")\n private void updateResourceCounters() {\n updateHeapUsageCounter();\n\n // Updating resources specified in ResourceCalculatorProcessTree\n if (pTree == null) {\n return;\n }\n pTree.updateProcessTree();\n long cpuTime = pTree.getCumulativeCpuTime();\n long pMem = pTree.getCumulativeRssmem();\n long vMem = pTree.getCumulativeVmem();\n // Remove the CPU time consumed previously by JVM reuse\n cpuTime -= initCpuCumulativeTime;\n PSAgentContext.get().getMetrics().put(AngelCounter.CPU_MILLISECONDS, Long.toString(cpuTime));\n PSAgentContext.get().getMetrics().put(AngelCounter.PHYSICAL_MEMORY_BYTES, Long.toString(pMem));\n PSAgentContext.get().getMetrics().put(AngelCounter.VIRTUAL_MEMORY_BYTES, Long.toString(vMem));\n }", "public abstract void accumulate(long timestamp, int value);", "@Test\n public void testAccumulateGradients() {\n // TODO: MXNet support for accumulating gradients does not currently work\n TestUtils.requiresNotEngine(\"MXNet\");\n try (NDManager manager = NDManager.newBaseManager(TestUtils.getEngine())) {\n NDArray a = manager.create(0.0f);\n a.setRequiresGradient(true);\n\n Engine engine = Engine.getEngine(TestUtils.getEngine());\n try (GradientCollector gc = engine.newGradientCollector()) {\n for (int i = 1; i <= 3; i++) {\n NDArray b = a.mul(2);\n gc.backward(b);\n Assert.assertEquals(a.getGradient().getFloat(), 2.0f * i);\n }\n }\n }\n }", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000_ = 0;\nint a001_ = 0;\nint a002_ = 0;\nint a003_ = 0;\nint a004_ = 0;\nint a005_ = 0;\nint a006_ = 0;\nint a007_ = 0;\nint a008_ = 0;\nint a009_ = 0;\nint a010_ = 0;\nint a011_ = 0;\nint a012_ = 0;\nint a013_ = 0;\nint a014_ = 0;\nint a015_ = 0;\nint a016_ = 0;\nint a017_ = 0;\nint a018_ = 0;\nint a019_ = 0;\nint a020_ = 0;\nint a021_ = 0;\nint a022_ = 0;\nint a023_ = 0;\nint a024_ = 0;\nint cur_ = 0;\n\nwhile (iter.hasNext()) {\ncur_ = iter.next().get();\na012_ = a000_ - a017_;\na004_ = cur_ - 2;\na008_ = a018_ - a009_;\na020_ = a020_ - cur_;\na021_ = a001_ - a009_;\na010_ = a002_ + a004_;\na013_ = a005_ + a005_;\na009_ = a019_ + a012_;\na008_ = a008_ * -5;\na021_ = a022_ - a023_;\na002_ = a020_ - a022_;\na019_ = cur_ + a020_;\ncur_ = cur_ + a008_;\na020_ = a006_ + a021_;\na021_ = a008_ - a017_;\na017_ = a021_ - a009_;\ncur_ = a011_ - a005_;\nif (a004_ == a007_) {\na007_ = -2 - a015_;\na022_ = a005_ - a019_;\na013_ = a010_ - a022_;\na024_ = a009_ + a000_;\na018_ = a003_ - 3;\na019_ = a021_ - a002_;\na000_ = a017_ + cur_;\na010_ = a020_ - 1;\na000_ = a020_ - a024_;\na017_ = a004_ + a007_;\na009_ = a001_ - a010_;\na015_ = a018_ + a022_;\na023_ = a013_ + a016_;\na024_ = cur_ - a019_;\na015_ = a013_ - a017_;\na024_ = a003_ - a021_;\na018_ = a003_ - a023_;\n} else {\na011_ = a006_ + a023_;\na018_ = a003_ - a015_;\na022_ = a008_ - a007_;\na005_ = a001_ - cur_;\na007_ = a000_ + a012_;\na000_ = a007_ + a023_;\na009_ = cur_ + a010_;\na018_ = -1 + a001_;\na003_ = -2 + a005_;\na006_ = a009_ + a020_;\na001_ = a017_ + a022_;\na024_ = a009_ + a006_;\na005_ = a017_ - a023_;\na004_ = a017_ - a019_;\na015_ = a018_ - a018_;\na021_ = a019_ + a011_;\na024_ = a009_ - a014_;\na009_ = 0 + a023_;\na020_ = a011_ + a006_;\na012_ = a005_ - a011_;\na010_ = a001_ - a018_;\na012_ = a002_ - a003_;\ncur_ = a006_ - a013_;\n}\na000_ = a023_ + a012_;\na008_ = a016_ - a018_;\na024_ = a018_ + a010_;\na013_ = a018_ + a002_;\na009_ = a016_ + a015_;\na005_ = a002_ + a009_;\na004_ = a009_ + a011_;\na011_ = a011_ + a013_;\na022_ = a019_ + a008_;\na017_ = a016_ + a010_;\na014_ = a012_ - a023_;\na005_ = a019_ - a001_;\na005_ = a013_ * -4;\na009_ = a020_ + a008_;\na012_ = a020_ - a001_;\na013_ = a016_ - a000_;\na012_ = a003_ + a000_;\na022_ = a001_ + a002_;\na001_ = a010_ - a024_;\na003_ = a008_ + a015_;\na012_ = a012_ - a020_;\na001_ = a019_ + a015_;\na009_ = a002_ + a018_;\na021_ = a024_ - a006_;\nif (a024_ == a014_) {\na006_ = a002_ + a016_;\na003_ = a020_ - 2;\na008_ = a020_ - a018_;\na015_ = a012_ + a001_;\na008_ = cur_ - a014_;\na001_ = a002_ - a008_;\na004_ = a015_ + a011_;\na024_ = -4 + a020_;\na021_ = a013_ + a012_;\na005_ = a012_ + a001_;\na009_ = a012_ + a018_;\na023_ = a016_ - a003_;\na011_ = a019_ - a012_;\na005_ = a000_ - a008_;\na004_ = a024_ - a011_;\na022_ = a024_ - a009_;\na005_ = a007_ + a011_;\na001_ = a012_ + a000_;\na006_ = a020_ - cur_;\na015_ = a020_ - 1;\n} else {\na001_ = a006_ - a019_;\na019_ = 2 - a014_;\ncur_ = a021_ + a009_;\na023_ = a010_ + 3;\na005_ = a018_ + a019_;\na015_ = cur_ + a020_;\na001_ = a009_ - a021_;\na016_ = a009_ - a004_;\na005_ = a003_ + a023_;\na006_ = a008_ - a008_;\ncur_ = a013_ - -3;\na018_ = a007_ + a009_;\nif (a011_ <= a024_) {\na001_ = a001_ - a007_;\na018_ = a001_ - a010_;\na015_ = a016_ + a008_;\na009_ = a013_ - a015_;\na001_ = a018_ + a001_;\na001_ = a024_ - a002_;\na018_ = a006_ + a015_;\na001_ = a000_ - 0;\na022_ = a024_ - a009_;\na011_ = a008_ - a015_;\na009_ = a017_ + a000_;\na016_ = a005_ + a023_;\na001_ = a007_ - a023_;\na008_ = a023_ - a020_;\na023_ = a005_ - a016_;\na020_ = a024_ + a008_;\na005_ = a008_ - a003_;\na016_ = a006_ + a011_;\na006_ = a004_ + a014_;\na013_ = -2 - a001_;\na021_ = a008_ - a005_;\na000_ = a011_ - a016_;\na024_ = a008_ - a000_;\na007_ = a008_ + a013_;\n} else {\na021_ = a010_ + a018_;\na005_ = a013_ - a023_;\na012_ = a011_ - a024_;\na014_ = a002_ + a009_;\na022_ = a022_ + a015_;\na024_ = a008_ + a021_;\ncur_ = a014_ + a009_;\na018_ = a004_ + a015_;\na004_ = a018_ + a004_;\na020_ = a013_ + a005_;\na017_ = a012_ - a007_;\na011_ = a017_ - a005_;\na015_ = a012_ - a014_;\na020_ = 2 - a009_;\na019_ = a001_ + a023_;\na003_ = a008_ - a020_;\ncur_ = a005_ - a001_;\na016_ = a011_ + a022_;\na005_ = a010_ + cur_;\na018_ = a021_ - a016_;\na022_ = a005_ - a016_;\n}\nif (a011_ == a020_) {\na017_ = a007_ + a006_;\na017_ = a001_ - a002_;\na003_ = a005_ + a023_;\na012_ = a007_ + a021_;\na005_ = a020_ + a005_;\na023_ = a019_ + a003_;\na019_ = a016_ - a013_;\na013_ = a008_ + a002_;\na023_ = a004_ - a020_;\na014_ = a000_ + a013_;\na015_ = a008_ + a011_;\na010_ = a004_ - a014_;\na020_ = a022_ - a013_;\na020_ = a011_ + a015_;\na021_ = a021_ + a021_;\na024_ = a009_ - 2;\na012_ = a014_ - a018_;\na014_ = a009_ + a024_;\na021_ = a019_ - a007_;\nif (a006_ <= a022_) {\ncur_ = a004_ - a006_;\na022_ = a021_ - a003_;\na013_ = a023_ - a001_;\na011_ = a017_ - a009_;\na002_ = a000_ + a005_;\na019_ = a005_ + a023_;\na007_ = a024_ + a013_;\na014_ = a001_ - a003_;\na007_ = 3 + a003_;\na000_ = a002_ + a011_;\na000_ = a004_ + a012_;\na018_ = a013_ + a024_;\na024_ = a023_ - cur_;\na001_ = a007_ + a008_;\ncur_ = a008_ + a000_;\na012_ = a013_ + a000_;\na001_ = a008_ - a021_;\na013_ = a006_ + a018_;\na024_ = a004_ - a001_;\na014_ = a000_ - a006_;\na008_ = a010_ * 2;\na000_ = a019_ + a011_;\na000_ = a019_ + a000_;\n} else {\na014_ = a010_ - a009_;\na007_ = a009_ + a004_;\na019_ = a017_ + a006_;\na001_ = a019_ + a005_;\na015_ = a000_ - a006_;\na002_ = a011_ + a011_;\na013_ = a013_ + a015_;\na005_ = a014_ + a015_;\na017_ = a000_ + a000_;\na015_ = a019_ - a013_;\na007_ = a021_ + a005_;\na020_ = -4 + a007_;\na007_ = a022_ + a003_;\na009_ = a021_ - a001_;\na002_ = a009_ + a004_;\na016_ = a018_ + a022_;\na008_ = a007_ - a001_;\na007_ = a010_ + a010_;\na012_ = a020_ + a013_;\na006_ = a011_ + a011_;\na023_ = a021_ + a002_;\na023_ = a015_ + a011_;\na008_ = a005_ - a024_;\na019_ = a000_ - a015_;\na007_ = a022_ - a003_;\na023_ = a008_ - a007_;\na007_ = a008_ - a023_;\na024_ = a018_ + a005_;\na001_ = a013_ - a002_;\na017_ = a023_ - a011_;\na022_ = a003_ + a004_;\n}\na010_ = a017_ - a010_;\na012_ = a013_ - a019_;\na001_ = cur_ + a012_;\na017_ = a015_ + a002_;\na018_ = a023_ + a020_;\na020_ = a012_ + a022_;\ncur_ = a023_ - a005_;\na000_ = a019_ - a022_;\na002_ = a006_ + a015_;\na022_ = a015_ - a003_;\na016_ = a013_ + -1;\na010_ = a016_ - a002_;\na021_ = a009_ - a008_;\na021_ = a002_ + a003_;\na013_ = a004_ - a008_;\n} else {\na015_ = a019_ + a023_;\na001_ = a014_ - a000_;\n}\na015_ = a014_ + a023_;\n}\na002_ = a014_ + a010_;\n}\noutput.collect(prefix, new IntWritable(a023_));\n}", "public void updateAllSummaries() {\r\n for (WjrClassItem classItem : classItems.values()) {\r\n classItem.updateSummary(this);\r\n }\r\n root.updateSummary(this);\r\n }", "public void incrNormalRunners() {\n this.runnerStats.incrNormalRunners();\n }", "public void doAll() {\n for (int i = 0; i < Integer.MAX_VALUE; i++) {\n sum += sumLoop(sumLoopArray);\n sum += sumIfEvenLoop(sumLoopArray);\n sum += sumIfPredicate(sumLoopArray);\n sum += sumShifted(3, 0x7f, sumLoopArray);\n addXtoArray(i, addXArray);\n sum += sumLoop(addXArray);\n addArraysIfEven(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n addArraysIfPredicate(addArraysIfEvenArrayA, addArraysIfEvenArrayB);\n sum += sumLoop(addArraysIfEvenArrayA);\n }\n }", "public void doIt()\n\t{\n\t\tthis.mass += this.accumulation;\n\t\tif (this.mass < 0) {\n\t\t\tthis.mass = 0;\n\t\t}\n\t\tthis.accumulation = 0;\n\t}", "private void aggregateStats() {\n\t\tfor (Map.Entry<Integer, ProcStats> entry : procStats.entrySet()) {\n\t\t\tfor (Map.Entry<Instant, Instant> startEndPair : entry.getValue().csStartAndEndTime)\n\t\t\t\taggStats.add(new HashMap.SimpleEntry(entry.getKey(), startEndPair));\n\t\t\ttotalWaitTime += entry.getValue().waitTime;\n\t\t\tnTotalReceived += entry.getValue().nReceived;\n\t\t\tnTotalSent += entry.getValue().nSent;\n\t\t}\n\t\tCollections.sort(aggStats, new SortByStartTime());\n\t\tint nTotalCS = aggStats.size();\n\t\tSystem.out.println(String.format(\"Total no. of CSs executed : %d\", nTotalCS));\n\t\tfor (Map.Entry<Integer, Map.Entry<Instant, Instant>> entry : aggStats)\n\t\t\tSystem.out.println(entry);\n\t\t\n\t\tfor (int i = 1; i < aggStats.size(); i++)\n\t\t\ttotalSyncDelay += Duration.between(aggStats.get(i - 1).getValue().getValue(), aggStats.get(i).getValue().getKey()).toNanos();\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal synchronization delay in nanoseconds : %d\", totalSyncDelay));\n\t\tSystem.out.println(String.format(\"Average synchronization delay in nanoseconds : %f\\n\", (double)totalSyncDelay/(double)(nTotalCS - 1)));\n\t\t\n\t\tSystem.out.println(String.format(\"\\nTotal wait time in milliseconds : %d\", totalWaitTime));\n\t\tSystem.out.println(String.format(\"Average wait time in milliseconds : %f\\n\", (double)totalWaitTime/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages received : %d\", nTotalReceived));\n\t\tSystem.out.println(String.format(\"Average messages received : %f\\n\", (double)nTotalReceived/(double)nTotalCS));\n\t\t\n\t\tSystem.out.println(String.format(\"Total messages sent : %d\", nTotalSent));\n\t\tSystem.out.println(String.format(\"Average messages sent : %f\\n\", (double)nTotalSent/(double)nTotalCS));\n\t}", "@Override\n public Accumulator aggregate(Accumulator accumulator) {\n if (!getDate().isAfter(nextScheduledPaymentDate)) {\n amAttrs.setLoanAmount(accumulator.getBalance());\n MonetaryAmount periodInterest = AmortizationCalculator.getPeriodInterest(amAttrs);\n setTransaction(periodInterest);\n accumulator.addToBalance(periodInterest);\n setBalance(accumulator.getBalance());\n setFees(accumulator.getFeeBalance());\n setType(\"Period Interest\");\n setNote(\"Scheduled interest charge\");\n }\n\n return accumulator;\n\n }", "private void updateCurrentCalories() {\n currentCalories = 0;\n currentFats = 0;\n currentCarbs = 0;\n currentProteins = 0;\n for (Food food : foodListView.getItems()) {\n currentCalories += food.getCalories();\n currentFats += food.getFat().getAmount();\n currentCarbs += food.getCarbs().getAmount();\n currentProteins += food.getProtein().getAmount();\n }\n }", "public void flush() {\n // all getAndSet will not be synchronous but it's ok since metrics will\n // be spread out among processor worker and we flush every 5s by\n // default\n\n processor.send(new TelemetryMessage(this.metricsSentMetric, this.metricsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.eventsSentMetric, this.eventsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.serviceChecksSentMetric, this.serviceChecksSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesSentMetric, this.bytesSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.bytesDroppedMetric, this.bytesDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsSentMetric, this.packetsSent.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedMetric, this.packetsDropped.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.packetsDroppedQueueMetric, this.packetsDroppedQueue.getAndSet(0), tags));\n processor.send(new TelemetryMessage(this.aggregatedContextsMetric, this.aggregatedContexts.getAndSet(0), tags));\n }", "private void resetStats() {\n }", "@Override\n\t\t\t\tpublic void run() {\n\t\t\t\t\tcounter.accumulate(1);\n\t\t\t\t}", "private void updateRegisters() {\r\n // calendar = elapsed + delta\r\n Calendar c = Calendar.getInstance();\r\n c.setTimeInMillis(platform.getMasterClock().getTotalElapsedTimePs() / MasterClock.PS_PER_MS + deltaMs);\r\n\r\n // Convert calendar to registers\r\n setRegistersFromCalendar(c);\r\n }", "@Override\n public void agg(double newVal)\n {\n aggVal += newVal;\n firstTime = false;\n }", "public void initialExecutionResourcesExhausted() {\n \n \t\t// if (this.environment.getExecutingThread() != Thread.currentThread()) {\n \t\t// throw new ConcurrentModificationException(\n \t\t// \"initialExecutionResourcesExhausted must be called from the task that executes the user code\");\n \t\t// }\n \n \t\t// Construct a resource utilization snapshot\n \t\tfinal long timestamp = System.currentTimeMillis();\n \t\t// Get CPU-Usertime in percent\n \t\tThreadMXBean threadBean = ManagementFactory.getThreadMXBean();\n \t\tlong userCPU = (threadBean.getCurrentThreadUserTime() / NANO_TO_MILLISECONDS) * 100\n \t\t\t/ (timestamp - this.startTime);\n \n \t\t// collect outputChannelUtilization\n \t\tfinal Map<ChannelID, Long> channelUtilization = new HashMap<ChannelID, Long>();\n \t\tlong totalOutputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfOutputGates(); ++i) {\n \t\t\tfinal OutputGate<? extends Record> outputGate = this.environment.getOutputGate(i);\n \t\t\tfor (int j = 0; j < outputGate.getNumberOfOutputChannels(); ++j) {\n \t\t\t\tfinal AbstractOutputChannel<? extends Record> outputChannel = outputGate.getOutputChannel(j);\n \t\t\t\tchannelUtilization.put(outputChannel.getID(),\n \t\t\t\t\tLong.valueOf(outputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalOutputAmount += outputChannel.getAmountOfDataTransmitted();\n \t\t\t}\n \t\t}\n \t\tlong totalInputAmount = 0;\n \t\tfor (int i = 0; i < this.environment.getNumberOfInputGates(); ++i) {\n \t\t\tfinal InputGate<? extends Record> inputGate = this.environment.getInputGate(i);\n \t\t\tfor (int j = 0; j < inputGate.getNumberOfInputChannels(); ++j) {\n \t\t\t\tfinal AbstractInputChannel<? extends Record> inputChannel = inputGate.getInputChannel(j);\n \t\t\t\tchannelUtilization.put(inputChannel.getID(),\n \t\t\t\t\tLong.valueOf(inputChannel.getAmountOfDataTransmitted()));\n \t\t\t\ttotalInputAmount += inputChannel.getAmountOfDataTransmitted();\n \n \t\t\t}\n \t\t}\n \t\tBoolean force = null;\n \n \t\tif (this.environment.getInvokable().getClass().isAnnotationPresent(Stateful.class)\n \t\t\t&& !this.environment.getInvokable().getClass().isAnnotationPresent(Stateless.class)) {\n \t\t\t// Don't checkpoint statefull tasks\n \t\t\tforce = false;\n \t\t} else {\n \t\t\t// look for a forced decision from the user\n \t\t\tForceCheckpoint forced = this.environment.getInvokable().getClass().getAnnotation(ForceCheckpoint.class);\n \t\t\tif (forced != null) {\n \t\t\t\tforce = forced.checkpoint();\n \t\t\t}\n \t\t}\n \t\tfinal ResourceUtilizationSnapshot rus = new ResourceUtilizationSnapshot(timestamp, channelUtilization, userCPU,\n \t\t\tforce, totalInputAmount, totalOutputAmount);\n \n \t\t// Notify the listener objects\n \t\tfinal Iterator<ExecutionListener> it = this.registeredListeners.iterator();\n \t\twhile (it.hasNext()) {\n \t\t\tit.next().initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t\t}\n \n \t\t// Finally, propagate event to the job manager\n \t\tthis.taskManager.initialExecutionResourcesExhausted(this.environment.getJobID(), this.vertexID, rus);\n \t}", "private void iterativeDataPropertyMetrics() {\n\t}", "private synchronized void syncTypeChefAnalyzes() {\r\n\t\tif (threadInExecId.isEmpty()) {\r\n\t\t\tProjectConfigurationErrorLogger.getInstance().clearLogList();\r\n\t\t\trunTypeChefAnalyzes(featureProject.getSourceFolder());\r\n\t\t}\r\n\t\tthreadInExecId.add(Thread.currentThread().getId());\r\n\t}", "public void updateOscilloscopeData() {\n rmsSum = 0;\n boolean overshoot = false;\n int reactorFrequency = getReactorFrequency().intValue();\n int reactorAmplitude = getReactorAmplitude().intValue();\n double reactorPhase = getReactorPhase().doubleValue();\n int controlFrequency = getControlFrequency().intValue();\n int controlAmplitude = getControlAmplitude().intValue();\n double controlPhase = getControlPhase().doubleValue();\n for (int i = 0; i < 40; i++) { \n Double reactorValue = reactorAmplitude * Math.sin(2 * Math.PI * reactorFrequency * ((double) i * 5 / 10000) + reactorPhase);\n Double controlValue = controlAmplitude * Math.sin(2 * Math.PI * controlFrequency * ((double) i * 5 / 10000) + controlPhase);\n if (reactorValue + controlValue > 150) {\n this.outputData.get(0).getData().get(i).setYValue(149);\n overshoot = true;\n } else if (reactorValue + controlValue < -150) {\n this.outputData.get(0).getData().get(i).setYValue(-149);\n overshoot = true;\n } else {\n this.outputData.get(0).getData().get(i).setYValue(reactorValue + controlValue);\n }\n if (this.online == true) {\n this.rmsSum = this.rmsSum + Math.pow(reactorValue + controlValue, 2);\n }\n }\n calculateOutputPower();\n checkForInstability(overshoot);\n }", "public void triggerAllAggregators() {\n Map<Integer, TimedDataAggregator> aggregatorMap = new HashMap<>();\n aggregatorMap.putAll(FeatureAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(StateAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(ClassificationAggregators.getInstance().getAggregatorMap());\n aggregatorMap.putAll(TrustLevelAggregators.getInstance().getAggregatorMap());\n\n // create shadow loopers for all aggregators\n Map<Integer, ShadowLooper> shadowLooperMap = createShadowLoopers(aggregatorMap);\n\n // set duration according to record\n long duration = record.getRecorder().getStopTimestamp() - record.getRecorder().getStartTimestamp();\n\n // trigger all aggregators\n triggerAggregators(aggregatorMap, shadowLooperMap, duration);\n }", "public void resetStatistics()\n {\n }", "public void sumar() {\n Acumula.acumulador++;\n }", "@Override\n public void report() {\n\n try {\n File mFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/metrics.txt\");\n File eFile = new File(\"/usr/local/etc/flink-remote/bm_files/metrics_logs/latency_throughput.txt\");\n if (!mFile.exists()) {\n mFile.createNewFile();\n }\n if (!eFile.exists()) {\n eFile.createNewFile();\n }\n\n FileOutputStream mFileOut = new FileOutputStream(mFile, true);\n FileOutputStream eFileOut = new FileOutputStream(eFile, true);\n\n StringBuilder builder = new StringBuilder((int) (this.previousSize * 1.1D));\n StringBuilder eBuilder = new StringBuilder((int) (this.previousSize * 1.1D));\n\n// Instant now = Instant.now();\n LocalDateTime now = LocalDateTime.now();\n\n builder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n eBuilder.append(lineSeparator).append(lineSeparator).append(now).append(lineSeparator);\n\n builder.append(lineSeparator).append(\"---------- Counters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- records counter ----------\").append(lineSeparator);\n for (Map.Entry metric : counters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n if (( (String)metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Counter) metric.getKey()).getCount()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Gauges ----------\").append(lineSeparator);\n for (Map.Entry metric : gauges.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Gauge) metric.getKey()).getValue()).append(lineSeparator);\n }\n\n builder.append(lineSeparator).append(\"---------- Meters ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- throughput ----------\").append(lineSeparator);\n for (Map.Entry metric : meters.entrySet()) {\n builder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n if (((String) metric.getValue()).contains(\"numRecords\")) {\n eBuilder.append(metric.getValue()).append(\": \").append(((Meter) metric.getKey()).getRate()).append(lineSeparator);\n }\n }\n\n builder.append(lineSeparator).append(\"---------- Histograms ----------\").append(lineSeparator);\n eBuilder.append(lineSeparator).append(\"---------- lantency ----------\").append(lineSeparator);\n for (Map.Entry metric : histograms.entrySet()) {\n HistogramStatistics stats = ((Histogram) metric.getKey()).getStatistics();\n builder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n eBuilder.append(metric.getValue()).append(\": mean=\").append(stats.getMean()).append(\", min=\").append(stats.getMin()).append(\", p5=\").append(stats.getQuantile(0.05D)).append(\", p10=\").append(stats.getQuantile(0.1D)).append(\", p20=\").append(stats.getQuantile(0.2D)).append(\", p25=\").append(stats.getQuantile(0.25D)).append(\", p30=\").append(stats.getQuantile(0.3D)).append(\", p40=\").append(stats.getQuantile(0.4D)).append(\", p50=\").append(stats.getQuantile(0.5D)).append(\", p60=\").append(stats.getQuantile(0.6D)).append(\", p70=\").append(stats.getQuantile(0.7D)).append(\", p75=\").append(stats.getQuantile(0.75D)).append(\", p80=\").append(stats.getQuantile(0.8D)).append(\", p90=\").append(stats.getQuantile(0.9D)).append(\", p95=\").append(stats.getQuantile(0.95D)).append(\", p98=\").append(stats.getQuantile(0.98D)).append(\", p99=\").append(stats.getQuantile(0.99D)).append(\", p999=\").append(stats.getQuantile(0.999D)).append(\", max=\").append(stats.getMax()).append(lineSeparator);\n }\n\n mFileOut.write(builder.toString().getBytes());\n eFileOut.write(eBuilder.toString().getBytes());\n mFileOut.flush();\n eFileOut.flush();\n mFileOut.close();\n eFileOut.close();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "private void updateAll() {\n updateAction();\n updateQueryViews();\n }", "public void updateGraph(){\n\t\tgraph.update(updatePopulations(), iteration);\n\t\titeration++;\n\t}", "public void aggregateResults()\n\t{\n\t\ttry {\n\t\t\tAggregateableEvaluation aggContNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(0));\n\t\t\tAggregateableEvaluation aggContSMO = new AggregateableEvaluation(this.evalSMOList.get(0));\n\t\t\tAggregateableEvaluation aggDonaNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(15));\n\t\t\tAggregateableEvaluation aggDonaSMO = new AggregateableEvaluation(this.evalSMOList.get(15));\n\t\t\tAggregateableEvaluation aggOffiNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(30));\n\t\t\tAggregateableEvaluation aggOffiSMO = new AggregateableEvaluation(this.evalSMOList.get(30));\n\t\t\tAggregateableEvaluation aggAdviNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(45));\n\t\t\tAggregateableEvaluation aggAdviSMO = new AggregateableEvaluation(this.evalSMOList.get(45));\n\t\t\tAggregateableEvaluation aggMultNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(60));\n\t\t\tAggregateableEvaluation aggMultSMO = new AggregateableEvaluation(this.evalSMOList.get(60));\n\t\t\tAggregateableEvaluation aggGoodNaive = new AggregateableEvaluation(this.evalNaiveBayesList.get(75));\n\t\t\tAggregateableEvaluation aggGoodSMO = new AggregateableEvaluation(this.evalSMOList.get(75));\n\t\t\t\n\n\t\t\tfor (int i = 1; i < 15; i++)\n\t\t\t{\n\t\t\t\taggContNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggContSMO.aggregate(this.evalSMOList.get(i));\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 16; i < 30; i++)\n\t\t\t{\n\t\t\t\taggDonaNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggDonaSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 31; i < 45; i++)\n\t\t\t{\n\t\t\t\taggOffiNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggOffiSMO.aggregate(this.evalSMOList.get(i));\t\t\t\t\n\t\t\t}\n\n\t\t\tfor (int i = 46; i < 60; i++)\n\t\t\t{\n\t\t\t\taggAdviNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggAdviSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 61; i < 75; i++)\n\t\t\t{\n\t\t\t\taggMultNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggMultSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int i = 76; i < 90; i++)\n\t\t\t{\n\t\t\t\taggGoodNaive.aggregate(this.evalNaiveBayesList.get(i));\n\t\t\t\taggGoodSMO.aggregate(this.evalSMOList.get(i));\n\t\t\t}\n\n\t\t\tfor (int a = 0; a < 6; a++)\n\t\t\t{\n\t\t\t\tString aggregateText;\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0: aggregateText = \"ContinuingNewsAggregateResults.txt\"; break;\n\t\t\t\tcase 1: aggregateText = \"DonationsAggregateResults.txt\"; break;\n\t\t\t\tcase 2: aggregateText = \"OfficialAggregateResults.txt\"; break;\n\t\t\t\tcase 3: aggregateText = \"AdviceAggregateResults.txt\"; break;\n\t\t\t\tcase 4: aggregateText = \"MultimediaAggregateResults.txt\"; break;\n\t\t\t\tcase 5: aggregateText = \"GoodsAggregateResults.txt\"; break;\n\t\t\t\tdefault: aggregateText = \"CompleteAggregateResults.txt\";\n\t\t\t\t}\n\n\t\t\t\tBufferedWriter bw = new BufferedWriter(new FileWriter(aggregateText));\n\t\t\t\tbw.write(\"=== Summary of Naive Bayes ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContNaive.toSummaryString());\n\t\t\t\tbw.write(aggContNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggContNaive.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaNaive.toSummaryString());\n\t\t\t\tbw.write(aggDonaNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaNaive.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiNaive.toSummaryString());\n\t\t\t\tbw.write(aggOffiNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiNaive.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviNaive.toSummaryString());\n\t\t\t\tbw.write(aggAdviNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviNaive.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultNaive.toSummaryString());\n\t\t\t\tbw.write(aggMultNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggMultNaive.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodNaive.toSummaryString());\n\t\t\t\tbw.write(aggGoodNaive.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodNaive.toMatrixString()); \n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.write(\"=== Summary of SMO ===\");\n\n\t\t\t\tswitch (a)\n\t\t\t\t{\n\t\t\t\tcase 0:\tbw.write(aggContSMO.toSummaryString());\n\t\t\t\tbw.write(aggContSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggContSMO.toMatrixString()); break;\n\t\t\t\tcase 1:\tbw.write(aggDonaSMO.toSummaryString());\n\t\t\t\tbw.write(aggDonaSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggDonaSMO.toMatrixString()); break;\n\t\t\t\tcase 2:\tbw.write(aggOffiSMO.toSummaryString());\n\t\t\t\tbw.write(aggOffiSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggOffiSMO.toMatrixString()); break;\n\t\t\t\tcase 3:\tbw.write(aggAdviSMO.toSummaryString());\n\t\t\t\tbw.write(aggAdviSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggAdviSMO.toMatrixString()); break;\n\t\t\t\tcase 4:\tbw.write(aggMultSMO.toSummaryString());\n\t\t\t\tbw.write(aggMultSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggMultSMO.toMatrixString()); break;\n\t\t\t\tdefault:\tbw.write(aggGoodSMO.toSummaryString());\n\t\t\t\tbw.write(aggGoodSMO.toClassDetailsString());\n\t\t\t\tbw.write(aggGoodSMO.toMatrixString()); \t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tbw.close();\n\t\t\t}\n\n\n\t\t} catch (Exception e) {\n\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public synchronized void reset() {\n m_accumulatedTime = 0;\n m_startTime = getMsClock();\n }", "public void reduce(Text prefix, Iterator<IntWritable> iter,\n OutputCollector<Text, IntWritable> output, Reporter reporter) throws IOException {\nint a000 = 0;\nint a001 = 0;\nint a002 = 0;\nint a003 = 0;\nint a004 = 0;\nint a005 = 0;\nint a006 = 0;\nint a007 = 0;\nint a008 = 0;\nint a009 = 0;\nint a010 = 0;\nint a011 = 0;\nint a012 = 0;\nint a013 = 0;\nint a014 = 0;\nint a015 = 0;\nint a016 = 0;\nint a017 = 0;\nint a018 = 0;\nint a019 = 0;\nint a020 = 0;\nint a021 = 0;\nint a022 = 0;\nint a023 = 0;\nint a024 = 0;\nint cur = 0;\n\nwhile (iter.hasNext()) {\ncur = iter.next().get();\na014 = a022 - a006;\na013 = -2 - a022;\na018 += a003;\na011 -= a011;\na011 += a018;\na009 -= cur;\nif (a019 <= a021) {\na014 = a003 + a003;\na011 = a021 + 4;\na017 -= a002;\na005 = -5 - a019;\na004 = a003 - a016;\ncur += a017;\na013 += a010;\ncur -= a012;\na006 = a000 + a015;\na017 = a014 + a022;\na011 = a020 + a013;\na014 += a001;\na005 = a016 + a007;\ncur = 2 + a011;\na020 = a023 - a006;\na007 += a021;\na021 = a021 + a008;\na000 += a008;\na024 = a024 - a009;\na017 += 4;\na013 = a006 - a023;\na013 = a009 + a008;\na010 += a001;\na003 = a018 - a018;\na015 = a023 + a023;\na016 = a009 - a002;\na003 += -1;\na013 = a022 + a014;\na018 -= a020;\na001 = a003 + a009;\na024 += a015;\n} else {\nif (a017 > a011) {\na009 -= a001;\na024 -= a007;\na005 = a017 - a007;\na020 += a020;\nif (a003 != a001) {\na009 += a006;\na006 += a017;\na016 -= a004;\na024 = a008 + a002;\na014 -= a024;\na017 -= a010;\na012 -= a003;\na005 += a002;\na005 = a007 - a014;\na013 = a013 - a001;\na005 = a019 + a016;\na024 -= a014;\ncur = a005 - a010;\na004 = a003 - a001;\na000 = a021 - -1;\na019 = a006 - a008;\na006 = a018 + a009;\na015 -= a013;\na017 = a019 - a022;\na004 += a019;\na023 += a016;\na010 += a000;\na003 += a011;\na011 += a019;\na009 += a014;\na018 = a012 + a001;\ncur = -4 + 3;\na021 = a017 - a001;\na004 += a002;\na020 = -5 + a024;\na023 = a020 + a018;\na024 += a018;\n} else {\na017 = -5 - a012;\na013 = a023 - a018;\na020 = a020 - a017;\na003 += a013;\na004 = a019 - cur;\na016 += a010;\na021 += a018;\na008 = a010 - a012;\na010 -= a019;\na007 -= a013;\na015 -= a019;\na019 = a004 + a021;\na011 = a013 + a006;\na005 += a004;\na015 -= a016;\na017 = a002 - a024;\na002 -= a007;\na022 = a004 - cur;\na011 = a021 + a014;\na004 += a020;\na020 = a020 + a009;\na007 = a012 - a002;\na018 = a003 - a001;\na011 = a000 + a009;\na019 = a021 + a017;\na017 = a022 - a013;\na014 = a018 - a020;\na009 -= a023;\na007 -= a008;\na020 = 2 + a011;\na009 = cur + a010;\na015 -= a018;\na010 = a024 + a014;\n}\ncur -= a020;\n} else {\na008 = a003 - a017;\na024 -= a004;\nif (a014 >= a018) {\na005 = a000 + a021;\na003 = a006 + a002;\na009 = a021 + a023;\na003 += -5;\na022 += a024;\na010 = a014 + a016;\na024 = a008 + a010;\na008 = 2 - a003;\na014 -= a002;\na007 = a006 - a023;\na014 += a018;\na001 = a009 + a016;\na018 += a022;\na001 = a019 - a018;\na008 -= a011;\na019 -= a001;\na010 += a014;\ncur += a011;\na024 = a022 - a018;\na014 = a003 - a023;\na004 -= a002;\n} else {\na020 += a017;\na001 = a012 + a009;\na015 += a013;\na018 += a003;\na013 += a009;\na007 = a015 + a019;\na012 += a001;\na009 = a010 + -1;\na023 -= a017;\na020 = a017 + a004;\na005 = a011 - a001;\ncur -= a000;\na020 = a002 + a002;\na004 += a017;\na022 = a017 + a024;\na001 -= a016;\na012 = a021 + 0;\na002 -= a018;\na011 += a001;\na024 = a001 + a002;\na003 -= a015;\na016 = a022 - a014;\na008 = a002 - a001;\na006 += a009;\na018 -= a000;\na008 = a000 - a004;\na019 += a021;\na009 = a021 - a011;\na000 += a020;\na002 += a009;\nif (a024 == a022) {\ncur = a012 + a009;\na007 = a002 + a012;\na015 += a001;\na022 = a007 + a011;\na012 += a021;\na003 -= cur;\na018 -= a011;\na012 = a019 - a013;\na000 = a010 - a005;\na004 = a014 - a009;\na001 = a000 + a005;\na010 += a004;\na008 = a023 - 3;\na009 += a022;\na005 -= a018;\na004 += a003;\na018 = a001 + a001;\na010 = a003 + a014;\na011 -= a003;\na000 += 1;\na006 -= a018;\na008 = a011 - a009;\na008 = a013 - a009;\na011 = a016 + a009;\na008 -= a011;\na024 = a000 + a003;\na015 -= 4;\ncur = a008 - a024;\na024 = a012 - a008;\na005 = a023 + a020;\na024 -= a003;\n} else {\na017 = a012 + a013;\na017 = a019 - a000;\n}\na018 -= a005;\na006 = a021 + a019;\na005 += a007;\na018 += cur;\na005 += a008;\na008 += a017;\na019 = a002 - a006;\na005 = a000 + a011;\na003 = a021 - a005;\na019 = a014 + a006;\na018 -= a010;\na006 = 1 + a023;\na024 += a016;\na018 += a022;\na011 += a024;\na003 = a007 - a010;\na001 = a019 + a013;\na022 += a013;\na017 += a008;\na006 = a010 + a011;\na023 += a006;\na009 = a011 + a002;\na022 -= a015;\na024 = a012 - a019;\na001 -= a023;\na010 = a019 + cur;\na002 -= a009;\na012 -= a010;\na001 -= a006;\na021 = a000 - a000;\n}\na000 += a008;\na010 = a004 + a013;\na001 += cur;\na004 += a010;\na022 = a020 + a016;\na016 -= a008;\na010 = 4 - a018;\na007 = a021 - a011;\na010 -= a006;\na011 = a018 + a008;\na002 -= a000;\na004 -= a016;\na012 = a018 - a003;\na010 = a005 + a012;\na013 -= a005;\na011 = a010 - a001;\na007 -= a000;\na001 = a014 + a013;\na008 += a002;\na017 = a011 - a020;\na009 -= a013;\na022 -= a010;\na022 = a011 - a010;\n}\na005 = a021 - a002;\n}\na003 += a010;\na012 = cur - a021;\ncur += a017;\n}\noutput.collect(prefix, new IntWritable(a003));\n}", "public void IncrementCounter()\r\n {\r\n \tsetCurrentValue( currentValue.add(BigInteger.ONE)); \r\n \r\n log.debug(\"counter now: \" + currentValue.intValue() );\r\n \r\n }", "protected static void resetStateOfExecution(){\n collumsCalculated.set(0);\n updateExecutionStateProperty();\n }", "private static void part1() {\n List<String> instructions = FileUtils.readFile(INPUT_TXT);\n int instructionPointer = 0;\n int accumulator = 0;\n Set<Integer> executedLines = new HashSet<>();\n\n // Run the instructions until a duplicate is found\n String instruction;\n do {\n instruction = instructions.get(instructionPointer);\n switch (instruction.substring(0, 3)) {\n case \"acc\":\n accumulator += Integer.parseInt(instruction.substring(4));\n case \"nop\":\n instructionPointer++;\n break;\n case \"jmp\":\n instructionPointer += Integer.parseInt(instruction.substring(4));\n break;\n }\n } while (instructionPointer < instructions.size() && executedLines.add(instructionPointer));\n\n System.out.println(\"The accumulator = \" + accumulator);\n }", "@Override\n\tpublic void updateAll() {\n\t\tList<Request> requests = peer.getRequests();\n\t\tfor(Request request : requests){\t\t\t\n\t\t\tupdateAccounting(request);\t\t\t\t\n\t\t}\n\t\t\n\t\t/**\n\t\t * Once the accounting for all requests of each peer was performed, \n\t\t * we now update the lastUpdatedTime of each accounting info. \n\t\t */\n\t\tfor(AccountingInfo accInfo : accountingList)\n\t\t\taccInfo.setLastUpdated(TimeManager.getInstance().getTime());\n\t\t\t\t\n\t\tfinishRequests();\n\t}", "@SuppressWarnings(\"unused\") // Used by scheduler\n @Secured({ \"GROUP_AGENT\" })\n void recalculateBatchInfo();", "public void counterAddup(){\n\t\tfor (int i=0; i<window.size(); i++){\n\t\t\tif ( window.get(i).acked == false ){\n\t\t\t\twindow.get(i).counter = window.get(i).counter+1;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn ;\n\t}", "public Integer getAccumulatedTimes() {\n return accumulatedTimes;\n }", "void update_time_avg_stats() {\n double time_since_last_event;\n\n\t\t/* Compute time since last event, and update last-event-time marker. */\n\n time_since_last_event = sim_time - time_last_event;\n time_last_event = sim_time;\n\n\t\t/* Update area under number-in-queue function. */\n\n area_num_in_q += num_in_q * time_since_last_event;\n\n\t\t/* Update area under server-busy indicator function. */\n\n area_server_status += server_status.ordinal() * time_since_last_event;\n }", "public void resetCounters()\n {\n cacheHits = 0;\n cacheMisses = 0;\n }", "public void updateResult () {\n if (Ohana.isDisposed()) return;\n\n if (m_exprList != null && m_timerStart > 0L) {\n long curTime = System.currentTimeMillis();\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Expressions are being evaluated...\");\n }\n // initial true boolean will be conjoined with at least one expression result;\n // if exprList empty, then automatic true, which is consistent with tactic condition/effect interpretation\n boolean curResult = true;\n for (Expression expr : m_exprList) { // evaluate all expressions, conjoined\n expr.clearState(); // make sure we're really re-evaluating, not using cached value\n expr.evaluate(null);\n if (expr.getResult() != null && expr.getResult() instanceof Boolean) {\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"expr: \" + expr.getResult() + \"; \" + expr.toString());\n }\n curResult &= (Boolean )expr.getResult();\n }\n } // curResult has outcome of evaluating conjunction of expressions\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Result updated\");\n }\n if (m_period == 0L) {\n m_result = curResult;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"No period, condition changed: \" + m_result);\n }\n setChanged();\n } else if (curTime - m_timerStart <= m_period) {\n if (!m_result && curResult) {\n // condition just turned true from false within time period\n // what about duration?\n if (m_duration == 0L) {\n // no need to consider duration, so result is true\n m_result = true;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Within time period but no duration, condition changed: \" + m_result);\n }\n setChanged();\n } else if (m_timerTrueDuring == 0L) {\n // duration timer hasn't started, start it\n m_timerTrueDuring = curTime;\n } else if (curTime - m_duration >= m_duration) {\n // duration was specified, timer started, AND\n // we've met duration\n m_result = true;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Within time period AND met duration, condition changed: \" + m_result);\n }\n setChanged();\n }\n } else if (m_result && !curResult) {\n // condition just turned false from true within time period\n if (m_duration == 0L) {\n // no duration to consider, result turns false\n m_result = false;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Condition turned false, no duration\");\n }\n setChanged();\n } else if (m_timerTrueDuring > 0L) {\n // duration timer started, check it\n if (curTime - m_timerTrueDuring < m_duration) {\n // condition remained true insufficiently long\n m_result = false;\n m_timerTrueDuring = 0L; // unset duration timer\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Condition turned false, not true sufficiently long!\");\n }\n setChanged();\n }\n // TODO: if condition was true for duration, but turned false before period is up, should we consider result to be true then???\n }\n }\n } else { // period timer no longer relevant, unset it\n m_timerStart = 0L;\n if (Tool.logger().isDebugEnabled()) {\n Tool.logger().debug(\"Period exceeded, unset timer, end result: \" + m_result);\n }\n setChanged();\n }\n }\n }", "private static void part2() {\n List<String> instructions = FileUtils.readFile(INPUT_TXT);\n int accumulator = 0;\n Set<Integer> executedLines = new HashSet<>();\n\n // Try changing each \"nop\"/\"jmp\" until something works\n int operationToChange = 0;\n\n // There are only so many \"nop\"/\"jmp\" instructions\n long totalOperations = instructions.stream().filter(i -> !i.startsWith(\"acc\")).count();\n while (++operationToChange < totalOperations) {\n // Reset, re-run\n accumulator = 0;\n executedLines.clear();\n\n int instructionPointer = 0;\n String instruction;\n int currentOperation = 0;\n // Run the instructions until a duplicate is found\n do {\n instruction = instructions.get(instructionPointer);\n\n String operation = instruction.substring(0, 3);\n // If this is the n-th \"nop\"/\"jmp\" operation, switch it.\n if (operationToChange > currentOperation && (\"nop\".equals(operation) || \"jmp\".equals(operation))) {\n currentOperation++;\n if (operationToChange == currentOperation)\n operation = \"nop\".equals(operation) ? \"jmp\" : \"nop\";\n }\n\n // Execute the operation\n switch (operation) {\n case \"acc\":\n accumulator += Integer.parseInt(instruction.substring(4));\n case \"nop\":\n instructionPointer++;\n break;\n case \"jmp\":\n instructionPointer += Integer.parseInt(instruction.substring(4));\n break;\n }\n } while (instructionPointer < instructions.size() && executedLines.add(instructionPointer));\n if (instructionPointer == instructions.size()) {\n System.out.println(\"The program terminated successfully!\");\n System.out.println(\"Changed instruction: \" + instructions.stream()\n .filter(i -> !i.startsWith(\"acc\"))\n .collect(Collectors.toList())\n .get(operationToChange));\n break;\n }\n }\n System.out.println(\"The accumulator = \" + accumulator);\n }", "public static void resetStatistics()\r\n {\r\n \t//System.out.println ( \"Resetting statistics\");\r\n count_ = 0; \r\n }", "public void incTotalOfQueueEntries() {\n totalOfQueueEntries++;\n }", "public synchronized void flush() {\n try {\n final EvaluateRequestBatch.Builder b = EvaluateRequestBatch.newBuilder();\n for (EvaluateRequest r; (r = batch.poll()) != null; ) {\n batchSerializedSize.getAndAdd(-r.getSerializedSize());\n b.addRequest(r);\n }\n if (b.getRequestCount() > 0) {\n batchCount.getAndAdd(-b.getRequestCount());\n outstandingCount.getAndAdd(b.getRequestCount());\n requestObserver.onNext(b.build());\n }\n } catch (RuntimeException e) {\n requestObserver.onError(e);\n throw e;\n }\n }", "private void finalCalculation()\n {\n // Variables for computational tasks during this part alone\n double result = 0;\n String stringOperator = \"\";\n String stringValue1 = \"\";\n String stringValue2 = \"\";\n\n try\n {\n // If an operator has previously been assigned, ignore key press\n if(values.size() == 0 || isOperator(values.get(values.size()-1).toString()) || !hasOperator)\n {\n return;\n }\n \n\n // Calculate the total value\n for(Iterator<String> i = values.iterator(); i.hasNext();)\n {\n // Get text\n String item = i.next();\n \n // If it is an operator\n if(isOperator(item))\n {\n // Calculate previous values and add to value1 - then set latest operator\n if(!\"\".equals(stringOperator))\n {\n // Calculate previously stored\n result = calculate(Double.parseDouble(stringValue1), Double.parseDouble(stringValue2), stringOperator);\n stringValue1 = result + \"\"; // Add calculated value as first result\n stringValue2 = \"\";\n }\n stringOperator = item;\n }\n else\n {\n // If no operator has previously been assigned, just append values to first value\n if(\"\".equals(stringOperator))\n {\n // Append values on eachother\n stringValue1 = stringValue1 + item;\n }\n else\n {\n // Operator have been assigned, which means we already have a value1 - add to string value 2 instead\n stringValue2 = stringValue2 + item;\n }\n }\n \n // If this is our last loop, calculate total and add into result\n if(!i.hasNext())\n {\n result = calculate(Double.parseDouble(stringValue1), Double.parseDouble(stringValue2), stringOperator);\n } \n }\n \n // Output results\n textOutput.setText(result + \"\");\n \n // Clear stored values\n values.clear();\n \n // Reset\n reset = true;\n hasOperator = false;\n \n }\n catch(Exception ex)\n {\n // Output results\n textOutput.setText(0 + \"\");\n \n // Clear stored values\n values.clear();\n \n // Reset\n reset = true;\n hasOperator = false;\n } \n }", "public void allActualValuesUpdated ();", "public void flush() {\n\t\tupdateCounter++;\n//\t\trules.update();\n\t}", "public void incrementAllMemoryLocations(int delta) {\n\t\tthis.continueProgram.incrementPosition(delta); \r\n\t\t\r\n\t\tthis.memoryRW.incrementPosition(delta);\r\n\t\t\r\n\t\tthis.funcVal.incrementPosition(delta);\r\n\t\t\r\n\t\tthis.memNextFuncVal.incrementPosition(delta);\r\n\r\n\t\t// Re-assign all the MemoryAddresses ------------------------\r\n\t\t\r\n\t\tfor(int x = 0; x < fullMemory.length; x++) {\r\n\t\t\tfullMemory[x].getSign().incrementPosition(delta);\r\n\t\t\tfor(ItrAddress i : fullMemory[x].getContents()) {\r\n\t\t\t\ti.incrementPosition(delta);\r\n\t\t\t}\r\n\t\t}\r\n\t\t\r\n\t}", "public void resetCounters() {\n setErrorCounter(0);\n setDelayCounter(0);\n }", "public void computeStats() {\n\t\tstats = new Stats();\t\t\n\t}", "synchronized private void flushPendingUpdates() throws SailException {\n\t\tif (!isActiveOperation()\n\t\t\t\t|| isActive() && !getTransactionIsolation().isCompatibleWith(IsolationLevels.SNAPSHOT_READ)) {\n\t\t\tflush();\n\t\t\tpendingAdds = false;\n\t\t\tpendingRemovals = false;\n\t\t}\n\t}", "private void grow(){\n\t\tberries.replaceAll((p, v) -> v + 1);\n\t\tapples.replaceAll((p, v) -> v + 1);\n\t}", "public void update(){\n if(clearing) {\n attacks.clear();\n attacksToAdd.clear();\n attacksToDelete.clear();\n playerAttackCount = 0;\n clearing = false;\n } else {\n for (AttackObject attack : attacks) {\n attack.update();\n checkAttackCollisionsFor(attack);\n checkAttackReachedEnd(attack);\n if (attack.wasDestroyed()) {\n onAttackDestroyed(attack);\n }\n }\n deleteAttacks();\n addAttacks();\n }\n }", "private void collectMetricsInfo() {\n // Retrieve a list of all references to registered metric services\n ServiceReference[] metricsList = null;\n try {\n metricsList = bc.getServiceReferences(null, SREF_FILTER_METRIC);\n } catch (InvalidSyntaxException e) {\n logError(INVALID_FILTER_SYNTAX);\n }\n \n // Retrieve information about all registered metrics found\n if ((metricsList != null) && (metricsList.length > 0)) {\n \n for (int nextMetric = 0;\n nextMetric < metricsList.length;\n nextMetric++) {\n \n ServiceReference sref_metric = metricsList[nextMetric];\n MetricInfo metric_info = getMetricInfo(sref_metric);\n \n // Add this metric's info to the list\n if (metric_info != null) {\n registeredMetrics.put(\n metric_info.getServiceID(),\n metric_info);\n }\n }\n }\n else {\n logInfo(\"No pre-existing metrics were found!\");\n }\n }", "@Override\n\tpublic void invalidateAll() {\n\t\t\n\t}", "@Override\n\tpublic void run() {\n\t\t\n\t\t// create array of values to add, before we start the timer\n\t\tBigDecimal[] values = new BigDecimal[ARRAY_SIZE];\n\t\tfor(int i=0; i<ARRAY_SIZE; i++) values[i] = new BigDecimal(i+1);\n\n\t\tsum = new BigDecimal(0.0);\n\t\tfor(int count=0, i=0; count<this.count; count++, i++) {\n\t\t\tif (i >= values.length) i = 0;\n\t\t\tsum = sum.add( values[i] );\n\t\t}\n\t\t\n\t\n\t}", "private void updateOsMetrics()\n {\n Driver.updateOsMetric();\n }", "@Override\n public void refreshGui() {\n int count = call(\"getCountAndReset\", int.class);\n long nextTime = System.currentTimeMillis();\n long elapsed = nextTime - lastTime; // ms\n double frequency = 1000 * count / elapsed;\n lastTime = nextTime;\n stats.addValue(frequency);\n\n outputLbl.setText(String.format(\"%3.1f Hz\", stats.getGeometricMean()));\n }", "@Test\n public void resetCallsScheduledOperations() throws Exception {\n so.inject(vector(1.0, 1.0, 1.0));\n query.reset();\n checkVector(so.getSource(), 0.0, 0.0, 0.0);\n }", "public Builder clearComputeSum() {\n if (computeSumBuilder_ == null) {\n computeSum_ = null;\n onChanged();\n } else {\n computeSum_ = null;\n computeSumBuilder_ = null;\n }\n\n return this;\n }", "public void reset() {\n sum1 = 0;\n sum2 = 0;\n }", "private void updateCounts() {\n // Update connected components count\n ((Labeled) ((HBox) statsBox.getChildren().get(1)).getChildren().get(1))\n .setText(String.valueOf(socialNetwork.getConnectedComponents().size()));\n // Update total users count\n ((Labeled) ((HBox) statsBox.getChildren().get(2)).getChildren().get(1))\n .setText(String.valueOf(socialNetwork.getTotalUsers()));\n // Update total friends count\n ((Labeled) ((HBox) statsBox.getChildren().get(3)).getChildren().get(1))\n .setText(String.valueOf(socialNetwork.getTotalFriends()));\n // Update active user's name and friend count\n if (activeUser == null) {\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(0))\n .setText(\"User's Total Friends: \");\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(1)).setText(\"\");\n } else {\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(0))\n .setText(activeUser.getName() + \"'s Total Friends: \");\n ((Labeled) ((HBox) statsBox.getChildren().get(4)).getChildren().get(1))\n .setText(String.valueOf(activeUser.getFriends().size()));\n }\n }" ]
[ "0.59516007", "0.56352735", "0.5468026", "0.54169947", "0.5400292", "0.5362789", "0.5307608", "0.5249795", "0.52056116", "0.5170027", "0.5170027", "0.5119589", "0.5115127", "0.5098186", "0.5023344", "0.50113726", "0.4961042", "0.4943077", "0.49319175", "0.49051577", "0.4896957", "0.4895144", "0.4885943", "0.4881768", "0.4878835", "0.4875109", "0.48665345", "0.48487675", "0.48477137", "0.48290965", "0.4826978", "0.4824535", "0.48205188", "0.4812923", "0.481284", "0.48069295", "0.47856995", "0.47765988", "0.47594956", "0.4758125", "0.47383443", "0.47335607", "0.47273007", "0.47159982", "0.46983245", "0.46903652", "0.4682516", "0.46700165", "0.4668207", "0.46628293", "0.46621323", "0.4652591", "0.46506587", "0.46447507", "0.46424523", "0.46352917", "0.46337542", "0.46313018", "0.46173114", "0.46167794", "0.46159086", "0.45856568", "0.45853192", "0.45838585", "0.45815384", "0.4579637", "0.4574403", "0.45686445", "0.45686325", "0.45424995", "0.4541983", "0.45355338", "0.4522351", "0.45187095", "0.45185518", "0.4507964", "0.45077598", "0.45020264", "0.45016828", "0.44941375", "0.4491712", "0.44885883", "0.44866592", "0.44838405", "0.44832245", "0.44829777", "0.44824865", "0.44809803", "0.4479266", "0.44642434", "0.44628382", "0.44621745", "0.44588497", "0.44576728", "0.44555816", "0.4453116", "0.4452651", "0.44515443", "0.44513938", "0.44472453" ]
0.5731311
1
83 Noarg constructor to enable serialization. This method 84 is not intended to be used by mere mortals without calling setName(). 85
public TestCase() { fName= null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unused\")\n public NoConstructor() {\n // Empty\n }", "public ObjectSerializationEncoder() {\n // Do nothing\n }", "MyEncodeableWithoutPublicNoArgConstructor() {}", "private void __sep__Constructors__() {}", "void DefaultConstructor(){}", "defaultConstructor(){}", "O() { super(null); }", "private SerializerFactory() {\n // do nothing\n }", "public Person() {\n\t\tthis.name = \"Unknown\"; \n\t}", "private ExampleVersion() {\n throw new UnsupportedOperationException(\"Illegal constructor call.\");\n }", "@SuppressWarnings(\"unused\")\r\n\tprivate Person() {\r\n\t}", "public Constructor(){\n\t\t\n\t}", "Reproducible newInstance();", "public Pojo1110110(){\r\n\t}", "private SomePojoClass(String name) {\n this.name = name;\n }", "public Person()\n\t{\n\t\tthis.age = -1;\n\t\tthis.name = \"Unknown\";\n\t}", "public Pitonyak_09_02() {\r\n }", "public CustomDateSerializer() {\n this(null);\n }", "private SingleObject(){}", "public CompactSerializable() {\n }", "public NamedEntity() { this(\"\", \"\"); }", "protected AbstractReadablePacket() {\n this.constructor = createConstructor();\n }", "public ClassOne(){\n\t\tthis.age = 55;\t\t// this value won't come while de-serialization.\n\t\tSystem.out.println (\"Default Constructor Running\");\n\t}", "private SingleObject()\r\n {\r\n }", "public Person(){\r\n\t\tsuper();\r\n\t}", "public Person()\n {\n //intentionally left empty\n }", "protected PrintBill() \r\n\t{/* nothing needed, but this prevents a public no-arg constructor from being created automatically */}", "protected Settlement() {\n // empty constructor\n }", "private Instantiation(){}", "public Person() {\n\t\t\n\t}", "public JsonFactory() { this(null); }", "private NaturePackage() {}", "_ExtendsNotAbstract() {\n super(\"s\"); // needs this if not default ctor;\n }", "public SpeakerSerivceImpl() {\n\t\tSystem.out.println(\"No args in constructor\");\n\t}", "@SuppressWarnings(\"unused\")\r\n private Rental() {\r\n }", "private JsonUtils() {\n\t\tsuper();\n\t}", "public Name() {\n\n }", "public CyanSus() {\n\n }", "private Panino(String name) {\n this.name = name;\n }", "private AggregDayLogSerializer() {\n\t throw new UnsupportedOperationException(\n\t \"This class can't be instantiated\");\n\t }", "public Member() {}", "private DarthSidious(){\n }", "private UsineJoueur() {}", "public Identity()\n {\n super( Fields.ARGS );\n }", "private Converter()\n\t{\n\t\tsuper();\n\t}", "public Pleasure() {\r\n\t\t}", "public Data() {}", "public Party() {\n // empty constructor\n }", "public LesserDemandDetail() {\n //For serialization.\n }", "public Data() {\n \n }", "Constructor() {\r\n\t\t \r\n\t }", "Member() {}", "public Student() {\n//\t\tname = \"\";\n//\t\tage = 0;\n\t\t\n\t\t\n\t\t//call constructors inside of other constructors\n\t\tthis(999,0);\n\t}", "private Rekenhulp()\n\t{\n\t}", "public Member() {\r\n\t}", "public Person() {}", "private ARXOrderedString(){\r\n this(\"Default\");\r\n }", "public Person(String inName)\n {\n name = inName;\n }", "protected abstract void construct();", "public Mannschaft() {\n }", "public ArchiveInfo() {\n\t}", "private SystemInfo() {\r\n // forbid object construction \r\n }", "public Sad() {\n }", "public Method(String name, String desc) {\n/* 82 */ this.name = name;\n/* 83 */ this.desc = desc;\n/* */ }", "public Member() {\n //Empty constructor!\n }", "public XMLElement(String fullName)\n/* */ {\n/* 101 */ this(fullName, null, null, -1);\n/* */ }", "public StudentPlayer() {\n super(\"260719721\");\n }", "public Data() {\n }", "public Data() {\n }", "public TeeWriter() {\r\n ; // nothing to do\r\n }", "public StudentPlayer() {\r\n super(\"260767897\");\r\n }", "public mapper3c() { super(); }", "public Person(String vorname, String nachname) {\n\n\t}", "public Book() {\n\t\t// Default constructor\n\t}", "public BuiltBy() {\n }", "public NamedEntity() {}", "public LoaderInfo( ) { \n\t\tsuper( null );\n\t}", "public Mapping() { this(null); }", "private SerializationUtils() {\n\t\tthrow new AssertionError();\n\t}", "@SuppressWarnings(\"unchecked\")\n\tpublic UserSerializer() {\n\t\tsuper();\n\t\tmapSerializer.putAll(BeanRetriever.getBean(\"mapSerializerStrategy\", Map.class));\n\t}", "public StudentPlayer() {\n super(\"260622641\");\n }", "public NamedEntity(String name) { this(name, \"\"); }", "protected ChildType() {/* intentionally empty block */}", "public Person (String name) {\n // if in the setName method i have a transformation (lowercase)\n // like this.name = name.toLowerCase();\n // id use this.setName(name);\n // or below if i dont have a transformation i need to make\n this.name = name;\n }", "private Sequence() {\n this(\"<Sequence>\", null, null);\n }", "private Default()\n {}", "public Mueble() {\n }", "public Pasien() {\r\n }", "public StudentPlayer() {\n super(\"260740998\");\n }", "public Bazooka() throws IllegalNameException {\r\n\t}", "public SgaexpedbultoImpl()\n {\n }", "@objid (\"d5a0862c-6231-11e1-b31a-001ec947ccaf\")\n private ObjIdCollectionSerializer() {\n }", "private Room(Integer id, String name, boolean objectOnly)\n {\n super();\n this.setId(id);\n this.name = name;\n if(objectOnly) return;\n }", "public State()\n {\n this(\"\");\n }", "private SimpleRepository() {\n \t\t// private ct to disallow external object creation\n \t}", "TypicalCustomer() {\n super();\n }", "public Soil()\n\t{\n\n\t}", "public _355() {\n\n }", "serial() {\n super(1, 2, 3);\n }", "private JsonUtils()\r\n {\r\n // Private constructor to prevent instantiation\r\n }", "ConstuctorOverloading(){\n\t\tSystem.out.println(\"I am non=argument constructor\");\n\t}" ]
[ "0.6967031", "0.68709415", "0.68212956", "0.67216605", "0.66127163", "0.6609025", "0.6600002", "0.6530592", "0.6445916", "0.6396334", "0.6396044", "0.63624865", "0.63388604", "0.6326527", "0.6323894", "0.6285993", "0.6281273", "0.6279076", "0.6276778", "0.62599367", "0.62576836", "0.62506115", "0.6246189", "0.6242163", "0.62366194", "0.62231195", "0.61963725", "0.6181433", "0.6177896", "0.6158724", "0.61432207", "0.6141349", "0.614113", "0.6140012", "0.61305255", "0.6113731", "0.6104469", "0.61030304", "0.6101703", "0.6093268", "0.6090658", "0.608709", "0.60862994", "0.6085165", "0.6083274", "0.60804033", "0.6078839", "0.60788", "0.6075315", "0.60726565", "0.6054642", "0.6054344", "0.6049581", "0.60479856", "0.60419405", "0.60285413", "0.60275066", "0.6019715", "0.6017929", "0.6017313", "0.60088855", "0.6008393", "0.6004115", "0.5998047", "0.5996285", "0.5996114", "0.59929764", "0.5989558", "0.5989558", "0.5988862", "0.5977087", "0.59743774", "0.5974293", "0.5974272", "0.5972078", "0.59677416", "0.5967482", "0.59616953", "0.5959079", "0.59577936", "0.5955987", "0.5948934", "0.5948368", "0.5944445", "0.5939334", "0.5938323", "0.5935352", "0.59332895", "0.59326464", "0.59283215", "0.5925194", "0.59242636", "0.592346", "0.5923046", "0.5922949", "0.59207976", "0.59200114", "0.5919322", "0.59192306", "0.5915392", "0.5913338" ]
0.0
-1
90 Constructs a test case with the given name. 91
public TestCase(String name) { fName= name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public LTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "public TestCase(String name) {\n\t\tsetName(name);\n\t}", "public PlanillaTest(String name) {\n\t\tsuper(name);\n\t}", "public SampleJUnit(String name) {\r\n\t\tsuper(name);\r\n\t}", "public AxiomTest(String name) {\n\t\tsuper(name);\n\t}", "public FSMTest(String name) {\n\t\tsuper(name);\n\t}", "public GuidanceTest(String name) {\n\t\tsuper(name);\n\t}", "public FuncionInternaTest(String name) {\n\t\tsuper(name);\n\t}", "public ULTest(String name) {\n\t\tsuper(name);\n\t}", "public TestCase(String name)\r\n {\r\n super(name);\r\n resetIO();\r\n }", "public SustainedTestCase(String name)\n {\n super(name);\n }", "public RJBTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "Testcase createTestcase();", "public WizardsTest(String testName) {\n super(testName);\n }", "public void testChangeName() {\n System.out.println(\"changeName\");\n String expResult = \"Anu\";\n //String result = new changeName('Anu', \"Shar\");\n assertEquals(expResult, result);\n }", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "public SwitchLookupTest(String name) {\n super(name);\n }", "public TabletTest(String name) {\n\t\tsuper(name);\n\t}", "public VirtualMachineTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "public uCoursesTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\n\tpublic void constructortest() {\n\t\tMainDish dessertTest = new MainDish(\"quiche\");\n\t\tassertTrue(dessertTest.getName().equals(\"quiche\"));\n\t}", "public TreeTest(String name) {\r\n super(name);\r\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "public GridTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\n public void test_create_scenario() {\n try {\n TestData X = new TestData(\"project2.opt\");\n String new_name = \"new_scenario\";\n X.project.create_scenario(new_name);\n assertNotNull(X.project.get_scenario_with_name(new_name));\n } catch (Exception e) {\n fail(e.getMessage());\n }\n }", "public Unit10(String name)\n {\n \n this.name = name;\n \n \n }", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public TestIdentityActionTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture11_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture11();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public IndentRulesTestCase(String name) {\n super(name);\n }", "public ProcessorTest(String name) {\n\t\tsuper(name);\n\t}", "public NodeTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\n void studentNameTest(){\n String expectedResult = \"Lim\"; // Input for testing\n Student student = new Student(expectedResult);\n\n System.out.println(\"Test Case #1\");\n System.out.println(\"\\tExpected Result: \" + expectedResult); // print expected result\n String actualResult = student.getName(); // Actual Result\n System.out.println(\"\\tActual Result: \" + actualResult); // Print actual result\n assertEquals(expectedResult, actualResult); // Compare the expected result (True) & Actual Result\n\n }", "@Test\n public void testName() {\n\n }", "TestResult(String name) {\r\n this.name = name;\r\n checkResults = new ArrayList();\r\n }", "public SmokeDetectorTest(String name) {\n\t\tsuper(name);\n\t}", "public PresentationTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\npublic void TC11(){\n\n}", "public static void constructor1_name_initialize()\r\n\t{\r\n\t\tString name = \"Dennis\";\r\n\t\tString college = \"Red River College\";\r\n\t\tdouble standardAptitudeTestScore = 222;\r\n\t\tdouble gradePointAverage = 2.2;\r\n\r\n\t\tUndergraduateApplicant target = new UndergraduateApplicant(name, college, standardAptitudeTestScore, gradePointAverage);\r\n\r\n\t\tString expected = name;\r\n\t\tString actual = target.getName();\r\n\r\n\t\tSystem.out.printf(\"Expected: %s%nActual: %s%n%n\", expected, actual);\r\n\t}", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "public static void main(String[] s) {\n\t\tnew SimpleTest();\n\t}", "public void testSetName_fixture9_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture9();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public RecognitionTest(String testName) {\n super(testName);\n }", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"\";\n Manager instance = new Manager();\n instance.setName(name);\n \n fail(\"The test case is a prototype.\");\n }", "public InconsistencyTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public AlternativeFlowTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture10_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture10();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"\";\n Unit instance = new Unit();\n instance.setName(name);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public DRDAProtocolTest(String name) {\n super(name);\n }", "public SchemeTest (String name)\n {\n super (name);\n /*\n * This constructor should not be modified. Any initialization code\n * should be placed in the setUp() method instead.\n */\n }", "public void testSetName_fixture8_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture8();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public SokobanServiceTest(String name) {\n\t\tsuper(name);\n\t}", "public SqlValidatorTestCase(String name)\n {\n super(splitName(name));\n SqlConformance conformance = splitConformance(name);\n if (conformance == null) {\n conformance = SqlConformance.Default;\n }\n this.tester = getTester(conformance);\n }", "public BasicLinkTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture18_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture18();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(TestUtils.name(\"00\"));\n\t}", "public DefaultDetailWindowTest(String name) {\n super(name);\n }", "@Test\n \tpublic void testCreateMindProject() throws Exception {\n \t\tString name = \"Test\" ; //call a generator which compute a new name\n \t\tGTMenu.clickItem(\"File\", \"New\", FRACTAL_MIND_PROJECT);\n \t\tGTShell shell = new GTShell(Messages.MindProjectWizard_window_title);\n \t\t//shell.findTree().selectNode(\"Mind\",FRACTAL_MIND_PROJECT);\n \t\t//shell.findButton(\"Next >\").click();\n \t\tshell.findTextWithLabel(\"Project name:\").typeText(name);\n \t\tshell.close();\n \t\t\n \t\tTestMindProject.assertMindProject(name);\t\t\n \t}", "public ExternalReferenceTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"Yina\";\n Account instance = new Account(\"Piper\", 10.0);\n instance.setName(name);\n String expResult = \"Yina\";\n String result = instance.getName();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "public void testSetName_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public ParamNameTest(String testName) {\n super(testName);\n }", "@Test\r\n public void testPrintNameAndResult() {\r\n \r\n String regNo = \"ABC123\";\r\n instance = new Controller(dbMgr);\r\n instance.printNameAndResult(regNo);\r\n \r\n }", "public void testSetName_fixture20_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture20();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public SaveParametersTest(String name) {\n\t\tsuper(name);\n\t}", "public OPMExhibitionLinkTest(String name) {\n\t\tsuper(name);\n\t}", "Case createCase();", "public void testSetName_fixture26_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture26();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public void testSetName_fixture28_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture28();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture23_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture23();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public AccessSqlParserTest(String name) {\n super(name);\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "public StateTest(String testName) {\n super(testName);\n }", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n Unit instance = new Unit();\n String expResult = \"\";\n String result = instance.getName();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public BPMNDiagramTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture14_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture14();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture22_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture22();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\r\n public void testNew_doctor() {\r\n System.out.println(\"new_doctor\");\r\n doctor instance = new doctor();\r\n instance.new_doctor();\r\n // TODO review the generated test code and remove the default call to fail.\r\n fail(\"The test case is a prototype.\");\r\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\n public void testGetName() {\n assertEquals(hero.getName(), \"hero\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "public void testSetName_fixture12_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture12();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public Lesson(String name)\r\n { this.name = name;\r\n layer = 1; \r\n }", "public JournalStatementTest(String name) {\n\t\tsuper(name);\n\t}", "@Test\n public void a1a6() {\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "public static void main(String[] args) {\n new TSL2550Test();\n }", "@Test\n void setName() {\n }", "public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }", "public HockeyTeamTest()\n {\n }", "public void testSetName_fixture27_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture27();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testLizard(){\n }", "public void testSetName_fixture24_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture24();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n void setName() {\n\n }", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void startTest(String sTestCaseName) {\n\t\ttry {\n\t\t\t// DOMConfigurator.configure(\"Log4j.xml\");\n\t\t\textent = new ExtentReports(Constants.sReportFileName, false);\n\t\t\t// extent.config()\n\t\t\t// .documentTitle(\"EA Test Report\")\n\t\t\t// .reportName(\"EA Regression\")\n\t\t\t// .reportHeadline(\"\");\n\t\t\t// Log.startTestCase(sTestCaseName);\n\t\t\t// optional\n\t\t\textent.addSystemInfo(\"Selenium Version\", Configuration.SELENIUM_VERSION).addSystemInfo(\"Environment\", \"QA\");\n\t\t\ttest = extent.startTest(sTestCaseName, \"TEST CASE\");\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e.getMessage());\n\t\t}\n\n\t}" ]
[ "0.6962342", "0.6915712", "0.68805873", "0.65893674", "0.65559506", "0.6546509", "0.64573294", "0.64343643", "0.64067155", "0.63908273", "0.6366859", "0.63555855", "0.6316108", "0.6299986", "0.6290292", "0.62814844", "0.6252969", "0.62151414", "0.62002075", "0.61866194", "0.61614543", "0.6151937", "0.6132125", "0.6132125", "0.6132125", "0.6132125", "0.60942626", "0.6069127", "0.605763", "0.6018446", "0.6015254", "0.6003119", "0.5953625", "0.5949412", "0.5937409", "0.5926826", "0.5887513", "0.588605", "0.5880222", "0.58752793", "0.5872278", "0.5868341", "0.58659124", "0.5845755", "0.5827226", "0.58253896", "0.58093905", "0.5807713", "0.5799159", "0.57928777", "0.5790981", "0.5783497", "0.57797474", "0.5779603", "0.57767767", "0.5765036", "0.5747931", "0.57338095", "0.5731003", "0.5726559", "0.5719293", "0.57187", "0.57158345", "0.57121265", "0.57070476", "0.57018197", "0.56945586", "0.56936485", "0.5692479", "0.56868917", "0.56784874", "0.56764966", "0.5675556", "0.56754327", "0.56747556", "0.5674545", "0.56679666", "0.56647724", "0.566381", "0.5663541", "0.5656655", "0.5656598", "0.5653005", "0.5651908", "0.5645994", "0.56452286", "0.56436116", "0.5642711", "0.5640783", "0.5637493", "0.5635794", "0.56334114", "0.5632265", "0.56283444", "0.5618888", "0.5616882", "0.5615091", "0.5607201", "0.5603238", "0.56027764" ]
0.6824872
3
Counts the number of test cases executed by run(TestResult result). 97
public int countTestCases() { return 1; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int runCount() {\n return testCount;\n }", "private int getTotalTestCase() {\n\t\treturn passedtests.size() + failedtests.size() + skippedtests.size();\n\t}", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@BeforeSuite\n\tpublic void numofTestCases() throws ClassNotFoundException {\n\t\tappiumService.TOTAL_NUM_OF_TESTCASES=GetMethods.TotalTestcase(\"_Stability_\", this.getClass());\n\n\n\n\t}", "@Test\n public void countTest() {\n // TODO: test count\n }", "@Override\n public int count() {\n return this.bench.size();\n }", "public int getTestMethodCount() {\r\n Method[] methods = this.getClass().getMethods();\r\n int count = 0;\r\n for (int i = 0; i < methods.length; i++) {\r\n if (methods[i].getName().startsWith(\"test\") && methods[i].getParameterTypes().length == 0\r\n && methods[i].getReturnType().getName().equals(\"void\")) {\r\n count++;\r\n }\r\n }\r\n return count;\r\n }", "@Test\r\n public void testCount() {\r\n System.out.println(\"count\");\r\n nc1.addNumber(n1);\r\n int expResult = 1;\r\n int result = nc1.count();\r\n assertEquals(expResult, result);\r\n \r\n }", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "long getNumberOfComparisons();", "public static void incTestCount() {\n mTestCount++;\n }", "public static long getTestCount() {\n return mTestCount;\n }", "private void shouldCountTests(String fileName) {\n prepareScenarioWithTestFile(fileName);\n jasmineFile = new JasmineFile(getProject(), virtualFile);\n jasmineFile.buildTreeNodeSync();\n\n // When you count the tests.\n TestCounts testCounts = jasmineFile.getTestCounts();\n\n // Then ensure there are counts for all the items.\n assertEquals(2, testCounts.getIncludedCount());\n assertEquals(2, testCounts.getExcludedCount());\n assertEquals(6, testCounts.getTestCount());\n }", "@Test\n public void countNumberOfCharactersInWords() {\n final long count = 0; //TODO\n\n assertEquals(105, count);\n }", "@Test\n public void shouldCountLinesOfTestCode() throws Exception {\n initializeOSGiProjectWithTestCodeInsideBundles();\n resetOutput();\n getShell().execute(\"osgi lot\");\n assertTrue(getOutput().contains(\"Total lines of test code:4\"));\n }", "public int getCheckCount(boolean passed) {\r\n int result = 0;\r\n Iterator iterator = checkResults.iterator();\r\n while (iterator.hasNext()) {\r\n CheckResult check = (CheckResult) iterator.next();\r\n if (check.getPassed() == passed) {\r\n result++;\r\n }\r\n }\r\n if (!passed && error != null) {\r\n result++; // count stacktrace as a failure\r\n }\r\n return result;\r\n }", "int countByExample(CrawlTestExample example);", "@Test\r\n\tvoid testCount() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(7);\r\n\t\ttest.add(10);\r\n\t\ttest.add(9);\r\n\t\tint output = test.count();\r\n\t\tassertEquals(3, output);\r\n\t}", "int getNumberOfResults();", "int getExamplesCount();", "int getExamplesCount();", "@Override\n\tpublic int countAll() {\n\t\tLong count = (Long)finderCache.getResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\tFINDER_ARGS_EMPTY, this);\n\n\t\tif (count == null) {\n\t\t\tSession session = null;\n\n\t\t\ttry {\n\t\t\t\tsession = openSession();\n\n\t\t\t\tQuery q = session.createQuery(_SQL_COUNT_TESTUNIT);\n\n\t\t\t\tcount = (Long)q.uniqueResult();\n\n\t\t\t\tfinderCache.putResult(FINDER_PATH_COUNT_ALL, FINDER_ARGS_EMPTY,\n\t\t\t\t\tcount);\n\t\t\t}\n\t\t\tcatch (Exception e) {\n\t\t\t\tfinderCache.removeResult(FINDER_PATH_COUNT_ALL,\n\t\t\t\t\tFINDER_ARGS_EMPTY);\n\n\t\t\t\tthrow processException(e);\n\t\t\t}\n\t\t\tfinally {\n\t\t\t\tcloseSession(session);\n\t\t\t}\n\t\t}\n\n\t\treturn count.intValue();\n\t}", "public int getRunCount() {\n return runCount;\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "int getResultsCount();", "int getResultsCount();", "public void incrementerTest() {\n\t\tthis.nbTests++;\n\t}", "long countByExample(PaasCustomAutomationRecordExample example);", "@Override\n\tpublic void test() {\n\t\tSystem.out.println(countAndSay(5));\n\t\t\n\t}", "public int countResults() \n {\n return itsResults_size;\n }", "public static void displayResults (boolean passed)\r\n\t{\r\n \r\n if (passed) {\r\n System.out.println (\"Passed test: \" + testCount);\r\n } else {\r\n System.out.println (\"Failed test: \" + testCount \r\n + \" at line \" + \r\n Thread.currentThread().getStackTrace()[2].getLineNumber()\r\n );\r\n System.exit(1);\r\n\t\t}\r\n\t\ttestCount++;\r\n\t}", "public int getCheckCount() {\r\n return checkResults.size();\r\n }", "int getTotalCaseNumbers();", "@Before\n\tpublic void setUp() {\n\t\ttest_count++;\n\t\tSystem.out.println(\"Test \"+ test_count);\n\t}", "private void countSuccessfulAndFailedJobs() {\n\t\tfor (ToolTestResult toolTestResult : toolTestResults) {\n\t\t\tif (TestResult.FAIL.equals(toolTestResult.getTestResult())) {\n\t\t\t\tfailedJobs.add(toolTestResult);\n\t\t\t\tString toolID = toolTestResult.getToolId();\n\t\t\t\tif (failCounts.containsKey(toolID)) {\n\t\t\t\t\tfailCounts.put(toolID, failCounts.get(toolID) + 1);\n\t\t\t\t} else {\n\t\t\t\t\tfailCounts.put(toolID, 1);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tsuccessfulJobs.add(toolTestResult);\n\t\t\t}\n\t\t}\n\t}", "public int numCases(){\n\t\tint numberCases = 0;\n\t\ttry {\n // This creates an object from which you can read input lines.\n BufferedReader reader = new BufferedReader(new FileReader(filename));\n\n while ((! reader.readLine().equals(\"0\"))){\n \tnumberCases++;\n }\n \n reader.close();\n }\n\t\t//deals with any IO exceptions that may occur\n catch (IOException e) {\n System.out.println(\"Caught IO exception\");\n }\n\t\t\n\t\treturn numberCases;\n\t}", "public int countTestList(TestParam param) throws Exception {\r\n return this.testMapper.countByExample(param);\r\n }", "@Override\n\tpublic int countCase() {\n\t\treturn proSystemHeadMapper.selectCountCase()+proMultiMapper.selectCountMul()+proAppMapper.selectCountApp()+proItMapper.selectCountIt();\n\t}", "@Test\n public void SelectCount(){\n\n }", "@Test\n public void countInfosTest() {\n // TODO: test countInfos\n }", "Integer getTotalStepCount();", "public int numberOfResult() throws Exception;", "public void junitSuiteStarted(int numTests) { }", "public void junitSuiteStarted(int numTests) { }", "@Test\n public void countNumberOfWords() {\n final long count = 0; //TODO\n\n assertEquals(20, count);\n }", "@Test(timeout=2000)\n public void countTest()\n {\n int[] mixed = {1,5,3,8,10,34,62,31,45,20};\n int mixedOdds = 5;\n int mixedEvens = 5;\n int[] even = {2,4,6,8,10,20,30,58};\n int[] odd = {1,3,5,7,9,11,13,15,19};\n int[] singleEven = {2};\n int[] singleOdd = {1};\n \n assertEquals( \"Counting odds in array of mixed odds and evens failed.\", mixedOdds, OddsEvens.count( mixed, true ) );\n assertEquals( \"Counting evens in array of mixed odds and evens failed.\", mixedEvens, OddsEvens.count( mixed, false ) );\n assertEquals( \"Counting odds in an array of all evens failed.\", 0, OddsEvens.count( even, true ) );\n assertEquals( \"Counting evens in an array of all evens failed.\", even.length, OddsEvens.count( even, false ) );\n assertEquals( \"Counting odds in an array of all odds failed.\", odd.length, OddsEvens.count( odd, true ) );\n assertEquals( \"Counting evens in an array of all odds failed.\", 0, OddsEvens.count( odd, false ) );\n assertEquals( \"Counting odds in an array of a single even failed.\", 0, OddsEvens.count( singleEven, true ) );\n assertEquals( \"Counting evens in an array of a single even failed.\", 1, OddsEvens.count( singleEven, false ) );\n assertEquals( \"Counting odds in an array of a single odd failed.\", 1, OddsEvens.count( singleOdd, true ) );\n assertEquals( \"Counting evens in an array of a single odd failed.\", 0, OddsEvens.count( singleOdd, false ) );\n }", "public int getNumTimes();", "@Test\n public void charCount() {\n final int expectedEight = 8;\n final int expectedFour = 4;\n\n CharCount charCounter = new CharCount();\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'z'));\n assertEquals(expectedEight, charCounter.characterCounter(\"fizzbuzz FIZZBUZZ\", 'Z'));\n assertEquals(expectedFour, charCounter.characterCounter(\"FIZZBUZZ\", 'z'));\n assertEquals(0, charCounter.characterCounter(\"TEdff fdjfj 223\", '1'));\n assertEquals(expectedFour, charCounter.characterCounter(\"TE00df0f f0djfj 223\", '0'));\n assertEquals(0, charCounter.characterCounter(\"RRuyt 111000AAdda\", (char) 0));\n }", "private int scoreCounter(int result) {\n result +=1;\n return result;\n }", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "long count();", "public int getNumResults() {\r\n\t\treturn this.numResults;\r\n\t}", "@java.lang.Override\n public int getCasesCount() {\n return cases_.size();\n }", "private int digitCount(String text, int position, int amount) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[605]++;\r\n int limit = Math.min(text.length() - position, amount);\r\n amount = 0;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[606]++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[607]++;\nbyte CodeCoverTryBranchHelper_L18 = 0;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[52]++;\n\n\nint CodeCoverConditionCoverageHelper_C182;\r\n for (;(((((CodeCoverConditionCoverageHelper_C182 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C182 |= (2)) == 0 || true) &&\n ((limit > 0) && \n ((CodeCoverConditionCoverageHelper_C182 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[182].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C182, 1) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[182].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C182, 1) && false); limit--) {\nif (CodeCoverTryBranchHelper_L18 == 0) {\n CodeCoverTryBranchHelper_L18++;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[52]--;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[53]++;\n} else if (CodeCoverTryBranchHelper_L18 == 1) {\n CodeCoverTryBranchHelper_L18++;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[53]--;\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.loops[54]++;\n}\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[608]++;\r\n char c = text.charAt(position + amount);\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[609]++;\nint CodeCoverConditionCoverageHelper_C183;\r\n if ((((((CodeCoverConditionCoverageHelper_C183 = 0) == 0) || true) && (\n(((CodeCoverConditionCoverageHelper_C183 |= (8)) == 0 || true) &&\n ((c < '0') && \n ((CodeCoverConditionCoverageHelper_C183 |= (4)) == 0 || true)))\n || \n(((CodeCoverConditionCoverageHelper_C183 |= (2)) == 0 || true) &&\n ((c > '9') && \n ((CodeCoverConditionCoverageHelper_C183 |= (1)) == 0 || true)))\n)) && (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[183].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C183, 2) || true)) || (CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.conditionCounters[183].incrementCounterOfBitMask(CodeCoverConditionCoverageHelper_C183, 2) && false)) {\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[389]++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[610]++;\r\n break;\n\r\n } else {\n CodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.branches[390]++;}\r\n amount++;\nCodeCoverCoverageCounter$654mo6kyai828p9tp73nf924rb8c6mckm6f215emx9469.statements[611]++;\r\n }\r\n return amount;\r\n }", "public int getTestAnnotationsCount() {\r\n Method[] methods = this.getClass().getMethods();\r\n int count = 0;\r\n for (Method method : methods) {\r\n if (method.getAnnotations() != null) {\r\n for (Annotation annotation : method.getAnnotations()) {\r\n if (annotation.annotationType().equals(Test.class)) {\r\n count++;\r\n }\r\n }\r\n }\r\n }\r\n return count;\r\n }", "public int getExpectedNumber() {\n return getWholeProcessCount();\n }", "public static void main(String[] args) {\n \t\n \tpageCount(83246, 78132); \t// Expected Ans: 2557 | Actual : 5113\n }", "public static int getFailCount()\r\n\t{\r\n\t\treturn failCount;\r\n\t}", "int findCount();", "@Test\n public void testInvokeCountValueMethod() throws MBeanException, InstanceNotFoundException, ReflectionException {\n long result = CSJmxStats.invokeCountValueMethod();\n //Result should be 5\n assertEquals(count, result);\n }", "private void displayTestResultSummary() {\n int passNum = mSessionLog.getTestList(CtsTestResult.CODE_PASS).size();\n int failNum = mSessionLog.getTestList(CtsTestResult.CODE_FAIL).size();\n int notExecutedNum =\n mSessionLog.getTestList(CtsTestResult.CODE_NOT_EXECUTED).size();\n int timeOutNum = mSessionLog.getTestList(CtsTestResult.CODE_TIMEOUT).size();\n int total = passNum + failNum + notExecutedNum + timeOutNum;\n \n println(\"Test summary: pass=\" + passNum\n + \" fail=\" + failNum\n + \" timeOut=\" + timeOutNum\n + \" notExecuted=\" + notExecutedNum\n + \" Total=\" + total);\n }", "@Override\n public int getTestCaseTotal() {\n return parameters.length;\n }", "public static int getRunnableTestDataSets(XLS_Reader xls, String sheetName) {\n\t\tint count = 0;\n\t\tfor (int i = 1; i < xls.GetColumnCount(sheetName); i++) {\n\t\t\tString Status = xls.getCellData_ColumnWise(sheetName, i, \"RunStatus\");\n\t\t\tif (Status.equalsIgnoreCase(\"Y\") || Status.equalsIgnoreCase(\"Yes\")) {\n\t\t\t\tcount++;\n\t\t\t} else {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t// }\n\t\t}\n\t\txls = null; // release memory\n\t\treturn count;\n\t}", "public static void main(String[] args){\n System.out.println(countSummations(100));\n }", "@Override\n\tpublic int countExam() {\n\t\treturn 0;\n\t}", "public long count() ;", "int getExperimentsCount();", "@Test\r\n\tvoid testCount2() {\r\n\t\tSimpleList test = new SimpleList();\r\n\t\ttest.add(1);\r\n\t\ttest.add(2);\r\n\t\ttest.add(3);\r\n\t\ttest.add(4);\r\n\t\ttest.add(5);\r\n\t\ttest.add(6);\r\n\t\ttest.add(7);\r\n\t\ttest.add(8);\r\n\t\ttest.add(9);\r\n\t\ttest.add(10);\r\n\t\ttest.add(11);\r\n\t\tint output = test.count();\r\n\t\tassertNotEquals(10, output);\r\n\t}", "int getDataScansCount();", "int countByExample(ChronicCheckExample example);", "public static void main(String[] args) {\n\t\tpassCount();\r\n\t\tint result = passCount();\r\n\t\tSystem.out.println(\"통과자는 \"+result+\"명입니다.\");\r\n\t\t\r\n\t\t\r\n\t\tif(result>=3) {\r\n\t\t\tSystem.out.println(\"우수학급입니다.\");\r\n\t\t}else {\r\n\t\t\tSystem.out.println(\"우수학급이 아닙니다.\");\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tint d = 6;\n\n\t\tint count = 0;\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\tcount += count(1, i, i, d, i == d || i ==0);\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "int getTotalCount();", "int getStatsCount();", "int getStatsCount();", "int getStatsCount();", "@Test\r\n\tpublic void testGetNumDivisions() {\r\n\t\tint numDivisions = 2;\r\n\t\tassertEquals(numDivisions, stats.getNumDivisions());\r\n\t}", "@Test\n public void getCount() throws Exception {\n int[] a = new int[]{250, 501, 5000, 5, 4};\n\n Solution solution = new Solution();\n\n int c = solution.getCount(a, 0, 4, 0, 5);\n\n assertEquals(3, c);\n\n c = solution.getCount(a, 0, 4, 0, 10);\n\n assertEquals(2, c);\n\n c = solution.getCount(a, 0, 4, 2, 3);\n\n assertEquals(2, c);\n }", "public final int count() {\n\t\tCountFunction function = new CountFunction();\n\t\teach(function);\n\t\treturn function.getCount();\n\t}", "public int getProblemCount();", "public int getCasesCount() {\n if (casesBuilder_ == null) {\n return cases_.size();\n } else {\n return casesBuilder_.getCount();\n }\n }", "public abstract int getScenarioCount();", "public int count();", "public int count();", "public int count();", "public int count();", "boolean testCountAndSay(Tester t) {\n\t\treturn\n\t\tt.checkExpect(s.countAndSay(1), \"1\") &&\n\t\tt.checkExpect(s.countAndSay(3), \"21\") &&\n\t\tt.checkExpect(s.countAndSay(4), \"1211\");\n\t}", "public static int totalClicks() {\n return counterClicks;\n }", "long count() throws Exception;", "public int resultsProcessed() {\n return resultCount;\n }", "public int count() throws Exception {\n\t\treturn 0;\r\n\t}", "@Test\n public void testCount() {\n System.out.println(\"**** count *****\");\n ConnectedComponentsDepthSearch instance = new ConnectedComponentsDepthSearch(g);\n int expResult = 3;\n int result = instance.count();\n assertEquals(expResult, result);\n }", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "public void count() {\n APIlib.getInstance().addJSLine(jsBase + \".count();\");\n }", "@Test\n public void shouldCountLinesOfTestCodeInsideTestBundles() throws Exception {\n initializeOSGiProjectWithTestBundles();\n resetOutput();\n getShell().execute(\"osgi lot\");\n assertTrue(currentOsgiProject.get().getLinesOfTestCode().equals(2L));\n assertTrue(getOutput().contains(\"Total lines of test code:2\"));\n }" ]
[ "0.7771952", "0.7574742", "0.7445515", "0.69583565", "0.6787938", "0.6784977", "0.67550373", "0.65871316", "0.65815157", "0.65287334", "0.6521086", "0.65129805", "0.6470263", "0.64330506", "0.6409808", "0.6396592", "0.63730985", "0.63370466", "0.6301625", "0.62858725", "0.62858725", "0.6282779", "0.62736", "0.6268172", "0.6258973", "0.6258973", "0.6230633", "0.6220401", "0.6217008", "0.62036836", "0.61797696", "0.6164688", "0.6139794", "0.6137779", "0.6105652", "0.6104368", "0.6087843", "0.6086049", "0.60823834", "0.6071073", "0.60701734", "0.6063719", "0.6063055", "0.6063055", "0.60629845", "0.6046816", "0.6042888", "0.6030356", "0.6023892", "0.6015497", "0.6015497", "0.6015497", "0.6015497", "0.6015497", "0.6015497", "0.6015497", "0.6010706", "0.60100496", "0.6001194", "0.59944797", "0.59939283", "0.5988795", "0.598667", "0.59835756", "0.5963649", "0.5949207", "0.5945347", "0.59424186", "0.5931091", "0.5926651", "0.5923816", "0.5921147", "0.5918128", "0.59142315", "0.5914015", "0.59132826", "0.5912261", "0.5911467", "0.59031266", "0.59031266", "0.59031266", "0.5901478", "0.589607", "0.58940285", "0.5882325", "0.58790785", "0.5870875", "0.5861648", "0.5861648", "0.5861648", "0.5861648", "0.5851279", "0.5848312", "0.58434284", "0.583512", "0.5832382", "0.5826966", "0.58226407", "0.582182", "0.58183694" ]
0.78153217
0
102 Creates a default TestResult object 103
protected TestResult createResult() { return new TestResult(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public CommandResultTest() {\n super(CommandResult.EMPTY);\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateValueTypeResult() {\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateUnitResult() {\n }", "public static IScriptResult createResult(SceResultsType srt) {\r\n \treturn new Result(srt);\r\n }", "public Result() {\r\n super();\r\n System.out.println(\"Result:Constructor\");\r\n }", "@SuppressWarnings(\"unused\")\n private RunUnitTestsResponse() {\n this((TestResultInfo) null, -1, -1);\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateObjectTypeResult() {\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateResult() {\n }", "public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}", "public Result() {\n }", "public Result() {\n }", "public TestResult(TestDescription td, Status s) {\n desc = td;\n testURL = desc.getRootRelativeURL();\n resultsFile = null;\n execStatus = s;\n props = emptyStringArray;\n }", "public Result(){\n\t}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateAttributeResult() {\n }", "@Test\n public void testDefaultConstructor() {\n final ConfigSearchResult<?> result = new ConfigSearchResult<>();\n assertTrue(result.getDocuments().isEmpty());\n assertNull(result.getPaging());\n assertEquals(result.getVersionCorrection(), VersionCorrection.LATEST);\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateGroupResult() {\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateObjectAttributeResult() {\n }", "@Test\n public void resultTest() {\n assertEquals(Integer.valueOf(1), authResponse.getResult());\n }", "Testcase createTestcase();", "@Test\r\n\tpublic void testCreateNewTestManager() {\r\n\t\tTestManager theTestManager = new TestManager();\r\n\t\tString report = theTestManager.toString();\r\n\t\tassertEquals(\"There are no current test scores\", report);\r\n\t}", "public void testGetReturnCode() {\n System.out.println(\"getReturnCode\");\n Wizard instance = new Wizard();\n int expResult = 0;\n int result = instance.getReturnCode();\n assertEquals(expResult, result);\n }", "private cufftResult()\r\n {\r\n }", "void newResult(Result result);", "public ResultFactoryImpl() {\n\t\tsuper();\n\t}", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateTemplateRelationResult() {\n }", "private TestDescriptor() {\r\n super(\"net.ssehub.easy.reasoning.drools2.tests\", \r\n null, \r\n true, // CHECK\r\n false);\r\n }", "public static TestCaseResult fromTestCaseRecord(final TestCase testCase) {\n\n final TestCaseResult testCaseResult = new TestCaseResult();\n\n testCaseResult.name = testCase.className + \" \" + testCase.methodName;\n testCaseResult.pointNames = testCase.pointNames;\n testCaseResult.successful = testCase.status == PASSED;\n testCaseResult.message = testCase.message;\n testCaseResult.exception = testCase.exception;\n\n return testCaseResult;\n }", "public PthTestContentsInfo() {\n }", "public abstract R createFailedResult(Status status);", "private void reportTestResult() {\n TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName);\n if (mCurrentTestStatus.equals(\"ok\")) {\n mTestResultCache.put(testId, null);\n } else if (mCurrentTestStatus.equals(\"ignored\")) {\n mTestResultCache.put(testId, SKIPPED_ENTRY);\n } else if (mCurrentTestStatus.equals(\"FAILED\")) {\n // Rust tests report \"FAILED\" without stack trace.\n mTestResultCache.put(testId, FAILED_ENTRY);\n } else {\n mTestResultCache.put(testId, mCurrentTestStatus);\n }\n }", "void mo24178a(ResultData resultdata);", "TestResult(String name) {\r\n this.name = name;\r\n checkResults = new ArrayList();\r\n }", "public Result() {\n this.status = Status.SUCCESS;\n this.message = \"\";\n this.value = Optional.empty();\n }", "Bundle generate(Map<String, TestResult> rawResults);", "public DummyTestResult() {\n this.testContext = null;\n }", "@Test\n public void resultCodeTest() {\n assertEquals(\"000\", authResponse.getResultCode());\n }", "@Test\n public void getType() {\n System.out.println(\"getType\");\n BBDParameterMetaData instance = new BBDParameterMetaData(1,\"test\",2);\n int expResult = 2;\n int result = instance.getType();\n assertEquals(expResult, result);\n }", "private void constructionHelper(GenericServiceResult genericServiceResult) {\n\n assertEquals(this.string, genericServiceResult.get(\"string\"));\n assertEquals(this.integer, genericServiceResult.get(\"integer\"));\n assertEquals(this.floats, genericServiceResult.get(\"floats\"));\n\n assertTrue(checkIndices(0, \"string\"));\n assertTrue(checkIndices(1, \"integer\"));\n assertTrue(checkIndices(2, \"floats\"));\n }", "@SuppressWarnings(\"unused\")\n private CreateOrUpdateApplicationResult() {\n }", "@Test\r\n public void testParseResult() throws Exception \r\n {\r\n System.out.println(\"parseResult\");\r\n JsonObject data = null;\r\n CPTAYahooEODMessage instance = new CPTAYahooEODMessage();\r\n JsonArray expResult = null;\r\n // instance.parseResult(data, null);\r\n }", "@Test\n public void test0() throws Throwable {\n Revision revision0 = new Revision();\n String string0 = revision0.toString();\n assertEquals(\"Unknown\", string0);\n }", "public Result(int status) {\n this(status, (String) null, Collections.emptyMap(), HttpEntity.NO_ENTITY);\n }", "public AllPoojaResult() {}", "public TestPrelab2()\n {\n }", "private SevereWeatherAlertsResult() {}", "@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test sucess\"+\" \"+result.getName());\t\r\n\t}", "public void onTestStart(ITestResult result) {\n\t test = extentReport.createTest(result.getName());\n\t }", "@Test\n public void test_constructor_0(){\n\tSystem.out.println(\"Testing MeasuredRatioModel's MeasuredRatioModel()\");\n //Tests if default values are correct\n MeasuredRatioModel instance=new MeasuredRatioModel();\n String expResult=\"NONE\";\n String result=instance.getName();\n assertEquals(expResult,result);\n result=instance.getUncertaintyType();\n assertEquals(expResult,result);\n BigDecimal expectedResult=new BigDecimal(\"0\");\n BigDecimal actualResult=instance.getValue();\n assertEquals(expectedResult,actualResult);\n actualResult=instance.getOneSigma();\n assertEquals(expectedResult,actualResult);\n assertEquals(false,instance.isFracCorr());\n assertEquals(false,instance.isOxideCorr());\n }", "public abstract Result<T> mo66250a();", "public void updateTestCaseResult(String defName, String testcaseId,String workspaceId,\r\n\t\t\t\tString projId, String DefSeverity, String DefOwner,\r\n\t\t\t\tString DefNotes, String storyId) {\r\n\r\n\t\t\tlog.info(\"Start - create\");\r\n\t\t\t\r\n\t\ttry {\r\n\t\t\t\tcreateInstance();\r\n\t\t\t\tString workspaceRef = \"/\" + RallyConstants.WORKSPACE + \"/\" + workspaceId;\r\n\t\t\t String projectRef = \"/\" + RallyConstants.WORKSPACE + \"/\" + projId; \r\n //Read User\r\n QueryRequest userRequest = new QueryRequest(\"User\");\r\n userRequest.setFetch(new Fetch(\"UserName\", \"Subscription\", \"DisplayName\", \"SubscriptionAdmin\"));\r\n userRequest.setQueryFilter(new QueryFilter(\"UserName\", \"=\", rallyInfo.getUserName()));\r\n \r\n QueryResponse userQueryResponse = restApi.query(userRequest);\r\n JsonArray userQueryResults = userQueryResponse.getResults();\r\n JsonElement userQueryElement = userQueryResults.get(0);\r\n JsonObject userQueryObject = userQueryElement.getAsJsonObject();\r\n String userRef = userQueryObject.get(\"_ref\").getAsString();\r\n\t \r\n //to get tescase formatted ID \r\n QueryRequest request = new QueryRequest(\"TestCase\");\r\n request.setWorkspace(workspaceRef);\r\n request.setFetch(new Fetch(\"FormattedID\"));\r\n request.setQueryFilter(new QueryFilter(\"ObjectID\", \"=\", testcaseId)); \r\n QueryResponse response = restApi.query(request);\r\n String testcaseform = \"\";\r\n for (int j=0; j<response.getTotalResultCount();j++){\r\n JsonObject jsonObject = response.getResults().get(j).getAsJsonObject();\r\n JsonElement FormattedTestcaseId = jsonObject.get(\"FormattedID\"); \r\n testcaseform = FormattedTestcaseId.getAsString(); \r\n }\r\n \r\n // Query for Test Case to which we want to add results\r\n QueryRequest testCaseRequest = new QueryRequest(\"TestCase\");\r\n testCaseRequest.setFetch(new Fetch(\"FormattedID\",\"Name\"));\r\n testCaseRequest.setWorkspace(workspaceRef);\r\n testCaseRequest.setQueryFilter(new QueryFilter(\"FormattedID\", \"=\",testcaseform));\r\n \r\n QueryResponse testCaseQueryResponse = restApi.query(testCaseRequest);\r\n JsonObject testCaseJsonObject = testCaseQueryResponse.getResults().get(0).getAsJsonObject();\r\n String testCaseRef = testCaseQueryResponse.getResults().get(0).getAsJsonObject().get(\"_ref\").getAsString(); \r\n \r\n for (int i=0; i<1; i++) {\r\n \t\r\n\t //Add a Test Case Result \r\n \tlog.info(\"Creating Test Case Result..\");\r\n\t JsonObject newTestCaseResult = new JsonObject();\r\n\t newTestCaseResult.addProperty(\"Verdict\", RallyConstants.VERDICT);\r\n\t newTestCaseResult.addProperty(\"Date\",DateUtil.getCurrentDateTime(RallyConstants.CREATION_DATE_FORMAT));\r\n\t newTestCaseResult.addProperty(\"Notes\", DefNotes);\r\n\t newTestCaseResult.addProperty(\"Build\", TestBedManager.INSTANCE.getDefectConfig().getBuild());\r\n\t newTestCaseResult.addProperty(\"Tester\", userRef);\r\n\t newTestCaseResult.addProperty(\"TestCase\", testCaseRef);\r\n\t newTestCaseResult.addProperty(\"Workspace\", workspaceRef);\r\n\r\n\t CreateRequest createRequest = new CreateRequest(\"testcaseresult\", newTestCaseResult);\r\n\t CreateResponse createResponse = restApi.create(createRequest); \r\n\t if (createResponse.wasSuccessful()) {\r\n\r\n\t //Read Test Case\r\n\t String ref = Ref.getRelativeRef(createResponse.getObject().get(\"_ref\").getAsString());\r\n\t GetRequest getRequest = new GetRequest(ref);\r\n\t getRequest.setFetch(new Fetch(\"Date\", \"Verdict\"));\r\n\t GetResponse getResponse = restApi.get(getRequest);\r\n\t JsonObject obj = getResponse.getObject();\r\n\t System.out.println(String.format(\"my Read Test Case Result. Date = %s, Verdict = %s\",\r\n\t obj.get(\"Date\").getAsString(), obj.get(\"Verdict\").getAsString())); \r\n\t } else {\r\n\t String[] createErrors;\r\n\t createErrors = createResponse.getErrors();\r\n\t System.out.println(\"Error occurred creating Test Case Result: \");\r\n\t for (int k=0; i<createErrors.length;k++) {\r\n\t System.out.println(createErrors[k]);\r\n\t }\r\n\t }\r\n }\r\n \r\n } catch (DefectException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t} catch (IOException e) {\r\n\t\t// TODO Auto-generated catch block\r\n\t\te.printStackTrace();\r\n\t} finally {\r\n //Release all resources\r\n try {\r\n\t\t\trestApi.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n } \r\n\r\n}", "protected TestBench() {}", "@Test\n public void testGetStatus() {\n System.out.println(\"getStatus\");\n DataModel instance = new DataModel();\n int expResult = 0;\n int result = instance.getStatus();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public ProductTestReport() {}", "@Override\n\tpublic void onTestStart(ITestResult result) {\n\t\ttest=extent.createTest(result.getMethod().getMethodName());\n\t}", "public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }", "@Test\n\tpublic void testFetchResult_with_proper_data() {\n\t}", "public void setResult (String Result);", "protocol.Result.ResultCode getResultCode();", "@Test\n @DisplayName(\"Testing constructor default\")\n public void testConstructorDefault(){\n assertEquals(BlackoutException.ERROR_MESSAGE, blackoutDefault.getMessage());\n }", "protected TextGuiTestObject postCode() \n\t{\n\t\treturn new TextGuiTestObject(\n getMappedTestObject(\"postCode\"));\n\t}", "@Test\n public void cscResultTest() {\n assertEquals(\"C\", authResponse.getCscResult());\n }", "public static void setResult(String resultInfo) {\n }", "public Test05() {\n this(0);\n n2 = \"n2\";\n n4 = \"n4\";\n }", "private static FaultyVersion createDummyVersion1() {\n\t\t/**\tzur Initialisierung der Coverage arrays in der TestCase Klasse wird auf\n\t\t * \tFaultyProjectGlobals.methodsCount zugegriffen\t*/\n\t\tFaultyProjectGlobals.methodsCount = 8;\n\t\t\n\t\tTestCase[] failures = new TestCase[6];\n\t\tfailures[0] = new TestCase(\"Test-A-Fail\", false, new Boolean[] {true, false, true, false, true, false, true, false});\n\t\tfailures[1] = new TestCase(\"Test-B-Fail\", false, new Boolean[] {true, false, true, false, true, false, true, false});\n\t\tfailures[2] = new TestCase(\"Test-C-Fail\", false, new Boolean[] {false, true, false, true, false, true, true, true});\n\t\tfailures[3] = new TestCase(\"Test-D-Fail\", false, new Boolean[] {false, false, false, false, false, false, true, true});\n\t\tfailures[4] = new TestCase(\"Test-E-Fail\", false, new Boolean[] {false, true, false, true, true, true, false, false});\n\t\tfailures[5] = new TestCase(\"Test-F-Fail\", false, new Boolean[] {false, true, true, true, true, true, false, false});\n\t\t\n\t\tTestCase[] passedTCs = new TestCase[8];\n\t\tpassedTCs[0] = new TestCase(\"Test-G-Success\", true, new Boolean[] {false, false, false, false, true, true, true, true});\n\t\tpassedTCs[1] = new TestCase(\"Test-H-Success\", true, new Boolean[] {true, false, true, false, false, false, false, true});\n\t\tpassedTCs[2] = new TestCase(\"Test-I-Success\", true, new Boolean[] {true, true, false, true, false, true, true, true});\n\t\tpassedTCs[3] = new TestCase(\"Test-J-Success\", true, new Boolean[] {false, false, false, true, true, true, false, true});\n\t\tpassedTCs[4] = new TestCase(\"Test-K-Success\", true, new Boolean[] {false, true, true, false, false, true, false, false});\n\t\tpassedTCs[5] = new TestCase(\"Test-L-Success\", true, new Boolean[] {true, false, true, true, true, true, false, false});\n\t\tpassedTCs[6] = new TestCase(\"Test-M-Success\", true, new Boolean[] {true, true, true, false, true, true, true, true});\n\t\tpassedTCs[7] = new TestCase(\"Test-N-Success\", true, new Boolean[] {false, false, false, true, false, false, true, true});\n\t\treturn new FaultyVersion(failures, passedTCs, \"dummyVersion-1\", 8);\n\t}", "@Override\n\tpublic String getTest() {\n\t\treturn \"123\";\n\t}", "public PlaceBasicResult() {\n }", "public GetResponseTest() {\n\t\t/*\n\t\t * This constructor should not be modified. Any initialization code\n\t\t * should be placed in the setUp() method instead.\n\t\t */\n\n\t}", "public final void settest_result(String test_result)\n\t{\n\t\tsettest_result(getContext(), test_result);\n\t}", "@Test\n public void goalCustomConstructor_isCorrect() throws Exception {\n\n int goalId = 11;\n int userId = 1152;\n String name = \"Test Name\";\n int timePeriod = 1;\n int unit = 2;\n double amount = 1000.52;\n\n\n //Create goal\n Goal goal = new Goal(goalId, userId, name, timePeriod, unit, amount);\n\n // Verify Values\n assertEquals(goalId, goal.getGoalId());\n assertEquals(userId, goal.getUserId());\n assertEquals(name, goal.getGoalName());\n assertEquals(timePeriod, goal.getTimePeriod());\n assertEquals(unit, goal.getUnit());\n assertEquals(amount, goal.getAmount(),0);\n }", "public Object getResult()\n/* */ {\n/* 129 */ Object resultToCheck = this.result;\n/* 130 */ return resultToCheck != RESULT_NONE ? resultToCheck : null;\n/* */ }", "@Override\n\tprotected void parseResult() {\n\t\t\n\t}", "TestNode createTestNode();", "private void initDefaultResultCollector() {\n Summariser summer=null;\n String summariserName = JMeterUtils.getPropDefault(\"summariser.name\", \"summary\");\n if (summariserName.length() > 0) {\n summer = new Summariser(summariserName);\n }\n // Store execution results into a .jtl file\n //String logFile = \"example.jtl\";\n resultCollector = new AutoMeterResultCollector(summer);\n resultCollector.setName(DEFAULT_RESULT_COLLECTOR_NAME);\n resultCollector.setProperty(TestElement.TEST_CLASS, AutoMeterResultCollector.class.getName());\n resultCollector.setProperty(TestElement.GUI_CLASS, SummaryReport.class.getName());\n resultCollector.setCalculator(calculator);\n calculator.setResultViewer(resultViewer);\n //resultCollector.setFilename(logFile);\n }", "@Override\n\tpublic BaseResponse testResponse() {\n\t\treturn setResultSuccess();\n\t}", "@Test\r\n public void test_getContestId_Accuracy() {\r\n instance = new GetDocumentFileContestAction();\r\n assertEquals(\"incorrect default value\", 0, instance.getContestId());\r\n instance.setContestId(1);\r\n assertEquals(\"incorrect value after setting\", 1, instance.getContestId());\r\n }", "public void mo5062c(Result result) {\n }", "public GameManagerClient.GameManagerInstanceResult createFailedResult(Status status) {\n return new zzd(status, null);\n }", "public PersonsResult() {\n }", "@Test\n public void testScriptProgressContainer_2()\n throws Exception {\n int percentComplete = 1;\n String errorMessage = \"\";\n\n ScriptProgressContainer result = new ScriptProgressContainer(percentComplete, errorMessage);\n\n assertNotNull(result);\n assertEquals(\"\", result.getErrorMessage());\n assertEquals(1, result.getPercentComplete());\n }", "public TestID(int testID, String testType, String testState)\n {\n this.m_testID = testID;\n this.m_testType = testType;\n this.m_testState = testState;\n this.m_testStatus = \"\";\n\n }", "public MTest(Properties ctx, String testString, int testNo) {\n\n super(ctx, 0, null);\n testString\t= testString + \"_\" + testNo;\n setName(testString);\n setDescription(testString + \" \" + testString + \" \" + testString);\n setHelp(getDescription() + \" - \" + getDescription());\n setT_Date(new Timestamp(System.currentTimeMillis()));\n setT_DateTime(new Timestamp(System.currentTimeMillis()));\n setT_Integer(testNo);\n setT_Amount(new BigDecimal(testNo));\n setT_Number(Env.ONE.divide(new BigDecimal(testNo), BigDecimal.ROUND_HALF_UP));\n\n //\n setC_Currency_ID(100);\t\t// USD\n setC_Location_ID(109);\t\t// Monroe\n setC_UOM_ID(100);\t\t// Each\n\n // setC_BPartner_ID(C_BPartner_ID);\n // setC_Payment_ID(C_Payment_ID);\n // setM_Locator_ID(M_Locator_ID);\n // setM_Product_ID(M_Product_ID);\n\n }", "public void setExpectedCommandResult(String expectedCommandResult) {\n builder.result(expectedCommandResult);\n }", "public Thaw_result(Thaw_result other) {\r\n }", "public PersonResult(Person person){\n super(\"\");\n this.person = person;\n }", "@Test\n\tpublic void testVersion_1()\n\t\tthrows Exception {\n\t\tString version = \"1\";\n\n\t\tVersion result = new Version(version);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t\tassertEquals(\"1\", result.toString());\n\t}", "public ScriptCallableTest() {\n super(\"ScriptCallableTest\");\n }", "public HockeyTeamTest()\n {\n }", "public TestResult(TestResult other) {\n __isset_bitfield = other.__isset_bitfield;\n this.success = other.success;\n this.failure = other.failure;\n if (other.isSetResults()) {\n Map<String,List<Double>> __this__results = new HashMap<String,List<Double>>(other.results.size());\n for (Map.Entry<String, List<Double>> other_element : other.results.entrySet()) {\n\n String other_element_key = other_element.getKey();\n List<Double> other_element_value = other_element.getValue();\n\n String __this__results_copy_key = other_element_key;\n\n List<Double> __this__results_copy_value = new ArrayList<Double>(other_element_value);\n\n __this__results.put(__this__results_copy_key, __this__results_copy_value);\n }\n this.results = __this__results;\n }\n if (other.isSetRequests()) {\n List<String> __this__requests = new ArrayList<String>(other.requests);\n this.requests = __this__requests;\n }\n }", "public final void settest_result(com.mendix.systemwideinterfaces.core.IContext context, String test_result)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.test_result.toString(), test_result);\n\t}", "public Result() {\n success = false;\n messages = new ArrayList<>();\n errMessages = new ArrayList<>();\n }", "Test convert(TestData testData);", "public ParameterJUnitTest(int oper1, int oper2, int result){\n\t\tthis.operator1 = oper1;\n\t\tthis.operator2 = oper2;\n\t\tthis.result = result;\n\t}", "public AllLaboTest() {\n }", "@Test(timeout = 4000)\n public void test012() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n int[] intArray0 = new int[1];\n intArray0[0] = 1;\n resultMatrixLatex0.setRowOrder(intArray0);\n assertArrayEquals(new int[] {1}, intArray0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, intArray0.length);\n \n ResultMatrixPlainText resultMatrixPlainText0 = new ResultMatrixPlainText(1, 1);\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(2, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertNotNull(resultMatrixPlainText0);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixPlainText0.m_StdDevPrec = 1;\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n \n int int0 = resultMatrixPlainText0.getDefaultCountWidth();\n assertFalse(resultMatrixPlainText0.getShowStdDev());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixPlainText0.meanWidthTipText());\n assertEquals(\"Plain Text\", resultMatrixPlainText0.getDisplayName());\n assertTrue(resultMatrixPlainText0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixPlainText0.showStdDevTipText());\n assertTrue(resultMatrixPlainText0.getDefaultEnumerateColNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixPlainText0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixPlainText0.significanceWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getSignificanceWidth());\n assertFalse(resultMatrixPlainText0.getEnumerateRowNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixPlainText0.removeFilterNameTipText());\n assertTrue(resultMatrixPlainText0.getDefaultPrintRowNames());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixPlainText0.stdDevPrecTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixPlainText0.printColNamesTipText());\n assertEquals(0, resultMatrixPlainText0.getDefaultMeanWidth());\n assertEquals(2, resultMatrixPlainText0.getMeanPrec());\n assertEquals(1, resultMatrixPlainText0.getStdDevPrec());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateColNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixPlainText0.getVisibleColCount());\n assertTrue(resultMatrixPlainText0.getPrintRowNames());\n assertEquals(5, resultMatrixPlainText0.getCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixPlainText0.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultSignificanceWidth());\n assertEquals(25, resultMatrixPlainText0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixPlainText0.getDefaultColNameWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixPlainText0.meanPrecTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixPlainText0.countWidthTipText());\n assertFalse(resultMatrixPlainText0.getDefaultShowStdDev());\n assertEquals(5, resultMatrixPlainText0.getDefaultCountWidth());\n assertEquals(2, resultMatrixPlainText0.getDefaultStdDevPrec());\n assertTrue(resultMatrixPlainText0.getPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixPlainText0.printRowNamesTipText());\n assertFalse(resultMatrixPlainText0.getDefaultRemoveFilterName());\n assertEquals(\"Generates the output as plain text (for fixed width fonts).\", resultMatrixPlainText0.globalInfo());\n assertFalse(resultMatrixPlainText0.getRemoveFilterName());\n assertEquals(1, resultMatrixPlainText0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixPlainText0.enumerateRowNamesTipText());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixPlainText0.rowNameWidthTipText());\n assertEquals(1, resultMatrixPlainText0.getColCount());\n assertEquals(0, resultMatrixPlainText0.getColNameWidth());\n assertFalse(resultMatrixPlainText0.getDefaultShowAverage());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixPlainText0.colNameWidthTipText());\n assertEquals(0, resultMatrixPlainText0.getMeanWidth());\n assertTrue(resultMatrixPlainText0.getEnumerateColNames());\n assertEquals(1, resultMatrixPlainText0.getRowCount());\n assertEquals(25, resultMatrixPlainText0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixPlainText0.showAverageTipText());\n assertEquals(0, resultMatrixPlainText0.getStdDevWidth());\n assertFalse(resultMatrixPlainText0.getShowAverage());\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(5, int0);\n \n ResultMatrixGnuPlot resultMatrixGnuPlot0 = new ResultMatrixGnuPlot(resultMatrixLatex0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixGnuPlot0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string0 = resultMatrixGnuPlot0.toStringMatrix();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertFalse(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertEquals(0, resultMatrixGnuPlot0.getRowNameWidth());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(string0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"\\n##################\\n# file: plot.dat #\\n##################\\n# generated by WEKA 3.7.7\\n# contains the data for the plot\\n\\n# key for the x-axis\\n# 1 - row0\\n\\n# data for the plot\\n1 ''\\n#######\\n# end #\\n#######\\n\\n##################\\n# file: plot.scr #\\n##################\\n# generated by WEKA 3.7.7\\n# script to plot the data\\n\\n# display it in a window:\\nset terminal x11\\nset output\\n\\n# to display all data rows:\\nset xrange [0:2]\\n\\n# axis labels, e.g.:\\n#set xlabel \\\"Datasets\\\"\\n#set ylabel \\\"Accuracy in %\\\"\\n\\n# the plot commands\\nplot \\\"plot.dat\\\" using 1:2 with lines title \\\"(1)\\\"\\n\\n# generate ps:\\n#set terminal postscript\\n#set output \\\"plot.ps\\\"\\n#replot\\n\\n# generate png:\\n#set terminal png size 800,600\\n#set output \\\"plot.png\\\"\\n#replot\\n\\n# wait for user to hit <Return>\\npause -1\\n#######\\n# end #\\n#######\\n\", string0);\n \n resultMatrixLatex0.m_ColOrder = intArray0;\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n \n ResultMatrixCSV resultMatrixCSV0 = new ResultMatrixCSV(1, 1);\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getEnumerateRowNames());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertNotNull(resultMatrixCSV0);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixCSV0.m_EnumerateRowNames = true;\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n \n resultMatrixCSV0.clearHeader();\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.assign(resultMatrixCSV0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(0, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixGnuPlot0.setCountWidth(661);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string1 = resultMatrixGnuPlot0.toStringSummary();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(string1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-summary data not set-\", string1);\n assertFalse(string1.equals((Object)string0));\n \n int int1 = resultMatrixGnuPlot0.getStdDevWidth();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(0, int1);\n assertFalse(int1 == int0);\n \n String string2 = resultMatrixLatex0.trimString(\"\", 2);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertNotNull(string2);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"\", string2);\n assertFalse(string2.equals((Object)string1));\n assertFalse(string2.equals((Object)string0));\n \n ResultMatrixHTML resultMatrixHTML0 = new ResultMatrixHTML(resultMatrixGnuPlot0);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(1, resultMatrixHTML0.getVisibleColCount());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(661, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(1, resultMatrixHTML0.getColCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(resultMatrixHTML0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n resultMatrixHTML0.setSize(2417, 1);\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(661, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(2417, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2417, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n \n String string3 = resultMatrixHTML0.toStringRanking();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixHTML0.getColNameWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixHTML0.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixHTML0.stdDevPrecTipText());\n assertEquals(0, resultMatrixHTML0.getDefaultMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateColNamesTipText());\n assertEquals(25, resultMatrixHTML0.getDefaultRowNameWidth());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixHTML0.colNameWidthTipText());\n assertEquals(0, resultMatrixHTML0.getMeanWidth());\n assertTrue(resultMatrixHTML0.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixHTML0.showAverageTipText());\n assertEquals(2, resultMatrixHTML0.getDefaultMeanPrec());\n assertEquals(0, resultMatrixHTML0.getStdDevWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultStdDevWidth());\n assertTrue(resultMatrixHTML0.getEnumerateColNames());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixHTML0.rowNameWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultEnumerateColNames());\n assertEquals(661, resultMatrixHTML0.getCountWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixHTML0.significanceWidthTipText());\n assertFalse(resultMatrixHTML0.getPrintColNames());\n assertTrue(resultMatrixHTML0.getEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getSignificanceWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixHTML0.removeFilterNameTipText());\n assertFalse(resultMatrixHTML0.getShowStdDev());\n assertEquals(2, resultMatrixHTML0.getMeanPrec());\n assertFalse(resultMatrixHTML0.getDefaultShowAverage());\n assertFalse(resultMatrixHTML0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixHTML0.getDefaultCountWidth());\n assertFalse(resultMatrixHTML0.getDefaultPrintColNames());\n assertEquals(25, resultMatrixHTML0.getRowNameWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixHTML0.getDefaultColNameWidth());\n assertEquals(2, resultMatrixHTML0.getDefaultStdDevPrec());\n assertEquals(2, resultMatrixHTML0.getStdDevPrec());\n assertFalse(resultMatrixHTML0.getShowAverage());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixHTML0.countWidthTipText());\n assertEquals(2417, resultMatrixHTML0.getVisibleColCount());\n assertFalse(resultMatrixHTML0.getDefaultRemoveFilterName());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixHTML0.stdDevWidthTipText());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixHTML0.printRowNamesTipText());\n assertEquals(1, resultMatrixHTML0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixHTML0.meanPrecTipText());\n assertEquals(2417, resultMatrixHTML0.getColCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixHTML0.showStdDevTipText());\n assertEquals(1, resultMatrixHTML0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixHTML0.enumerateRowNamesTipText());\n assertFalse(resultMatrixHTML0.getRemoveFilterName());\n assertFalse(resultMatrixHTML0.getDefaultShowStdDev());\n assertEquals(\"HTML\", resultMatrixHTML0.getDisplayName());\n assertEquals(\"Generates the matrix output as HTML.\", resultMatrixHTML0.globalInfo());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixHTML0.meanWidthTipText());\n assertTrue(resultMatrixHTML0.getDefaultPrintRowNames());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixGnuPlot0.stdDevWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getShowAverage());\n assertEquals(0, resultMatrixGnuPlot0.getStdDevWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixGnuPlot0.significanceWidthTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintColNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixGnuPlot0.showStdDevTipText());\n assertEquals(\"GNUPlot\", resultMatrixGnuPlot0.getDisplayName());\n assertEquals(0, resultMatrixGnuPlot0.getSignificanceWidth());\n assertFalse(resultMatrixGnuPlot0.getPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixGnuPlot0.removeFilterNameTipText());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultRowNameWidth());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixGnuPlot0.meanWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixGnuPlot0.stdDevPrecTipText());\n assertTrue(resultMatrixGnuPlot0.getDefaultPrintRowNames());\n assertEquals(\"Generates output for a data and script file for GnuPlot.\", resultMatrixGnuPlot0.globalInfo());\n assertFalse(resultMatrixGnuPlot0.getShowStdDev());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixGnuPlot0.colNameWidthTipText());\n assertEquals(0, resultMatrixGnuPlot0.getColNameWidth());\n assertEquals(0, resultMatrixGnuPlot0.getMeanWidth());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getRowCount());\n assertEquals(25, resultMatrixGnuPlot0.getRowNameWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixGnuPlot0.showAverageTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateColNames());\n assertFalse(resultMatrixGnuPlot0.getDefaultRemoveFilterName());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultStdDevPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultSignificanceWidth());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixGnuPlot0.meanPrecTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateRowNamesTipText());\n assertTrue(resultMatrixGnuPlot0.getEnumerateRowNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixGnuPlot0.printRowNamesTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateRowNames());\n assertEquals(1, resultMatrixGnuPlot0.getColCount());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleRowCount());\n assertFalse(resultMatrixGnuPlot0.getRemoveFilterName());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowAverage());\n assertFalse(resultMatrixGnuPlot0.getDefaultShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixGnuPlot0.rowNameWidthTipText());\n assertEquals(2, resultMatrixGnuPlot0.getMeanPrec());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultStdDevWidth());\n assertEquals(50, resultMatrixGnuPlot0.getDefaultColNameWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixGnuPlot0.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixGnuPlot0.printColNamesTipText());\n assertEquals(0, resultMatrixGnuPlot0.getDefaultMeanWidth());\n assertEquals(661, resultMatrixGnuPlot0.getCountWidth());\n assertEquals(1, resultMatrixGnuPlot0.getVisibleColCount());\n assertTrue(resultMatrixGnuPlot0.getPrintRowNames());\n assertEquals(2, resultMatrixGnuPlot0.getDefaultMeanPrec());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixGnuPlot0.countWidthTipText());\n assertFalse(resultMatrixGnuPlot0.getDefaultEnumerateColNames());\n assertNotNull(string3);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"-ranking data not set-\", string3);\n assertFalse(string3.equals((Object)string1));\n assertFalse(string3.equals((Object)string0));\n assertFalse(string3.equals((Object)string2));\n \n String string4 = resultMatrixCSV0.countWidthTipText();\n assertFalse(resultMatrixCSV0.getDefaultShowStdDev());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixCSV0.printRowNamesTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixCSV0.countWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixCSV0.rowNameWidthTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixCSV0.meanPrecTipText());\n assertTrue(resultMatrixCSV0.getEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultSignificanceWidth());\n assertEquals(\"Generates the matrix in CSV ('comma-separated values') format.\", resultMatrixCSV0.globalInfo());\n assertEquals(0, resultMatrixCSV0.getCountWidth());\n assertFalse(resultMatrixCSV0.getDefaultRemoveFilterName());\n assertFalse(resultMatrixCSV0.getRemoveFilterName());\n assertEquals(1, resultMatrixCSV0.getColCount());\n assertEquals(1, resultMatrixCSV0.getVisibleRowCount());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixCSV0.getColNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixCSV0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixCSV0.stdDevPrecTipText());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixCSV0.enumerateColNamesTipText());\n assertEquals(2, resultMatrixCSV0.getMeanPrec());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixCSV0.printColNamesTipText());\n assertFalse(resultMatrixCSV0.getDefaultPrintColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixCSV0.removeFilterNameTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixCSV0.significanceWidthTipText());\n assertEquals(0, resultMatrixCSV0.getDefaultStdDevWidth());\n assertTrue(resultMatrixCSV0.getPrintRowNames());\n assertEquals(2, resultMatrixCSV0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixCSV0.getVisibleColCount());\n assertEquals(2, resultMatrixCSV0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixCSV0.meanWidthTipText());\n assertFalse(resultMatrixCSV0.getShowStdDev());\n assertTrue(resultMatrixCSV0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixCSV0.showStdDevTipText());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixCSV0.stdDevWidthTipText());\n assertFalse(resultMatrixCSV0.getPrintColNames());\n assertEquals(0, resultMatrixCSV0.getSignificanceWidth());\n assertEquals(25, resultMatrixCSV0.getRowNameWidth());\n assertFalse(resultMatrixCSV0.getDefaultShowAverage());\n assertTrue(resultMatrixCSV0.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixCSV0.getMeanWidth());\n assertTrue(resultMatrixCSV0.getEnumerateColNames());\n assertEquals(25, resultMatrixCSV0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixCSV0.getDefaultCountWidth());\n assertFalse(resultMatrixCSV0.getShowAverage());\n assertEquals(1, resultMatrixCSV0.getRowCount());\n assertEquals(2, resultMatrixCSV0.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixCSV0.colNameWidthTipText());\n assertEquals(0, resultMatrixCSV0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixCSV0.showAverageTipText());\n assertEquals(\"CSV\", resultMatrixCSV0.getDisplayName());\n assertNotNull(string4);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(\"The width of the counts (0 = optimal).\", string4);\n assertFalse(string4.equals((Object)string2));\n assertFalse(string4.equals((Object)string0));\n assertFalse(string4.equals((Object)string1));\n assertFalse(string4.equals((Object)string3));\n \n String string5 = resultMatrixLatex0.globalInfo();\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertNotNull(string5);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", string5);\n assertFalse(string5.equals((Object)string0));\n assertFalse(string5.equals((Object)string4));\n assertFalse(string5.equals((Object)string2));\n assertFalse(string5.equals((Object)string1));\n assertFalse(string5.equals((Object)string3));\n \n String[][] stringArray0 = new String[6][8];\n String[] stringArray1 = new String[6];\n stringArray1[0] = \"$circ$\";\n stringArray1[1] = \"]\";\n stringArray1[2] = \" \";\n stringArray1[3] = \"]\";\n stringArray1[4] = \"v\";\n stringArray1[5] = \"The width of the counts (0 = optimal).\";\n stringArray0[0] = stringArray1;\n String[] stringArray2 = new String[9];\n assertFalse(stringArray2.equals((Object)stringArray1));\n \n stringArray2[0] = \"v\";\n stringArray2[1] = \"*\";\n stringArray2[2] = \"[\";\n stringArray2[3] = \"-summary data not set-\";\n stringArray2[4] = \"Generates the matrix output in LaTeX-syntax.\";\n stringArray2[5] = \"(\";\n stringArray2[6] = \"(\";\n stringArray2[7] = \" \";\n stringArray2[8] = \" \";\n stringArray0[1] = stringArray2;\n String[] stringArray3 = new String[2];\n assertFalse(stringArray3.equals((Object)stringArray1));\n assertFalse(stringArray3.equals((Object)stringArray2));\n \n stringArray3[0] = \"[\";\n stringArray3[1] = \"[\";\n stringArray0[2] = stringArray3;\n String[] stringArray4 = new String[1];\n assertFalse(stringArray4.equals((Object)stringArray2));\n assertFalse(stringArray4.equals((Object)stringArray1));\n assertFalse(stringArray4.equals((Object)stringArray3));\n \n stringArray4[0] = \"\";\n stringArray0[3] = stringArray4;\n String[] stringArray5 = new String[6];\n assertFalse(stringArray5.equals((Object)stringArray2));\n assertFalse(stringArray5.equals((Object)stringArray1));\n assertFalse(stringArray5.equals((Object)stringArray4));\n assertFalse(stringArray5.equals((Object)stringArray3));\n \n stringArray5[0] = \"$circ$\";\n stringArray5[1] = \"\\n##################\\n# file: plot.dat #\\n##################\\n# generated by WEKA 3.7.7\\n# contains the data for the plot\\n\\n# key for the x-axis\\n# 1 - row0\\n\\n# data for the plot\\n1 ''\\n#######\\n# end #\\n#######\\n\\n##################\\n# file: plot.scr #\\n##################\\n# generated by WEKA 3.7.7\\n# script to plot the data\\n\\n# display it in a window:\\nset terminal x11\\nset output\\n\\n# to display all data rows:\\nset xrange [0:2]\\n\\n# axis labels, e.g.:\\n#set xlabel \\\"Datasets\\\"\\n#set ylabel \\\"Accuracy in %\\\"\\n\\n# the plot commands\\nplot \\\"plot.dat\\\" using 1:2 with lines title \\\"(1)\\\"\\n\\n# generate ps:\\n#set terminal postscript\\n#set output \\\"plot.ps\\\"\\n#replot\\n\\n# generate png:\\n#set terminal png size 800,600\\n#set output \\\"plot.png\\\"\\n#replot\\n\\n# wait for user to hit <Return>\\npause -1\\n#######\\n# end #\\n#######\\n\";\n stringArray5[2] = \"*\";\n stringArray5[3] = \" \";\n stringArray5[4] = \"$circ$\";\n stringArray5[5] = \" \";\n stringArray0[4] = stringArray5;\n String[] stringArray6 = new String[7];\n assertFalse(stringArray6.equals((Object)stringArray5));\n assertFalse(stringArray6.equals((Object)stringArray3));\n assertFalse(stringArray6.equals((Object)stringArray2));\n assertFalse(stringArray6.equals((Object)stringArray1));\n assertFalse(stringArray6.equals((Object)stringArray4));\n \n stringArray6[0] = \"]\";\n stringArray6[1] = \" \";\n stringArray6[2] = \"v\";\n stringArray6[3] = \"v\";\n stringArray6[4] = \" \";\n stringArray6[5] = \"$circ$\";\n stringArray6[6] = \"v\";\n stringArray0[5] = stringArray6;\n // Undeclared exception!\n try { \n resultMatrixLatex0.getColSize(stringArray0, 2, true, true);\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 2\n //\n verifyException(\"weka.experiment.ResultMatrix\", e);\n }\n }", "ResultSummary getActualResultSummary();", "public Results() {\n\t\t\t// TODO Auto-generated constructor stub\n\t\t}", "public Pojo1110110(){\r\n\t}", "@Test\r\n public void test_getDocumentId_Accuracy() {\r\n instance = new GetDocumentFileContestAction();\r\n assertEquals(\"incorrect default value\", 0, instance.getDocumentId());\r\n instance.setDocumentId(1);\r\n assertEquals(\"incorrect value after setting\", 1, instance.getDocumentId());\r\n }", "public TypecheckResult interpretResults(TestConfiguration config, CompilationResult compilationResult) {\n List<TestDiagnostic> expectedDiagnostics = readDiagnostics(config, compilationResult);\n return TypecheckResult.fromCompilationResults(config, compilationResult, expectedDiagnostics);\n }", "public DeferredResult()\n/* */ {\n/* 76 */ this(null, RESULT_NONE);\n/* */ }" ]
[ "0.6529945", "0.633443", "0.6270817", "0.6240398", "0.6137388", "0.61087114", "0.59696627", "0.59692115", "0.5907723", "0.58981025", "0.58981025", "0.5882213", "0.5881424", "0.58765024", "0.5848634", "0.58436334", "0.579814", "0.57814175", "0.57254976", "0.5721972", "0.56718564", "0.55891186", "0.55738276", "0.5568731", "0.556678", "0.5557665", "0.5511116", "0.5501328", "0.55008376", "0.5492869", "0.5490408", "0.5478991", "0.5458213", "0.54501504", "0.5422295", "0.5384014", "0.5378795", "0.53782207", "0.53754234", "0.537403", "0.5368702", "0.53645045", "0.5352674", "0.5335687", "0.53343165", "0.53306365", "0.5324104", "0.5306834", "0.5300296", "0.5293267", "0.529243", "0.52718323", "0.52690977", "0.5266117", "0.5260179", "0.52564704", "0.52517754", "0.5251451", "0.52475137", "0.5244708", "0.5238203", "0.52364534", "0.52356493", "0.5233519", "0.5231809", "0.52219874", "0.5218331", "0.52150375", "0.5213279", "0.5209901", "0.52085155", "0.5204247", "0.5201689", "0.51975626", "0.5196907", "0.51953495", "0.51951545", "0.5192503", "0.5192437", "0.5190232", "0.51895416", "0.5188591", "0.51871854", "0.5185798", "0.51851416", "0.51846826", "0.51836014", "0.5182675", "0.5178911", "0.51742125", "0.5172383", "0.51709217", "0.51669663", "0.5164628", "0.5160983", "0.5160812", "0.5149522", "0.5138852", "0.5138719", "0.513699" ]
0.7329704
0
110 A convenience method to run this test, collecting the results with a 111 default TestResult object. 112
public TestResult run() { TestResult result= createResult(); run(result); return result; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected abstract TestResult runTestImpl() throws Exception;", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "@Test\n public void baseCommandTests_part1() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part1.xlsx\");\n assertPassFail(executionSummary, \"base_showcase\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_projectfile\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_array\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_count\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_date\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"actual_in_output\", TestOutcomeStats.allPassed());\n }", "public Integer call() throws IOException {\n \t\t\tint ret=90;\n \t\t\ttestCases = new ArrayList<String>();\n \t\t\trealIds = new ArrayList<String>();\n \t \tString path = \"./workspace/\"+jobname;\n\t\t\t\tlistener.getLogger().println(\"IL PATH DEL TESTRUN E' \"+path);\n \t\t\t/* folders = listFilesForFolder(new File(path),listener);\n \t\t\t// cerco il TestRun nell'svn di Polarion\n \tcheck:\tfor(String folder : folders){\n \t \tlistener.getLogger().println(\"confronto: \"+testrunid+\" - \"+folder);\n \t\t\t\tif(testrunid.equals(folder)){ \t\t\t\t\t\n \t\t\t\t\t// prelevo i TestCase relativi al TestRun\n \t\t\t\t\t */\n \t\t\t\t\ttestCases = getTestCases(path,listener);\n \t\t\t\t\tString nometestrun = \"Executed - \"+testrunid+\".xml\";\n \t\t\t\t\tif(!testCases.isEmpty()){\n \t\t\t\t\t\t// prelevo l'ID vero dei Test Case\n\t\t\t\t\t\t\trealIds = getRealTestCaseIdFromPolarion(listener,testCases);\n\t\t\t\t\t\t\tif(type.equals(\"TestMTP\")){ // ESECUZIONE SU MTP\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MTP\");\n\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Per l'esecuzione con lo stub (va messa fuori il for per funzionare)\n\t\t \t\t\t\t\tCreaXMLStub stub = new CreaXMLStub(testCases);\n\t\t\t\t\t\t\t\tstub.doTest(\"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun,listener);*/\n\t\t\t\t\t\t\t}else if(type.equals(\"TestMX\")){ // ESECUZIONE SU MICROMAX\n\t\t\t\t\t\t\t\tif(!scenario){\n\t\t\t\t\t\t\t\t\tArrayList<Integer> returnCodes = new ArrayList<Integer>();\n\t\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t\t\t// stampo il realId del test case\n\t\t\t\t\t\t\t \tlistener.getLogger().println(\"TC: \"+realId);\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MX\");\n\t\t\t\t\t\t\t\t\t\tString[] parameters = realId.split(\",\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+parameters[2]); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\treturnCodes.add(ret);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Scrive i risultati in base al valore di ritorno di MxVDEV\n\t\t\t\t\t\t\t\t\twriteTestResults(\"C:/JenkinsSlave/Results/\"+nometestrun, testCases, returnCodes);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//Converto tutti i risultati nel formato desiderato leggendo i log\n\t\t\t\t\t\t\t\t//convertTestCaseResults(realIds, \"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun, testCases);\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t//convertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\tString[] parameters = realIds.get(0).split(\",\");\n\t\t\t\t\t\t\t\t\tScenario scenario = new Scenario(testrunid,realIds,mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\");\n\t\t\t\t\t\t\t\t\tif(scenario.createScenario()){\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"Scenario creato\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid+\".mxs\"); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t\tconvertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"creazione dello scenario non riuscita\");\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{ // CONDIZIONE EVENTUALI ERRORI\n\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"condizione inaspettata\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tpublishTest(\"C:/JenkinsSlave/Results/\",sharedpasswd,shareduser,nometestrun, listener, projectname);\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\tContactPolarion(listener);\n\t\t\t\t\t \t\tlistener.getLogger().println(\"Nessun tc impostato. Setto tr a open\");\n\t\t\t\t\t \t//}\n\t\t\t\t\t \t//break check;\n \t\t\t\t//}\n \t\t\t}\n \t\t\treturn ret; \t\n \t\t}", "@Test\n public void baseCommandTests_part2() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part2.xlsx\");\n assertPassFail(executionSummary, \"crypto\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"macro-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"repeat-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"expression-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"multi-scenario2\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"flow_controls\", new TestOutcomeStats(2, 14));\n }", "@Test public void testAllSimple10() { testAll(1234, \"1234\", 10); }", "@Override\n public void runTest() {\n }", "@Test\n\tpublic void testDirectResultWriting() {\n\t\t// create a BytecodeCounter\n\t\tBytecodeCounter counter = setupByCounter();\n\t\tAssert.assertNotNull(counter);\n\n\t\t// disable usage of result collector\n\t\tAssert.assertNotNull(counter.getInstrumentationParams());\n\t\tcounter.getInstrumentationParams().setUseResultCollector(false);\n\t\tAssert.assertEquals(false, counter.getInstrumentationParams().getUseResultCollector());\n\n\t\t// set the file name for the result log\n\t\tcounter.getInstrumentationParams().enableResultLogWriter(resultLogFileName);\n\t\tcounter.getInstrumentationParams().setUseBasicBlocks(false);\n\t\tcounter.getInstrumentationParams().setUseArrayParameterRecording(true);\n\t\tAssert.assertEquals(resultLogFileName, counter.getInstrumentationParams().getResultLogFileName());\n\n\t\t// test with void method\n\t\tMethodDescriptor methodDescriptor = new MethodDescriptor(\n\t\t\t\tCLASS_TEST_SUBJECT, METHOD_METHOD_CALL_TEST);\n\t\tcounter.addEntityToInstrument(methodDescriptor);\n\t\tcounter.instrument();\n\t\tcounter.execute(methodDescriptor, new Object[]{});\n\n\t\t// check whether a file was written\n\t\tcheckAndDeleteFile(resultLogFileName);\n\t\tcleanResults();\n\n\t\tcounter = setupByCounter();\n\t\tcounter.getInstrumentationParams().setUseResultCollector(false);\n\t\tcounter.getInstrumentationParams().enableResultLogWriter(resultLogFileName);\n\t\t// test with boolean method\n\t\tmethodDescriptor = new MethodDescriptor(CLASS_TEST_SUBJECT,\n\t\t\tMETHOD_PARAMETER_TEST);\n\t\tcounter.addEntityToInstrument(methodDescriptor);\n\t\tcounter.instrument();\n\t\tcounter.execute(methodDescriptor,\n\t\t\tnew Object[]{2, 2, CLASS_TEST_SUBJECT});\n\n\t\t// check whether a file was written\n\t\tcheckAndDeleteFile(resultLogFileName);\n\n\t\tcounter = setupByCounter();\n\t\t// enable CountingResultCollector additionally\n\t\tcounter.getInstrumentationParams().setUseResultCollector(true);\n\t\tcounter.getInstrumentationParams().enableResultLogWriter(resultLogFileName);\n\n\t\t// test with boolean method\n\t\tmethodDescriptor = new MethodDescriptor(CLASS_TEST_SUBJECT,\n\t\t\tMETHOD_PARAMETER_TEST);\n\t\tcounter.addEntityToInstrument(methodDescriptor);\n\t\tcounter.instrument();\n\t\tcounter.execute(methodDescriptor,\n\t\t\tnew Object[]{2, 2, CLASS_TEST_SUBJECT});\n\n\t\t// check whether a file was written\n\t\tcheckAndDeleteFile(resultLogFileName);\n\t}", "@Override\n public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException \n {\n AggregatedTestResultAction currentTestResults = run.getAction(AggregatedTestResultAction.class);\n\n //retrieve the test results \n List<AggregatedTestResultAction.ChildReport> currentResults = currentTestResults.getResult();\n\n listener.getLogger().println(\"Running Test Checker Plugin\");\n\n //listener.getLogger().println(\"Current Build :- \", currentTestResults.getDisplayName());\n //listener.getLogger().println(\"Previous Build :- \", currentTestResults.getDisplayName());\n\n\n //iterate through the result of each test\n for(int i = 0; i < currentResults.size(); i++)\n {\n\n\t //obtain the report of a test\t\n\t AggregatedTestResultAction.ChildReport child = currentResults.get(i);\n\n\t //retreive the test result\n\t TestResult currentTestResultChild = (TestResult)child.result;\n\n\t //get the passed tests \n\t ArrayList<TestResult> currRes = ((ArrayList<TestResult>)currentTestResultChild.getPassedTests());\n\n\t //iterate through each passed test\n\t for(int j = 0; j < currRes.size(); j++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currRes.get(j);\n\n\t //obtain the status of the test in previous build\n\t TestResult previousTestResChild = currRes.get(j).getPreviousResult();\n\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\t\n\t // Case 1: Both passed\n\t if (currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Passed) : \" + currentTestResChild.getDisplayName());\n\t }\n\t // Case 2: Previous failed, newly passed\n\t if (currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Passing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n\n\t //get the failed tests \n\t ArrayList<TestResult> currResF = ((ArrayList<TestResult>)currentTestResultChild.getFailedTests());\n\n\t //iterate through each failed test\n\t for(int k = 0; k < currResF.size(); k++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currResF.get(k);\n\n\t //obtain the status of the test in previous build\n\t\tTestResult previousTestResChild = currResF.get(k).getPreviousResult();\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\n\t // Case 3: Both failed\n\t if (!currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Failed) : \" + currentTestResChild.getDisplayName());\n\t } \n\t // Case 4: Previous passed, newly failed\n\t if (!currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Failing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n }\n }", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }", "public void run(TestResult result) {\n try {\n TestHarness testApp = setupHarness();\n if (printInfo)\n testApp.printInfo(System.out, testBranchs);\n else\n testApp.run(result);\n } catch (Exception e) {\n result.addError(this, e);\n }\n }", "public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}", "@Test\n\tpublic void testBasicReportExecution() \n\t{\n\t\tString testTeam = \"USA\";\n\t\t\n\t\ttry \n\t\t{\n\t\t\tReportParameters rp = new ReportParameters();\n\t\t\t\n\t\t\trp.addSupportedParameter(ParameterInfo.START_DATE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.END_DATE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.AGENT_NAMES_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.TEAM_NAMES_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.USER_GRAIN_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.TIME_GRAIN_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.NUM_DRIVERS_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.REPORT_TYPE_PARAM);\n\t\t\trp.addSupportedParameter(ParameterInfo.SOURCE_PARAM);\n\t\t\t\n\t\t\tassertTrue(\"Set stack report\", rp.setReportType(ReportTypes.STACK_REPORT));\n\t\t\t//assertTrue(\"Add agent to report\", rp.addAgentName(testAgent));\n\t\t\tassertTrue(\"Add team to report\", rp.addTeamName(testTeam));\n\t\t\tassertTrue(\"Set report start date\", rp.setStartDate(\"2014-01-01 00:00:00\"));\n\t\t\tassertTrue(\"Set report end date\", rp.setEndDate(\"2014-03-01 23:59:59\"));\n\t\t\tassertTrue(\"Set user granularity for stack report\", rp.setUserGrain(UserGrains.TEAM_GRANULARITY));\n\t\t\tassertTrue(\"Set report source\", rp.setSource(\"JUnit\"));\n\t\t\t\n\t\t\t//report needs roster members\n\t\t\tReport report = proc.startReport(testReportClassName, rp);\n\t\t\tArrayList<String[]> actualResults = report.getData();\n\t\t\t\n\t\t\tassertNotNull(\"Non-null result set\", actualResults);\n\t\t\tassertTrue(\"Check that result set is non zero size\", actualResults.size() > 0);\n\t\t\tassertTrue(\"Check that result set is expected size\", actualResults.size() == 1);\n\t\t\t\n\t\t\tassertEquals(\"Correct team membership\", testTeam, actualResults.get(0)[0]);\n\t\t} \n\t\tcatch (ClassNotFoundException e) \n\t\t{\n\t\t\te.printStackTrace();\n\t\t\tassertFalse(\"Exception executing report\", true);\n\t\t}\n\t}", "public TestResult(WorkDirectory workDir, String workRelativePath) throws Fault {\n //resultsFile = workDir.getFile(workRelativePath.replace('/', File.separatorChar));\n resultsFile = workDir.getFile(workRelativePath);\n reload();\n\n testURL = desc.getRootRelativeURL();\n execStatus = Status.parse(PropertyArray.get(props, EXEC_STATUS));\n }", "protected TestResult createResult() {\n return new TestResult();\n }", "public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}", "public int countTestCases() {\n return 1;\n }", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }", "@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test sucess\"+\" \"+result.getName());\t\r\n\t}", "@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}", "public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}", "@Override\n\tpublic void runTest() throws Throwable {}", "private void reportTestResult() {\n TestDescription testId = new TestDescription(mCurrentTestFile, mCurrentTestName);\n if (mCurrentTestStatus.equals(\"ok\")) {\n mTestResultCache.put(testId, null);\n } else if (mCurrentTestStatus.equals(\"ignored\")) {\n mTestResultCache.put(testId, SKIPPED_ENTRY);\n } else if (mCurrentTestStatus.equals(\"FAILED\")) {\n // Rust tests report \"FAILED\" without stack trace.\n mTestResultCache.put(testId, FAILED_ENTRY);\n } else {\n mTestResultCache.put(testId, mCurrentTestStatus);\n }\n }", "public TestOutcome executeTests()\n\n\t{\n\t try {\n\t\tString buildServerTestFilesDir = getDirectoryFinder()\n\t\t\t\t.getTestFilesDirectory().getCanonicalPath() + File.separator;\n\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n\t\t// TODO Factor the amount of memory and the extra -D parameters into\n\t\t// config.properties\n\t\tString vmArgs = tester.getTestProperties().getVmArgs();\n\t\tboolean memorySet = false;\n\t\tif (vmArgs != null) {\n\t\t if (vmArgs.contains(\"-Xmx\"))\n\t\t memorySet = true;\n\t\t\t// Break up into separate tokens if necessary\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(vmArgs);\n\t\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\t\tString nextArg = tokenizer.nextToken();\n\t\t\t\tnextArg = nextArg.replace(\"${buildserver.test.files.dir}\",\n\t\t\t\t\t\tbuildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n\t\t\t}\n\t\t}\n\t\tif (!memorySet)\n\t\t javaArgs.add(\"-Xmx456m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n \n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\n\t\t// Do not allow access to home directory\n\t\tjavaArgs.add(\"-Duser.home=/dev/null\");\n\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\"\n\t\t\t\t+ getProjectSubmission().getTestSetup().getCanonicalPath());\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\"\n\t\t\t\t+ getDirectoryFinder().getBuildDirectory().getCanonicalPath());\n\t\t// Add trusted code bases\n\t\tfor (TrustedCodeBase trustedCodeBase \n\t\t : getTrustedCodeBaseFinder().getCollection()) {\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\"\n\t\t\t\t\t+ trustedCodeBase.getValue());\n//\t\t\tgetLog().debug(\"adding trusted codebase \" + trustedCodeBase);\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\"\n\t\t\t\t\t+ new File(getDirectoryFinder().getTestFilesDirectory(),\n\t\t\t\t\t\t\t\"security.policy\").getCanonicalPath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tjavaArgs.add(\"-startTestNumber\");\n\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType.toString());\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties()\n\t\t\t\t.getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInMilliseconds() != 0) {\n\t\t\ttimeoutInSeconds = 1 + (int)( testCase.getMaxTimeInMilliseconds() / 1000);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Using @Test(timeout=\" + timeoutInSeconds\n\t\t\t\t\t\t\t+ \") annotation\");\n\t\t}\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir()\n\t\t\t\t&& !testType.equals(TestOutcome.TestType.STUDENT))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\n\t\tgetLog().debug(\"TestRunner working directory: \" + testRunnerCWD);\n\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\t\t\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n \n\t\t\ttestRunner = Untrusted.execute(\n\t\t\t\t\ttestRunnerCWD, javaArgs.toArray(new String[javaArgs.size()]));\n\n int pid = MarmosetUtilities.getPid(testRunner);\n getLog().debug(\n \"Subprocess for submission \"\n + getProjectSubmission().getSubmissionPK()\n + \" for testSetup \"\n + getProjectSubmission().getTestSetupPK()\n + \" for \" + testType + \" \" + nextTestNumber\n + \" \" + testMethod + \" in testClass \"\n + testClass + \" has pid = \" + pid);\n\n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(),\n\t\t\t\t\ttestRunner.getErrorStream());\n\t\t\tmonitor.start();\n\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n\t\t\t// Groovy, we finished before the alarm went off.\n\t\t\t// Disable it (and clear our interrupted status)\n\t\t\t// in case it went off just after the process wait\n\t\t\t// finished.\n\t\t\talarm.turnOff();\n\n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\n\t\t\t\t\t\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n\t\t\tif (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n\t\t\t\tgetLog().warn(\n\t\t\t\t\t\t\"Clover could not be initialized due to an AccessControlException. \"\n\t\t\t\t\t\t\t\t+ \" Please check your security.policy file and make sure that student code \"\n\t\t\t\t\t\t\t\t+ \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" failed with IOException: \" + e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult = e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Timeout for \" + testType + \" \" + testMethod + \" \"\n\t\t\t\t\t\t\t+ nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.TIMEOUT,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning && testRunner != null) {\n\t\t\t\ttestRunner.destroy();\n\t\t\t\t// process should already be dead, kill again\n\t\t\t\tMarmosetUtilities.destroyProcessGroup(testRunner, getLog());\n\t\t\t}\n\t\t}\n\n\t\tif (exitCode == 2) {\n // Test runner couldn't execute the tests for some reason.\n // This is probably not our fault.\n // Just add an outcome recording the output of\n // the test runner process.\n String longTestResult = monitor.getCombinedOutput();\n String shortTestResult = \"An expected class could not be found\";\n int end = longTestResult.indexOf('\\n');\n if (end > 0 && longTestResult.startsWith(\"java.lang.NoClassDefFoundError: \")) {\n String missing = longTestResult.substring(\"java.lang.NoClassDefFoundError: \".length(), end);\n missing = missing.replace('/','.');\n shortTestResult = \"Could not find expected class \" + missing;\n longTestResult = \"\";\n }\n getLog().error(shortTestResult);\n return Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n testClass, nextTestNumber, TestOutcome.MISSING_COMPONENT,\n shortTestResult, longTestResult);\n } else if (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t}\n\n\t\tgetLog().debug(\n\t\t\t\tgetFullTestName() + \" test finished with \"\n\t\t\t\t\t\t+ new File(outputFilename).length()\n\t\t\t\t\t\t+ \" bytes of output\");\n\n\t\tTestOutcome testOutcome = readTestOutcomeFromFile();\n\t\tif (testType == TestType.SECRET) {\n\t\t\tString longTestResult = testOutcome.getLongTestResult();\n\t\t\tString output = monitor.getCombinedOutput().trim();\n\t\t\tif (output.length() > 0)\n\t\t\t\ttestOutcome.setLongTestResultCompressIfNeeded(longTestResult + \"\\nTest output:\\n\" + output);\n\t\t}\n\t\treturn testOutcome;\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t throw new RuntimeException(\"Unexpected IO Exception\", e);\n\t }\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "public TestResult(TestDescription td, Status s) {\n desc = td;\n testURL = desc.getRootRelativeURL();\n resultsFile = null;\n execStatus = s;\n props = emptyStringArray;\n }", "@Test\n public void resultNumberTest() throws InterruptedException, ParseException {\n HomePageNavigation.gotoHomePage();\n Thread.sleep(2000);\n SearchNavigation.gotoSearchResultsPage(index,\"\");\n assertTrue(\"Message does not exist\", CommonUtils.extractTotalResults() >= 1);\n }", "@AfterTest\n\tpublic void reportTestResult() {\n\t\textent.endTest(test);\n\t\t\n\t\t/*LogStatus info =test.getRunStatus();\n\t\t\n\t\tif(info.toString().equalsIgnoreCase(\"PASS\"))\n\t\t\tstatus=1;\n\t\telse if(info.toString().equalsIgnoreCase(\"FAIL\"))\n\t\t\tstatus=2;\n\t\t\n\t\tif (status == 1)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"PASS\");\n\t\telse if (status == 2)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"FAIL\");\n\t\telse\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"SKIP\");*/\n\n\t}", "public static void runAllTests() {\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL());\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL(new String [] {\"100\"}));\n\t}", "public void testGetReturnCode() {\n System.out.println(\"getReturnCode\");\n Wizard instance = new Wizard();\n int expResult = 0;\n int result = instance.getReturnCode();\n assertEquals(expResult, result);\n }", "public void testCheck()\r\n {\n DataUtil.check(9, \"This is a test!\");\r\n }", "@Test\n public void testAlmUtilsExample() throws GeneralLeanFtException, ReportException, IOException {\n AlmRunInfo almRunInfo = AlmUtils.getAlmRunInfo();\n if (almRunInfo != null){\n // AlmUtils.getAlmRunInfo() returned object, the test is running from ALMreturn;\n // Create a string builder, and add the properties of the test running\n StringBuilder sb = new StringBuilder();\n sb.append(\"ALMUtils test info proeprties: <BR>\");\n sb.append(String.format(\"ServerUrl: '%s' <BR>\", almRunInfo.getServerUrl()));\n sb.append(String.format(\"TesterName: '%s' <BR>\", almRunInfo.getTesterName()));\n sb.append(String.format(\"TestId: '%d' <BR>\", almRunInfo.getTestId()));\n sb.append(String.format(\"TestName: '%s' <BR>\", almRunInfo.getTestName()));\n sb.append(String.format(\"TestSetId: '%d' <BR>\", almRunInfo.getTestSetId()));\n sb.append(String.format(\"TestSetName: '%s' <BR>\", almRunInfo.getTestSetName()));\n sb.append(String.format(\"RunId: '%d' <BR>\", almRunInfo.getRunId()));\n sb.append(String.format(\"RunName: '%s' <BR>\", almRunInfo.getRunName()));\n sb.append(String.format(\"TestInstanceId: '%d' <BR>\", almRunInfo.getTestInstanceId()));\n String stringToReport = sb.toString();\n Reporter.reportEvent(\"AlmUtils.getAlmRunInfo() Properties Check\", stringToReport);\n\n }\n\n try {\n Map<String, Object> testParams = almRunInfo.getParameters();\n\n if (testParams == null) {\n Reporter.reportEvent(\"AlmUtils.getAlmRunInfo() Parameters Check\",\n \"Test is not running from ALM, therefore no parameters in the test\");\n } else {\n String paramString = \"\";\n for (Map.Entry<String, Object> testParam : testParams.entrySet()) {\n paramString += String.format(\"Parameter name: '%s', parameter value: '%s' <BR>\", testParam.getKey(), testParam.getValue().toString());\n }\n Reporter.reportEvent(\"ALMUtils.getAlmRunInfo Parameters Check\", paramString);\n }\n } catch (NullPointerException e) {\n Reporter.reportEvent(\"Exception in AlmUtils.getAlmRunInfo() Parameters Check\",\n \"Test is not running from ALM, therefore no parameters in the test\");\n }\n }", "public TestResult(TestDescription td, WorkDirectory workDir)\n throws Fault {\n desc = td;\n testURL = desc.getRootRelativeURL();\n execStatus = inProgress;\n\n reloadFromWorkDir(workDir);\n }", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t}", "public static void testISPIssuesPlanMetrics(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlanMetrics\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\r\n\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: Verify that Plan Metrics\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t// Verify Count Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"type\",GlobalVariables.testData.get(\"countType\"));\t\r\n\t\t\tAssert.assertEquals(\"Count type is\",true,planAgentResult);\r\n\t\t\t// Verify Count Value\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"value\",GlobalVariables.testData.get(\"countValue\"));\t\r\n\t\t\tAssert.assertEquals(\"Count Value is\",true,planAgentResult);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "private void dumpResults(long startTime, long endTime) {\n \n Log.info(TAG_LOG, \"***************************************\");\n \n if (testResults != null) {\n int tot = 0;\n int failed = 0;\n int success = 0;\n int skipped = 0;\n for(int i=0;i<testResults.size();++i) {\n StringBuffer res = new StringBuffer();\n \n TestStatus status = (TestStatus)testResults.elementAt(i);\n String url = status.getScriptName();\n \n res.append(\"Script=\").append(url);\n String r;\n switch (status.getStatus()) {\n case TestStatus.SUCCESS:\n r = \"SUCCESS\";\n success++;\n break;\n case TestStatus.FAILURE:\n r = \"FAILURE\";\n failed++;\n // Record that we had an error\n errorCode = -1;\n break;\n case TestStatus.SKIPPED:\n r = \"SKIPPED\";\n skipped++;\n break;\n default:\n r = \"UNDEFINED\";\n break;\n }\n \n res.append(\" Result=\").append(r);\n String detailedError = status.getDetailedError();\n tot++;\n if (detailedError != null) {\n res.append(\" Error=\").append(detailedError);\n }\n Log.info(TAG_LOG, res.toString());\n }\n Log.info(TAG_LOG, \"---------------------------------------\");\n Log.info(TAG_LOG, \"Total number of tests: \" + tot);\n Log.info(TAG_LOG, \"Total number of success: \" + success);\n Log.info(TAG_LOG, \"Total number of failures: \" + failed);\n Log.info(TAG_LOG, \"Total number of skipped: \" + skipped);\n long secs = (endTime - startTime) / 1000;\n Log.info(TAG_LOG, \"Total execution time: \" + secs);\n } else {\n Log.info(TAG_LOG, \"No tests performed\");\n }\n Log.info(TAG_LOG, \"***************************************\");\n }", "public void onTestSuccess(ITestResult result) {\n \tSystem.out.println(\"The test case is passed :\"+result.getName());\n }", "@Override\r\n\tpublic void onTestSuccess(ITestResult Result) {\n\t\tSystem.out.println(\"onTestSuccess :\"+ Result.getName());\r\n\t}", "@Test\n public void resultTest() {\n assertEquals(Integer.valueOf(1), authResponse.getResult());\n }", "@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}", "public CommandResultTest() {\n super(CommandResult.EMPTY);\n }", "public void test_execute() throws Throwable {\r\n\t\t\r\n\t\tCLIService service = null;\r\n\t\t\r\n\t\t// Ping\r\n\t\ttry {\r\n\t\t\tservice = CLIServiceWrapper.getService();\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PING + \" \" + TEST_PING_ARG0);\r\n\t\t\tif ( CLIServiceTools.isResponseOkAndComplete(response) ) {\r\n\t\t\t\tPASS(TEST_PING);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PING, \"Response not ok. response=\" + response);\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PING,\"ping failed to exception:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\t// Process list - log and cli\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) >= 0) &&\r\n\t\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) >= 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) >= 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST,\"process list failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\t\t\r\n\t\t// Process list - log only - the CLI output should not contain any validations, just the OK.\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST + \" =\" + CLIServiceConstants.COMMAND_PROCESSLIST_LOG_VALUE);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) < 0) &&\r\n\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) < 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) < 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST_LOG);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST_LOG, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST_LOG,\"process list (log only) failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\r\n\t}", "public void onTestSuccess(ITestResult result) {\n\t\t\n\t}", "void onTestSuccess(ITestResult result);", "@Override\n\t\tpublic void onTestSuccess(ITestResult result) {\n\t\t\tSystem.out.println((result.getMethod().getMethodName() + \" passed!\"));\n\t test.get().pass(\"Test passed\");\n\t\t\t\n\t\t}", "@Test \r\n\tpublic void testGetResults() {\r\n\t\tsessionController.login(testC1Doctor1, getCampus(0));\r\n\t\tdoctorController.consultPatientFile(testC1Patient1);\r\n\t\tList<IResult> resultsTestPatient1 = doctorController.getResults();\r\n\t\tassertEquals(resultsTestPatient1, testC1Patient1.getPatientFile().getResults());\r\n\t}", "@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}", "@Override\n public void onTestSuccess(ITestResult result) {\n\n }", "public TestOutcome executeTests()\n\t//throws InternalBuildServerException//, IOException \n\t{\n\t\tString buildServerTestFilesDir = getDirectoryFinder().getTestFilesDirectory().getAbsolutePath() + File.separator;\n\t\t\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n //TODO Factor the amount of memory and the extra -D parameters into config.properties\n javaArgs.add(\"-Xmx256m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n String vmArgs = tester.getTestProperties().getVmArgs();\n if (vmArgs != null) {\n // Break up into separate tokens if necessary\n StringTokenizer tokenizer = new StringTokenizer(vmArgs);\n while (tokenizer.hasMoreElements()) {\n String nextArg = tokenizer.nextToken();\n nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n // nextArg = nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n }\n }\n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\" + getProjectSubmission().getProjectJarFile().getAbsolutePath() + \"\");\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\" + getDirectoryFinder().getBuildDirectory().getAbsolutePath());\n\t\t// Add trusted code bases\n\t\tfor (Iterator<TrustedCodeBase> i = getTrustedCodeBaseFinder().getCollection().iterator(); i.hasNext(); ) {\n\t\t\tTrustedCodeBase trustedCodeBase = i.next();\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\" + trustedCodeBase.getValue());\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\" \n + new File(getDirectoryFinder().getTestFilesDirectory(), \"security.policy\").getAbsolutePath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tif (nextTestNumber > 0) {\n\t\t\tjavaArgs.add(\"-startTestNumber\");\n\t\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\t\t}\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType);\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties().getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInSeconds() != 0) {\n\t\t\ttimeoutInSeconds = testCase.getMaxTimeInSeconds();\n getLog().trace(\"Using @MaxTestTime(value=\" +timeoutInSeconds+ \") annotation\");\n }\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\t\t\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir() && !testType.equals(TestOutcome.STUDENT_TEST))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\t\t\n\t\tgetLog().debug(\"TestRunner working directory: \" +testRunnerCWD);\n\t\t\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\t//XXX What is this timing? This assumes we're timing the entire process, which\n\t\t// we're clearly not doing from here\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t\ttestRunner = Runtime.getRuntime().exec(\n\t\t\t\t\tjavaArgs.toArray(new String[javaArgs.size()]),\n\t\t\t\t\tenvironment,\n\t\t\t\t\ttestRunnerCWD\n\t\t\t);\n \n String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n try {\n int pid=MarmosetUtilities.getPid(testRunner);\n getLog().debug(\"Subprocess for submission \" +getProjectSubmission().getSubmissionPK() +\n \" for testSetup \" +getProjectSubmission().getProjectJarfilePK() +\n \" for \"+testType +\" \"+nextTestNumber+\n \" \" +testMethod+\n \" in testClass \" +testClass+\n \" has pid = \" +pid);\n } catch (IllegalAccessException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n } catch (NoSuchFieldException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n }\n \n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(), testRunner.getErrorStream());\n\t\t\tmonitor.start();\n\t\t\t\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n // Groovy, we finished before the alarm went off.\n // Disable it (and clear our interrupted status)\n // in case it went off just after the process wait\n // finished.\n alarm.turnOff();\n \n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n if (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n getLog().warn(\"Clover could not be initialized due to an AccessControlException. \" +\n \" Please check your security.policy file and make sure that student code \" +\n \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n }\n\t\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult=getFullTestName() +\" failed with IOException: \" +e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult=e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n getLog().trace(\"Timeout for \" +testType+ \" \" +testMethod+ \" \" +nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber, TestOutcome.TIMEOUT, shortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning)\n\t\t\t\ttestRunner.destroy();\n\t\t}\n\t\t\n\t\tif (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName() +\" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass,\n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t}\n\t\t\n\t\tgetLog().debug(getFullTestName()+ \" test finished with \" + new File(outputFilename).length() +\n\t\t\t\t\" bytes of output\");\n\n\t\treturn readTestOutcomeFromFile();\n\t}", "@Override\r\n\tpublic void onTestStart(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test start\"+\" \"+result.getName());\r\n\t}", "public static void main(String[] args) {\n\t\ttestStreamMapReduce();\r\n\t\t//testMethodReference();\r\n\t}", "@Test\n public void testDAM30103001() {\n // settings as done for testDAM30102001 are identical\n testDAM30102001();\n }", "@Test\n public void testMain() {\n System.out.println(\"main\");\n String[] args = null;\n CashRegister.main(args);\n // TODO review the generated test code and remove the default call to fail.\n //fail(\"The test case is a prototype.\");\n }", "@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }", "@Test\n\tvoid testAdd() {\n\t\tint result = calculator.add(1,3);//act\n\t\tassertEquals(4,result);//assert//customized the failed message \"Test failed\"\n\t}", "public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}", "public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}", "public void onTestSuccess(ITestResult result) {\n\t\t\r\n\t}", "@Test\n\tpublic void testGetOperationResults_1()\n\t\tthrows Exception {\n\t\tSAPHostControl_BindingStub fixture = new SAPHostControl_BindingStub(new URL(\"\"), new DeployWSServiceLocator());\n\t\tString aOperationID = \"\";\n\t\tOperationOptions aOptions = new OperationOptions();\n\n\t\tOperationResult result = fixture.getOperationResults(aOperationID, aOptions);\n\n\t\t// add additional test code here\n\t\tassertNotNull(result);\n\t}", "public static void main(String[] args) {\r\n System.out.println(runAllTests());\r\n }", "public static void main(String[] args) {\n\ttest(tests);\n }", "@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}", "@Override\n public boolean perform(final AbstractBuild<?, ?> build, final Launcher launcher,\n final BuildListener listener) {\n\n boolean result = false;\n if (Result.SUCCESS.equals(build.getResult()) || Result.UNSTABLE.equals(build.getResult())) {\n\n FilePath ws = build.getWorkspace();\n if (ws == null) {\n listener.error(\"No workspace defined!\");\n build.setResult(Result.FAILURE);\n result = false;\n } else {\n for (ResultSet resultSet : getResultSets()) {\n if (StringUtils.isEmpty(resultSet.getSpec())) {\n listener.getLogger().println(\"Empty result spec implementation detected\");\n } else {\n listener.getLogger().println(\n \"The test result(s) contained in target \" + resultSet.getSpec()\n + \" will be exported to the \" + \"Klaros-Testmanagement Server at \"\n + getUrl(url) + \" using the \" + resultSet.getFormat() + \" format.\");\n listener.getLogger().print(\"With parameters Project[\" + config + \"]\");\n if (StringUtils.isNotBlank(iteration)) {\n listener.getLogger().print(\" Iteration[\" + iteration + \"]\");\n }\n listener.getLogger().println(\n \" Environment[\" + env + \"] and SUT[\" + sut + \"].\");\n\n try {\n FileCallableImplementation exporter =\n new FileCallableImplementation(getJenkinsInstance().getRootUrl(), build\n .getProject().getName(), build.getNumber(), build\n .getEnvironment(listener), build.getBuildVariables(), listener);\n exporter.setKlarosUrl(getKlarosUrl(url));\n exporter.setResultSet(resultSet);\n exporter.setConfig(config);\n exporter.setIteration(iteration);\n exporter.setSut(sut);\n exporter.setEnv(env);\n exporter.setUsername(username);\n exporter.setPassword(password.getPlainText());\n exporter.setCreateTestSuite(createTestSuite);\n ws.act(exporter);\n\n listener.getLogger().println(\"Test result(s) successfully exported.\");\n\n } catch (IOException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n } catch (InterruptedException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n } catch (RuntimeException e) {\n listener.getLogger().println(\"Failure to export test result(s).\");\n e.printStackTrace(listener.getLogger());\n }\n\n result = true;\n }\n }\n }\n } else {\n listener.getLogger().println(\n \"Skipping export of test results to Klaros-Testmangement due to build status\");\n result = true;\n }\n return result;\n }", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}", "@Test\r\n\tpublic void testNums() {\n\t\tint num1=10;int num2=10;\r\n\t\t\r\n\t\t//Test here:\r\n\t\t//assertTrue(ClientMain.compareNums(num1, num2));\r\n\t}", "public int testmethod1()\n\t{\n\t\treturn 0;\n\t\t\n\t}", "TestClassExecutionResult assertTestPassed(String name, String displayName);", "public void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "public void testGet() {\n\t//int i = 5;\n\ttitle();\n\tfor (int i = 1; i <= TestEnv.parallelism; i++) {\n\t this.parallelism = i;\n\t super.testGet();\n\t}\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "public TestCase pass();", "public static void runTests(Preferences p) throws InvalidTagFormatException, FileNotFoundException, IOException {\n \n String testCaseFile = p.getTestFile();\n String testingPath = p.getTestPath();\n String resultsFormat = p.getFormat();\n boolean ignoreSpaCap = p.getIgnoreSpaCap();\n boolean removeBlankLines= p.getRemoveBlankLines();\n boolean debug = p.getDebug();\n JTextArea statusTextArea = p.getStatusTextArea();\n ProgramSettings settings= p.getSettings();\n\n // ultimately we need to figure actual OS\n OperatingSystem opSys = new OperatingSystemWindows(); \n \n String tempProgramFileName = settings.getTempProgramFileName();\n String tempInputFileName = settings.getTempInputFileName();\n String tempOutputFileName = settings.getTempOutputFileName();\n // TODO Replace this with actual storage of name in settings\n String tempErrorFileName = settings.getTempOutputFileName();\n int lastPeriod = tempErrorFileName.lastIndexOf(\".\");\n tempErrorFileName = tempErrorFileName.substring(0, lastPeriod) + \"Error$\"\n + tempErrorFileName.substring(lastPeriod);\n String resultsFileName = settings.getResultsFileName();\n \n \n //Ty Carpenter\n //From issue #89, added a new statistic variable to see if the test passes or fails\n //NOCOMP tests don't keep track of statistics, only if the test runs, therefore a variable is need to see if that run fails\n //nocompInTests keeps track to see if there is a single nocomp test so the results prints ALL TESTS RAN\n boolean testsSuccessful = true;\n boolean nocompInTests = false;\n \n int incorrectValues = 0;\n int incorrectText = 0;\n int incorrectSpacing = 0;\n int extraBlankLines = 0;\n int missingBlankLines = 0;\n int canNotRun = 0;\n int executionErrors = 0;\n\n //Brendan Villnave lines 48-51\n //From issue #111 I added the time of testing in military format\n //also tells you the day you tested the file\n Date current = new Date();\n statusTextArea.append(\"Date and time tested: \"+ current + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n testingPath = testingPath + \"/\";\n statusTextArea.append(\"Test Case File: \" + p.getTestFile() + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n statusTextArea.append(\"Testing path: \" + testingPath + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n\n\n List<String> tests = new LinkedList<>();\n List<String> includes = new ArrayList<>();\n //Define Lists for storing information about files tested and whether\n //testes passed or failed.\n List<String> fileNames = new ArrayList<>();\n List<Integer> testsPassed = new ArrayList<>();\n List<Integer> testsApproximate = new ArrayList<>();\n List<Integer> testsRun = new ArrayList<>();\n //new list that stores information about nocompFiles run\n List<Integer> nocompTestsRun = new ArrayList<>();\n \n //Ty Carpenter Issue #89\n //boolean variable if NOCOMP tag is present\n boolean noComp = false;\n \n try {\n PytestFileReader testFile = new PytestFileReader(testCaseFile);\n tests = testFile.getText();\n includes = testFile.getIncludedFiles();\n } catch (Exception ex) {\n statusTextArea.append(\"Can't read test file: \" + testCaseFile + \"\\n\");\n }\n \n //Ty Carpenter Issue #94\n //Finds a Run tag in tests and transforms it into a NOCOMP test tag\n \n for(int i = 0; i < tests.size(); i++)\n {\n \n String possibleRunTag = tests.get(i);\n String upperPossibleRunTag = possibleRunTag.toUpperCase();\n String keepFile = \"\";\n if(upperPossibleRunTag.length() > 10)\n {\n \n String t = upperPossibleRunTag.substring(0, 10);\n \n if(t.equals(\"<RUN CODE=\"))\n {\n \n if(upperPossibleRunTag.substring(upperPossibleRunTag.length()-1,upperPossibleRunTag.length()).equals(\">\") && upperPossibleRunTag.substring(upperPossibleRunTag.length()-2,upperPossibleRunTag.length()-1).equals(\"/\"))\n {\n \n keepFile = possibleRunTag.substring(10, possibleRunTag.length() - 2);\n String newTag = \"<test code=\" + keepFile + \"nocomp>\";\n tests.set(i, newTag);\n tests.add(i+1, \"</test>\");\n }\n }\n }\n \n }\n \n // Process any COPY tags to copy files from the test case folder to\n // the folder under test\n \n String testCasePath = testCaseFile.substring( 0, testCaseFile.lastIndexOf( \"/\"));\n //testCaseFile.substring( 0, testCaseFile.lastIndexOf( \"/\"));\n \n \n for( String line : tests )\n {\n String upper = line.toUpperCase();\n // TODO: Not sure if the test for length is necessary\n // TODO: This is very demanding for spacing, etc.\n if( upper.length() > 13 && upper.startsWith( \"<COPY FILE=\") && upper.endsWith( \"/>\" ) )\n {\n String fileName = line.substring( line.indexOf( \"\\\"\" )+1, line.lastIndexOf( \"\\\"\" ) );\n String sourceFile = testCasePath + \"/\" + fileName;\n String destFile = testingPath + fileName;\n \n if( opSys.copy( sourceFile, destFile ) )\n {\n statusTextArea.append( \"COPIED: \" + fileName + \"\\n\" );\n \n }\n else\n {\n statusTextArea.append( \"*** NOT COPIED ***: \" + fileName + \"\\n\" );\n \n // might want to do something else\n } \n }\n } \n \n FileNameMapper fileNameMapper = \n new FileNameMapper( null, true, tests, testingPath );\n \n if( 0 < fileNameMapper.unknownCount() )\n {\n fileNameMapper.setVisible( true );\n if( !fileNameMapper.okClicked() )\n {\n statusTextArea.append(\"Testing cancelled by user.\");\n return;\n }\n }\n \n List<String> results = new LinkedList<>();\n \n if (!testCaseFile.endsWith(\".pytest\")) {\n statusTextArea.append(\"No tests were run because the Test Case File was not a PYTEST file.\");\n // ?? : statusTextArea.update(statusTextArea.getGraphics()); \n return;\n }\n \n for (String str : includes) {\n if (str.endsWith(\".py\")) {\n statusTextArea.append(\"The tag to include \" + str + \" was ignored because its argument was not a .pytest file.\\n\");\n }\n }\n \n TestTagParser testParser = new TestTagParser(tests);\n RUN_TESTS:\n while (testParser.hasNext()) {\n\n // Step #1 - Read the test case from the file\n TagBlock block = testParser.next();\n String pythonFileName = parseFileArg(block.getArgs(), statusTextArea );\n String userFileName = fileNameMapper.map( pythonFileName ); \n List<String> testData = block.getData();\n //Find out if the file is currently in the List of tested files and\n //if so where.\n int positionInNameList = fileNames.indexOf(pythonFileName);\n if(positionInNameList==-1)\n {\n //Initialize a new element in the Lists for this new .py file.\n fileNames.add(pythonFileName);\n positionInNameList = fileNames.size()-1;\n testsPassed.add(0);\n testsApproximate.add(0);\n nocompTestsRun.add(0);\n testsRun.add(0);\n }\n //Ty Carpenter Issue #89\n //Wherever a statistic is counted (like canNotRun, missingBlankLines, etc>)\n // check to see if there is a NOCOMP tag is present so that statistics are NOT counted in the test results\n //Either way, if there is an error, testsSuccessful becomes false\n try {\n //testPassed start out true and is set to false if the test fails.\n if( userFileName.equals( \"(none)\") )\n {\n boolean testPassed = false;\n if(!hasNoCompArg(block.getArgs()))\n {\n canNotRun++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n results.add(\"Skipped \" + pythonFileName + \" - NO USER FILE\" );\n results.add( \"\" );\n statusTextArea.append(\"Skipped \" + pythonFileName + \" - NO USER FILE\\n\" );\n statusTextArea.update(statusTextArea.getGraphics());\n }\n else\n {\n boolean testPassed = true;\n boolean testApproximate = true;\n \n if( userFileName.equals( pythonFileName ) )\n {\n results.add(\"Testing \" + pythonFileName + \"...\");\n }\n else\n {\n results.add(\"Testing \" + pythonFileName + \n \" >>> \" + userFileName + \"...\");\n }\n if (true) // TODO should be if (verbose)\n {\n if( userFileName.equals( pythonFileName ) )\n {\n statusTextArea.append(\"Testing \" + pythonFileName + \"...\\n\");\n }\n else\n {\n statusTextArea.append(\"Testing \" + pythonFileName + \" (\" + userFileName + \")...\\n\");\n }\n statusTextArea.update(statusTextArea.getGraphics());\n }\n\n // Step #2 - Modify the student's code\n createModifiedProgram(testingPath, userFileName, tempProgramFileName);\n\n // Step #3 - Create the file with the inputs to the program\n createProgramInputs(testingPath, testData, tempInputFileName);\n\n // Step #4 - Run the student's program\n int rc = PythonExecutor.run(testingPath, tempProgramFileName,\n tempInputFileName,\n tempOutputFileName,\n tempErrorFileName,\n statusTextArea,\n settings);\n\n if( true ) // 0 == rc )\n {\n // Step #5 - Read the results from the output file\n TextFileReader fileIn = new TextFileReader(testingPath + tempOutputFileName);\n List<String> programOutput = fileIn.getText();\n\n if( 0 != rc && !hasNoCompArg(block.getArgs()))\n {\n // programOutput.add( \"EXECUTION ERROR RC=\" + rc );\n // TextFileReader errorIn = new TextFileReader(testingPath + tempErrorFileName);\n // List<String> errorText = errorIn.getText();\n // // Add the last two lines to the program output file, if present\n // if( errorText.size() >= 2 )\n // {\n // programOutput.add( errorText.get( errorText.size() - 2 ) );\n // }\n // if( errorText.size() >= 1 )\n // {\n // programOutput.add( errorText.get( errorText.size() - 1 ) );\n // } \n\n executionErrors++;\n testPassed = false;\n testsSuccessful = false;\n }\n if(0 != rc && hasNoCompArg(block.getArgs()))\n {\n testsSuccessful = false;\n \n }\n\n TextUtilities.removeTrailingBlanks( programOutput );\n\n // Step #6 - Compare the results to the expected values\n // TODO: move these inside the comparitor ??\n testData = InputTagParser.removeInputTags(testData);\n // List<String> outputText = ValueTagParser.removeValueTags( testData );\n \n int width = TextUtilities.maximumLength( programOutput );\n\n \n if (removeBlankLines) {\n while (testData.remove(\"\")) { /*\n * Do Nothing\n */ }\n while (programOutput.remove(\"\")) { /*\n * Do Nothing\n */ }\n }\n \n if (!hasNoCompArg(block.getArgs())) {\n // TODO: Convert to use iterators\n while (0 != testData.size() && 0 != programOutput.size()) {\n String testLine = testData.get(0);\n String progLine = programOutput.get(0);\n\n if (testLine.equals(\"\") && !progLine.equals(\"\")) {\n results.add(\"! missing blank line !\");\n testData.remove(0);\n missingBlankLines++;\n testsSuccessful = false;\n testPassed = false;\n } else if (!testLine.equals(\"\") && progLine.equals(\"\")) {\n results.add(\"! extra blank line !\");\n programOutput.remove(0);\n extraBlankLines++;\n testsSuccessful = false;\n testPassed = false;\n } else {\n TextLineComparator comp =\n new TextLineComparator(testLine, progLine);\n //TODO: Count multiple errors on one line?\n boolean exact = comp.equalsExact();\n boolean approx = comp.equalsSomeWhat();\n\n if (exact) {\n results.add(\"= \" + testLine);\n } else if (approx) {\n if (ignoreSpaCap) {\n results.add(\"~ \" + testLine);\n } else {\n testPassed=false;\n incorrectText++;\n incorrectSpacing++;\n testsSuccessful = false;\n\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"~ \" + progLine);\n results.add(\"> \" + ValueTagParser.removeValueTags(testLine));\n } else {\n results.add(\"~ \" + TextUtilities.adjustLength( progLine, width ) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testLine));\n }\n }\n } // else if( comp.equalValues() )\n // {\n // \tresults.add( \"# \" + programOutput.get(i) );\n // results.add( \"> \" + ValueTagParser.removeValueTags(testData.get(i)) );\n // }\n else {\n incorrectText++;\n testsSuccessful = false;\n testPassed = false;\n testApproximate = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X \" + progLine);\n results.add(\"> \" + ValueTagParser.removeValueTags(testLine));\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( progLine, width ) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testLine));\n }\n }\n testData.remove(0);\n programOutput.remove(0);\n }\n }\n while (0 != testData.size()) {\n testApproximate = false;\n testPassed = false;\n if( 0 == rc )\n {\n // Only add this if there was not a python error\n incorrectText++;\n testsSuccessful = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X **NO*OUTPUT*LINE**\");\n results.add(\"> \" + ValueTagParser.removeValueTags(testData.get(0)));\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( \"**NO*OUTPUT*LINE**\", width) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testData.get(0)));\n }\n }\n testData.remove(0);\n }\n while (0 != programOutput.size()) {\n testApproximate = false;\n testPassed = false;\n incorrectText++;\n testsSuccessful = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X \" + programOutput.get(0));\n results.add(\"> **NO*OUTPUT*LINE**\");\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( programOutput.get(0), width )\n + \" >-SHOULD BE-> **NO*OUTPUT*LINE**\");\n }\n programOutput.remove(0);\n }\n } else {\n \n \n //Ty Carpenter Issue #89\n //Variable when NOCOMP tag is found becomes true\n // NoComp argument present\n //nocompInTests is true so now will print ALL TESTS RUN if they all pass\n nocompInTests = true;\n noComp = true;\n for (int i = 0; i < programOutput.size(); i++) {\n results.add(\" \" + programOutput.get(i));\n }\n }\n }\n else\n {\n if(!hasNoCompArg(block.getArgs()))\n {\n executionErrors++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n testPassed = false;\n testApproximate = false;\n if (debug) {\n break RUN_TESTS;\n }\n }\n //Ty Carpenter Issue #89\n //If there is no NOCOMP tag, testPassed and testApproximate are counted\n if(noComp == false)\n {\n\n TextFileReader errorIn = new TextFileReader(testingPath + tempErrorFileName);\n List<String> errorOutput = errorIn.getText();\n for( String line : errorOutput )\n {\n line = line.replace( testingPath+tempProgramFileName, userFileName );\n results.add( \"E \" + line );\n }\n\n results.add(\"\");\n\n\n if( testPassed )\n {\n testsPassed.set(positionInNameList,\n testsPassed.get(positionInNameList)+1);\n }\n \n if( testApproximate )\n {\n testsApproximate.set(positionInNameList,\n testsApproximate.get(positionInNameList)+1);\n }\n }\n //Ty Carpenter Issue #89\n //Resets NOCOMP argument for future tests\n else\n {\n //nocompTestsRun is counted\n nocompTestsRun.set(positionInNameList,\n testsRun.get(positionInNameList)+1);\n noComp = false;\n }\n testsRun.set(positionInNameList,\n testsRun.get(positionInNameList)+1);\n\n } \n } \n catch (Exception ex) \n {\n results.add(\"Exception: \" + ex.getMessage() + \"\\n\");\n statusTextArea.append(\"Can't run test: \" + pythonFileName + ex.getMessage() + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n if(!hasNoCompArg(block.getArgs()))\n {\n canNotRun++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n if (debug) \n {\n break RUN_TESTS;\n }\n }\n }\n //Brendan Villnave\n //Edited the following lines so everything after \"Run Completed!\"\n //gets added to the $TEST$RESULTS$.txt file as well\n TextFileWriter outFile = new TextFileWriter(testingPath + resultsFileName);\n if (!debug) {\n deleteFile(testingPath + tempProgramFileName);\n deleteFile(testingPath + tempInputFileName);\n deleteFile(testingPath + tempOutputFileName);\n deleteFile(testingPath + tempErrorFileName);\n }\n statusTextArea.append(\"Run completed!\\n\\n\");\n //Ty Carpenter Issue #89\n //testsSuccessful variable is now counted in overal statistics of the tests\n \n if (incorrectValues == 0\n && incorrectText == 0\n && incorrectSpacing == 0\n && extraBlankLines == 0\n && missingBlankLines == 0\n && canNotRun == 0\n && executionErrors == 0\n && testsSuccessful == true) {\n // TODO - in debug mode, this gets printed sometimes when it shouldn't\n //Determines ALL TESTS RUN vs ALL TESTS RUN EXACTLY CORRECTLY\n if(nocompInTests==true)\n {\n statusTextArea.append(\"ALL TESTS RAN\\n\");\n results.add(\"ALL TESTS RUN EXACTLY CORRECTLY\\n\");\n }\n else\n {\n statusTextArea.append(\"ALL TESTS EXACTLY CORRECT\\n\");\n results.add(\"ALL TESTS RUN EXACTLY CORRECTLY\\n\");\n }\n } else {\n // TODO - give option to open student's code\n statusTextArea.append(\"Incorrect values ............ \" \n + incorrectValues + \"\\n\");\n results.add(\"Incorrect values ............ \" \n + incorrectValues + \"\\n\");\n statusTextArea.append(\"Lines with errors ........... \" \n + incorrectText + \"\\n\");\n results.add(\"Lines with errors ........... \" \n + incorrectText + \"\\n\");\n statusTextArea.append(\"Bad spacing/capitalization .. \" \n + incorrectSpacing + \"\\n\");\n results.add(\"Bad spacing/capitalization .. \" \n + incorrectSpacing + \"\\n\");\n statusTextArea.append(\"Extra/missing blank lines ... \"\n + (extraBlankLines + missingBlankLines) + \"\\n\");\n results.add(\"Extra/missing blank lines ... \"\n + (extraBlankLines + missingBlankLines) + \"\\n\");\n statusTextArea.append(\"Python errors ............... \" \n + (executionErrors)+\"\\n\");\n results.add(\"Python errors ............... \" \n + (executionErrors)+\"\\n\");\n statusTextArea.append(\"Can't run test .............. \" \n + canNotRun +\"\\n\");\n results.add(\"Can't run test .............. \" \n + canNotRun +\"\\n\");\n statusTextArea.append(\"Code was successful .............. \" \n + testsSuccessful +\"\\n\");\n results.add(\"Code was successful .............. \" \n + testsSuccessful +\"\\n\");\n }\n statusTextArea.append(\"\\n\");\n \n for(int i=0; i<fileNames.size(); i++)\n {\n int passes = testsPassed.get(i);\n int approximate = testsApproximate.get(i);\n int run = testsRun.get(i);\n int nocompRun = nocompTestsRun.get(i);\n \n String dots = \" ................................................\";\n statusTextArea.append( ( fileNames.get(i)+dots).substring(0,41)+\" \");\n results.add(( fileNames.get(i)+dots).substring(0,41)+\" \");\n \n \n if(run == 0 )\n \n {\n statusTextArea.append(\"NO TESTS RUN\\n\");\n results.add(\"NO TESTS RUN\\n\");\n }\n //new results output All Tests Ran (check output)\n else if(nocompRun == run)\n {\n statusTextArea.append(\"All Tests Ran (check output)\\n\");\n results.add(\"All Tests Ran (check output)\\n\");\n }\n else if(passes == run)\n {\n statusTextArea.append(\"All Tests Passed\\n\");\n results.add(\"All Tests Passed\\n\");\n }\n else{\n \n statusTextArea.append( passes + \"/\" + approximate + \"/\" + \n run + \" tests passed/approximate/run\\n\");\n results.add(passes + \"/\" + approximate + \"/\" + \n run + \" tests passed/approximate/run\\n\");\n }\n }\n\n statusTextArea.update(statusTextArea.getGraphics());\n outFile.writeLines(results);\n outFile.close();\n \n }", "@Test\n public void resultCodeTest() {\n assertEquals(\"000\", authResponse.getResultCode());\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "public void soaktest() {\n\t\ttry {\n\t\t\tint errCount = 0;\n\n\t\t\tfor (int i = 1; i <= 100; i++) {\n\t\t\t\tRegression test = new Regression();\n\t\t\t\ttest0();\n\t\t\t\ttest.test1(m1);\n\t\t\t\ttest.test2(m1);\n\t\t\t\ttest.test3(m1);\n\t\t\t\ttest.test4(m1);\n\t\t\t\ttest.test5(m1);\n\t\t\t\ttest.test6(m1);\n\t\t\t\ttest.test7(m1, m2);\n\t\t\t\ttest.test8(m1);\n\t\t\t\ttest.test9(m2);\n\t\t\t\ttest.test10(m3);\n\t\t\t\ttest.test11(m1, m2);\n\t\t\t\ttest.test12(m1);\n\t\t\t\ttest.test13(m1);\n\t\t\t\ttest.test14(m1);\n\t\t\t\ttest.test15(m1);\n\t\t\t\ttest.test16(m1);\n\t\t\t\ttest.test17(m1);\n\t\t\t\ttest.test18(m4);\n\t\t\t\ttest.test19(m2, m3);\n\t\t\t\ttest.test97(m1);\n\t\t\t\tif (test.getErrors())\n\t\t\t\t\terrCount++;\n\t\t\t\tif ((i % 10) == 0) {\n\t\t\t\t\tSystem.out.println(\n\t\t\t\t\t\t\"error count = \" + errCount + \" rounds = \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t\tassertTrue(false);\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\ttest01();\n\t}", "public TypecheckResult interpretResults(TestConfiguration config, CompilationResult compilationResult) {\n List<TestDiagnostic> expectedDiagnostics = readDiagnostics(config, compilationResult);\n return TypecheckResult.fromCompilationResults(config, compilationResult, expectedDiagnostics);\n }", "@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\n\t}", "private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}", "@Test\n public void MyTest() {\n System.out.println(\"Parameterized Number is : \" + inputNumber);\n System.out.println(\"Expected Result is : \" + expectedResult);\n }", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n EvoSuiteFile evoSuiteFile0 = new EvoSuiteFile(\"|O\");\n FileSystemHandling.appendStringToFile(evoSuiteFile0, \"|O\");\n ErrorHandler errorHandler0 = ErrorHandler.getDefault();\n try { \n DBUtil.runScript(\"|O\", \"f[]zOYE\", '1', (Connection) null, true, errorHandler0);\n fail(\"Expecting exception: UnsupportedEncodingException\");\n \n } catch(UnsupportedEncodingException e) {\n }\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test\n\tpublic void testHw1_1000000LOC26method10_2()\n\t\tthrows Exception {\n\t\tshort var0 = (short) 1;\n\t\tString var1 = \"\";\n\t\tString var2 = \"\";\n\n\t\tlong result = hw1_1000000LOC26.hw1_1000000LOC26method10(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals(0L, result);\n\t}", "@Test(timeout = 4000)\n public void test011() throws Throwable {\n ResultMatrixLatex resultMatrixLatex0 = new ResultMatrixLatex();\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertFalse(resultMatrixLatex0.getShowAverage());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertNotNull(resultMatrixLatex0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixLatex0.setShowAverage(true);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance0 = new ResultMatrixSignificance();\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertEquals(40, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getShowAverage());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotNull(resultMatrixSignificance0);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n resultMatrixSignificance0.assign(resultMatrixLatex0);\n assertFalse(resultMatrixLatex0.getEnumerateRowNames());\n assertEquals(0, resultMatrixLatex0.getRowNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultCountWidth());\n assertEquals(2, resultMatrixLatex0.getMeanPrec());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixLatex0.showStdDevTipText());\n assertEquals(\"Generates the matrix output in LaTeX-syntax.\", resultMatrixLatex0.globalInfo());\n assertEquals(0, resultMatrixLatex0.getDefaultRowNameWidth());\n assertFalse(resultMatrixLatex0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixLatex0.significanceWidthTipText());\n assertTrue(resultMatrixLatex0.getShowAverage());\n assertFalse(resultMatrixLatex0.getShowStdDev());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixLatex0.rowNameWidthTipText());\n assertEquals(\"LaTeX\", resultMatrixLatex0.getDisplayName());\n assertEquals(2, resultMatrixLatex0.getDefaultMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixLatex0.removeFilterNameTipText());\n assertFalse(resultMatrixLatex0.getPrintColNames());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateColNamesTipText());\n assertEquals(0, resultMatrixLatex0.getSignificanceWidth());\n assertEquals(0, resultMatrixLatex0.getCountWidth());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixLatex0.printColNamesTipText());\n assertEquals(1, resultMatrixLatex0.getColCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixLatex0.colNameWidthTipText());\n assertFalse(resultMatrixLatex0.getRemoveFilterName());\n assertEquals(0, resultMatrixLatex0.getDefaultStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixLatex0.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixLatex0.stdDevPrecTipText());\n assertTrue(resultMatrixLatex0.getPrintRowNames());\n assertFalse(resultMatrixLatex0.getDefaultPrintColNames());\n assertEquals(1, resultMatrixLatex0.getVisibleColCount());\n assertEquals(0, resultMatrixLatex0.getMeanWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixLatex0.countWidthTipText());\n assertEquals(0, resultMatrixLatex0.getDefaultColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultMeanWidth());\n assertEquals(0, resultMatrixLatex0.getColNameWidth());\n assertEquals(0, resultMatrixLatex0.getDefaultSignificanceWidth());\n assertFalse(resultMatrixLatex0.getDefaultRemoveFilterName());\n assertEquals(1, resultMatrixLatex0.getVisibleRowCount());\n assertTrue(resultMatrixLatex0.getDefaultEnumerateColNames());\n assertEquals(2, resultMatrixLatex0.getDefaultStdDevPrec());\n assertTrue(resultMatrixLatex0.getEnumerateColNames());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixLatex0.enumerateRowNamesTipText());\n assertEquals(0, resultMatrixLatex0.getStdDevWidth());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixLatex0.printRowNamesTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowStdDev());\n assertTrue(resultMatrixLatex0.getDefaultPrintRowNames());\n assertEquals(2, resultMatrixLatex0.getStdDevPrec());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixLatex0.meanPrecTipText());\n assertEquals(1, resultMatrixLatex0.getRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixLatex0.meanWidthTipText());\n assertFalse(resultMatrixLatex0.getDefaultShowAverage());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixLatex0.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n \n ResultMatrixSignificance resultMatrixSignificance1 = new ResultMatrixSignificance();\n assertEquals(2, resultMatrixSignificance1.getDefaultMeanPrec());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance1.printRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultPrintColNames());\n assertEquals(1, resultMatrixSignificance1.getVisibleColCount());\n assertTrue(resultMatrixSignificance1.getPrintRowNames());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance1.showAverageTipText());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance1.meanPrecTipText());\n assertEquals(0, resultMatrixSignificance1.getCountWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultColNameWidth());\n assertEquals(40, resultMatrixSignificance1.getDefaultRowNameWidth());\n assertFalse(resultMatrixSignificance1.getDefaultRemoveFilterName());\n assertEquals(0, resultMatrixSignificance1.getDefaultStdDevWidth());\n assertEquals(0, resultMatrixSignificance1.getDefaultSignificanceWidth());\n assertEquals(2, resultMatrixSignificance1.getDefaultStdDevPrec());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance1.colNameWidthTipText());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance1.countWidthTipText());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateRowNamesTipText());\n assertFalse(resultMatrixSignificance1.getDefaultEnumerateRowNames());\n assertTrue(resultMatrixSignificance1.getDefaultEnumerateColNames());\n assertEquals(0, resultMatrixSignificance1.getDefaultMeanWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance1.stdDevWidthTipText());\n assertEquals(40, resultMatrixSignificance1.getRowNameWidth());\n assertFalse(resultMatrixSignificance1.getEnumerateRowNames());\n assertEquals(1, resultMatrixSignificance1.getColCount());\n assertEquals(1, resultMatrixSignificance1.getVisibleRowCount());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance1.meanWidthTipText());\n assertFalse(resultMatrixSignificance1.getRemoveFilterName());\n assertFalse(resultMatrixSignificance1.getDefaultShowAverage());\n assertEquals(2, resultMatrixSignificance1.getStdDevPrec());\n assertTrue(resultMatrixSignificance1.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance1.getSignificanceWidth());\n assertEquals(1, resultMatrixSignificance1.getRowCount());\n assertFalse(resultMatrixSignificance1.getPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance1.globalInfo());\n assertEquals(0, resultMatrixSignificance1.getDefaultCountWidth());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance1.showStdDevTipText());\n assertFalse(resultMatrixSignificance1.getShowAverage());\n assertEquals(0, resultMatrixSignificance1.getStdDevWidth());\n assertEquals(\"Significance only\", resultMatrixSignificance1.getDisplayName());\n assertTrue(resultMatrixSignificance1.getEnumerateColNames());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance1.removeFilterNameTipText());\n assertEquals(0, resultMatrixSignificance1.getColNameWidth());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance1.significanceWidthTipText());\n assertEquals(0, resultMatrixSignificance1.getMeanWidth());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance1.enumerateColNamesTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance1.printColNamesTipText());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance1.stdDevPrecTipText());\n assertEquals(2, resultMatrixSignificance1.getMeanPrec());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance1.rowNameWidthTipText());\n assertFalse(resultMatrixSignificance1.getShowStdDev());\n assertFalse(resultMatrixSignificance1.getDefaultShowStdDev());\n assertNotNull(resultMatrixSignificance1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance1.equals((Object)resultMatrixSignificance0));\n \n String[] stringArray0 = new String[24];\n resultMatrixSignificance0.setColNameWidth(0);\n assertEquals(40, resultMatrixSignificance0.getDefaultRowNameWidth());\n assertEquals(0, resultMatrixSignificance0.getDefaultSignificanceWidth());\n assertEquals(0, resultMatrixSignificance0.getCountWidth());\n assertEquals(\"The width of the counts (0 = optimal).\", resultMatrixSignificance0.countWidthTipText());\n assertFalse(resultMatrixSignificance0.getRemoveFilterName());\n assertEquals(\"Whether to output row names or just numbers representing them.\", resultMatrixSignificance0.printRowNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultShowStdDev());\n assertFalse(resultMatrixSignificance0.getDefaultRemoveFilterName());\n assertEquals(\"Whether to enumerate the column names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateColNamesTipText());\n assertEquals(1, resultMatrixSignificance0.getColCount());\n assertEquals(0, resultMatrixSignificance0.getDefaultMeanWidth());\n assertEquals(\"The number of decimals after the decimal point for the standard deviation.\", resultMatrixSignificance0.stdDevPrecTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultColNameWidth());\n assertEquals(\"The maximum width for the row names (0 = optimal).\", resultMatrixSignificance0.rowNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getColNameWidth());\n assertEquals(\"Whether to enumerate the row names (prefixing them with '(x)', with 'x' being the index).\", resultMatrixSignificance0.enumerateRowNamesTipText());\n assertTrue(resultMatrixSignificance0.getEnumerateColNames());\n assertEquals(0, resultMatrixSignificance0.getMeanWidth());\n assertFalse(resultMatrixSignificance0.getDefaultShowAverage());\n assertTrue(resultMatrixSignificance0.getDefaultEnumerateColNames());\n assertEquals(1, resultMatrixSignificance0.getVisibleRowCount());\n assertEquals(\"The maximum width of the column names (0 = optimal).\", resultMatrixSignificance0.colNameWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getDefaultCountWidth());\n assertEquals(\"The width of the standard deviation (0 = optimal).\", resultMatrixSignificance0.stdDevWidthTipText());\n assertFalse(resultMatrixSignificance0.getDefaultPrintColNames());\n assertEquals(\"Only outputs the significance indicators. Can be used for spotting patterns.\", resultMatrixSignificance0.globalInfo());\n assertEquals(\"The number of decimals after the decimal point for the mean.\", resultMatrixSignificance0.meanPrecTipText());\n assertEquals(2, resultMatrixSignificance0.getDefaultStdDevPrec());\n assertEquals(\"Significance only\", resultMatrixSignificance0.getDisplayName());\n assertEquals(0, resultMatrixSignificance0.getStdDevWidth());\n assertEquals(\"Whether to show the row with averages.\", resultMatrixSignificance0.showAverageTipText());\n assertEquals(1, resultMatrixSignificance0.getRowCount());\n assertEquals(\"Whether to display the standard deviation column.\", resultMatrixSignificance0.showStdDevTipText());\n assertTrue(resultMatrixSignificance0.getDefaultPrintRowNames());\n assertEquals(0, resultMatrixSignificance0.getRowNameWidth());\n assertFalse(resultMatrixSignificance0.getPrintColNames());\n assertEquals(2, resultMatrixSignificance0.getStdDevPrec());\n assertEquals(\"The width of the mean (0 = optimal).\", resultMatrixSignificance0.meanWidthTipText());\n assertEquals(0, resultMatrixSignificance0.getSignificanceWidth());\n assertFalse(resultMatrixSignificance0.getEnumerateRowNames());\n assertFalse(resultMatrixSignificance0.getShowStdDev());\n assertEquals(2, resultMatrixSignificance0.getMeanPrec());\n assertEquals(\"Whether to remove the classname package prefixes from the filter names in datasets.\", resultMatrixSignificance0.removeFilterNameTipText());\n assertEquals(\"Whether to output column names or just numbers representing them.\", resultMatrixSignificance0.printColNamesTipText());\n assertFalse(resultMatrixSignificance0.getDefaultEnumerateRowNames());\n assertEquals(\"The width of the significance indicator (0 = optimal).\", resultMatrixSignificance0.significanceWidthTipText());\n assertTrue(resultMatrixSignificance0.getShowAverage());\n assertEquals(0, resultMatrixSignificance0.getDefaultStdDevWidth());\n assertEquals(2, resultMatrixSignificance0.getDefaultMeanPrec());\n assertEquals(1, resultMatrixSignificance0.getVisibleColCount());\n assertTrue(resultMatrixSignificance0.getPrintRowNames());\n assertNotSame(resultMatrixSignificance0, resultMatrixSignificance1);\n assertEquals(0, ResultMatrix.SIGNIFICANCE_TIE);\n assertEquals(1, ResultMatrix.SIGNIFICANCE_WIN);\n assertEquals(2, ResultMatrix.SIGNIFICANCE_LOSS);\n assertFalse(resultMatrixSignificance0.equals((Object)resultMatrixSignificance1));\n \n stringArray0[0] = \")\";\n stringArray0[1] = \"$circ$\";\n stringArray0[2] = \"*\";\n stringArray0[3] = \" \";\n stringArray0[4] = \"$\\bullet$\";\n try { \n resultMatrixSignificance1.setOptions(stringArray0);\n fail(\"Expecting exception: NullPointerException\");\n \n } catch(NullPointerException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"weka.core.Utils\", e);\n }\n }", "public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"*********Test onTestSuccess :\"+result.getName());\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void onTestStart(ITestResult Result) {\n\t\t\r\n\t}", "public void onTestStart(ITestResult result) {\n\t\t\r\n\t}", "public void onTestStart(ITestResult result) {\n\t\t\r\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_10()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}" ]
[ "0.65322703", "0.6514849", "0.6441833", "0.6391102", "0.63234425", "0.630061", "0.62896097", "0.6262323", "0.6222853", "0.61889154", "0.61777484", "0.616313", "0.6150449", "0.61417717", "0.6130914", "0.6126899", "0.6125908", "0.6094383", "0.60905886", "0.60787475", "0.6060713", "0.6019442", "0.6001638", "0.59546816", "0.59327376", "0.59200865", "0.5916526", "0.5910634", "0.5899956", "0.5895872", "0.58920276", "0.5876156", "0.5867148", "0.5852861", "0.5851063", "0.58432305", "0.58403957", "0.58231705", "0.58220273", "0.58181626", "0.5813675", "0.58060765", "0.58040005", "0.57962614", "0.5792473", "0.57924324", "0.57798666", "0.57755643", "0.57740283", "0.57522005", "0.5750955", "0.57505393", "0.5748645", "0.5747403", "0.57472426", "0.5746497", "0.5744519", "0.57444006", "0.573792", "0.5734457", "0.57339036", "0.57339036", "0.5731277", "0.5728028", "0.5715976", "0.5715976", "0.57151294", "0.5701756", "0.5692637", "0.5692427", "0.5689537", "0.56886923", "0.5685917", "0.56851256", "0.5684776", "0.5681273", "0.56812465", "0.5680827", "0.56770927", "0.5674216", "0.5670606", "0.56700134", "0.5663133", "0.566278", "0.5660251", "0.56529725", "0.56479144", "0.5647425", "0.56464314", "0.5645742", "0.56407684", "0.56406343", "0.5636506", "0.56333447", "0.5632856", "0.5632603", "0.5629241", "0.56270766", "0.56270766", "0.5626098" ]
0.6742864
0
121 Runs the test case and collects the results in TestResult. 122
public void run(TestResult result) { result.run(this); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }", "public static void main(String[] args) {\n\t\t \n\t\tResult result1 = JUnitCore.runClasses(TestUnitForCreate.class);\n\t for (Failure failure : result1.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result1.wasSuccessful());\n\n\t Result result2 = JUnitCore.runClasses(TestUnitForReadByCalimNumber.class);\n\t for (Failure failure : result2.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result2.wasSuccessful());\n\t \n\t Result result3 = JUnitCore.runClasses(TestUnitForReadByLossDate.class);\n\t for (Failure failure : result3.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result3.wasSuccessful());\n\t \n\t\tResult result4 = JUnitCore.runClasses(TestUnitForUpdate.class);\n\t\tfor (Failure failure : result4.getFailures()) {\n\t\t\tSystem.out.println(failure.toString());\n\t\t}\n\t\tSystem.out.println(result4.wasSuccessful());\n\t \n\t Result result5 = JUnitCore.runClasses(TestUnitForReadVehicle.class);\n\t for (Failure failure : result5.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result5.wasSuccessful());\n \n\t Result result6 = JUnitCore.runClasses(TestUnitForDelete.class);\n\t for (Failure failure : result6.getFailures()) {\n\t System.out.println(failure.toString());\n\t }\n\t System.out.println(result6.wasSuccessful());\n\t \n\t}", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "@Override\n public void perform(Run<?, ?> run, FilePath workspace, Launcher launcher, TaskListener listener) throws InterruptedException, IOException \n {\n AggregatedTestResultAction currentTestResults = run.getAction(AggregatedTestResultAction.class);\n\n //retrieve the test results \n List<AggregatedTestResultAction.ChildReport> currentResults = currentTestResults.getResult();\n\n listener.getLogger().println(\"Running Test Checker Plugin\");\n\n //listener.getLogger().println(\"Current Build :- \", currentTestResults.getDisplayName());\n //listener.getLogger().println(\"Previous Build :- \", currentTestResults.getDisplayName());\n\n\n //iterate through the result of each test\n for(int i = 0; i < currentResults.size(); i++)\n {\n\n\t //obtain the report of a test\t\n\t AggregatedTestResultAction.ChildReport child = currentResults.get(i);\n\n\t //retreive the test result\n\t TestResult currentTestResultChild = (TestResult)child.result;\n\n\t //get the passed tests \n\t ArrayList<TestResult> currRes = ((ArrayList<TestResult>)currentTestResultChild.getPassedTests());\n\n\t //iterate through each passed test\n\t for(int j = 0; j < currRes.size(); j++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currRes.get(j);\n\n\t //obtain the status of the test in previous build\n\t TestResult previousTestResChild = currRes.get(j).getPreviousResult();\n\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\t\n\t // Case 1: Both passed\n\t if (currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Passed) : \" + currentTestResChild.getDisplayName());\n\t }\n\t // Case 2: Previous failed, newly passed\n\t if (currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Passing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n\n\t //get the failed tests \n\t ArrayList<TestResult> currResF = ((ArrayList<TestResult>)currentTestResultChild.getFailedTests());\n\n\t //iterate through each failed test\n\t for(int k = 0; k < currResF.size(); k++)\n\t {\n\t //obtain the status of the test in current build\n\t TestResult currentTestResChild = currResF.get(k);\n\n\t //obtain the status of the test in previous build\n\t\tTestResult previousTestResChild = currResF.get(k).getPreviousResult();\n\t // Check previous test result isnt null\n\t if (previousTestResChild == null) continue;\n\n\t // Case 3: Both failed\n\t if (!currentTestResChild.isPassed() && !previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"No Change (Failed) : \" + currentTestResChild.getDisplayName());\n\t } \n\t // Case 4: Previous passed, newly failed\n\t if (!currentTestResChild.isPassed() && previousTestResChild.isPassed())\n\t {\n\t listener.getLogger().println(\"Newly Failing Test : \" + currentTestResChild.getDisplayName());\n\t }\n\t }\n }\n }", "public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}", "static void executeTest() {\n int[] param1 = { // Checkpoint 1\n 12, 11, 10, -1, -15,};\n boolean[] expect = { // Checkpoint 2\n true, false,true, false, true,}; \n System.out.printf(\"課題番号:%s, 学籍番号:%s, 氏名:%s\\n\",\n question, gakuban, yourname);\n int passed = 0;\n for (int i = 0; i < param1.length; i++) {\n String info1 = \"\", info2 = \"\";\n Exception ex = null;\n boolean returned = false; //3\n try {\n returned = isDivable(param1[i]); //4\n if (expect[i] == (returned)) { //5\n info1 = \"OK\";\n passed++;\n } else {\n info1 = \"NG\";\n info2 = String.format(\" <= SHOULD BE %s\", expect[i]);\n }\n } catch (Exception e) {\n info1 = \"NG\";\n info2 = \"EXCEPTION!!\";\n ex = e;\n } finally {\n String line = String.format(\"*** Test#%d %s %s(%s) => \",\n i + 1, info1, method, param1[i]);\n if (ex == null) {\n System.out.println(line + returned + info2);\n } else {\n System.out.println(line + info2);\n ex.printStackTrace();\n return;\n }\n }\n }\n System.out.printf(\"Summary: %s,%s,%s,%d/%d\\n\",\n question, gakuban, yourname, passed, param1.length);\n }", "@Test\n public void run () {\n\t \n\t System.out.println(\"---------->\");\n\t //System.out.println(md5list.getResult());\n\t //System.out.println(hashsearch.getResult());\n\t \n\t \n\t \n\t // System.out.println(samples.Testing());\n\t //System.out.println(\"getserult: \"+samples.getResult());\n\t \n }", "public Integer call() throws IOException {\n \t\t\tint ret=90;\n \t\t\ttestCases = new ArrayList<String>();\n \t\t\trealIds = new ArrayList<String>();\n \t \tString path = \"./workspace/\"+jobname;\n\t\t\t\tlistener.getLogger().println(\"IL PATH DEL TESTRUN E' \"+path);\n \t\t\t/* folders = listFilesForFolder(new File(path),listener);\n \t\t\t// cerco il TestRun nell'svn di Polarion\n \tcheck:\tfor(String folder : folders){\n \t \tlistener.getLogger().println(\"confronto: \"+testrunid+\" - \"+folder);\n \t\t\t\tif(testrunid.equals(folder)){ \t\t\t\t\t\n \t\t\t\t\t// prelevo i TestCase relativi al TestRun\n \t\t\t\t\t */\n \t\t\t\t\ttestCases = getTestCases(path,listener);\n \t\t\t\t\tString nometestrun = \"Executed - \"+testrunid+\".xml\";\n \t\t\t\t\tif(!testCases.isEmpty()){\n \t\t\t\t\t\t// prelevo l'ID vero dei Test Case\n\t\t\t\t\t\t\trealIds = getRealTestCaseIdFromPolarion(listener,testCases);\n\t\t\t\t\t\t\tif(type.equals(\"TestMTP\")){ // ESECUZIONE SU MTP\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MTP\");\n\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t/* Per l'esecuzione con lo stub (va messa fuori il for per funzionare)\n\t\t \t\t\t\t\tCreaXMLStub stub = new CreaXMLStub(testCases);\n\t\t\t\t\t\t\t\tstub.doTest(\"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun,listener);*/\n\t\t\t\t\t\t\t}else if(type.equals(\"TestMX\")){ // ESECUZIONE SU MICROMAX\n\t\t\t\t\t\t\t\tif(!scenario){\n\t\t\t\t\t\t\t\t\tArrayList<Integer> returnCodes = new ArrayList<Integer>();\n\t\t\t\t\t\t\t\t\tfor(String realId : realIds){\n\t\t\t\t\t\t\t\t\t\t// stampo il realId del test case\n\t\t\t\t\t\t\t \tlistener.getLogger().println(\"TC: \"+realId);\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguo MX\");\n\t\t\t\t\t\t\t\t\t\tString[] parameters = realId.split(\",\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+parameters[2]); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\treturnCodes.add(ret);\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t//Scrive i risultati in base al valore di ritorno di MxVDEV\n\t\t\t\t\t\t\t\t\twriteTestResults(\"C:/JenkinsSlave/Results/\"+nometestrun, testCases, returnCodes);\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t//Converto tutti i risultati nel formato desiderato leggendo i log\n\t\t\t\t\t\t\t\t//convertTestCaseResults(realIds, \"C:/JenkinsSlave/workspace/\"+jobname+\"/Temp/\"+nometestrun, testCases);\n\t\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\t\t//convertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\tString[] parameters = realIds.get(0).split(\",\");\n\t\t\t\t\t\t\t\t\tScenario scenario = new Scenario(testrunid,realIds,mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\");\n\t\t\t\t\t\t\t\t\tif(scenario.createScenario()){\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"Scenario creato\");\n\t\t\t\t\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\t\t\t\t\tProcessBuilder builder = new ProcessBuilder(\n\t\t\t\t\t\t\t\t\t\t\t\t\t\"MxVGUI\", \"/n\", \"/r\", mxpath+File.separator+parameters[0]+File.separator+parameters[1]+\".mxp\", mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid+\".mxs\"); \n\t\t\t\t\t\t\t\t\t\t\tbuilder.redirectErrorStream(true); \n\t\t\t\t\t\t\t\t\t\t\tProcess p = builder.start();\n\t\t\t\t\t\t\t\t\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(p.getInputStream()));\n\t\t\t\t\t\t\t\t\t\t\tString line;\n\t\t\t\t\t\t\t\t\t\t\twhile ((line = reader.readLine()) != null)\n\t\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"tasklist: \" + line);\n\t\t\t\t\t\t\t\t\t\t\tret=p.waitFor();\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"eseguito MX \"+ret);\n\t\t\t\t\t\t\t\t\t\t\tconvertScenarioResults(testCases, new ArrayList<String>(), mxpath+File.separator+parameters[0]+\"/ScenariosAndTestCases/\"+testrunid ,testrunid);\n\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(e.getMessage());\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\t\t\tlistener.getLogger().println(\"creazione dello scenario non riuscita\");\n\t\t\t\t\t\t\t\t\t}\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}else{ // CONDIZIONE EVENTUALI ERRORI\n\t\t\t\t\t\t\t\tContactPolarion(listener);\n\t\t\t\t\t\t\t\tlistener.getLogger().println(\"condizione inaspettata\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tpublishTest(\"C:/JenkinsSlave/Results/\",sharedpasswd,shareduser,nometestrun, listener, projectname);\n\t\t\t\t\t \t}else{\n\t\t\t\t\t \t\tContactPolarion(listener);\n\t\t\t\t\t \t\tlistener.getLogger().println(\"Nessun tc impostato. Setto tr a open\");\n\t\t\t\t\t \t//}\n\t\t\t\t\t \t//break check;\n \t\t\t\t//}\n \t\t\t}\n \t\t\treturn ret; \t\n \t\t}", "public void runTests() throws Exception {\n\t\tArrayList<KaidaComposer> als = getCrossOverPermutationTest();\r\n//\t\tArrayList<KaidaComposer> als = getMutationProbabilityTests();\r\n\t\t\r\n\t\tsynchronized (results) {\r\n\t\t\tresults.clear();\r\n\t\t\tfor (KaidaComposer al : als) {\r\n\t\t\t\tresults.add(new TestRunGenerationStatistics(nrOfContests,nrOfGenerations,al.getLabel(),al));\t\r\n\t\t\t}\t\t\t\r\n\t\t}\r\n\t\t\r\n\t\tsetProgress(0f);\r\n\t\t\r\n\t\ttry {\r\n\t\t\tfor (int runs = 0; runs < nrOfContests; runs++) {\r\n\t\t\t//run the test n times\r\n\t\t\t\r\n\t\t\t\tSystem.out.println(\"\\nContest Nr. \" + runs + \" started\");\r\n\t\t\t\tTimer t = new Timer(\"Contest Nr. \" + runs);\r\n\t\t\t\tt.start();\r\n\t\t\t\t\r\n\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\talgorithm.restartOrTakeOver();\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tfor (int g = 0; g < nrOfGenerations; g++) {\r\n\t\t\t\t\t//do one evolution step\r\n\t\t\t\t\t\r\n\t\t\t\t\tfor (KaidaComposer algorithm : als) {\r\n\t\t\t\t\t\tif (algorithm.isCycleCompleted()) {\r\n\t\t\t\t\t\t\talgorithm.startNextCycle();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\talgorithm.doOneEvolutionCycle();\r\n\t\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Adding to results\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).addTestRun(als.get(z).getGenerations().getRange(0,nrOfGenerations));\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\tt.start(\"Calculating statistics\");\r\n\t\t\t\tsynchronized (results) {\r\n\t\t\t\t\tfor (int z=0; z < als.size(); z++) {\r\n\t\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tt.stopAndPrint();\r\n\t\t\t\t\r\n\t\t\t\tsetProgress((double)runs/(double)(nrOfContests-1));\r\n\t\t\t\t\r\n\t\t\t\tif (pause!=0) {\r\n\t\t\t\t\tsleep(pause);\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (isPleasePause()) break;\r\n\t\t\t}\r\n\t\t\tsynchronized (results) {\r\n\t\t\t\tfor (int z=0; z < als.size(); z++) { //als.size()\r\n\t\t\t\t\tresults.get(z).calculateStats();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tsetProgress(1.0f);\r\n\t\t\t\r\n\t\t\r\n\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\te.printStackTrace();\r\n\t\t\t//fail(\"al threw some Exception\");\r\n\t\t\tSystem.exit(1);\r\n\t\t}\r\n\t\t\r\n\t}", "protected abstract TestResult runTestImpl() throws Exception;", "@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"TC on Test sucess\"+\" \"+result.getName());\t\r\n\t}", "public void run(TestResult result) {\n try {\n TestHarness testApp = setupHarness();\n if (printInfo)\n testApp.printInfo(System.out, testBranchs);\n else\n testApp.run(result);\n } catch (Exception e) {\n result.addError(this, e);\n }\n }", "public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}", "@Override\n public void runTest() {\n }", "public static void run() {\n testAlgorithmOptimality();\n// BenchmarkGraphSets.testMapLoading();\n //testAgainstReferenceAlgorithm();\n //countTautPaths();\n// other();\n// testLOSScan();\n //testRPSScan();\n }", "public void onTestSuccess(ITestResult result) {\n \tSystem.out.println(\"The test case is passed :\"+result.getName());\n }", "public static void testISPIssuesPlanMetrics(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlanMetrics\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlanMetrics Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\r\n\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: Verify that Plan Metrics\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t// Verify Count Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"type\",GlobalVariables.testData.get(\"countType\"));\t\r\n\t\t\tAssert.assertEquals(\"Count type is\",true,planAgentResult);\r\n\t\t\t// Verify Count Value\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"count\",\"value\",GlobalVariables.testData.get(\"countValue\"));\t\r\n\t\t\tAssert.assertEquals(\"Count Value is\",true,planAgentResult);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlanMetrics Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}", "public int countTestCases() {\n return 1;\n }", "public TestOutcome executeTests()\n\n\t{\n\t try {\n\t\tString buildServerTestFilesDir = getDirectoryFinder()\n\t\t\t\t.getTestFilesDirectory().getCanonicalPath() + File.separator;\n\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n\t\t// TODO Factor the amount of memory and the extra -D parameters into\n\t\t// config.properties\n\t\tString vmArgs = tester.getTestProperties().getVmArgs();\n\t\tboolean memorySet = false;\n\t\tif (vmArgs != null) {\n\t\t if (vmArgs.contains(\"-Xmx\"))\n\t\t memorySet = true;\n\t\t\t// Break up into separate tokens if necessary\n\t\t\tStringTokenizer tokenizer = new StringTokenizer(vmArgs);\n\t\t\twhile (tokenizer.hasMoreElements()) {\n\t\t\t\tString nextArg = tokenizer.nextToken();\n\t\t\t\tnextArg = nextArg.replace(\"${buildserver.test.files.dir}\",\n\t\t\t\t\t\tbuildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n\t\t\t}\n\t\t}\n\t\tif (!memorySet)\n\t\t javaArgs.add(\"-Xmx456m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n \n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\n\t\t// Do not allow access to home directory\n\t\tjavaArgs.add(\"-Duser.home=/dev/null\");\n\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\"\n\t\t\t\t+ getProjectSubmission().getTestSetup().getCanonicalPath());\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\"\n\t\t\t\t+ getDirectoryFinder().getBuildDirectory().getCanonicalPath());\n\t\t// Add trusted code bases\n\t\tfor (TrustedCodeBase trustedCodeBase \n\t\t : getTrustedCodeBaseFinder().getCollection()) {\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\"\n\t\t\t\t\t+ trustedCodeBase.getValue());\n//\t\t\tgetLog().debug(\"adding trusted codebase \" + trustedCodeBase);\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\"\n\t\t\t\t\t+ new File(getDirectoryFinder().getTestFilesDirectory(),\n\t\t\t\t\t\t\t\"security.policy\").getCanonicalPath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tjavaArgs.add(\"-startTestNumber\");\n\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType.toString());\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties()\n\t\t\t\t.getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInMilliseconds() != 0) {\n\t\t\ttimeoutInSeconds = 1 + (int)( testCase.getMaxTimeInMilliseconds() / 1000);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Using @Test(timeout=\" + timeoutInSeconds\n\t\t\t\t\t\t\t+ \") annotation\");\n\t\t}\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir()\n\t\t\t\t&& !testType.equals(TestOutcome.TestType.STUDENT))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\n\t\tgetLog().debug(\"TestRunner working directory: \" + testRunnerCWD);\n\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\t\t\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n \n\t\t\ttestRunner = Untrusted.execute(\n\t\t\t\t\ttestRunnerCWD, javaArgs.toArray(new String[javaArgs.size()]));\n\n int pid = MarmosetUtilities.getPid(testRunner);\n getLog().debug(\n \"Subprocess for submission \"\n + getProjectSubmission().getSubmissionPK()\n + \" for testSetup \"\n + getProjectSubmission().getTestSetupPK()\n + \" for \" + testType + \" \" + nextTestNumber\n + \" \" + testMethod + \" in testClass \"\n + testClass + \" has pid = \" + pid);\n\n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(),\n\t\t\t\t\ttestRunner.getErrorStream());\n\t\t\tmonitor.start();\n\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n\t\t\t// Groovy, we finished before the alarm went off.\n\t\t\t// Disable it (and clear our interrupted status)\n\t\t\t// in case it went off just after the process wait\n\t\t\t// finished.\n\t\t\talarm.turnOff();\n\n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\n\t\t\t\t\t\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n\t\t\tif (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n\t\t\t\tgetLog().warn(\n\t\t\t\t\t\t\"Clover could not be initialized due to an AccessControlException. \"\n\t\t\t\t\t\t\t\t+ \" Please check your security.policy file and make sure that student code \"\n\t\t\t\t\t\t\t\t+ \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" failed with IOException: \" + e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult = e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\tgetLog().trace(\n\t\t\t\t\t\"Timeout for \" + testType + \" \" + testMethod + \" \"\n\t\t\t\t\t\t\t+ nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.TIMEOUT,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning && testRunner != null) {\n\t\t\t\ttestRunner.destroy();\n\t\t\t\t// process should already be dead, kill again\n\t\t\t\tMarmosetUtilities.destroyProcessGroup(testRunner, getLog());\n\t\t\t}\n\t\t}\n\n\t\tif (exitCode == 2) {\n // Test runner couldn't execute the tests for some reason.\n // This is probably not our fault.\n // Just add an outcome recording the output of\n // the test runner process.\n String longTestResult = monitor.getCombinedOutput();\n String shortTestResult = \"An expected class could not be found\";\n int end = longTestResult.indexOf('\\n');\n if (end > 0 && longTestResult.startsWith(\"java.lang.NoClassDefFoundError: \")) {\n String missing = longTestResult.substring(\"java.lang.NoClassDefFoundError: \".length(), end);\n missing = missing.replace('/','.');\n shortTestResult = \"Could not find expected class \" + missing;\n longTestResult = \"\";\n }\n getLog().error(shortTestResult);\n return Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n testClass, nextTestNumber, TestOutcome.MISSING_COMPONENT,\n shortTestResult, longTestResult);\n } else if (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName()\n\t\t\t\t\t+ \" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod,\n\t\t\t\t\ttestClass, nextTestNumber, TestOutcome.FAILED,\n\t\t\t\t\tshortTestResult, longTestResult);\n\t\t}\n\n\t\tgetLog().debug(\n\t\t\t\tgetFullTestName() + \" test finished with \"\n\t\t\t\t\t\t+ new File(outputFilename).length()\n\t\t\t\t\t\t+ \" bytes of output\");\n\n\t\tTestOutcome testOutcome = readTestOutcomeFromFile();\n\t\tif (testType == TestType.SECRET) {\n\t\t\tString longTestResult = testOutcome.getLongTestResult();\n\t\t\tString output = monitor.getCombinedOutput().trim();\n\t\t\tif (output.length() > 0)\n\t\t\t\ttestOutcome.setLongTestResultCompressIfNeeded(longTestResult + \"\\nTest output:\\n\" + output);\n\t\t}\n\t\treturn testOutcome;\n\t } catch (IOException e) {\n\t e.printStackTrace();\n\t throw new RuntimeException(\"Unexpected IO Exception\", e);\n\t }\n\t}", "public UnitTestData() throws Exception {\n String[] runsData = {\n \"1,1,A,1,No,No,4\", // 0 (a No before first yes Security Violation)\n \"2,1,A,1,No,No,2\", // 0 (a No before first yes Compilation Error)\n \"3,1,A,1,No,No,1\", // 20 (a No before first yes)\n \"4,1,A,3,Yes,No,0\", // 3 (first yes counts Minute points but never Run Penalty points)\n \"5,1,A,5,No,No,1\", // zero -- after Yes\n \"6,1,A,7,Yes,No,0\", // zero -- after Yes\n \"7,1,A,9,No,No,1\", // zero -- after Yes\n \"8,1,B,11,No,No,1\", // zero -- not solved\n \"9,2,A,48,No,No,4\", // 0 (a No before first yes Security Violation)\n \"10,2,A,50,Yes,No,0\", // 50 (minute points; no Run points on first Yes)\n \"11,2,B,35,No,No,1\", // zero -- not solved\n \"12,2,B,40,No,No,1\", // zero -- not solved\n };\n\n // Assign half eams random team member names\n addTeamMembers(contest, getTeamAccounts(contest).length / 2, 5);\n\n assertEquals(\"Expectig team member names\", 5, getFirstAccount(contest, Type.TEAM).getMemberNames().length);\n\n assertEquals(\"team count\", 120, contest.getAccounts(Type.TEAM).size());\n\n for (String runInfoLine : runsData) {\n SampleContest.addRunFromInfo(contest, runInfoLine);\n }\n\n Problem problem = contest.getProblems()[0];\n Account judge = getFirstAccount(contest, Type.JUDGE);\n generateClarifications(contest, 20, problem, judge.getClientId(), false, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, false);\n generateClarifications(contest, 20, problem, judge.getClientId(), true, true);\n\n sampleContest.assignSampleGroups(contest, \"North Group\", \"South Group\");\n\n assertEquals(\"Runs\", 12, contest.getRuns().length);\n\n }", "@Test\n public void testRun_Complex_Execution() {\n // TODO: TBD - Exactly as done in Javascript\n }", "public final void doTest() {\n\n constructTestPlan();\n calculator.start();\n resultViewer.start();\n\n // Run Test Plan\n getJmeter().configure(testPlanTree);\n ((StandardJMeterEngine)jmeter).run();\n }", "public void onTestSuccess(ITestResult result) {\n\t\t\n\t}", "public void onTestSuccess(ITestResult result) {\n\t\t\r\n\t}", "@AfterTest\n\tpublic void reportTestResult() {\n\t\textent.endTest(test);\n\t\t\n\t\t/*LogStatus info =test.getRunStatus();\n\t\t\n\t\tif(info.toString().equalsIgnoreCase(\"PASS\"))\n\t\t\tstatus=1;\n\t\telse if(info.toString().equalsIgnoreCase(\"FAIL\"))\n\t\t\tstatus=2;\n\t\t\n\t\tif (status == 1)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"PASS\");\n\t\telse if (status == 2)\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"FAIL\");\n\t\telse\n\t\t\tTestUtil.reportDataSetResult(ipaxls, \"Test Cases\",\n\t\t\t\t\tTestUtil.getRowNum(ipaxls, this.getClass().getSimpleName()), \"SKIP\");*/\n\n\t}", "public void test25() throws Exception {\n runTestInDirectory(\"regression\");\n }", "@Test\n public void baseCommandTests_part1() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part1.xlsx\");\n assertPassFail(executionSummary, \"base_showcase\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_projectfile\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_array\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_count\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"function_date\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"actual_in_output\", TestOutcomeStats.allPassed());\n }", "@Override\n\t\tpublic void onTestSuccess(ITestResult result) {\n\t\t\tSystem.out.println((result.getMethod().getMethodName() + \" passed!\"));\n\t test.get().pass(\"Test passed\");\n\t\t\t\n\t\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tthread.get().log(Status.PASS, \"Pass\");\n\t}", "public void run(TestCase testCase) {\n }", "public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t}", "public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"*********Test onTestSuccess :\"+result.getName());\r\n\t\t\r\n\t}", "@Test\n public void main() {\n run(\"TEST\");\n }", "void onTestSuccess(ITestResult result);", "public static void main(String[] args) {\r\n System.out.println(runAllTests());\r\n }", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "public static void main (String[] args) {\n \n doTest (\"hello\");\n doTest (\"query\");\n doTest (\"Mississippi\");\n doTest (\"elephant\");\n doTest (\"Qatar\");\n System.out.println();\n \n }", "private void dumpResults(long startTime, long endTime) {\n \n Log.info(TAG_LOG, \"***************************************\");\n \n if (testResults != null) {\n int tot = 0;\n int failed = 0;\n int success = 0;\n int skipped = 0;\n for(int i=0;i<testResults.size();++i) {\n StringBuffer res = new StringBuffer();\n \n TestStatus status = (TestStatus)testResults.elementAt(i);\n String url = status.getScriptName();\n \n res.append(\"Script=\").append(url);\n String r;\n switch (status.getStatus()) {\n case TestStatus.SUCCESS:\n r = \"SUCCESS\";\n success++;\n break;\n case TestStatus.FAILURE:\n r = \"FAILURE\";\n failed++;\n // Record that we had an error\n errorCode = -1;\n break;\n case TestStatus.SKIPPED:\n r = \"SKIPPED\";\n skipped++;\n break;\n default:\n r = \"UNDEFINED\";\n break;\n }\n \n res.append(\" Result=\").append(r);\n String detailedError = status.getDetailedError();\n tot++;\n if (detailedError != null) {\n res.append(\" Error=\").append(detailedError);\n }\n Log.info(TAG_LOG, res.toString());\n }\n Log.info(TAG_LOG, \"---------------------------------------\");\n Log.info(TAG_LOG, \"Total number of tests: \" + tot);\n Log.info(TAG_LOG, \"Total number of success: \" + success);\n Log.info(TAG_LOG, \"Total number of failures: \" + failed);\n Log.info(TAG_LOG, \"Total number of skipped: \" + skipped);\n long secs = (endTime - startTime) / 1000;\n Log.info(TAG_LOG, \"Total execution time: \" + secs);\n } else {\n Log.info(TAG_LOG, \"No tests performed\");\n }\n Log.info(TAG_LOG, \"***************************************\");\n }", "@Override\r\n\tpublic void onTestSuccess(ITestResult Result) {\n\t\tSystem.out.println(\"onTestSuccess :\"+ Result.getName());\r\n\t}", "public static void main (String[] args){\n\t\tincPieceCountTest();\n\t\tdecPieceCountTest();\n\t\tsetPieceTest();\n\t\tmoveTest();\n\t\tanyMoveTest();\n\t\tgetPiecesTest();\n\t\tsetPieceTest2();\n\t}", "@Override\n\tpublic void runTest() throws Throwable {}", "@Test\n\tvoid getResultsTest() {\n\t\tassertEquals(22, utilities.getResults(-21));\n\t\tassertEquals(20, utilities.getResults(-20));\n\t\tassertEquals(40, utilities.getResults(-19));\n\t\tassertEquals(38, utilities.getResults(-18));\n\t\tassertEquals(22, utilities.getResults(21));\n\t\tassertEquals(20, utilities.getResults(20));\n\t\tassertEquals(22, utilities.getResults(2));\n\t\tassertEquals(22, utilities.getResults(1));\n\t}", "public static void testISPIssuesPlan(){\r\n\t\ttry {\r\n\t\t\tLogFunctions.generateLogsDirectory();\t\r\n\t\t\tGlobalVariables.steps = 0;\r\n\t\t\tGlobalVariables.testCaseId = \"REST004_ISPIssuesPlan\";\r\n\t\t\t\r\n\t\t\t// Create Log Files\r\n\t\t\tGlobalVariables.testResultLogFile = LogFunctions.generateLogFile(GlobalVariables.logFile + \"_\"+ GlobalVariables.testCaseId + \".log\");\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlan Execution Started\");\r\n\t\t\tSystem.out.println(\"testISPPlanPlanner Method\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") REST004_ISPIssuesPlan Execution Started\");\r\n\t\t\t\r\n\t\t\t// For managing SSL connections\r\n\t\t\tConfigurations.validateTrustManager();\t\t\t\r\n\t\t\t// Reading input data from CSV File\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getTestData(\"REST004_ISPIssues.csv\");\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Reading Data From CSV File\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Reading Data From CSV File\");\r\n\r\n\t\t\t// Send Request\r\n\t\t\tString data =GlobalVariables.testData.get(\"api\")+\"/version/\"+GlobalVariables.testData.get(\"versionNumber\")+\"/issues\";\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.sendRequest(data);\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Sending Request\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Request Sent\");\r\n\t\t\t// Receive Response in XML File (response.xml)\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tConfigurations.getResponse();\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Getting Response\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Response Received\");\r\n\t\t\t\r\n\t\t\t// Assertion: verify that PlanSummary\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tboolean planAgentResult;\r\n\t\t\t//Verify planIdentifier release\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"planIdentifier\",\"release\",GlobalVariables.testData.get(\"release\"));\r\n\t\t\tAssert.assertEquals(\"planIdentifier release is\",true,planAgentResult);\t\t\t\r\n\t\t\t//Verify user name \r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"username\",GlobalVariables.testData.get(\"username\"));\r\n\t\t\tAssert.assertEquals(\"user name is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify user full Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"fullName\",GlobalVariables.testData.get(\"fullName\"));\t\r\n\t\t\tAssert.assertEquals(\"Full Name is\",true,planAgentResult);\r\n\t\t\t// Verify user email\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"user\",\"email\",GlobalVariables.testData.get(\"email\"));\r\n\t\t\tAssert.assertEquals(\"Email is\",true,planAgentResult);\r\n\t\t\t// Verify Agent ID\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"id\",GlobalVariables.testData.get(\"agentId\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Name\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"name\",GlobalVariables.testData.get(\"agentName\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Name is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Unique Identity\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"hasUniqueIdentity\",GlobalVariables.testData.get(\"hasUniqueIdentity\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Unique Identity is\",true,planAgentResult);\r\n\t\t\t// Verify Agent Anonymous\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"isAnonymous\",GlobalVariables.testData.get(\"isAnonymous\"));\t\r\n\t\t\tAssert.assertEquals(\"Is Agent Anonymous\",true,planAgentResult);\r\n\t\t\t// Verify Agent Kind\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"agent\",\"kind\",GlobalVariables.testData.get(\"kind\"));\t\r\n\t\t\tAssert.assertEquals(\"Agent Kind is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify Agent Kind\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"availability\",\"always\",GlobalVariables.testData.get(\"always\"));\t\r\n\t\t\tAssert.assertEquals(\"Availability always is\",true,planAgentResult);\t\t\t\r\n\t\t\t// Verify documents type\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"documents\",\"type\",GlobalVariables.testData.get(\"documentsType\"));\r\n\t\t\tAssert.assertEquals(\"Documents type is\",true,planAgentResult);\t\t\t\r\n\t\t\t//Verify documents url\r\n\t\t\tplanAgentResult=Configurations.parseResponse(\"documents\",\"url\",GlobalVariables.testData.get(\"documentsUrl\"));\r\n\t\t\tAssert.assertEquals(\"Documents url is\",true,planAgentResult);\t\t\t\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Plan Summary Assertion Pass\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Pass\");\r\n\t\t\t\r\n\t\t\t// Execution Completed\r\n\t\t\tGlobalVariables.steps++;\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\") Test Case : REST004_ISPIssuesPlan Execution Completed\");\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps+ \") Test Case : REST004_ISPIssuesPlan Execution Completed\");\r\n\t\t\t\r\n\t\t}catch (AssertionError ar) {\r\n\t\t\tSystem.out.println(GlobalVariables.steps +\")Assertion Failed : \");\r\n\t\t\tar.printStackTrace();\r\n\t\t\tLogFunctions.logDescription(GlobalVariables.steps + \") Assertion Failed\");\r\n\t\t} catch (Exception e) {\r\n\t\t\tLogFunctions.logException(e.getMessage());\r\n\t\t}\r\n\t}", "@Test\n\tpublic void Cases_23275_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Go to Active tasks dashlet\n\t\t// TODO: VOOD-960 - Dashlet selection \n\t\tnew VoodooControl(\"span\", \"css\", \".row-fluid > li div span a span\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"[data-dashletaction='createRecord']\").click();\n\t\tsugar().tasks.createDrawer.getEditField(\"subject\").set(testName);\n\t\tsugar().tasks.createDrawer.save();\n\t\tif(sugar().alerts.getSuccess().queryVisible()) {\n\t\t\tsugar().alerts.getSuccess().closeAlert();\n\t\t}\n\n\t\t// refresh the Dashlet\n\t\tnew VoodooControl(\"a\", \"css\", \".dashboard-pane ul > li > ul > li .btn-group [title='Configure']\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"li > div li div [data-dashletaction='refreshClicked']\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify task is in Active-Task Dashlet (i.e in TODO tab, if we have no related date for that record)\n\t\tnew VoodooControl(\"div\", \"css\", \"div[data-voodoo-name='active-tasks'] .dashlet-unordered-list .dashlet-tabs-row div.dashlet-tab:nth-of-type(3)\").click();\n\t\tnew VoodooControl(\"div\", \"css\", \"div.tab-pane.active p a:nth-of-type(2)\").assertEquals(testName, true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "@Test\n public void baseCommandTests_part2() throws Exception {\n ExecutionSummary executionSummary = testViaExcel(\"unitTest_base_part2.xlsx\");\n assertPassFail(executionSummary, \"crypto\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"macro-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"repeat-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"expression-test\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"multi-scenario2\", TestOutcomeStats.allPassed());\n assertPassFail(executionSummary, \"flow_controls\", new TestOutcomeStats(2, 14));\n }", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "public static void main(String[] args) {\n\t\tTestLinkAPIClient testlinkAPIClient = new TestLinkAPIClient(CyborgConstants.DEVKEY,CyborgConstants.URL);\n\t\ttry {\n\t\t\tString ProjectId=null;\n\t\t\tString TestSuiteId=null;\n\t\t\tArrayList<Integer> TestSuitesId = new ArrayList<Integer>();\n\t\t\tTestLinkAPIResults projResult= testlinkAPIClient.getProjects();\n\t\t for (int i = 0; i < projResult.size(); i++) {\n\t\t \tif(projResult.getValueByName(i, \"name\").equals(ProjectName)){\n\t\t \t\t ProjectId= (String) projResult.getValueByName(i, \"id\");\n\t\t \t\t System.out.println(projResult.getValueByName(i, \"name\"));\n\t\t \t\t break;\n\t\t \t\t \n\t\t \t}\n\t\t\t}\n\t\t \n\t\t\t String TestPalns[]= TestPlan.split(\",\");\n\t\t\t for (int k = 0; k < TestPalns.length; k++) {\n\t\t\t\tTestLinkAPIResults testSuiteResults=testlinkAPIClient.getTestSuitesForTestPlan(ProjectName, TestPalns[k]);\n\t\t\t\t//System.out.println(\"TestPalns[k]===\"+TestPalns[k]);\n\t\t\t\tfor (int l = 0; l < testSuiteResults.size(); l++) {\n\t\t\t\t\t//System.out.println(\"TestSuite===\"+TestSuite);\n\t\t\t\t\t//System.out.println(\"Suite Name===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\tString TestSuites[]= TestSuite.split(\",\");\n\t\t\t\t\tfor (int z = 0; z < TestSuites.length; z++){\n\t\t\t\t\t\t\tif(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z])){\n\t\t\t\t\t\t\tSystem.out.println(testSuiteResults.getValueByName(l, \"name\").equals(TestSuites[z]));\n\t\t\t\t\t\t\t TestSuiteId= (String) testSuiteResults.getValueByName(l, \"id\");\n\t\t\t\t\t\t\t// System.out.println(\"SuiteNamer===\"+testSuiteResults.getValueByName(l, \"name\"));\n\t\t\t\t\t\t\tString SuiteName=(String)testSuiteResults.getValueByName(l, \"name\");\n\t\t\t\t\t\t\t getTestCases(testlinkAPIClient, ProjectId, TestSuiteId,SuiteName);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\t\t\t\t\n\t\t }\n\t\t\t \n\t\t \n\t\t} catch (TestLinkAPIException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void runAllTests(){\n System.out.println(\"------ RUNNING TESTS ------\\n\");\n testAdd(); // call tests for add(int element)\n testGet(); // tests if the values were inserted correctly\n testSize(); // call tests for size()\n testRemove(); // call tests for remove(int index)\n testAddAtIndex(); // call tests for add(int index, int element)\n\n // This code below will test that the program can read the file\n // and store the values into an array. This array will then be sorted\n // by the insertionSort and it should write the sorted data back into the file\n\n testReadFile(); // call tests for readFile(String filename)\n testInsertionSort(); // call tests for insertionSort()\n testSaveFile(); // call tests for saveFile(String filename)\n System.out.println(\"\\n----- TESTING COMPLETE ----- \");\n }", "public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }", "public static void runTests(Preferences p) throws InvalidTagFormatException, FileNotFoundException, IOException {\n \n String testCaseFile = p.getTestFile();\n String testingPath = p.getTestPath();\n String resultsFormat = p.getFormat();\n boolean ignoreSpaCap = p.getIgnoreSpaCap();\n boolean removeBlankLines= p.getRemoveBlankLines();\n boolean debug = p.getDebug();\n JTextArea statusTextArea = p.getStatusTextArea();\n ProgramSettings settings= p.getSettings();\n\n // ultimately we need to figure actual OS\n OperatingSystem opSys = new OperatingSystemWindows(); \n \n String tempProgramFileName = settings.getTempProgramFileName();\n String tempInputFileName = settings.getTempInputFileName();\n String tempOutputFileName = settings.getTempOutputFileName();\n // TODO Replace this with actual storage of name in settings\n String tempErrorFileName = settings.getTempOutputFileName();\n int lastPeriod = tempErrorFileName.lastIndexOf(\".\");\n tempErrorFileName = tempErrorFileName.substring(0, lastPeriod) + \"Error$\"\n + tempErrorFileName.substring(lastPeriod);\n String resultsFileName = settings.getResultsFileName();\n \n \n //Ty Carpenter\n //From issue #89, added a new statistic variable to see if the test passes or fails\n //NOCOMP tests don't keep track of statistics, only if the test runs, therefore a variable is need to see if that run fails\n //nocompInTests keeps track to see if there is a single nocomp test so the results prints ALL TESTS RAN\n boolean testsSuccessful = true;\n boolean nocompInTests = false;\n \n int incorrectValues = 0;\n int incorrectText = 0;\n int incorrectSpacing = 0;\n int extraBlankLines = 0;\n int missingBlankLines = 0;\n int canNotRun = 0;\n int executionErrors = 0;\n\n //Brendan Villnave lines 48-51\n //From issue #111 I added the time of testing in military format\n //also tells you the day you tested the file\n Date current = new Date();\n statusTextArea.append(\"Date and time tested: \"+ current + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n testingPath = testingPath + \"/\";\n statusTextArea.append(\"Test Case File: \" + p.getTestFile() + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n statusTextArea.append(\"Testing path: \" + testingPath + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n\n\n List<String> tests = new LinkedList<>();\n List<String> includes = new ArrayList<>();\n //Define Lists for storing information about files tested and whether\n //testes passed or failed.\n List<String> fileNames = new ArrayList<>();\n List<Integer> testsPassed = new ArrayList<>();\n List<Integer> testsApproximate = new ArrayList<>();\n List<Integer> testsRun = new ArrayList<>();\n //new list that stores information about nocompFiles run\n List<Integer> nocompTestsRun = new ArrayList<>();\n \n //Ty Carpenter Issue #89\n //boolean variable if NOCOMP tag is present\n boolean noComp = false;\n \n try {\n PytestFileReader testFile = new PytestFileReader(testCaseFile);\n tests = testFile.getText();\n includes = testFile.getIncludedFiles();\n } catch (Exception ex) {\n statusTextArea.append(\"Can't read test file: \" + testCaseFile + \"\\n\");\n }\n \n //Ty Carpenter Issue #94\n //Finds a Run tag in tests and transforms it into a NOCOMP test tag\n \n for(int i = 0; i < tests.size(); i++)\n {\n \n String possibleRunTag = tests.get(i);\n String upperPossibleRunTag = possibleRunTag.toUpperCase();\n String keepFile = \"\";\n if(upperPossibleRunTag.length() > 10)\n {\n \n String t = upperPossibleRunTag.substring(0, 10);\n \n if(t.equals(\"<RUN CODE=\"))\n {\n \n if(upperPossibleRunTag.substring(upperPossibleRunTag.length()-1,upperPossibleRunTag.length()).equals(\">\") && upperPossibleRunTag.substring(upperPossibleRunTag.length()-2,upperPossibleRunTag.length()-1).equals(\"/\"))\n {\n \n keepFile = possibleRunTag.substring(10, possibleRunTag.length() - 2);\n String newTag = \"<test code=\" + keepFile + \"nocomp>\";\n tests.set(i, newTag);\n tests.add(i+1, \"</test>\");\n }\n }\n }\n \n }\n \n // Process any COPY tags to copy files from the test case folder to\n // the folder under test\n \n String testCasePath = testCaseFile.substring( 0, testCaseFile.lastIndexOf( \"/\"));\n //testCaseFile.substring( 0, testCaseFile.lastIndexOf( \"/\"));\n \n \n for( String line : tests )\n {\n String upper = line.toUpperCase();\n // TODO: Not sure if the test for length is necessary\n // TODO: This is very demanding for spacing, etc.\n if( upper.length() > 13 && upper.startsWith( \"<COPY FILE=\") && upper.endsWith( \"/>\" ) )\n {\n String fileName = line.substring( line.indexOf( \"\\\"\" )+1, line.lastIndexOf( \"\\\"\" ) );\n String sourceFile = testCasePath + \"/\" + fileName;\n String destFile = testingPath + fileName;\n \n if( opSys.copy( sourceFile, destFile ) )\n {\n statusTextArea.append( \"COPIED: \" + fileName + \"\\n\" );\n \n }\n else\n {\n statusTextArea.append( \"*** NOT COPIED ***: \" + fileName + \"\\n\" );\n \n // might want to do something else\n } \n }\n } \n \n FileNameMapper fileNameMapper = \n new FileNameMapper( null, true, tests, testingPath );\n \n if( 0 < fileNameMapper.unknownCount() )\n {\n fileNameMapper.setVisible( true );\n if( !fileNameMapper.okClicked() )\n {\n statusTextArea.append(\"Testing cancelled by user.\");\n return;\n }\n }\n \n List<String> results = new LinkedList<>();\n \n if (!testCaseFile.endsWith(\".pytest\")) {\n statusTextArea.append(\"No tests were run because the Test Case File was not a PYTEST file.\");\n // ?? : statusTextArea.update(statusTextArea.getGraphics()); \n return;\n }\n \n for (String str : includes) {\n if (str.endsWith(\".py\")) {\n statusTextArea.append(\"The tag to include \" + str + \" was ignored because its argument was not a .pytest file.\\n\");\n }\n }\n \n TestTagParser testParser = new TestTagParser(tests);\n RUN_TESTS:\n while (testParser.hasNext()) {\n\n // Step #1 - Read the test case from the file\n TagBlock block = testParser.next();\n String pythonFileName = parseFileArg(block.getArgs(), statusTextArea );\n String userFileName = fileNameMapper.map( pythonFileName ); \n List<String> testData = block.getData();\n //Find out if the file is currently in the List of tested files and\n //if so where.\n int positionInNameList = fileNames.indexOf(pythonFileName);\n if(positionInNameList==-1)\n {\n //Initialize a new element in the Lists for this new .py file.\n fileNames.add(pythonFileName);\n positionInNameList = fileNames.size()-1;\n testsPassed.add(0);\n testsApproximate.add(0);\n nocompTestsRun.add(0);\n testsRun.add(0);\n }\n //Ty Carpenter Issue #89\n //Wherever a statistic is counted (like canNotRun, missingBlankLines, etc>)\n // check to see if there is a NOCOMP tag is present so that statistics are NOT counted in the test results\n //Either way, if there is an error, testsSuccessful becomes false\n try {\n //testPassed start out true and is set to false if the test fails.\n if( userFileName.equals( \"(none)\") )\n {\n boolean testPassed = false;\n if(!hasNoCompArg(block.getArgs()))\n {\n canNotRun++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n results.add(\"Skipped \" + pythonFileName + \" - NO USER FILE\" );\n results.add( \"\" );\n statusTextArea.append(\"Skipped \" + pythonFileName + \" - NO USER FILE\\n\" );\n statusTextArea.update(statusTextArea.getGraphics());\n }\n else\n {\n boolean testPassed = true;\n boolean testApproximate = true;\n \n if( userFileName.equals( pythonFileName ) )\n {\n results.add(\"Testing \" + pythonFileName + \"...\");\n }\n else\n {\n results.add(\"Testing \" + pythonFileName + \n \" >>> \" + userFileName + \"...\");\n }\n if (true) // TODO should be if (verbose)\n {\n if( userFileName.equals( pythonFileName ) )\n {\n statusTextArea.append(\"Testing \" + pythonFileName + \"...\\n\");\n }\n else\n {\n statusTextArea.append(\"Testing \" + pythonFileName + \" (\" + userFileName + \")...\\n\");\n }\n statusTextArea.update(statusTextArea.getGraphics());\n }\n\n // Step #2 - Modify the student's code\n createModifiedProgram(testingPath, userFileName, tempProgramFileName);\n\n // Step #3 - Create the file with the inputs to the program\n createProgramInputs(testingPath, testData, tempInputFileName);\n\n // Step #4 - Run the student's program\n int rc = PythonExecutor.run(testingPath, tempProgramFileName,\n tempInputFileName,\n tempOutputFileName,\n tempErrorFileName,\n statusTextArea,\n settings);\n\n if( true ) // 0 == rc )\n {\n // Step #5 - Read the results from the output file\n TextFileReader fileIn = new TextFileReader(testingPath + tempOutputFileName);\n List<String> programOutput = fileIn.getText();\n\n if( 0 != rc && !hasNoCompArg(block.getArgs()))\n {\n // programOutput.add( \"EXECUTION ERROR RC=\" + rc );\n // TextFileReader errorIn = new TextFileReader(testingPath + tempErrorFileName);\n // List<String> errorText = errorIn.getText();\n // // Add the last two lines to the program output file, if present\n // if( errorText.size() >= 2 )\n // {\n // programOutput.add( errorText.get( errorText.size() - 2 ) );\n // }\n // if( errorText.size() >= 1 )\n // {\n // programOutput.add( errorText.get( errorText.size() - 1 ) );\n // } \n\n executionErrors++;\n testPassed = false;\n testsSuccessful = false;\n }\n if(0 != rc && hasNoCompArg(block.getArgs()))\n {\n testsSuccessful = false;\n \n }\n\n TextUtilities.removeTrailingBlanks( programOutput );\n\n // Step #6 - Compare the results to the expected values\n // TODO: move these inside the comparitor ??\n testData = InputTagParser.removeInputTags(testData);\n // List<String> outputText = ValueTagParser.removeValueTags( testData );\n \n int width = TextUtilities.maximumLength( programOutput );\n\n \n if (removeBlankLines) {\n while (testData.remove(\"\")) { /*\n * Do Nothing\n */ }\n while (programOutput.remove(\"\")) { /*\n * Do Nothing\n */ }\n }\n \n if (!hasNoCompArg(block.getArgs())) {\n // TODO: Convert to use iterators\n while (0 != testData.size() && 0 != programOutput.size()) {\n String testLine = testData.get(0);\n String progLine = programOutput.get(0);\n\n if (testLine.equals(\"\") && !progLine.equals(\"\")) {\n results.add(\"! missing blank line !\");\n testData.remove(0);\n missingBlankLines++;\n testsSuccessful = false;\n testPassed = false;\n } else if (!testLine.equals(\"\") && progLine.equals(\"\")) {\n results.add(\"! extra blank line !\");\n programOutput.remove(0);\n extraBlankLines++;\n testsSuccessful = false;\n testPassed = false;\n } else {\n TextLineComparator comp =\n new TextLineComparator(testLine, progLine);\n //TODO: Count multiple errors on one line?\n boolean exact = comp.equalsExact();\n boolean approx = comp.equalsSomeWhat();\n\n if (exact) {\n results.add(\"= \" + testLine);\n } else if (approx) {\n if (ignoreSpaCap) {\n results.add(\"~ \" + testLine);\n } else {\n testPassed=false;\n incorrectText++;\n incorrectSpacing++;\n testsSuccessful = false;\n\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"~ \" + progLine);\n results.add(\"> \" + ValueTagParser.removeValueTags(testLine));\n } else {\n results.add(\"~ \" + TextUtilities.adjustLength( progLine, width ) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testLine));\n }\n }\n } // else if( comp.equalValues() )\n // {\n // \tresults.add( \"# \" + programOutput.get(i) );\n // results.add( \"> \" + ValueTagParser.removeValueTags(testData.get(i)) );\n // }\n else {\n incorrectText++;\n testsSuccessful = false;\n testPassed = false;\n testApproximate = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X \" + progLine);\n results.add(\"> \" + ValueTagParser.removeValueTags(testLine));\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( progLine, width ) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testLine));\n }\n }\n testData.remove(0);\n programOutput.remove(0);\n }\n }\n while (0 != testData.size()) {\n testApproximate = false;\n testPassed = false;\n if( 0 == rc )\n {\n // Only add this if there was not a python error\n incorrectText++;\n testsSuccessful = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X **NO*OUTPUT*LINE**\");\n results.add(\"> \" + ValueTagParser.removeValueTags(testData.get(0)));\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( \"**NO*OUTPUT*LINE**\", width) + \" >-SHOULD BE-> \"\n + ValueTagParser.removeValueTags(testData.get(0)));\n }\n }\n testData.remove(0);\n }\n while (0 != programOutput.size()) {\n testApproximate = false;\n testPassed = false;\n incorrectText++;\n testsSuccessful = false;\n if (resultsFormat.equals(\"Sequential\")) {\n results.add(\"X \" + programOutput.get(0));\n results.add(\"> **NO*OUTPUT*LINE**\");\n } else {\n results.add(\"X \" + TextUtilities.adjustLength( programOutput.get(0), width )\n + \" >-SHOULD BE-> **NO*OUTPUT*LINE**\");\n }\n programOutput.remove(0);\n }\n } else {\n \n \n //Ty Carpenter Issue #89\n //Variable when NOCOMP tag is found becomes true\n // NoComp argument present\n //nocompInTests is true so now will print ALL TESTS RUN if they all pass\n nocompInTests = true;\n noComp = true;\n for (int i = 0; i < programOutput.size(); i++) {\n results.add(\" \" + programOutput.get(i));\n }\n }\n }\n else\n {\n if(!hasNoCompArg(block.getArgs()))\n {\n executionErrors++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n testPassed = false;\n testApproximate = false;\n if (debug) {\n break RUN_TESTS;\n }\n }\n //Ty Carpenter Issue #89\n //If there is no NOCOMP tag, testPassed and testApproximate are counted\n if(noComp == false)\n {\n\n TextFileReader errorIn = new TextFileReader(testingPath + tempErrorFileName);\n List<String> errorOutput = errorIn.getText();\n for( String line : errorOutput )\n {\n line = line.replace( testingPath+tempProgramFileName, userFileName );\n results.add( \"E \" + line );\n }\n\n results.add(\"\");\n\n\n if( testPassed )\n {\n testsPassed.set(positionInNameList,\n testsPassed.get(positionInNameList)+1);\n }\n \n if( testApproximate )\n {\n testsApproximate.set(positionInNameList,\n testsApproximate.get(positionInNameList)+1);\n }\n }\n //Ty Carpenter Issue #89\n //Resets NOCOMP argument for future tests\n else\n {\n //nocompTestsRun is counted\n nocompTestsRun.set(positionInNameList,\n testsRun.get(positionInNameList)+1);\n noComp = false;\n }\n testsRun.set(positionInNameList,\n testsRun.get(positionInNameList)+1);\n\n } \n } \n catch (Exception ex) \n {\n results.add(\"Exception: \" + ex.getMessage() + \"\\n\");\n statusTextArea.append(\"Can't run test: \" + pythonFileName + ex.getMessage() + \"\\n\");\n statusTextArea.update(statusTextArea.getGraphics());\n if(!hasNoCompArg(block.getArgs()))\n {\n canNotRun++;\n testsSuccessful = false;\n }\n else\n {\n testsSuccessful = false;\n }\n if (debug) \n {\n break RUN_TESTS;\n }\n }\n }\n //Brendan Villnave\n //Edited the following lines so everything after \"Run Completed!\"\n //gets added to the $TEST$RESULTS$.txt file as well\n TextFileWriter outFile = new TextFileWriter(testingPath + resultsFileName);\n if (!debug) {\n deleteFile(testingPath + tempProgramFileName);\n deleteFile(testingPath + tempInputFileName);\n deleteFile(testingPath + tempOutputFileName);\n deleteFile(testingPath + tempErrorFileName);\n }\n statusTextArea.append(\"Run completed!\\n\\n\");\n //Ty Carpenter Issue #89\n //testsSuccessful variable is now counted in overal statistics of the tests\n \n if (incorrectValues == 0\n && incorrectText == 0\n && incorrectSpacing == 0\n && extraBlankLines == 0\n && missingBlankLines == 0\n && canNotRun == 0\n && executionErrors == 0\n && testsSuccessful == true) {\n // TODO - in debug mode, this gets printed sometimes when it shouldn't\n //Determines ALL TESTS RUN vs ALL TESTS RUN EXACTLY CORRECTLY\n if(nocompInTests==true)\n {\n statusTextArea.append(\"ALL TESTS RAN\\n\");\n results.add(\"ALL TESTS RUN EXACTLY CORRECTLY\\n\");\n }\n else\n {\n statusTextArea.append(\"ALL TESTS EXACTLY CORRECT\\n\");\n results.add(\"ALL TESTS RUN EXACTLY CORRECTLY\\n\");\n }\n } else {\n // TODO - give option to open student's code\n statusTextArea.append(\"Incorrect values ............ \" \n + incorrectValues + \"\\n\");\n results.add(\"Incorrect values ............ \" \n + incorrectValues + \"\\n\");\n statusTextArea.append(\"Lines with errors ........... \" \n + incorrectText + \"\\n\");\n results.add(\"Lines with errors ........... \" \n + incorrectText + \"\\n\");\n statusTextArea.append(\"Bad spacing/capitalization .. \" \n + incorrectSpacing + \"\\n\");\n results.add(\"Bad spacing/capitalization .. \" \n + incorrectSpacing + \"\\n\");\n statusTextArea.append(\"Extra/missing blank lines ... \"\n + (extraBlankLines + missingBlankLines) + \"\\n\");\n results.add(\"Extra/missing blank lines ... \"\n + (extraBlankLines + missingBlankLines) + \"\\n\");\n statusTextArea.append(\"Python errors ............... \" \n + (executionErrors)+\"\\n\");\n results.add(\"Python errors ............... \" \n + (executionErrors)+\"\\n\");\n statusTextArea.append(\"Can't run test .............. \" \n + canNotRun +\"\\n\");\n results.add(\"Can't run test .............. \" \n + canNotRun +\"\\n\");\n statusTextArea.append(\"Code was successful .............. \" \n + testsSuccessful +\"\\n\");\n results.add(\"Code was successful .............. \" \n + testsSuccessful +\"\\n\");\n }\n statusTextArea.append(\"\\n\");\n \n for(int i=0; i<fileNames.size(); i++)\n {\n int passes = testsPassed.get(i);\n int approximate = testsApproximate.get(i);\n int run = testsRun.get(i);\n int nocompRun = nocompTestsRun.get(i);\n \n String dots = \" ................................................\";\n statusTextArea.append( ( fileNames.get(i)+dots).substring(0,41)+\" \");\n results.add(( fileNames.get(i)+dots).substring(0,41)+\" \");\n \n \n if(run == 0 )\n \n {\n statusTextArea.append(\"NO TESTS RUN\\n\");\n results.add(\"NO TESTS RUN\\n\");\n }\n //new results output All Tests Ran (check output)\n else if(nocompRun == run)\n {\n statusTextArea.append(\"All Tests Ran (check output)\\n\");\n results.add(\"All Tests Ran (check output)\\n\");\n }\n else if(passes == run)\n {\n statusTextArea.append(\"All Tests Passed\\n\");\n results.add(\"All Tests Passed\\n\");\n }\n else{\n \n statusTextArea.append( passes + \"/\" + approximate + \"/\" + \n run + \" tests passed/approximate/run\\n\");\n results.add(passes + \"/\" + approximate + \"/\" + \n run + \" tests passed/approximate/run\\n\");\n }\n }\n\n statusTextArea.update(statusTextArea.getGraphics());\n outFile.writeLines(results);\n outFile.close();\n \n }", "public static void main(String args[]){\n\t\tTestingUtils.runTests();\n\t\t\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t}", "public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}", "public static void runTests( Class<?> testclass) {\r\n\t\tResult result = org.junit.runner.JUnitCore.runClasses( testclass );\r\n\t\tint count = result.getRunCount();\r\n\t\tint failed = result.getFailureCount();\r\n\t\tSystem.out.printf(\"%s: Running %d tests\\n\", testclass.getSimpleName(), count);\r\n\t\tList<Failure> failures = result.getFailures();\r\n\t\t// this doesn't seem to return all the failures\r\n\t\tfor(Failure f: failures) {\r\n\t\t\tDescription d = f.getDescription();\r\n\t\t\tSystem.out.println( f.getTestHeader() +\": \"+ f.getMessage() );\r\n\t\t\tSystem.out.println( d.getDisplayName() );\r\n\t\t}\r\n\t\tSystem.out.printf(\"%s: Success %d Failure %d\\n\",\r\n\t\t\t\ttestclass.getSimpleName(), count-failed, failed);\r\n\t}", "public void onTestSuccess(ITestResult result) {\r\n\t\ttry {\r\n\t\t\t//used to write result details in html\r\n\t\t\tgenerateTestExecution(result);\r\n\t\t} catch (IOException e) {\r\n\t\t\te.getMessage();\r\n\t\t}\r\n\t\t\r\n\t}", "public void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"********** \tTest Successfull : \"+result.getName());\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\textentTest.get().pass(\"I successfully Pass: \" + result.getName());\n\t}", "TestClassExecutionResult assertTestsExecuted(TestCase... testCases);", "public TestOutcome executeTests()\n\t//throws InternalBuildServerException//, IOException \n\t{\n\t\tString buildServerTestFilesDir = getDirectoryFinder().getTestFilesDirectory().getAbsolutePath() + File.separator;\n\t\t\n\t\t// Build arguments to java process\n\t\tList<String> javaArgs = new LinkedList<String>();\n\t\tjavaArgs.add(\"java\");\n //TODO Factor the amount of memory and the extra -D parameters into config.properties\n javaArgs.add(\"-Xmx256m\");\n javaArgs.add(\"-Dcom.sun.management.jmxremote\");\n String vmArgs = tester.getTestProperties().getVmArgs();\n if (vmArgs != null) {\n // Break up into separate tokens if necessary\n StringTokenizer tokenizer = new StringTokenizer(vmArgs);\n while (tokenizer.hasMoreElements()) {\n String nextArg = tokenizer.nextToken();\n nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n // nextArg = nextArg.replace(\"${buildserver.test.files.dir}\", buildServerTestFilesDir);\n\t\t\t\tjavaArgs.add(nextArg);\n }\n }\n\t\tjavaArgs.add(\"-classpath\");\n\t\tjavaArgs.add(classPath);\n\t\t// Tests must run headless, for obvious reasons\n\t\tjavaArgs.add(\"-Djava.awt.headless=true\");\n\t\t// Specify filename of project jar file\n\t\tjavaArgs.add(\"-Dbuildserver.test.jar.file=\" + getProjectSubmission().getProjectJarFile().getAbsolutePath() + \"\");\n\t\t// Specify the path of the build directory\n\t\tjavaArgs.add(\"-Dbuildserver.build.dir=\" + getDirectoryFinder().getBuildDirectory().getAbsolutePath());\n\t\t// Add trusted code bases\n\t\tfor (Iterator<TrustedCodeBase> i = getTrustedCodeBaseFinder().getCollection().iterator(); i.hasNext(); ) {\n\t\t\tTrustedCodeBase trustedCodeBase = i.next();\n\t\t\tjavaArgs.add(\"-D\" + trustedCodeBase.getProperty() + \"=\" + trustedCodeBase.getValue());\n\t\t}\n\t\t// Let the test classes know where test files are.\n\t\t// Append a separator to the end, because this makes it\n\t\t// easier for the tests to determine how to access\n\t\t// the test files.\n\t\tjavaArgs.add(\"-Dbuildserver.test.files.dir=\" + buildServerTestFilesDir);\n\t\tif (getDebugJavaSecurity()) {\n\t\t\tjavaArgs.add(\"-Djava.security.debug=access,failure\");\n\t\t}\n\t\tif (tester.getHasSecurityPolicyFile()) {\n\t\t\t// Project jar file contained a security policy file\n\t\t\tjavaArgs.add(\"-Djava.security.manager\");\n\t\t\tjavaArgs.add(\"-Djava.security.policy=file:\" \n + new File(getDirectoryFinder().getTestFilesDirectory(), \"security.policy\").getAbsolutePath());\n\t\t}\n\t\t// XXX TestRunner\n\t\tjavaArgs.add(TestRunner.class.getName());\n\t\tif (nextTestNumber > 0) {\n\t\t\tjavaArgs.add(\"-startTestNumber\");\n\t\t\tjavaArgs.add(String.valueOf(nextTestNumber));\n\t\t}\n\t\tjavaArgs.add(getProjectSubmission().getSubmissionPK());\n\t\tjavaArgs.add(testType);\n\t\tjavaArgs.add(testClass);\n\t\tjavaArgs.add(outputFilename);\n\t\tint timeoutInSeconds = tester.getTestProperties().getTestTimeoutInSeconds();\n\t\tif (testCase != null && testCase.getMaxTimeInSeconds() != 0) {\n\t\t\ttimeoutInSeconds = testCase.getMaxTimeInSeconds();\n getLog().trace(\"Using @MaxTestTime(value=\" +timeoutInSeconds+ \") annotation\");\n }\n\t\tjavaArgs.add(String.valueOf(timeoutInSeconds));\n\t\tif (testMethod != null) {\n\t\t\tjavaArgs.add(testMethod);\n\t\t}\n\t\t\n\t\t// Which directory to execute the TestRunner in.\n\t\t// By default, this is the build directory, but the\n\t\t// cwd.testfiles.dir property may set it to\n\t\t// be the testfiles directory.\n\t\tFile testRunnerCWD = getDirectoryFinder().getBuildDirectory();\n\t\t// Student-written tests must be run from the build directory\n\t\t// (where the student code is extracted) no matter what\n\t\tif (tester.getTestProperties().isTestRunnerInTestfileDir() && !testType.equals(TestOutcome.STUDENT_TEST))\n\t\t\ttestRunnerCWD = getDirectoryFinder().getTestFilesDirectory();\n\t\t\n\t\tgetLog().debug(\"TestRunner working directory: \" +testRunnerCWD);\n\t\t\n\t\t// Execute the test!\n\t\tint exitCode;\n\t\t//XXX What is this timing? This assumes we're timing the entire process, which\n\t\t// we're clearly not doing from here\n\t\tAlarm alarm = tester.getTestProcessAlarm();\n\t\tCombinedStreamMonitor monitor = null;\n\n\t\tProcess testRunner = null;\n\t\tboolean isRunning = false;\n\t\ttry {\n\t\t\t// Spawn the TestRunner process\n\t\t\ttestRunner = Runtime.getRuntime().exec(\n\t\t\t\t\tjavaArgs.toArray(new String[javaArgs.size()]),\n\t\t\t\t\tenvironment,\n\t\t\t\t\ttestRunnerCWD\n\t\t\t);\n \n String cmd = MarmosetUtilities.commandToString(javaArgs);\n getLog().debug(\"TestRunner command: \" + cmd);\n try {\n int pid=MarmosetUtilities.getPid(testRunner);\n getLog().debug(\"Subprocess for submission \" +getProjectSubmission().getSubmissionPK() +\n \" for testSetup \" +getProjectSubmission().getProjectJarfilePK() +\n \" for \"+testType +\" \"+nextTestNumber+\n \" \" +testMethod+\n \" in testClass \" +testClass+\n \" has pid = \" +pid);\n } catch (IllegalAccessException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n } catch (NoSuchFieldException e) {\n getLog().debug(\"Cannot get PID of process: \" +e);\n }\n \n\t\t\tisRunning = true;\n\n\t\t\t// Start the timeout alarm\n\t\t\talarm.start();\n\n\t\t\t// Record the output\n\t\t\tmonitor = tester.createStreamMonitor(testRunner.getInputStream(), testRunner.getErrorStream());\n\t\t\tmonitor.start();\n\t\t\t\n\t\t\t// Wait for the test runner to finish.\n\t\t\t// This may be interrupted by the timeout alarm.\n\t\t\tmonitor.join();\n\t\t\texitCode = testRunner.waitFor();\n\t\t\tisRunning = false;\n // Groovy, we finished before the alarm went off.\n // Disable it (and clear our interrupted status)\n // in case it went off just after the process wait\n // finished.\n alarm.turnOff();\n \n\t\t\t// Just for debugging...\n\t\t\tgetLog().debug(\"TestRunner process finished; captured to stdout/stderr output was: \");\n\t\t\tgetLog().debug(monitor.getCombinedOutput());\n if (monitor.getCombinedOutput().contains(\"AccessControlException\")) {\n getLog().warn(\"Clover could not be initialized due to an AccessControlException. \" +\n \" Please check your security.policy file and make sure that student code \" +\n \"has permission to read/write/delete /tmp and can install shutdown hooks\");\n }\n\t\n\t\t} catch (IOException e) {\n\t\t\tString shortTestResult=getFullTestName() +\" failed with IOException: \" +e.getMessage();\n\t\t\t// TODO get a stack trace into here\n\t\t\tString longTestResult=e.toString();\n\t\t\tgetLog().error(shortTestResult, e);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t} catch (InterruptedException e) {\n\t\t\tif (!alarm.fired())\n\t\t\t\tgetLog().error(\"Someone unexpectedly interrupted the timer\");\n\n\t\t\tString shortTestResult = \"Timeout!\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult, e);\n getLog().trace(\"Timeout for \" +testType+ \" \" +testMethod+ \" \" +nextTestNumber);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass, \n nextTestNumber, TestOutcome.TIMEOUT, shortTestResult, longTestResult);\n\t\t} finally {\n\t\t\t// Make sure the process is cleaned up.\n\t\t\tif (isRunning)\n\t\t\t\ttestRunner.destroy();\n\t\t}\n\t\t\n\t\tif (exitCode != 0) {\n\t\t\t// Test runner couldn't execute the tests for some reason.\n\t\t\t// This is probably not our fault.\n\t\t\t// Just add an outcome recording the output of\n\t\t\t// the test runner process.\n\t\t\tString shortTestResult = getFullTestName() +\" subprocess failed to return with 0 status\";\n\t\t\tString longTestResult = monitor.getCombinedOutput();\n\t\t\tgetLog().error(shortTestResult);\n\t\t\treturn Tester.createUnableToRunOneTestOutcome(testType, testMethod, testClass,\n nextTestNumber,\tTestOutcome.FAILED, shortTestResult, longTestResult);\n\t\t}\n\t\t\n\t\tgetLog().debug(getFullTestName()+ \" test finished with \" + new File(outputFilename).length() +\n\t\t\t\t\" bytes of output\");\n\n\t\treturn readTestOutcomeFromFile();\n\t}", "public void runIndividualSpreadsheetTests() {\r\n\r\n\t\t// Make a list of files to be analyzed\r\n\t\tString[] inputFiles = new String[] {\r\n//\t\t\t\t\"salesforecast_TC_IBB.xml\",\r\n//\t\t\t\t\"salesforecast_TC_2Faults.xml\",\r\n//\t\t\t\t\t\t\t\"salesforecast_TC_2FaultsHeavy.xml\",\r\n\t\t\t\t\"SemUnitEx1_DJ.xml\",\r\n\t\t\t\t\"SemUnitEx2_1fault.xml\",\r\n\t\t\t\t\"SemUnitEx2_2fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_1fault.xml\",\r\n//\t\t\t\t\"VDEPPreserve_2fault.xml\",\r\n//\t\t\t\t\t\t\t\"VDEPPreserve_3fault.xml\",\r\n//\t\t\t\t\"AZA4.xml\",\r\n//\t\t\t\t\"Consultant_form.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_v2.xml\",\r\n//\t\t\t\t\"Hospital_Payment_Calculation_C3.xml\",\r\n//\t\t\t\t\"11_or_12_diagnoses.xml\",\r\n//\t\t\t\t\"choco_loop.xml\",\r\n//\t\t\t\t\"Paper2.xml\",\r\n//\t\t\t\t\"Test_If.xml\",\r\n//\t\t\t\t\"Test_If2.xml\",\r\n\r\n\t\t};\r\n\r\n\t\tscenarios.add(new Scenario(executionMode.singlethreaded, pruningMode.on, PARALLEL_THREADS, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic, pruningMode.on, PARALLEL_THREADS, true));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 1, CHOCO3));\r\n\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 2, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.hybrid, pruningMode.on, 4, CHOCO3));\r\n//\t\tscenarios.add(new Scenario(executionMode.levelparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.fullparallel, pruningMode.on, PARALLEL_THREADS, false));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,PARALLEL_THREADS*2));\r\n//\t\tscenarios.add(new Scenario(executionMode.heuristic,pruningMode.on,0));\r\n\r\n//\t\tinputFiles = new String[]{\"VDEPPreserve_3fault.xml\"};\r\n\r\n\r\n\t\t// Go through the files and run them in different scenarios\r\n\t\tfor (String inputfilename : inputFiles) {\r\n\t\t\trunScenarios(inputFileDirectory, inputfilename, logFileDirectory, scenarios);\r\n\t\t}\r\n\t}", "public void onTestSuccess(ITestResult result) {\n\t\tlogger.info(\"Test case Done\");\n\t}", "private static void tests_to_run(String testcase, XSSFWorkbook workbook) {\n\t\tXSSFSheet sheet=workbook.getSheet(\"Test_Cases\");\r\n\t\t\r\n\t\tfor(int i=1;i<=sheet.getLastRowNum();i++) {\r\n\t\t\t\r\n\t\t\tString test_case=sheet.getRow(i).getCell(0).getStringCellValue();\r\n\t\t\t\r\n\t\t\tif(test_case.equalsIgnoreCase(testcase)) {\r\n\t\t\t\ttry {keyword=sheet.getRow(i).getCell(2).getStringCellValue();\r\n\t\t\t\txpath=sheet.getRow(i).getCell(3).getStringCellValue();\r\n\t\t\t\ttest_data=sheet.getRow(i).getCell(4).getStringCellValue();}catch(Exception e) {}\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\r\n\t\t\t\tswitch(keyword) {\r\n\t\t\t\tcase \"launchbrowser\":System.setProperty(\"webdriver.chrome.driver\", \"chromedriver_version_75.exe\");\r\n\t\t\t\t\t\t\t\t\tchrome=new ChromeDriver();\r\n\t\t\t\t\t\t\t\t\tchrome.get(test_data);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"login\": chrome.findElement(By.xpath(xpath)).click();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"enter_email\": chrome.findElement(By.xpath(xpath)).sendKeys(test_data);\r\n\t\t\t\t\t\t\t\t\tver=test_data;\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"enter_password\": chrome.findElement(By.xpath(xpath)).sendKeys(test_data);\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"click_login\": chrome.findElement(By.xpath(xpath)).click();\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tcase \"verify\": String ver1=chrome.findElement(By.xpath(xpath)).getText();\r\n\t\t\t\t\t\t\t\tif(ver1.equalsIgnoreCase(ver)) {\r\n\t\t\t\t\t\t\t\t\tSystem.out.println(\"Verified\");\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\tbreak;\r\n\t\t\t\t\t\r\n\t\t\t\tdefault:System.out.println(\"WASTED\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void run() throws Exception {\n for (int i = 0; i < testCases.length; ++i) {\n runCase(testCases[i]);\n }\n }", "@Override\r\n\tpublic void onFinish(ISuite suite) {\n\t\tMap<String, ISuiteResult> results = suite.getResults();\r\n\t\tIterator<ISuiteResult> itestresults = results.values().iterator();\r\n\t\tSystem.out.println(\":::Cases passed::::::\"+itestresults.next().getTestContext().getPassedTests().size());\r\n\t}", "public void startTest() throws Throwable\n {\n ExcelFileUtil excel= new ExcelFileUtil();\n // iterate all row in masterTestCases sheet\n\n for(int i=1;i<=excel.rowCount(\"MasterTestCases\");i++)\n {\n String ModuleStatus=\"\";\n if(excel.getData(\"MasterTestCases\", i, 2).equalsIgnoreCase(\"Y\"))\n {\n //store module name to TCModule\n String TCModule =excel.getData(\"MasterTestCases\", i, 1);\n report=new ExtentReports(\"./Reports/\"+TCModule+Muvi_Functions.generateDate()+\".html\");\n //iterate all rows in TCModule\n for(int j=1;j<=excel.rowCount(TCModule);j++)\n {\n test=report.startTest(TCModule);\n //read al the columns from TCMocule\n String Description=excel.getData(TCModule, j, 0);\n String Object_Type=excel.getData(TCModule, j, 1);\n String Locator_Type=excel.getData(TCModule, j, 2);\n String Locator_Value=excel.getData(TCModule, j, 3);\n String Test_Data=excel.getData(TCModule, j, 4);\n //System.out.println(Description+\" \"+Object_Type);\n //calling the method from function library\n try{\n if(Object_Type.equalsIgnoreCase(\"startBrowser\"))\n {\n System.out.println(\"Executing startBroswer\");\n driver= Muvi_Functions.startBrowser(driver);\n System.out.println(\"Executing startBroswer\");\n }else if (Object_Type.equalsIgnoreCase(\"openApplication\"))\n {\n Muvi_Functions.openApplication(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing openApplication\");\n }else if (Object_Type.equalsIgnoreCase(\"waitForElement\"))\n {\n Muvi_Functions.waitForElement(driver, Locator_Type, Locator_Value, Test_Data);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing waitForElement\");\n }else if (Object_Type.equalsIgnoreCase(\"typeAction\"))\n {\n Muvi_Functions.typeAction(driver, Locator_Type, Locator_Value, Test_Data);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing typeAction\");\n }else if (Object_Type.equalsIgnoreCase(\"clickAction\"))\n {\n Muvi_Functions.clickAction(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing clickAction\");\n }else if (Object_Type.equalsIgnoreCase(\"selectAction\"))\n {\n Muvi_Functions.selectAction(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing selectAction\");\n } else if (Object_Type.equalsIgnoreCase(\"selectStartDate\"))\n {\n Muvi_Functions.selectStartDate(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing selectStartDate\");\n }\n else if (Object_Type.equalsIgnoreCase(\"switchWindow\"))\n {\n Muvi_Functions.switchWindow(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing switchWindow\");\n }else if (Object_Type.equalsIgnoreCase(\"isElementVisible\"))\n {\n Muvi_Functions.isElementVisible(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing isElementVisible\");\n }else if (Object_Type.equalsIgnoreCase(\"hoverOver\"))\n {\n Muvi_Functions.hoverOver(driver, Locator_Type, Locator_Value);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing hoverOver\");\n }else if (Object_Type.equalsIgnoreCase(\"uploadTopBanner\"))\n {\n Muvi_Functions.uploadTopBanner(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadTopBanner\");\n }\n else if (Object_Type.equalsIgnoreCase(\"uploadPoster\"))\n {\n Muvi_Functions.uploadPoster(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadPoster\");\n }\n else if (Object_Type.equalsIgnoreCase(\"profilePicture\"))\n {\n Muvi_Functions.profilePicture(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing profilePicture\");\n }\n else if (Object_Type.equalsIgnoreCase(\"uploadVideo\"))\n {\n Muvi_Functions.uploadVideo(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing uploadVideo\");\n }\n else if (Object_Type.equalsIgnoreCase(\"verifyUpload\"))\n {\n Muvi_Functions.verifyUpload(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing verifyUpload\");\n }\n\n else if (Object_Type.equalsIgnoreCase(\"closeBrowser\"))\n {\n Muvi_Functions.closeBrowser(driver);\n test.log(LogStatus.INFO, Description);\n System.out.println(\"Executing closeBrowser\");\n }\n\n\n //write as pass into status column\n excel.setCellData(TCModule, j, 5, \"PASS\");\n test.log(LogStatus.PASS, Description);\n ScreenShot.Takescreen(driver,Description);\n ModuleStatus=\"TRUE\";\n\n }\n catch(Exception e)\n {\n excel.setCellData(TCModule, j, 5, \"FAIL\");\n ModuleStatus=\"FALSE\";\n if(ModuleStatus.equalsIgnoreCase(\"FALSE\"))\n {\n excel.setCellData(\"MasterTestCases\", i, 3, \"FAIL\");\n Thread.sleep(2000);\n test.log(LogStatus.FAIL, \"Test Fail\");\n ScreenShot.Takescreen(driver,Description);\n }\n System.out.println(e.getMessage());\n break;\n }\n if(ModuleStatus.equalsIgnoreCase(\"TRUE\"))\n {\n excel.setCellData(\"MasterTestCases\", i, 3, \"PASS\");\n }\n report.flush();//push reports to html\n report.endTest(test);\n }\n\n }\n else\n {\n //write as not executed in master testcases in status coulmn for flag N\n excel.setCellData(\"MasterTestCases\", i,3, \"Not Executed\");\n\n }\n }\n }", "public static void main( String args[] ) {\n\n for ( int j = 0; j < TEST_COUNT; ++j ) {\n testSuite[j].execute();\n }\n }", "public static void main(String[] args) {\n\t\tList<String> productionIssues = AllTestMethodNames.getTestSuiteProductionIssuesMethods(product);\n\t\tList<String> obsolete = AllTestMethodNames.getTestSuiteObsoleteMethods(product);\n\t\tproductionIssues.addAll(obsolete);\n\t\tList<String> productionIssuesAndObsoleteTestCases = productionIssues;\n\n\t\tList<String> logNew;\n\t\tList<String> logOld;\n\t\tLogAnalyzer tool;\n\n\t\tinitializeToolPaths();\n\t\tlogNew = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_NEW);\n\t\tlogOld = LogAnalyzerReader.readJenkinsLogFromFile(LOG_ANALYZER_LOG_OLD);\n\t\ttool = new LogAnalyzer(logNew);\n\t\tcreateFullReport(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were started during an automation run but never finished\n\t\t// createXMLWithUnfinishedTestCases(tool, productionIssuesAndObsoleteTestCases);\n\n\t\t// generate xml file with test cases which were not started at all because for instance test run failed before finishing. (eg Java Heap)\n\t\t// Place log contents of complete full recent run into C:\\Automation_artifacts\\LogAnalyzer\\LogAnalyzer-LogOld.log\n\t\t// createXMLWithTestCasesThatNeverStartedFromLog(tool, logOld, productionIssuesAndObsoleteTestCases);\n\n\t\t// Change to which group test cases belong to.\n\t\t// Options below will add additional group to the @Test(groups = {\"\"}) the test cases belong to or if non exist then it will add a new one. This will make the change in the\n\t\t// source code.\n\t\t// In the test case file each test case is separated by a new line, 2 test case file would be ex:\n\t\t// c158643\n\t\t// c256486\n\t\t// Uncomment the option you want below. Place testCaseList.txt file containing test cases needing update in C:\\Automation_artifacts\\LogAnalyzer\\ directory.\n\t\t// Update the product variable value above if its different than cpm\n\n\t\t// AllTestMethodNames.addTestCaseToObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.addTestCaseToDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",product);\n\t\t// AllTestMethodNames.addTestCaseToCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", \"EnterCustomGroupNameHere\", product); // enter your custom group name as the 2nd parameter.\n\n\t\t// Remove to which group test cases belong to.\n\t\t// AllTestMethodNames.removeTestCaseFromObsoleteTestCasesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromProductionIssuesGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromExternalExecGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromDateTimeChangeGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\", product);\n\t\t// AllTestMethodNames.removeTestCaseFromCustomGroup(LOG_ANALYZER_OUTPUT_PATH + \"testCaseList.txt\",\"EnterCustomGroupNameHere\", product ); // enter your custom group name as the 2nd parameter.\n\n\t}", "public void Run(){\n\t\t_TEST stack = new _TEST();\t\t/* TEST */\n\t\tstack.PrintHeader(ID,\"\", \"\");\t/* TEST */\n\t\t\n\t\tSetStatus(Status.RUNNING);\n\t\t\n\t\tstack.PrintTail(ID,\"\", \"\"); \t/* TEST */\n\t\t\n\t}", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}", "private static void runTests() {\r\n\t\tfor (int i = 0; i < testFiles.length; i++) {\r\n\t\t\tConverter file = new Converter(testFiles[i]);\r\n\t\t\tfile.convert();\r\n\t\t\tSystem.out.println(\"---------\");\r\n\t\t}\r\n\t}", "@Test\n public void testCaseProcessor1()\n {\n final int START = 1;\n final int STOP = 1;\n try\n {\n testCases(START, STOP);\n }\n catch (FileNotFoundException e)\n {\n fail(\"testCases.txt not found.\");\n }\n catch (IOException e)\n {\n String error = \"Failed to read testCases.txt: \\n\"\n + e.getStackTrace();\n fail(error);\n }\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "public static void runAllTests() {\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL());\n\t\trunClientCode(SimpleRESTClientUtils.getCToFServiceURL(new String [] {\"100\"}));\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\t\n\t\tSystem.out.println(\"All test casee passed and i m the listener class\");\n\t}", "public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}", "public void onTestSuccess(ITestResult arg0) {\n\t\t\n\t}", "public static void main(String[] args) {\n\ttest(tests);\n }", "public ResultatTest() {\n\t\tthis.nbTests = 0;\n\t\tthis.echecs = new ArrayList<TestExecute>();\n\t\tthis.erreurs = new ArrayList<TestExecute>();\n\t}", "@Override\n public int countTestCases()\n {\n return 1;//_testCaseCount;\n }", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "public TestResult(WorkDirectory workDir, String workRelativePath) throws Fault {\n //resultsFile = workDir.getFile(workRelativePath.replace('/', File.separatorChar));\n resultsFile = workDir.getFile(workRelativePath);\n reload();\n\n testURL = desc.getRootRelativeURL();\n execStatus = Status.parse(PropertyArray.get(props, EXEC_STATUS));\n }", "@Override\n public void onTestSuccess(ITestResult result) {\n\n }", "public void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "@Override\r\npublic void onTestSuccess(ITestResult arg0) {\n\tExtentReports er = new ExtentReports(\"./Report/Report.html\");\r\n\tExtentTest t1 = er.startTest(\"TC001\");\r\n\tt1.log(LogStatus.PASS, \"Passed\");\r\n\tSystem.out.println(\"balle\");\r\n\ter.endTest(t1);\r\n\ter.flush();\r\n\ter.close();\r\n\r\n\t}", "@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }", "public static void main(String[] args) {\n\t\tTestingPerformanceCalculator obj= new TestingPerformanceCalculator(\"./data/gitInfoNew.txt\", \"data/Results/FinalResultSidTest1.txt\");\n\t\t//Read Gold set\n\t\tobj.goldStMap=obj.LoadGoldSet();\n\t\t//MiscUtility.showResult(10, obj.goldStMap);\n\t\t//Resd output file/ test result file\n\t\tobj.finalResult=obj.LoadTestingResult();\n\t\t//MiscUtility.showResult(20, obj.finalResult);\n\t\t\n\t\t\n\t\t//Create a ranked list\n\t\t//obj.produceRankedResult(10);\n\t\tArrayList<String> rankedFinalTestingResult=obj.produceRankedResult(10);\n\t\tContentWriter.writeContent(\"./data/testing1RankedResult.txt\", rankedFinalTestingResult);\n\t\t//call another class BLPerformanceCalc to compute\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "private void printResults() {\n\t\tfor (Test test : tests) {\n\t\t\ttest.printResults();\n\t\t}\n\t}", "public void run() {\n long millis;\n TestCaseImpl tc = _testCase;\n \n // Force GC and record current memory usage\n _memoryBean.gc();\n _heapBytes = _memoryBean.getHeapMemoryUsage().getUsed();\n \n // Get number of threads to adjust iterations\n int nOfThreads = tc.getIntParam(Constants.NUMBER_OF_THREADS);\n \n int runIterations = 0;\n String runTime = tc.getParam(Constants.RUN_TIME);\n if (runTime != null) {\n // Calculate end time\n long startTime = Util.currentTimeMillis();\n long endTime = startTime + Util.parseDuration(runTime);\n \n // Run phase\n do {\n run(tc); // Call run\n runIterations++;\n millis = Util.currentTimeMillis();\n } while (endTime >= millis);\n }\n else {\n // Adjust runIterations based on number of threads\n runIterations = tc.getIntParam(Constants.RUN_ITERATIONS) / nOfThreads;\n \n // Run phase\n for (int i = 0; i < runIterations; i++) {\n run(tc); // Call run\n }\n }\n \n // Accumulate actual number of iterations\n synchronized (tc) {\n int actualRunIterations = \n tc.hasParam(Constants.ACTUAL_RUN_ITERATIONS) ? \n tc.getIntParam(Constants.ACTUAL_RUN_ITERATIONS) : 0;\n tc.setIntParam(Constants.ACTUAL_RUN_ITERATIONS, \n actualRunIterations + runIterations);\n }\n }", "@Test\n public void testAlmUtilsExample() throws GeneralLeanFtException, ReportException, IOException {\n AlmRunInfo almRunInfo = AlmUtils.getAlmRunInfo();\n if (almRunInfo != null){\n // AlmUtils.getAlmRunInfo() returned object, the test is running from ALMreturn;\n // Create a string builder, and add the properties of the test running\n StringBuilder sb = new StringBuilder();\n sb.append(\"ALMUtils test info proeprties: <BR>\");\n sb.append(String.format(\"ServerUrl: '%s' <BR>\", almRunInfo.getServerUrl()));\n sb.append(String.format(\"TesterName: '%s' <BR>\", almRunInfo.getTesterName()));\n sb.append(String.format(\"TestId: '%d' <BR>\", almRunInfo.getTestId()));\n sb.append(String.format(\"TestName: '%s' <BR>\", almRunInfo.getTestName()));\n sb.append(String.format(\"TestSetId: '%d' <BR>\", almRunInfo.getTestSetId()));\n sb.append(String.format(\"TestSetName: '%s' <BR>\", almRunInfo.getTestSetName()));\n sb.append(String.format(\"RunId: '%d' <BR>\", almRunInfo.getRunId()));\n sb.append(String.format(\"RunName: '%s' <BR>\", almRunInfo.getRunName()));\n sb.append(String.format(\"TestInstanceId: '%d' <BR>\", almRunInfo.getTestInstanceId()));\n String stringToReport = sb.toString();\n Reporter.reportEvent(\"AlmUtils.getAlmRunInfo() Properties Check\", stringToReport);\n\n }\n\n try {\n Map<String, Object> testParams = almRunInfo.getParameters();\n\n if (testParams == null) {\n Reporter.reportEvent(\"AlmUtils.getAlmRunInfo() Parameters Check\",\n \"Test is not running from ALM, therefore no parameters in the test\");\n } else {\n String paramString = \"\";\n for (Map.Entry<String, Object> testParam : testParams.entrySet()) {\n paramString += String.format(\"Parameter name: '%s', parameter value: '%s' <BR>\", testParam.getKey(), testParam.getValue().toString());\n }\n Reporter.reportEvent(\"ALMUtils.getAlmRunInfo Parameters Check\", paramString);\n }\n } catch (NullPointerException e) {\n Reporter.reportEvent(\"Exception in AlmUtils.getAlmRunInfo() Parameters Check\",\n \"Test is not running from ALM, therefore no parameters in the test\");\n }\n }", "public void test_execute() throws Throwable {\r\n\t\t\r\n\t\tCLIService service = null;\r\n\t\t\r\n\t\t// Ping\r\n\t\ttry {\r\n\t\t\tservice = CLIServiceWrapper.getService();\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PING + \" \" + TEST_PING_ARG0);\r\n\t\t\tif ( CLIServiceTools.isResponseOkAndComplete(response) ) {\r\n\t\t\t\tPASS(TEST_PING);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PING, \"Response not ok. response=\" + response);\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PING,\"ping failed to exception:\" + e.getMessage());\r\n\t\t}\r\n\r\n\t\t// Process list - log and cli\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) >= 0) &&\r\n\t\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) >= 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) >= 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST,\"process list failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\t\t\r\n\t\t// Process list - log only - the CLI output should not contain any validations, just the OK.\r\n\t\ttry {\r\n\t\t\tString response = service.tender(CLIServiceConstants.COMMAND_PROCESSLIST + \" =\" + CLIServiceConstants.COMMAND_PROCESSLIST_LOG_VALUE);\r\n\t\t\tif ( (CLIServiceTools.isResponseOkAndComplete(response)) && (response.indexOf(TEST_PROCESSLIST_VALIDATION1) < 0) &&\r\n\t\t\t (response.indexOf(TEST_PROCESSLIST_VALIDATION2) < 0) && (response.indexOf(TEST_PROCESSLIST_VALIDATION3) < 0) ) {\r\n\t\t\t\tPASS(TEST_PROCESSLIST_LOG);\r\n\t\t\t} else {\r\n\t\t\t\tFAIL(TEST_PROCESSLIST_LOG, \"Response not ok. See log for response.\");\t\t\t\r\n\t\t\t}\r\n\t\t\t\t\r\n\t\t} catch (Exception e) {\r\n\t\t\tABORT(TEST_PROCESSLIST_LOG,\"process list (log only) failed to exception:\" + e.getMessage());\r\n\t\t}\t\r\n\r\n\t}", "public static void main(String[] args) {\n\t\trun();\n\t\t//runTest();\n\n\t}", "private void incrementFailures() {\n totalFailures++;\n totalTunitFailures++;\n }", "public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}", "public TestResult(TestDescription td, WorkDirectory workDir)\n throws Fault {\n desc = td;\n testURL = desc.getRootRelativeURL();\n execStatus = inProgress;\n\n reloadFromWorkDir(workDir);\n }" ]
[ "0.73770356", "0.70316046", "0.70233065", "0.6913777", "0.6909061", "0.68884695", "0.6824334", "0.6824167", "0.6799259", "0.67776114", "0.6777561", "0.67757493", "0.67632806", "0.6756554", "0.6739259", "0.66769356", "0.66378343", "0.6636495", "0.6615189", "0.66017485", "0.65877897", "0.65714526", "0.6566307", "0.65259844", "0.6523378", "0.65086544", "0.6501468", "0.6494653", "0.648223", "0.64649236", "0.64566046", "0.6452868", "0.6451597", "0.64334744", "0.64187616", "0.64186674", "0.64162743", "0.64087933", "0.6408388", "0.6391111", "0.6384259", "0.63799524", "0.6378244", "0.6375557", "0.6369705", "0.63657206", "0.6363239", "0.6362975", "0.63626635", "0.6357408", "0.63456315", "0.63427126", "0.633966", "0.63357145", "0.63324225", "0.63282347", "0.6325769", "0.6319555", "0.6313056", "0.63076913", "0.6304826", "0.63021123", "0.63001144", "0.6295497", "0.6289173", "0.62881786", "0.6288154", "0.6287918", "0.62861705", "0.6284765", "0.62785774", "0.62748706", "0.62647086", "0.6257374", "0.62503123", "0.62466884", "0.6245268", "0.6242636", "0.6242636", "0.62398463", "0.62351215", "0.62293357", "0.6227102", "0.6224099", "0.6223447", "0.6220987", "0.62128514", "0.6206771", "0.6199204", "0.6194443", "0.6193293", "0.6193293", "0.6175241", "0.6170383", "0.6169621", "0.6165249", "0.6163659", "0.61456555", "0.6144471", "0.6142736" ]
0.6373236
44
7 Runs the bare test sequence.
public void runBare() throws Throwable { Throwable exception= null; setUp(); try { runTest(); } catch (Throwable running) { exception= running; } finally { try { tearDown(); } catch (Throwable tearingDown) { if (exception == null) exception= tearingDown; } } if (exception != null) throw exception; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\t\ttest4();\n//\t\ttest7();\n//\t\ttest8();\n//\t\ttest9();\n//\t\ttest10();\n//\t\ttest11();\n//\t\t test13() ;\n\t}", "public static void main(String[] args) {\n test7();\n }", "public static void main(String[] args) {\n\n\n for (int i = 0; i < 3; i++) {\n System.out.println(\"\\n********* TEST \" + (i+1) + \" *********\");\n experimentOne(false);\n experimentOne(true);\n\n experimentTwo(false);\n experimentTwo(true);\n\n experimentThree(false);\n experimentThree(true);\n }\n }", "@Test\n public void startGameSeven() {\n this.reset();\n this.bps.startGame(this.fullDeck, true, 7, 3);\n assertNotEquals(this.drawCards, this.bps.getDrawCards());\n assertEquals(7, this.bps.getNumRows());\n assertEquals(3, this.bps.getNumDraw());\n assertEquals(4, this.bps.getRowWidth(3));\n assertFalse(this.bps.isGameOver());\n }", "public static void main (String args[]) {\n\t\tteste01();\n\t\tteste02();\n\t\tteste03();\n\t\t//teste04();\n\t}", "public void test5() {\n\t\t\n\t}", "public static void main(String[] args) {\n testFactorial();\n testFibonacci();\n testMissing();\n testPrime();\n\n\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n drunkardTest(TEST_STEP_TIMES_1, TEST_STEP_SIZE_1);\n drunkardTest(TEST_STEP_TIMES_2, TEST_STEP_SIZE_2);\n\t}", "public void test7() throws Exception {\n //$NON-NLS-1$\n IFolder buildFolder = newTest(\"test7\");\n //$NON-NLS-1$\n String buildXMLPath = buildFolder.getFile(\"build.xml\").getLocation().toOSString();\n Properties properties = new Properties();\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"reference_location\", buildFolder.getFile(\"before\").getLocation().toOSString());\n //$NON-NLS-1$ //$NON-NLS-2$\n properties.put(\"current_location\", buildFolder.getFile(\"after\").getLocation().toOSString());\n //$NON-NLS-1$\n properties.put(\"report_location\", buildFolder.getLocation().toOSString());\n //$NON-NLS-1$\n runAntScript(buildXMLPath, new String[] { \"run\" }, buildFolder.getLocation().toOSString(), properties);\n //$NON-NLS-1$ //$NON-NLS-2$\n assertFalse(\"allNonApiBundles must not exist\", buildFolder.getFolder(\"allNonApiBundles\").exists());\n //$NON-NLS-1$\n IFolder folder = buildFolder.getFolder(\"deltatest\");\n //$NON-NLS-1$\n assertTrue(\"deltatest folder must exist\", folder.exists());\n //$NON-NLS-1$ //$NON-NLS-2$\n assertTrue(\"report.xml file must be there\", folder.getFile(\"report.xml\").exists());\n }", "public static void main(String[] args) {\n\n\t\tTest08();\n\n\t}", "public static void main(String[] args) {\n\n test5();\n }", "@Test\n public void testingTheSixFlatbed2017Order() {\n }", "public static void main(String[] args) {\n int val = determineSequence(7);\n System.out.println(val);\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_7() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static void main (String[] args){\n\t\tincPieceCountTest();\n\t\tdecPieceCountTest();\n\t\tsetPieceTest();\n\t\tmoveTest();\n\t\tanyMoveTest();\n\t\tgetPiecesTest();\n\t\tsetPieceTest2();\n\t}", "public static void main(String[] args) {\n final int t = SYS_IN.nextInt(); // total test cases\n SYS_IN.nextLine();\n for (int ti = 0; ti < t; ti++) {\n evaluateCase();\n }\n SYS_IN.close();\n }", "@Test\n public void test9MLog_Siebel_SingleRun() throws ClassNotFoundException, NoSuchMethodException, InvocationTargetException, IOException, IllegalAccessException {\n String logPath_base = \"/home/xiaohe/workspace/DATA/FakeData4TestingPerf/Pub_fake.log\";\n// Common.testLog_multiTimes(logPath_base, 5, true); //eager eval\n\n// Common.testLog_multiTimes(logPath_base, 1, false); //lazy eval\n\n// String logPath_base = \"/home/xiaohe/workspace/DATA/ldccComplete_MonpolyStyle\";\n\n String[] args = new String[]{\"./test/count/insert.sig\", \"./test/count/insert.fl\", logPath_base};\n Main.main(args);\n\n }", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "@Test(timeout = 4000)\n public void test03() throws Throwable {\n String[] stringArray0 = new String[7];\n Discretize.main(stringArray0);\n assertEquals(7, stringArray0.length);\n }", "public void start5()\n\t{\n\t\tSystem.out.println();\n\t\tBombe bombe = new Bombe();\n\t\tbombe.challenge1();\n\t\tSystem.out.println();\n\t\tbombe.challenge2();\n\t\tSystem.out.println();\n\t\tbombe.challenge3();\n\t}", "public static void main(String[] args) {\n\ttest(tests);\n }", "public void start6()\n\t{\n\t\tExtensionBombe extension = new ExtensionBombe();\n\t\textension.challenge1();\n\t\tSystem.out.println();\n\t\textension.challenge2();\n\t\tSystem.out.println();\n\t\textension.challenge3();\n\t}", "@Test\n\tpublic void testRun1() {\n\t\n\t\tRingSum s = new RingSum(3);\n\t\tfor( int i = 0; i < 120; ++i )\n\t\t{\n\t\t\ts.push(0);\n\t\t\ts.push(1);\n\t\t\ts.push(0);\n\t\t\tassertTrue(s.get() == 1);\n\t\t}\n\t\t\n\t}", "public static void main(String[] args) {\r\n\t\tnew Test0().tc1() ;\r\n\t\tnew Test0().tc2() ;\r\n\t\tnew Test0().tc3() ;\r\n\t\tnew Test0().tc4() ;\r\n\t\tnew Test0().tc5() ;\r\n\t\tnew Test0().tc6() ;\r\n\t}", "@Test\n\tpublic void testStep() {\n\t\tsimulator.step();\n\t\tassertEquals(0, (int)simulator.averageWaitTime());\n\t\tassertEquals(0, (int)simulator.averageProcessTime());\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\n\t\tfor (int i = 0; i < 28; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(287, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1525, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(false, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\t\n\t\tfor (int i = 0; i < 15; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(614, (int)(simulator.averageWaitTime() * 100));\n\t\tassertEquals(1457, (int)(100 * simulator.averageProcessTime()));\n\t\tassertEquals(true, simulator.packageLeftSimulation());\n\t\tassertEquals(0, simulator.getCurrentIndex());\n\t\tassertEquals(true, simulator.moreSteps());\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tsimulator.step();\n\t\t}\n\t\tassertEquals(false, simulator.moreSteps());\t\n\t}", "public static void main(String[] args) {\r\n System.out.println(runAllTests());\r\n }", "public static void main(String[] args) {\n\t\tPartterns7(5);\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\n\t\ttest01();\n\t}", "public static void main(String args[]) {\n\t\tSystem.out.println(\"\\r\\ngetGameSituationTest()\");\n\t\tgetGameSituationTest();\n\n\t\tSystem.out.println(\"\\r\\nstateCheckerboardConvertionTest()\");\n\t\tstateCheckerboardConvertionTest();\n\n\t\tSystem.out.println(\"\\r\\ngetValidActionsTest()\");\n\t\tgetValidActionsTest();\n\t}", "private void runTest(){\t\t\n\t\t// begin by urueda\n\t\tLogSerialiser.finish(); LogSerialiser.exit();\n\t\tsequenceCount = 1;\n\t\tlastStamp = System.currentTimeMillis();\n\t\tescAttempts = 0; nopAttempts = 0;\n\t\t// end by urueda\t\t\n\t\tboolean problems;\n\t\twhile(mode() != Modes.Quit && moreSequences()){\n\n\t\t\tString generatedSequence = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \"sequence\").getName(); // by urueda\n\t\t\tgeneratedSequenceNumber = new Integer(generatedSequence.replace(\"sequence\", \"\")).intValue();\n\t\t\t// begin by urueda\n\n\t\t\tsutRAMbase = Double.MAX_VALUE; sutRAMpeak = 0.0; sutCPUpeak = 0.0; testRAMpeak = 0.0; testCPUpeak = 0.0;\n\n\t\t\ttry {\n\t\t\t\tLogSerialiser.start(new PrintStream(new BufferedOutputStream(new FileOutputStream(new File(\n\t\t\t\t\tsettings.get(OutputDir) + File.separator + \"logs\" + File.separator + generatedSequence + \".log\")))),\n\t\t\t\t\tsettings.get(LogLevel));\n\t\t\t} catch (NoSuchTagException e3) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te3.printStackTrace();\n\t\t\t} catch (FileNotFoundException e3) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te3.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t\tif (mode() == Modes.GenerateManual)\n\t\t\t\tsetMode(Modes.Spy);\n\t\t\tjipWrapper = new JIPrologWrapper();\n\t\t\t\n\t\t\tGrapher.grapher(generatedSequence,\n\t\t\t\t\t\t\tsettings.get(ConfigTags.SequenceLength).intValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.AlgorithmFormsFilling).booleanValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.TypingTextsForExecutedAction).intValue(),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.TestGenerator),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.MaxReward),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.Discount),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.ExplorationSampleInterval),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.GraphsActivated),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.PrologActivated),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.ForceToSequenceLength) && this.forceToSequenceLengthAfterFail ?\n\t\t\t\t\t\t\t\t\ttrue :\n\t\t\t\t\t\t\t\t\tsettings.get(ConfigTags.GraphResuming),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.OfflineGraphConversion),\n\t\t\t\t\t\t\tsettings.get(ConfigTags.Strategy),\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tjipWrapper);\n\t\t\tGrapher.waitEnvironment();\n\t\t\tScreenshotSerialiser.start(generatedSequence);\n\t\t\t// end by urueda\n\t\t\t\n\t\t\tproblems = false;\n\t\t\tif (!forceToSequenceLengthAfterFail) passSeverity = Verdict.SEVERITY_OK; // by urueda\n\t\t\t//actionCount = 0;\n\t\t\t// begin by urueda\n\t\t\tif (this.forceToSequenceLengthAfterFail){\n\t\t\t\tthis.forceToSequenceLengthAfterFail = false;\n\t\t\t\tthis.testFailTimes++;\n\t\t\t} else{\n\t\t\t\tactionCount = 1;\n\t\t\t\tthis.testFailTimes = 0;\n\t\t\t}\n\t\t\t// end by urueda\n\n\t\t\tLogSerialiser.log(\"Creating new sequence file...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\tfinal File currentSeq = new File(settings.get(ConfigTags.TempDir) + File.separator + \"tmpsequence\");\n\t\t\ttry {\n\t\t\t\tUtil.delete(currentSeq);\n\t\t\t} catch (IOException e2) {\n\t\t\t\tLogSerialiser.log(\"I/O exception deleting <\" + currentSeq + \">\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t}\n\t\t\t//oos = new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(currentSeq), 50000000));\n\t\t\t//raf = new RandomAccessFile(currentSeq, \"rw\");\n\t\t\t//oos = new ObjectOutputStream(new FileOutputStream(raf.getFD()));\n\t\t\t// begin by urueda\n\t\t\ttry {\n\t\t\t\t//TestSerialiser.start(new RandomAccessFile(currentSeq, \"rw\"));\n\t\t\t\tTestSerialiser.start(new ObjectOutputStream(new BufferedOutputStream(new FileOutputStream(currentSeq))));\n\t\t\t\tLogSerialiser.log(\"Created new sequence file!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t} catch (IOException e) {\n\t\t\t\tLogSerialiser.log(\"I/O exception creating new sequence file\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t}\n\t\t\t//} catch (FileNotFoundException e1) {\n\t\t\t//\tLogSerialiser.log(\"File not found exception creating random test file\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t//}\n\t\t\t// end by urueda\n\n\t\t\tLogSerialiser.log(\"Building canvas...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t//Canvas cv = buildCanvas();\n\t\t\tthis.cv = buildCanvas(); // by urueda\n\t\t\t//logln(Util.dateString(\"dd.MMMMM.yyyy HH:mm:ss\") + \" Starting system...\", LogLevel.Info);\n\t\t\t// begin by urueda\n\t\t\tString startDateString = Util.dateString(DATE_FORMAT);\n\t\t\tLogSerialiser.log(startDateString + \" Starting SUT ...\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t// end by urueda\n\t\t\t\n\t\t\tSUT system = null;\n\t\t\t\n\t\t\ttry{ // by urueda\n\n\t\t\t\tsystem = startSystem();\n\n\t\t\t\tlastCPU = NativeLinker.getCPUsage(system); // by urueda\n\t\t\t\t\n\t\t\t\t//SUT system = WinProcess.fromProcName(\"firefox.exe\");\n\t\t\t\t//logln(\"System is running!\", LogLevel.Debug);\n\t\t\t\tLogSerialiser.log(\"SUT is running!\\n\", LogSerialiser.LogLevel.Debug); // by urueda\n\t\t\t\t//logln(\"Starting sequence \" + sequenceCount, LogLevel.Info);\n\t\t\t\tLogSerialiser.log(\"Starting sequence \" + sequenceCount + \" (output as: \" + generatedSequence + \")\\n\\n\", LogSerialiser.LogLevel.Info); // by urueda\n\t\t\t\tbeginSequence();\n\t\t\t\tLogSerialiser.log(\"Obtaining system state...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tState state = getState(system);\n\t\t\t\tLogSerialiser.log(\"Successfully obtained system state!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tsaveStateSnapshot(state);\n\t\n\t\t\t\tTaggable fragment = new TaggableBase();\n\t\t\t\tfragment.set(SystemState, state);\n\t\t\t\t\t\t\t\n\t\t\t\tVerdict verdict = state.get(OracleVerdict, Verdict.OK);\n\t\t\t\tif (faultySequence) problems = true;\n\t\t\t\tfragment.set(OracleVerdict, verdict); // by urueda\t\t\t\t\t\n\t\t\t\tint waitCycleIdx = 0;\n\t\t\t\tlong[] waitCycles = new long[]{1, 10, 25, 50}; // ms\n\t\t\t\tlong spyCycle = -1;\n\t\t\t\tString stateID, lastStateID = state.get(Tags.ConcreteID);\n\t\t\t\t// end by urueda\n\t\t\t\twhile(mode() != Modes.Quit && moreActions(state)){\n\t\t\t\t\tif (problems)\n\t\t\t\t\t\tfaultySequence = true; // by urueda\n\t\t\t\t\telse{\n\t\t\t\t\t\tproblems = runAction(cv,system,state,fragment);\n\t\t\t\t\t\t// begin by urueda\n\t\t\t\t\t\tif (mode() == Modes.Spy){\n\t\t\t\t\t\t\tstateID = state.get(Tags.ConcreteID);\n\t\t\t\t\t\t\tif (stateID.equals(lastStateID)){\n\t\t\t\t\t\t\t\tif (System.currentTimeMillis() - spyCycle > waitCycles[waitCycleIdx]){\n\t\t\t\t\t\t\t\t\tspyCycle = System.currentTimeMillis();\n\t\t\t\t\t\t\t\t\tif (waitCycleIdx < waitCycles.length - 1)\n\t\t\t\t\t\t\t\t\t\twaitCycleIdx++;\n\t\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t} else{\n\t\t\t\t\t\t\t\tlastStateID = stateID;\n\t\t\t\t\t\t\t\twaitCycleIdx = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// end by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Obtaining system state...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\t\tstate = getState(system);\n\t\t\t\t\t\tif (faultySequence) problems = true; // by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Successfully obtained system state!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\t\tif (mode() != Modes.Spy){ // by urueda\n\t\t\t\t\t\t\tsaveStateSnapshot(state);\n\t\t\t\t\t\t\tverdict = state.get(OracleVerdict, Verdict.OK);\n\t\t\t\t\t\t\tfragment.set(OracleVerdict, verdict); // by urueda\t\t\t\t\t\t\n\t\t\t\t\t\t\tfragment = new TaggableBase();\n\t\t\t\t\t\t\tfragment.set(SystemState, state);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t\t\t//logln(\"Shutting down system...\", LogLevel.Info);\n\t\t\t\tLogSerialiser.log(\"Shutting down the SUT...\\n\", LogSerialiser.LogLevel.Info); // by urueda\n\t\t\t\tstopSystem(system); // by urueda\n\t\t\t\tif (system != null && system.isRunning()) // by urueda\n\t\t\t\t\tsystem.stop();\n\t\t\t\t//logln(\"System has been shut down!\", LogLevel.Debug);\n\t\t\t\t// begin by urueda\n\t\t\t\tLogSerialiser.log(\"... SUT has been shut down!\\n\", LogSerialiser.LogLevel.Debug);\t\t\t\t\t\t\t\t\n\t\t\t\t\n\t\t\t\tScreenshotSerialiser.finish();\n\t\t\t\tLogSerialiser.log(\"Writing fragment to sequence file...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t//oos.writeObject(fragment);\n\t\t\t\tTestSerialiser.write(fragment);\n\t\t\t\tTestSerialiser.finish();\n\t\t\t\tLogSerialiser.log(\"Wrote fragment to sequence file!\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\t\n\t\t\t\tGrapher.walkFinished(!problems,\n\t\t\t\t\t\t \t\t\t mode() == Modes.Spy ? null : state,\n\t\t\t\t\t\t \t\t\t protocolUtil.getStateshot(state));\n\t\t\t\t\n\t\t\t\tLogSerialiser.log(\"Sequence \" + sequenceCount + \" finished.\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t\tif(problems)\n\t\t\t\t\tLogSerialiser.log(\"Sequence contained problems!\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t\t\t\t\n\t\t\t\tfinishSequence(currentSeq);\n\t\n\t\t\t\tSystem.out.println(\"currentseq: \" + currentSeq);\n\t\t\t\t\n\t\t\t\tVerdict finalVerdict = verdict.join(new Verdict(passSeverity,\"\",Util.NullVisualizer));\n\t\t\t\t\n\t\t\t\tif (!settings().get(ConfigTags.OnlySaveFaultySequences) ||\n\t\t\t\t\tfinalVerdict.severity() >= settings().get(ConfigTags.FaultThreshold)){ // by urueda{\n\t\t\t\t\t//String generatedSequence = Util.generateUniqueFile(settings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \"sequence\").getName();\n\t\t\t\t\tLogSerialiser.log(\"Copying generated sequence (\\\"\" + generatedSequence + \"\\\") to output directory...\\n\", LogSerialiser.LogLevel.Info);\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUtil.copyToDirectory(currentSeq.getAbsolutePath(),\n\t\t\t\t\t\t\t\tsettings.get(ConfigTags.OutputDir) + File.separator + \"sequences\", \n\t\t\t\t\t\t\t\tgeneratedSequence,\n\t\t\t\t\t\t\t\ttrue); // by urueda\n\t\t\t\t\t\tLogSerialiser.log(\"Copied generated sequence to output directory!\\n\", LogSerialiser.LogLevel.Debug);\t\t\t\t\t\n\t\t\t\t\t} catch (NoSuchTagException e) {\n\t\t\t\t\t\tLogSerialiser.log(\"No such tag exception copying test sequence\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\tLogSerialiser.log(\"I/O exception copying test sequence\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\t\t}\n\t\t\t\t\tcopyClassifiedSequence(generatedSequence, currentSeq, finalVerdict);\n\t\t\t\t}\n\t\t\t\tif(!problems)\n\t\t\t\t\tthis.forceToSequenceLengthAfterFail = false;\n\t\n\t\t\t\tLogSerialiser.log(\"Releasing canvas...\\n\", LogSerialiser.LogLevel.Debug);\n\t\t\t\tcv.release();\n\t\t\t\t\n\t\t\t\tsaveSequenceMetrics(generatedSequence,problems);\n\t\t\t\t\n\t\t\t\tif (ConfigTags.Strategy != null && !ConfigTags.Strategy.equals(\"\")){\n\t\t\t\t\tSystem.out.println(\"It's a strategy test generator\");\n\t\t\t\t\tsaveStrategyMetrics(generatedSequence,problems);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tScreenshotSerialiser.exit(); final String[] report = Grapher.getReport(); // screenshots must be serialised\n\t\t\t\tTestSerialiser.exit();\n\t\t\t\tString stopDateString = Util.dateString(DATE_FORMAT),\n\t\t\t\t\t durationDateString = Util.diffDateString(DATE_FORMAT, startDateString, stopDateString);\n\t\t\t\tLogSerialiser.log(\"TESTAR stopped execution at \" + stopDateString + \"\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\tLogSerialiser.log(\"Test duration was \" + durationDateString + \"\\n\", LogSerialiser.LogLevel.Critical);\n\t\t\t\tLogSerialiser.flush(); LogSerialiser.finish(); LogSerialiser.exit();\n\n\t\t\t\t// save report\n\t\t\t\tthis.saveReportPage(generatedSequence, \"clusters\", report[0]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"testable\", report[1]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"curve\", report[2]);\n\t\t\t\tthis.saveReportPage(generatedSequence, \"stats\", report[3]);\n\t\t\t\t// end by urueda\n\t\t\t\t\n\t\t\t\tsequenceCount++;\n\t\t\t\t\n\t\t\t// begin by urueda\n\t\t\t} catch(Exception e){\n\t\t\t\tthis.killTestLaunchedProcesses();\n\t\t\t\tScreenshotSerialiser.finish();\n\t\t\t\tTestSerialiser.finish();\t\t\t\t\n\t\t\t\tGrapher.walkFinished(false, null, null);\n\t\t\t\tScreenshotSerialiser.exit(); LogSerialiser.log(Grapher.getReport() + \"\\n\", LogSerialiser.LogLevel.Info); // screenshots must be serialised\n\t\t\t\tLogSerialiser.log(\"Exception <\" + e.getMessage() + \"> has been caught\\n\", LogSerialiser.LogLevel.Critical); // screenshots must be serialised\n\t\t\t\tint i=1; StringBuffer trace = new StringBuffer();\n\t\t\t\tfor(StackTraceElement t : e.getStackTrace())\n\t\t\t\t trace.append(\"\\n\\t[\" + i++ + \"] \" + t.toString());\n\t\t\t\tSystem.out.println(\"Exception <\" + e.getMessage() + \"> has been caught; Stack trace:\" + trace.toString());\n\t\t\t\tif (system != null)\n\t\t\t\t\tsystem.stop();\n\t\t\t\tTestSerialiser.exit();\n\t\t\t\tLogSerialiser.flush(); LogSerialiser.finish(); LogSerialiser.exit();\n\t\t\t\tthis.mode = Modes.Quit; // System.exit(1);\n\t\t\t}\n\t\t}\n\t\tif (settings().get(ConfigTags.ForceToSequenceLength).booleanValue() && // force a test sequence length in presence of FAIL\n\t\t\t\tthis.actionCount <= settings().get(ConfigTags.SequenceLength) && mode() != Modes.Quit){\n\t\t\tthis.forceToSequenceLengthAfterFail = true;\n\t\t\tSystem.out.println(\"Resuming test after FAIL at action number <\" + this.actionCount + \">\");\n \t\t\trunTest(); // continue testing\n\t\t} else\n\t\t\tthis.forceToSequenceLengthAfterFail = false;\t\t\t\n\t\t// end by urueda\n\t}", "public static void main(String[] args) {\n\t\trun();\n\t\t//runTest();\n\n\t}", "public static void run()\n {\n String[] testInput = FileIO.readAsStrings(\"2020/src/day17/Day17TestInput.txt\");\n String[] realInput = FileIO.readAsStrings(\"2020/src/day17/Day17Input.txt\");\n\n Test.assertEqual(\"Day 17 - Part A - Test input\", partA(testInput), 112);\n Test.assertEqual(\"Day 17 - Part A - Challenge input\", partA(realInput), 384);\n Test.assertEqual(\"Day 17 - Part B - Test input\", partB(testInput), 848);\n Test.assertEqual(\"Day 17 - Part B - Challenge input\", partB(realInput), 2012);\n }", "public static void main(String args[]){\n\t\tTestingUtils.runTests();\n\t\t\n\t}", "private static void test4() {\n int[] numbers = {4, 5, 1, 6, 2, 7, 2, 8};\n int[] expected = {1, 2};\n\n test(\"Test4\", numbers, expected);\n }", "public static void main(String[] args) {\n\t\t\n\t\tglobalTest();\n//\t\ttimeTest();\n//\t\ttestPrefixSearch();\n//\t\ttestSearch();\n//\t\ttestPrediction();\n//\t\ttestTrieSearch();\n//\t\ttestRebuid();\n//\t\ttest13();\n//\t\ttest14();\n\t}", "public static void main( String args[] ) {\n\n for ( int j = 0; j < TEST_COUNT; ++j ) {\n testSuite[j].execute();\n }\n }", "@Test\n public void testDAM30402001() {\n testDAM30101001();\n }", "@Test\n public void testNextWaiting() {\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testMAROS_R7() {\n CuteNetlibCase.doTest(\"MAROS-R7.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void testDAM30203001() {\n testDAM30102001();\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n String[] stringArray0 = new String[0];\n Evaluation.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "public static void main(String... args) throws Exception {\n //testHelloWorld();\n //testExchange();\n //testParentChild();\n //testLinking();\n //testListener();\n //testParse(\"1\");\n //testOuterInner();\n //testResourceARM();\n //testExecuteAround();\n testExecuteAroundARM();\n }", "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "@Test\n public void testDAM30601001() {\n testDAM30102001();\n }", "public static void main (String[] args) {\r\n prueba( 24 );\r\n self_test(16);\r\n self_test(24);\r\n self_test(32);\r\n }", "public static void runRandom() throws Exception {\r\n\t\ti = (int) (Math.random()*10)+1;\r\n\t\tfor (int a = 1;a <= i;a++) {\r\n\t\t\ttestRun(a);\r\n\t\t\tSystem.out.println(\"\\n\\n\");\r\n\t\t}\r\n\t\t\r\n\t}", "private static void sample1() {\n\t\tIComputer computer = new Computer();\n\t\tcomputer.setProgram(\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0x71,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xc1,\n\t\t\t(byte) 0x70,\n\t\t\t(byte) 0xc0,\n\t\t\t(byte) 0xff);\n\t\tTestContext context = new TestContext(\n\t\t (byte) 0xa1, (byte) 0x9b, (byte) 0x3c);\n\t\tcomputer.run(context);\n\t\tSystem.out.println(context.outputToString());\n\t}", "public static void main(String[] args) {\n\t\ttest1();\r\n\t\ttest2();\r\n\t\t\r\n\t}", "public static void main(String[] args) throws IOException, InterruptedException {\r\n\t\r\n TournamentTest();\r\n //humanPlayersTest();\r\n }", "public static void main(String[] args) {\n test4();\n }", "public static void main(String [] args) {\r\n\t\ttestOne(); //adds items to WH; tests getNumItems method & toString method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestTwo(); //tests getItem(String) method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestThree(); //test getItem(Item) method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestFour(); //tests total cost method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestFive(); //this will test the getRefrigeratedItems method\r\n\t\tSystem.out.print(\"\\n\"); \r\n\t\ttestSix(); //tests getTotalCostRefrigerated method\r\n\t\tSystem.out.print(\"\\n\");\r\n\t\ttestSeven(); //tests remove method\r\n\t}", "public static void main(String[] args) {\r\n\r\n\t\ttry {\r\n\t\t\tDatabaseManager.setPatternNumber(1);\r\n\t\t\tDatabaseManager.getSingleton().openConnection();\r\n\r\n\t\t\tSingleTableCreator.dropAllTables();\r\n\t\t\tSingleTableCreator.createTables();\r\n\t\t\tSingleTableCreator.addTestRows();\r\n\r\n\t\t\tTestEVERYTHING.testRunAllTheTests();\r\n\r\n\t\t\tSystem.out.println(\"ya done diddly did it\");\r\n\r\n\t\t\tDatabaseManager.getSingleton().closeConnection();\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\tDatabaseException.detectError(e, \"Runnable - Single\");\r\n\t\t}\r\n\t}", "@Test\n\tvoid FibonacciTest() \n\t{\tassertEquals(0, utilities.Fibonacci(0));\n\t\tassertEquals(1, utilities.Fibonacci(1));\n\t\tassertEquals(1, utilities.Fibonacci(2));\n\t\tassertEquals(2, utilities.Fibonacci(3));\n\t\tassertEquals(3, utilities.Fibonacci(4));\n\t\tassertEquals(89, utilities.Fibonacci(11));\n\n\t}", "public static void main (String[] args) {\n \n doTest (\"hello\");\n doTest (\"query\");\n doTest (\"Mississippi\");\n doTest (\"elephant\");\n doTest (\"Qatar\");\n System.out.println();\n \n }", "@Test\n\tpublic void testBuild() {\n\n\t\tSystem.out.println(\"End\");\n\t}", "@Test(timeout = 4000)\n public void test82() throws Throwable {\n NaiveBayesMultinomialText.main((String[]) null);\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_8() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX, REPLACEMENT, BASE), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static void main(String[] args){\n boolean run = true;\n TestSlideLeft TSL = new TestSlideLeft();\n System.out.println(\"Test to start \"+\n TSL.TestStart(run).getResult());\n \n }", "public static void main(String[] args){\n printRandomAll(5);\n\n }", "private boolean doTestsPass()\r\n {\r\n return minimalSteps(\"ABCDABCE\") == 8 && minimalSteps(\"ABCABCE\") == 5;\r\n }", "public static void main(String[] args) { \n\t\tint[] try1 = new int[1000000000];\n\t\tRandom rand = new Random();\n\t\tfor(int i = 0; i < try1.length; i++) {\n\t\t\ttry1[i] = rand.nextInt();\n\t\t}\n // System.out.println(toString1(try1));\n\t\tLong startTime = new Long(System.currentTimeMillis());\n\t\tquickSortIn(try1, 0, try1.length - 1, 20);\n\t\tLong endTime = new Long(System.currentTimeMillis());\n\t\tSystem.out.println(endTime.intValue() - startTime.intValue());\n // System.out.println(toString1(try1));\n\n\n // Which test to run?\n\t // test();\n\t // test2();\n\t // test3();\n\t // test4();\n\t\n\t}", "public static void main(String[] args) {\n new TSL2550Test();\n }", "@Test\n public void testDAM30903001() {\n testDAM30802001();\n }", "@Test\n public void test39() throws Throwable {\n String[] stringArray0 = new String[7];\n Evaluation.main(stringArray0);\n }", "public void testFiveRunsJudged() throws IOException, ClassNotFoundException, FileSecurityException, RunUnavailableException {\n\n InternalContest contest = new InternalContest();\n \n initContestData(contest);\n \n createJudgedRun(contest, 2, false);\n createJudgedRun(contest, 0, true);\n createJudgedRun(contest, 3, false);\n createJudgedRun(contest, 4, false);\n\n checkOutputXML(contest);\n }", "public static void main(String[] args) {\n\t\tdeferTest();\n\t}", "@Override\n public void run(String... args) throws Exception {\n this.exercise6();\n }", "@Test\n public void startGameEight() {\n this.reset();\n this.bps.startGame(this.fullDeck, false, 7, 3);\n assertEquals(this.drawCards, this.bps.getDrawCards());\n assertEquals(7, this.bps.getNumRows());\n assertEquals(3, this.bps.getNumDraw());\n assertEquals(4, this.bps.getRowWidth(3));\n assertFalse(this.bps.isGameOver());\n assertEquals(185, this.bps.getScore());\n assertEquals(this.d13, this.bps.getCardAt(6, 4));\n this.deck.add(this.h3);\n this.deck.add(this.h4);\n this.deck.add(this.h5);\n\n assertEquals(this.deck, this.bps.getDrawCards());\n }", "public static void main(String[] args) throws Exception {\n\t\trunRandom();\r\n\t\t\r\n\t\tThread.sleep(10);\r\n\t\tSystem.err.println(\"that is all\");\r\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR7() {\n CuteNetlibCase.doTest(\"SCAGR7.SIF\", \"-2331389.8243309837\", null, NumberContext.of(7, 4));\n }", "@Test\r\n\tpublic void testPositiveGenerateIntegerSequences_6() {\n\t\tint i = 1;\r\n\t\tfor (RandomOrgClient roc : rocs) {\r\n\t\t\ttry {\r\n\t\t\t\tcollector.checkThat(roc.generateIntegerSequences(4, LENGTH, MIN, MAX), notNullValue());\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\tcollector.addError(new Error(errorMessage(i, e, true)));\r\n\t\t\t}\r\n\t\t\ti++;\r\n\t\t}\r\n\t}", "public static void main(String[] args) {\n\t\tfor(int a=1;a<=100;a++) {\r\n\t\t\tif(a%5==0&&a%7==0) {\r\n\t\t\t\tSystem.out.println(a);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "public static Simulation TestFullSteps(Simulation sim, int multiprogramming){\n Random r = new Random();\n while(SIM-- > 0 && multiprogramming > 0){\n sim.simulate(r.nextInt(multiprogramming));\n if(sim.cleanOnMemoryList()){\n sim.updateOnMemoryList(multiprogramming);\n }\n } \n \n System.out.println(\"Hits: \" + sim.getPageHits());\n System.out.println(\"Faults: \" + sim.getPageFaults());\n System.out.println(\"Finished step test \");\n \n return sim;\n }", "public static void main(String[] args) {\n\t\tSystem.out.println(test(7, 4, 8));\r\n\t\tSystem.out.println(test(7, 8, 4));\r\n\t}", "public void test642_smartLifting7() {\n \n runConformTest(\n new String[] {\n\t\t\"T642sl7Main.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7Main {\\n\" +\n\t\t\t \" public static void main(String[] args) {\\n\" +\n\t\t\t \" Team642sl7_1 t = new Team642sl7_3();\\n\" +\n\t\t\t \" T642sl7_2 o = new T642sl7_4();\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" System.out.print(t.t1(o));\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_4 extends Team642sl7_3 {\\n\" +\n\t\t\t \" public class Role642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_4.this.toString() + \\\".Role642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_3 extends T642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_1 {\\n\" +\n\t\t\t \" public class Role642sl7_1 extends T642sl7_6 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public abstract class Role642sl7_2 extends Role642sl7_1 playedBy T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public class Role642sl7_3 extends Role642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_1.this.toString() + \\\".Role642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String t1(T642sl7_2 as Role642sl7_1 obj) {\\n\" +\n\t\t\t \" return obj.toString();\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_4.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_4 extends T642sl7_2 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_2 extends Team642sl7_1 {\\n\" +\n\t\t\t \" public class Role642sl7_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_2.this.toString() + \\\".Role642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" public class Role642sl7_4 extends Role642sl7_3 playedBy T642sl7_3 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_2.this.toString() + \\\".Role642sl7_4\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_5.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_5 extends T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_1.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_1\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"Team642sl7_3.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public team class Team642sl7_3 extends Team642sl7_2 {\\n\" +\n\t\t\t \" public class Role642sl7_5 extends Role642sl7_3 playedBy T642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return Team642sl7_3.this.toString() + \\\".Role642sl7_5\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"Team642sl7_3\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_6.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public class T642sl7_6 extends T642sl7_5 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_6\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\",\n\t\t\"T642sl7_2.java\",\n\t\t\t \"\\n\" +\n\t\t\t \"public abstract class T642sl7_2 extends T642sl7_1 {\\n\" +\n\t\t\t \" public String toString() {\\n\" +\n\t\t\t \" return \\\"T642sl7_2\\\";\\n\" +\n\t\t\t \" }\\n\" +\n\t\t\t \"}\\n\" +\n\t\t\t \" \\n\"\n },\n \"Team642sl7_3.Role642sl7_3\");\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testSCRS8() {\n CuteNetlibCase.doTest(\"SCRS8.SIF\", \"960.0206152764557\", null, NumberContext.of(7, 4));\n }", "@Test public void runCommonTests() {\n\t\trunAllTests();\n\t}", "public static void runUsual() throws Exception {\r\n\t\ttestRun(0);\r\n\t}", "public static void main(String[] args) {\n\t\tint s;\n\t\tfor (int i = 0; i < 10; i++) {\n\t\t\ttry {\n\t\t\t\tassert i % 2 == 0;\n\t\t\t\ti--;\n\t\t\t\tSystem.out.println(\"Envn Number:\" + i);\n\t\t\t} catch (AssertionError ae) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\tSystem.out.println(\"Olld Number :\" + ++i);\n\t\t\t}\n\t\t\tint k = 5;\n\n\t\t}\n\n\t}", "@Test\n public void testDAM31501001() {\n //\n testDAM30201001();\n }", "public static void main(String[] args){\n new Testing().runTests();\r\n \r\n }", "public static void main(String[] args) {\n long startTime = System.currentTimeMillis();\n// final File folder = new File(\"tests/speedTestExamples\");\n final File folder = new File(\"tests/speedTestExamples/hard\");\n iterateExamples(folder);\n long ms = System.currentTimeMillis() - startTime;\n System.out.println(\"All tests have been finished in \" + ((double) ms) / (1000 * 60 * 60) + \" hours.\");\n }", "@Test\n @Order(7)\n void taillardTest() {\n try {\n\n for (int i = 0; i < SearchTestUtil.taillardFilenames.length; i++) {\n System.out.println(\"Run#\" + SearchTestUtil.taillardFilenames[i]);\n assignementProblem.taillardInitializer(SearchTestUtil.taillardFilenames[i]);\n assignementProblem.setNeighborsFunction(NEIGHBORHOOD_TYPE, assignementProblem.getAssignmentData().getLength());\n assignementProblem.setInCombination(Combination.generateRandom(assignementProblem.getAssignmentData().getLength()));\n executeAlgo(SearchTestUtil.ALGO.TABU);\n executeAlgo(SearchTestUtil.ALGO.RECUIT);\n\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "@Test\n public void test8(){\n\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void test80BAU3B() {\n CuteNetlibCase.doTest(\"80BAU3B.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n\t\tuntil_3_Trials_Or_100();\n\t}", "public void Run(){\n\t\t_TEST stack = new _TEST();\t\t/* TEST */\n\t\tstack.PrintHeader(ID,\"\", \"\");\t/* TEST */\n\t\t\n\t\tSetStatus(Status.RUNNING);\n\t\t\n\t\tstack.PrintTail(ID,\"\", \"\"); \t/* TEST */\n\t\t\n\t}", "public void run() {\n RandomizedContext current = RandomizedContext.current();\n try {\n current.push(c.randomness);\n runSingleTest(notifier, c);\n } catch (Throwable t) {\n Rethrow.rethrow(augmentStackTrace(t)); \n } finally {\n current.pop();\n }\n }", "public void TestMain(){\n SampleStatements();\n TestMyPow();\n }", "public static void main(String[] args) {\n\t\ttest1();\n\t\ttest2();\n\t\tdivision();\n\t\tdivision_nullexception();\n\t\n\t}", "private test5() {\r\n\t\r\n\t}", "@Test\n\tpublic void bmainTestOne() {\n\t\tAssert.assertEquals(\"Test1\", \"Test1\");\n\t\tSystem.out.println(\"This is main Test 2\");\n\t}", "@Test\n\tpublic void testTotalPuzzleGenerated() {\n\t}", "@Test(enabled =true, groups={\"fast\",\"window.One\",\"unix.One\",\"release1.one\"})\n\tpublic void testOne(){\n\t\tSystem.out.println(\"In TestOne\");\n\t}", "public static void main(String[] args){\n\t\ttest1();\r\n\t}", "@Test(invocationCount=1,skipFailedInvocations=false)\n public void testDemo() throws TimeOut{\n \tMentalStateManager msmAgent1_0DeploymentUnitByType3=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType3\");\n \t \t\t\t\n \t// wait for Agent1_0DeploymentUnitByType2 to initialise\n \tMentalStateManager msmAgent1_0DeploymentUnitByType2=MSMRepository.getInstance().waitFor(\"Agent1_0DeploymentUnitByType2\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType1 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType1=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType1\");\n \t \t\t\t\n \t// wait for Agent0_0DeploymentUnitByType0 to initialise\n \tMentalStateManager msmAgent0_0DeploymentUnitByType0=MSMRepository.getInstance().waitFor(\"Agent0_0DeploymentUnitByType0\");\n \t\n \t\n \tGenericAutomata ga=null;\n \tga=new GenericAutomata();\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState0\");\t\t\n\t\t\t\n\t\t\tga.addInitialState(\"default_WFTestInitialState1\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addFinalState(\"WFTestFinalState0\");\t\t\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState0\",\"Agent0_0DeploymentUnitByType0-Task0\",\"WFTestInitialState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState0\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\n\t\t\tga.addStateTransition(\"default_WFTestInitialState1\",\"Agent0_0DeploymentUnitByType1-Task0\",\"WFTestInitialState1\");\n\t\t\t\n\t\t\tga.addStateTransition(\"WFTestInitialState1\",\"Agent1_0DeploymentUnitByType2-Task1\",\"WFTestFinalState0\");\n\t\t\t\t\n\t\t\t\n\t\t\tTaskExecutionValidation tev=new TaskExecutionValidation(ga);\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType0\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\n \ttev.registerTask(\"Agent0_0DeploymentUnitByType1\",\"Task0\");\n \t\n \ttev.registerTask(\"Agent1_0DeploymentUnitByType2\",\"Task1\");\n \t\t\n \t\t\n \tRetrieveExecutionData cwfe=new \tRetrieveExecutionData();\n \tEventManager.getInstance().register(cwfe);\n\t\tlong step=100;\n\t\tlong currentTime=0;\n\t\tlong finishedTime=0;\n\t\tlong duration=2000;\n\t\tlong maxtimepercycle=2000;\n\t\t \n\t\tMainInteractionManager.goAutomatic(); // tells the agents to start working\t\t\t\n\t\twhile (currentTime<finishedTime){\n\t\t\t\ttry {\n\t\t\t\t\tThread.currentThread().sleep(step);\n\t\t\t\t\t\n\t\t\t\t} catch (InterruptedException e) {\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tcurrentTime=currentTime+step;\n\t\t\t}\n\t\t\t\n\t\t\tif (currentTime<duration){\n\t\t\t\tTestUtils.doNothing(duration-currentTime); // waits for tasks to execute\t\n\t\t\t}\n\t\t\t\t\t\n\t\t\t\n\t\t\tMainInteractionManager.goManual(); // now it commands to not execute more tasks\t\t\n\t\t\tEventManager.getInstance().unregister(cwfe);\n\t\t\t\n\t\t Vector<String> counterExamples=tev.validatePartialTermination(cwfe,ga,maxtimepercycle);\n\t\t assertTrue(\"The execution does not match the expected sequences. I found the following counter examples \"+counterExamples,counterExamples.isEmpty());\t\t\n\t\t\t\t\t\t\t\n }", "@Test\n public void test() {\n\n testBookExample();\n // testK5();\n // testK3_3();\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n evaluation0.setNumericPriorsFromBuffer();\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "@Test(priority = 0)\n\t public void testSurahLists_From_Surah_0_10_OnAlQuranPage() throws\n\t Exception {\n\t System.out.println(\"<------Testing Surah Lists From_Surah_1_10 On Al-Quran Page------->\\n\");\n\t testSurahs_chunk_wise(0, 10);\n\t }", "public static void main(String[] args) {\n\t\tSystem.out.println(\"-----------4.4--------------\");\r\n\t\twhileLoop1();\r\n\t\twhileLoop2();\r\n\t\twhileLoop3();\r\n\t\tforeachLoop();\r\n\t\tdoWhileLoop1();\r\n\t\tdoWhileLoop2();\r\n\t\tbreakWithFor();\r\n\r\n\t}", "public static void main(String[] args) {demo6();\r\n\t\t\r\n\t}" ]
[ "0.71589583", "0.71033293", "0.67028683", "0.6617612", "0.6613135", "0.64393085", "0.64075977", "0.6392078", "0.6383564", "0.6371245", "0.6369146", "0.63670915", "0.6355988", "0.6353045", "0.6328531", "0.63005424", "0.62817293", "0.62785625", "0.6273214", "0.6265134", "0.6263677", "0.62549883", "0.62416565", "0.62367123", "0.6222863", "0.62226784", "0.6213291", "0.62032914", "0.62014985", "0.61874485", "0.61866266", "0.6148277", "0.61274993", "0.6126283", "0.61177546", "0.61145157", "0.6111925", "0.6102859", "0.60998327", "0.6098005", "0.6095814", "0.60929185", "0.6085685", "0.608441", "0.60827863", "0.60821325", "0.60794497", "0.60604554", "0.6053523", "0.6053239", "0.6052593", "0.60515124", "0.6034865", "0.60251474", "0.60237783", "0.60221034", "0.602199", "0.60193324", "0.6016047", "0.60132134", "0.6007139", "0.60052776", "0.6002952", "0.5997673", "0.5996869", "0.59919626", "0.59890443", "0.598626", "0.59858346", "0.5985176", "0.5984941", "0.5984667", "0.5980367", "0.59785056", "0.5978367", "0.5973783", "0.5968615", "0.5963231", "0.59522367", "0.5951609", "0.59408855", "0.594053", "0.5938643", "0.59325874", "0.593212", "0.59280723", "0.59280705", "0.59270984", "0.5924494", "0.59210885", "0.59186995", "0.5917636", "0.5916761", "0.5911778", "0.5908331", "0.59052455", "0.5895858", "0.58830696", "0.5881269", "0.58712703", "0.5869587" ]
0.0
-1
148 Override to run the test and assert its state.
protected void runTest() throws Throwable { assertNotNull("TestCase.fName cannot be null", fName); // Some VMs crash when calling getMethod(null,null); Method runMethod= null; try { // use getMethod to get all public inherited // methods. getDeclaredMethods returns all // methods of this class but excludes the // inherited ones. runMethod= getClass().getMethod(fName, (Class [])null); } catch (NoSuchMethodException e) { fail("Method \""+fName+"\" not found"); } if (!Modifier.isPublic(runMethod.getModifiers())) { fail("Method \""+fName+"\" should be public"); } try { runMethod.invoke(this); } catch (InvocationTargetException e) { e.fillInStackTrace(); throw e.getTargetException(); } catch (IllegalAccessException e) { e.fillInStackTrace(); throw e; } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void runTest() {\n\t\trunTest(getIterations());\n\t}", "public void test() {\n\tassertTrue(true);\n\t}", "@Override\n protected void executeTest() {\n ClientConnection<Event> harry = register(0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n ClientConnection<Event> statist23 = register(1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n\n assertRegisterEvent(harry.nextEvent(), 1, \"Statist23\", CreatureType.KOBOLD, \"Passive\", 0, 0);\n assertRegisterEvent(statist23.nextEvent(), 0, \"Harry\", this.monstertype, \"Active\", 1, 0);\n\n // round 1 begins\n assertRoundBegin(assertAndMerge(harry, statist23), 1);\n\n for (int i = 0; i < this.stepsBeforeTurn; i++) {\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(Direction.EAST);\n assertMoved(assertAndMerge(harry, statist23), 0, Direction.EAST);\n }\n assertActNow(assertAndMerge(harry, statist23), 0);\n harry.sendMove(this.lastDirection);\n assertKicked(assertAndMerge(harry, statist23), 0);\n\n assertActNow(assertAndMerge(harry, statist23), 1);\n statist23.sendDoneActing();\n assertDoneActing(assertAndMerge(harry, statist23), 1);\n\n assertRoundEnd(assertAndMerge(harry, statist23), 1, 0);\n assertWinner(assertAndMerge(harry, statist23), \"Passive\");\n }", "@Override\n public void runTest() {\n }", "@Override\n\tpublic void runTest() throws Throwable {}", "public TestResult run() {\n TestResult result= createResult();\n run(result);\n return result;\n }", "public void Run(){\n\t\t_TEST stack = new _TEST();\t\t/* TEST */\n\t\tstack.PrintHeader(ID,\"\", \"\");\t/* TEST */\n\t\t\n\t\tSetStatus(Status.RUNNING);\n\t\t\n\t\tstack.PrintTail(ID,\"\", \"\"); \t/* TEST */\n\t\t\n\t}", "public void testExecute() {\n\t\taes.execute();\n\t\t\n\t\tassertTrue(a.wasStopPollingMessagesCalled);\n\t\tassertTrue(osm.wasWriteCalled);\n\t}", "public static void testIt () {\r\n\t\tjunit.textui.TestRunner.run (suite());\r\n\t}", "protected abstract TestResult runTestImpl() throws Exception;", "@Override\n\tpublic void homeTestRun() {\n\t\t\n\t}", "public void run(TestCase testCase) {\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tTester tester = new Tester();\n\t\t\t\tTestEditor testEditor = new TestEditor(tester) {\n\n\t\t\t\t\tprivate static final long serialVersionUID = 1L;\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic Class<?>[] getTestActionClasses() {\n\t\t\t\t\t\tList<Class<?>> result = new ArrayList<Class<?>>(Arrays.asList(super.getTestActionClasses()));\n\t\t\t\t\t\tresult.add(CustomComponentAssertion.class);\n\t\t\t\t\t\treturn result.toArray(new Class<?>[result.size()]);\n\t\t\t\t\t}\n\n\t\t\t\t};\n\n\t\t\t\t/*\n\t\t\t\t * Customize and open the test editor.\n\t\t\t\t */\n\t\t\t\ttestEditor.setDecorationsBackgroundColor(new Color(68, 61, 205));\n\t\t\t\ttestEditor.setDecorationsForegroundColor(new Color(216, 214, 245));\n\t\t\t\ttestEditor.open();\n\t\t\t}", "public void run() {\n RandomizedContext current = RandomizedContext.current();\n try {\n current.push(c.randomness);\n runSingleTest(notifier, c);\n } catch (Throwable t) {\n Rethrow.rethrow(augmentStackTrace(t)); \n } finally {\n current.pop();\n }\n }", "protected abstract void executeTests() throws BuilderException;", "protected void runBeforeTest() {}", "@Test\n public void testStart()\n {\n assertTrue(theEngine.inStartingState());\n theEngine.start();\n assertTrue(theEngine.inPlayingState()); \n }", "@Test(description=\"Testing Report if Exception is Occurred (Throwing Exception Intentionally)\")\n\tpublic void test() {\n\t\tReporter.log(\"Running test Method from TC010 class\", true);\n\t\tthrow new IllegalStateException();\n\t}", "@Override\n public void run(GameState gameState, MoveMaker move)\n throws AssertionError,\n UnsupportedOperationException,\n IllegalArgumentException {\n out.println(\"This is just an example\");\n\n // Set up the GameState for the test\n gameState.setWhoseTurn(0);\n\n // Do something in the game with the MoveMaker interface\n move.endTurn();\n\n // Check the GameState responded as expected\n // The tester will mark a test as failed if an assert is false\n assert (gameState.getWhoseTurn() == 1);\n move.endTurn();\n assert (gameState.getWhoseTurn() == 0);\n\n // The tester will automatically print the things every test\n // should have. These include a smiley, and \"You Are Awesome!\"\n }", "public void run(TestResult result) {\n result.run(this);\n }", "@Test\r\n\tpublic void testGetState() {\r\n\t}", "public void run() {\n block5 : {\n if (this.testMethod.isIgnored()) {\n this.notifier.fireTestIgnored(this.description);\n return;\n }\n this.notifier.fireTestStarted(this.description);\n try {\n long timeout = this.testMethod.getTimeout();\n if (timeout > 0) {\n this.runWithTimeout(timeout);\n break block5;\n }\n this.runTest();\n }\n finally {\n this.notifier.fireTestFinished(this.description);\n }\n }\n }", "@Override\r\n\t\t\tpublic void test() {\n\t\t\t}", "@Test\n public void testCloseMenuPlan() {\n System.out.println(\"closeMenuPlan\");\n MenuPlan instance = new MenuPlan();\n instance.closeMenuPlan();\n boolean expResult = true;\n boolean result = false;\n if(instance.getState() == State.CLOSED){\n result = true;\n } \n assertEquals(result, expResult);\n \n }", "protected void test(TestRunnable r) throws Exception {\n generateCorrectClassFiles();\n\n runTest(r);\n }", "public TestCase pass();", "protected void runTest() throws Throwable {\n\t\t\t\t\t\t\t\tthrow e;\n\t\t\t\t\t\t\t}", "@Override\n protected void invokeTestRunnable(final Runnable runnable) throws Exception {\n System.out.println(\"Invoke: \" + runnable);\n runnable.run();\n }", "public void run(TestResult result) {\n try {\n TestHarness testApp = setupHarness();\n if (printInfo)\n testApp.printInfo(System.out, testBranchs);\n else\n testApp.run(result);\n } catch (Exception e) {\n result.addError(this, e);\n }\n }", "public Test TestStart(boolean run){\n Test theTest = new Test(\n \"Test Start\",//Test Title\n CLASSNAME,//Class Name\n \"start()\",//Method Being Tested\n \"A test to seethe slide can start\", //Description\n \"N/A\", //Input Data\n \"True\" //Expected output\n ); \n \n \n \n \n \n if(run){\n theTest.hasRun();\n try{\n sl.start();\n theTest.setPassed(true);\n }catch(Exception e){\n theTest.setPassed(false);\n }\n \n }\n return theTest;\n }", "public void run() {\n assertEquals(sendQuery(\"SFO\"), 7);\n assertEquals(sendQuery(\"RHV\"), 1);\n assertEquals(sendQuery(\"xyzzy\"), 0);\n }", "@Test\n\tpublic void Cases_23275_execute() throws Exception {\n\t\tVoodooUtils.voodoo.log.info(\"Running \" + testName + \"...\");\n\n\t\t// Go to Active tasks dashlet\n\t\t// TODO: VOOD-960 - Dashlet selection \n\t\tnew VoodooControl(\"span\", \"css\", \".row-fluid > li div span a span\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"[data-dashletaction='createRecord']\").click();\n\t\tsugar().tasks.createDrawer.getEditField(\"subject\").set(testName);\n\t\tsugar().tasks.createDrawer.save();\n\t\tif(sugar().alerts.getSuccess().queryVisible()) {\n\t\t\tsugar().alerts.getSuccess().closeAlert();\n\t\t}\n\n\t\t// refresh the Dashlet\n\t\tnew VoodooControl(\"a\", \"css\", \".dashboard-pane ul > li > ul > li .btn-group [title='Configure']\").click();\n\t\tnew VoodooControl(\"a\", \"css\", \"li > div li div [data-dashletaction='refreshClicked']\").click();\n\t\tVoodooUtils.waitForReady();\n\n\t\t// Verify task is in Active-Task Dashlet (i.e in TODO tab, if we have no related date for that record)\n\t\tnew VoodooControl(\"div\", \"css\", \"div[data-voodoo-name='active-tasks'] .dashlet-unordered-list .dashlet-tabs-row div.dashlet-tab:nth-of-type(3)\").click();\n\t\tnew VoodooControl(\"div\", \"css\", \"div.tab-pane.active p a:nth-of-type(2)\").assertEquals(testName, true);\n\n\t\tVoodooUtils.voodoo.log.info(testName + \" complete.\");\n\t}", "public TestResults run() {\n\t\treturn run(getConfiguredDuration());\n\t}", "@org.junit.Test\n public void testRun() {\nSystem.out.println(\"run\");\n final TwitterFeedTask instance = new TwitterFeedTask();\n \n instance.run();\n }", "public boolean test() throws Exception {\n throw new Exception(\"Test funcationality not yet implemented: unclear API\");\n }", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "public static void runAllTheTests() {\n\t\ttestConstructorAndGetters();\n\t}", "@Override\n public void run() {\n assertEquals(3, state.get());\n latch2.countDown();\n }", "@Test\n\tpublic void testCanEnter(){\n\t}", "public void runBare() throws Throwable {\n Throwable exception= null;\n setUp();\n try {\n runTest();\n } catch (Throwable running) {\n exception= running;\n }\n finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (exception == null) exception= tearingDown;\n }\n }\n if (exception != null) throw exception;\n }", "public StateTest(String testName) {\n super(testName);\n }", "public boolean runTest(AbstractTest testToRun) {\n boolean wasStarted = false;\n\n if (mCurrentTest == null || !mCurrentTest.isRunning()) {\n if (testToRun != null) {\n Log.i(TAG, \"runTest: \" + testToRun.getName());\n onTestStarting(testToRun.getName());\n mCurrentTest = testToRun;\n mCurrentTest.setListener(this);\n wasStarted = mCurrentTest.run();\n\n if (!wasStarted) {\n Log.e(TAG, \"runTest: Failed to run test \\\"\" + mCurrentTest.getName() + \"\\\", cancelling...\");\n mCurrentTest.cancel();\n mCurrentTest = null;\n }\n } else {\n Log.e(TAG, \"runTest: The given test is null\");\n }\n } else {\n Log.e(TAG, \"runTest: Cannot runTest since a previous test is still running\");\n }\n\n return wasStarted;\n }", "@Override\n default boolean run(final TestRun ctx) {\n final WaitFor waitForReady = this.waitForReady();\n if (waitForReady.run(ctx)) {\n return this.doRun(ctx);\n }\n return false;\n }", "protected void runTestCase(Statement testRoutine) throws Throwable {\n Throwable e = null;\n setUp();\n try {\n runTest(testRoutine);\n } catch (Throwable running) {\n e = running;\n } finally {\n try {\n tearDown();\n } catch (Throwable tearingDown) {\n if (e == null) e = tearingDown;\n }\n }\n if (e != null) throw e;\n }", "@Override\r\n\t@Test(groups = {\"function\",\"setting\"} ) \r\n\tpublic boolean checkTest() {\n\t\tboolean flag = oTest.checkTest();\r\n\t\tAssertion.verifyEquals(flag, true);\r\n\t\treturn flag;\r\n\t}", "public void testRunning()\n\t\t{\n\t\t\tInvestigate._invData.clearStores();\n\n\t\t\tfinal WorldLocation topLeft = SupportTesting.createLocation(0, 10000);\n\t\t\ttopLeft.setDepth(-1000);\n\t\t\tfinal WorldLocation bottomRight = SupportTesting.createLocation(10000, 0);\n\t\t\tbottomRight.setDepth(1000);\n\t\t\tfinal WorldArea theArea = new WorldArea(topLeft, bottomRight);\n\t\t\tfinal RectangleWander heloWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander\");\n\t\t\theloWander.setSpeed(new WorldSpeed(20, WorldSpeed.Kts));\n\t\t\tfinal RectangleWander fishWander = new RectangleWander(theArea,\n\t\t\t\t\t\"rect wander 2\");\n\n\t\t\tRandomGenerator.seed(12);\n\n\t\t\tWaterfall searchPattern = new Waterfall();\n\t\t\tsearchPattern.setName(\"Searching\");\n\n\t\t\tTargetType theTarget = new TargetType(Category.Force.RED);\n\t\t\tInvestigate investigate = new Investigate(\"investigating red targets\",\n\t\t\t\t\ttheTarget, DetectionEvent.IDENTIFIED, null);\n\t\t\tsearchPattern.insertAtHead(investigate);\n\t\t\tsearchPattern.insertAtFoot(heloWander);\n\n\t\t\tfinal Status heloStat = new Status(1, 0);\n\t\t\theloStat.setLocation(SupportTesting.createLocation(2000, 4000));\n\t\t\theloStat.getLocation().setDepth(-200);\n\t\t\theloStat.setCourse(270);\n\t\t\theloStat.setSpeed(new WorldSpeed(100, WorldSpeed.Kts));\n\n\t\t\tfinal Status fisherStat = new Status(1, 0);\n\t\t\tfisherStat.setLocation(SupportTesting.createLocation(4000, 2000));\n\t\t\tfisherStat.setCourse(155);\n\t\t\tfisherStat.setSpeed(new WorldSpeed(12, WorldSpeed.Kts));\n\n\t\t\tfinal DemandedStatus dem = null;\n\n\t\t\tfinal SimpleDemandedStatus ds = (SimpleDemandedStatus) heloWander.decide(\n\t\t\t\t\theloStat, null, dem, null, null, 100);\n\n\t\t\tassertNotNull(\"dem returned\", ds);\n\n\t\t\t// ok. the radar first\n\t\t\tASSET.Models.Sensor.Lookup.RadarLookupSensor radar = new RadarLookupSensor(\n\t\t\t\t\t12, \"radar\", 0.04, 11000, 1.2, 0, new Duration(0, Duration.SECONDS),\n\t\t\t\t\t0, new Duration(0, Duration.SECONDS), 9200);\n\n\t\t\tASSET.Models.Sensor.Lookup.OpticLookupSensor optic = new OpticLookupSensor(\n\t\t\t\t\t333, \"optic\", 0.05, 10000, 1.05, 0.8, new Duration(20,\n\t\t\t\t\t\t\tDuration.SECONDS), 0.2, new Duration(30, Duration.SECONDS));\n\n\t\t\tHelo helo = new Helo(23);\n\t\t\thelo.setName(\"Merlin\");\n\t\t\thelo.setCategory(new Category(Category.Force.BLUE,\n\t\t\t\t\tCategory.Environment.AIRBORNE, Category.Type.HELO));\n\t\t\thelo.setStatus(heloStat);\n\t\t\thelo.setDecisionModel(searchPattern);\n\t\t\thelo.setMovementChars(HeloMovementCharacteristics.getSampleChars());\n\t\t\thelo.getSensorFit().add(radar);\n\t\t\thelo.getSensorFit().add(optic);\n\n\t\t\tSurface fisher2 = new Surface(25);\n\t\t\tfisher2.setName(\"Fisher2\");\n\t\t\tfisher2.setCategory(new Category(Category.Force.RED,\n\t\t\t\t\tCategory.Environment.SURFACE, Category.Type.FISHING_VESSEL));\n\t\t\tfisher2.setStatus(fisherStat);\n\t\t\tfisher2.setDecisionModel(fishWander);\n\t\t\tfisher2.setMovementChars(SurfaceMovementCharacteristics.getSampleChars());\n\n\t\t\tCoreScenario cs = new CoreScenario();\n\t\t\tcs.setScenarioStepTime(5000);\n\t\t\tcs.addParticipant(helo.getId(), helo);\n\t\t\tcs.addParticipant(fisher2.getId(), fisher2);\n\n\t\t\t// ok. just do a couple of steps, to check how things pan out.\n\t\t\tcs.step();\n\n\t\t\tSystem.out.println(\"started at:\" + cs.getTime());\n\n\t\t\tDebriefReplayObserver dro = new DebriefReplayObserver(\"./test_reports/\",\n\t\t\t\t\t\"investigate_search.rep\", false, true, true, null, \"plotter\", true);\n\t\t\tTrackPlotObserver tpo = new TrackPlotObserver(\"./test_reports/\", 300,\n\t\t\t\t\t300, \"investigate_search.png\", null, false, true, false, \"tester\",\n\t\t\t\t\ttrue);\n\t\t\tdro.setup(cs);\n\t\t\ttpo.setup(cs);\n\t\t\t//\n\t\t\tdro.outputThisArea(theArea);\n\n\t\t\tInvestigateStore theStore = Investigate._invData.firstStore();\n\n\t\t\t// now run through to completion\n\t\t\tint counter = 0;\n\t\t\twhile ((cs.getTime() < 12000000)\n\t\t\t\t\t&& (theStore.getCurrentTarget(23) == null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t\tcounter++;\n\t\t\t}\n\n\t\t\t// so, we should have found our tartget\n\t\t\tassertNotNull(\"found target\", theStore.getCurrentTarget(23));\n\n\t\t\t// ok. we've found it. check that we do transition to detected\n\t\t\tcounter = 0;\n\t\t\twhile ((counter++ < 100) && (theStore.getCurrentTarget(23) != null))\n\t\t\t{\n\t\t\t\tcs.step();\n\t\t\t}\n\n\t\t\tdro.tearDown(cs);\n\t\t\ttpo.tearDown(cs);\n\n\t\t\t// so, we should have cleared our tartget\n\t\t\tassertNull(\"found target\", theStore.getCurrentTarget(23));\n\t\t\tassertEquals(\"remembered contact\", 1, theStore.countDoneTargets());\n\n\t\t}", "@Test\n public void clientStateTest() {\n // TODO: test clientState\n }", "@Test\n public void testcancelwithrefund() //workon\n {\n\n BusinessManager businessManager = new BusinessManager();\n\n //how do i test void\n //how to i move to next thing\n //assertEquals(businessManager.cancelConfirm(\"yes\"), );\n\n }", "TestClassExecutionResult assertTestPassed(String name, String displayName);", "public static void runTests() {\n\t\tResult result = JUnitCore.runClasses(TestCalculator.class);\n\n\t}", "@Test\n public void main() {\n run(\"TEST\");\n }", "protected void doRun(Test test) {\n setMidletToNestedTests(test);\n super.doRun(test);\n }", "@Override\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tthread.get().log(Status.PASS, \"Pass\");\n\t}", "@Override\r\n public void runTests() {\r\n getTemperature();\r\n }", "@Test\r\n\tpublic void testRunTournamentMode() {\r\n\t\tString result=cl.runTournamentMode();\r\n\t\tassertEquals(\"Success\", result);\r\n\t}", "protected void runAfterTest() {}", "@Override\n\tpublic TestResult execute() {\n\t\ttestResult = new TestResult(\"Aggregated Result\");\n\t\t// before\n\t\ttry {\n\t\t\tbefore();\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @before! \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in before method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t}\n\n\t\t// run\n\t\ttestResult.setStart(System.currentTimeMillis());\n\t\tTestResult subTestResult = null;\n\t\ttry {\n\t\t\tsubTestResult = runTestImpl();\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" finished.\");\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t\ttestResult.setErrorMessage(\"Error @runTestImpl \" + e.getMessage());\n\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in runTestImpl method!\");\n\t\t\tnotifyObservers();\n\t\t\treturn testResult;\n\t\t} finally {\n\t\t\ttestResult.setEnd(System.currentTimeMillis());\n\t\t\tif(subTestResult != null)\n\t\t\t\ttestResult.addSubResult(subTestResult);\n\t\t\t// after\n\t\t\ttry {\n\t\t\t\tafter();\n\t\t\t} catch (Exception e) {\n\t\t\t\te.printStackTrace();\n\t\t\t\ttestResult.setErrorMessage(\"Error @after! \" + e.getMessage());\n\t\t\t\ttestResult.setStatus(STATUS.ERROR);\n\t\t\t\tLOGGER.info(\"Test \" + getTestIdentifier() + \" threw error in after method!\");\n\t\t\t}\n\t\t}\n\t\tnotifyObservers();\n\t\treturn testResult;\n\t}", "public void execute() {\n TestOrchestratorContext context = factory.createContext(this);\n\n PipelinesManager pipelinesManager = context.getPipelinesManager();\n ReportsManager reportsManager = context.getReportsManager();\n TestDetectionOrchestrator testDetectionOrchestrator = context.getTestDetectionOrchestrator();\n TestPipelineSplitOrchestrator pipelineSplitOrchestrator = context.getPipelineSplitOrchestrator();\n\n pipelinesManager.initialize(testTask.getPipelineConfigs());\n reportsManager.start(testTask.getReportConfigs(), testTask.getTestFramework());\n pipelineSplitOrchestrator.start(pipelinesManager);\n\n testDetectionOrchestrator.startDetection();\n testDetectionOrchestrator.waitForDetectionEnd();\n LOGGER.debug(\"test - detection - ended\");\n\n pipelineSplitOrchestrator.waitForPipelineSplittingEnded();\n pipelinesManager.pipelineSplittingEnded();\n LOGGER.debug(\"test - pipeline splitting - ended\");\n\n pipelinesManager.waitForExecutionEnd();\n reportsManager.waitForReportEnd();\n\n LOGGER.debug(\"test - execution - ended\");\n }", "@Test\n void run() throws Exception {\n setupDefaultAsPerProperties();\n\n JUnitUI UI = new JUnitUI();\n DiskWorker worker = new DiskWorker(UI);\n\n assertTrue(worker.run());\n }", "@Test\r\n public void testActionPerformed() {\r\n }", "@Override\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\tSystem.out.println(\"when test success\");\n\t\t\n\t}", "@Test\n public void testStuff() {\n\n assertTrue(true);\n }", "protected TeststepRunner() {}", "@Test\n\tpublic void test() {\n\t\tGameStart game = new GameStart();\n\t\tnew LwjglApplication(game, \"Unit Test\", 800, 600, false);\n\n\t\tint beginningLives = game.gameScreen.info.lives();\n\t\ttry \n\t\t{\n\t\t\tThread.sleep(11000); // Waiting eleven seconds for ultimate death...\n\t\t} \n\t\tcatch(InterruptedException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}\n\t\tSystem.out.println(\"start: \" + beginningLives + \", end: \" + game.gameScreen.info.lives());\n\t\tassertTrue(game.gameScreen.info.lives() < beginningLives);\n\t}", "@Test\r\n\tpublic void testExecuteMachine() throws MalformedURLException {\n//\t\tassertEquals(true, MockBackLMBets.executed);\r\n//\t\tassertEquals(6000000, MockBackLMBets.marketSuspendTime);\r\n//\r\n//\t\tmachine.fireEvent(\"runner\", ctx);\r\n//\t\tassertEquals(\"backPlaced\", machine.getCurrentStateId());\r\n\r\n\t}", "public void testRun() throws Exception {\r\n SeleniumTestBase mySeleniumTestBase = new SeleniumTestBase(selenium);\r\n mySeleniumTestBase.loginToUI(\"admin\", \"admin\");\r\n }", "@Override\n\tpublic void testEngine() {\n\t\t\n\t}", "public void testDummy() {\n \t\tassertTrue(true);\r\n \t}", "public static void runUsual() throws Exception {\r\n\t\ttestRun(0);\r\n\t}", "@Test\n\tpublic void bmainTestOne() {\n\t\tAssert.assertEquals(\"Test1\", \"Test1\");\n\t\tSystem.out.println(\"This is main Test 2\");\n\t}", "public void testMain() throws Throwable {\n\r\n\t}", "@Test\n public void runNewGameTest() {\n\tassertNotEquals(-1,score);\n }", "@Override\n\tpublic void test() {\n\t\t\n\t}", "public void runTest() throws Exception {\n testCreateAndLoadLaptop();\n }", "private void runTest(final Node me) {\n if (!initialized) {\n initStressTest();\n }\n\n List<Row> runs = engine.getSqlTemplate().query(selectControlSql);\n\n for (Row run : runs) {\n int runId = run.getInt(\"RUN_ID\");\n int payloadColumns = run.getInt(\"PAYLOAD_COLUMNS\");\n int initialSeedSize = run.getInt(\"INITIAL_SEED_SIZE\");\n long duration = run.getLong(\"DURATION_MINUTES\");\n\n String status = engine.getSqlTemplate().queryForString(selectStatusSql, runId, me.getNodeId());\n\n if (isMasterNode(me) && StringUtils.isBlank(status)) {\n initStressTestRowOutgoing(payloadColumns, runId, initialSeedSize);\n initStressTestRowIncoming(payloadColumns);\n long commitRows = run.getLong(\"SERVER_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"SERVER_COMMIT_SLEEP_MS\");\n\n engine.getSqlTemplate().update(insertStatusSql, runId, me.getNodeId(), \"RUNNING\");\n for (Node client : engine.getNodeService().findTargetNodesFor(NodeGroupLinkAction.W)) {\n engine.getSqlTemplate().update(insertStatusSql, runId, client.getNodeId(), \"RUNNING\");\n }\n\n fillOutgoing(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n\n } else if (!isMasterNode(me) && !StringUtils.isBlank(status) && status.equals(\"RUNNING\")) {\n long commitRows = run.getLong(\"CLIENT_COMMIT_ROWS\");\n long sleepMs = run.getLong(\"CLIENT_COMMIT_SLEEP_MS\");\n\n fillIncoming(runId, duration, commitRows, sleepMs, payloadColumns);\n\n engine.getSqlTemplate().update(updateStatusSql, \"COMPLETE\", runId, me.getNodeId());\n }\n }\n }", "public final void doTest() {\n\n constructTestPlan();\n calculator.start();\n resultViewer.start();\n\n // Run Test Plan\n getJmeter().configure(testPlanTree);\n ((StandardJMeterEngine)jmeter).run();\n }", "@Test\n public void testMain() throws Exception {\n //main function cannot be tested as it is dependant on user input\n System.out.println(\"main\");\n }", "public void testExecute() {\n panel.execute();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\n void performTest() {\n new Base();\n new Child();\n }", "@Override\r\n\tpublic void run() throws KettleException {\n\t\tassertThat(testCase.getDriver().getTitle(), is(getValue()));\r\n\t\tpublishEvent(getCommand(), getTarget(), getValue(), null);\r\n\t}", "@Test\r\n\tpublic void testSanity() {\n\t}", "@Test\n public void testOnButtonPressed() throws Exception {\n test.onButtonPressed(mockEcho);\n assertSame(mockEcho.currentState(), test);\n\n }", "@Test\n public void restartSystemTest() {\n //Setup\n launcher.launch();\n Game game = launcher.getGame();\n game.start();\n game.stop();\n assertThat(game.isInProgress()).isFalse();\n\n //Execute\n game.start();\n\n //Assert\n assertThat(game.isInProgress()).isTrue();\n }", "@Test\npublic void testRegister() throws Exception { \n//TODO: Test goes here...\n System.out.println(\"testRegister\");\n}", "@Test\r\n\tpublic static void test1() {\r\n\t\tSystem.out.println(\"test 1\");\r\n\t\tAssertions.assertEquals( 1, 1 );\r\n\t}", "@Override\n\tpublic void onTestSuccess(ITestResult tr) {\n\t\tsuper.onTestSuccess(tr);\n\t}", "@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "@Override\r\n\tpublic void onTestSuccess(ITestResult arg0) {\n\t\t\r\n\t}", "@Test\n\tpublic void testBuild() {\n\n\t\tSystem.out.println(\"End\");\n\t}", "@Override\n public void test() {\n \n }", "public void startTests() {\n if(testSettings.accessibleProperties || testSettings.accessibleInterface)\n testProperties();\n if(testSettings.tabTraversal)\n testTraversal();\n }", "@Test\n public void ran() {\n List<ChangeSetStatus> changeSets = new ArrayList<>();\n ChangeSet mockChangeSet = Mockito.mock(ChangeSet.class);\n DatabaseChangeLog mockDbChangeLog =\n Mockito.mock(DatabaseChangeLog.class);\n Database mockDatabase = Mockito.mock(Database.class);\n\n LiquibaseMigrationWatcher w = new LiquibaseMigrationWatcher(changeSets);\n\n assertFalse(w.isMigrated());\n assertNull(w.getCurrentVersion());\n\n w.ran(mockChangeSet, mockDbChangeLog, mockDatabase, ExecType.EXECUTED);\n\n assertTrue(w.isMigrated());\n assertSame(mockChangeSet, w.getCurrentVersion());\n }", "@Test\n public void shouldTestBoardStatus(){\n\n }", "@Test\r\n public void testRentOut() {\r\n }", "public void run() {\n\n long now = System.currentTimeMillis();\n //System.out.println(\"1: \" + this.getClass().getName() + \"#\" + id + \", \" + (System.currentTimeMillis()) + \" ms\");\n try {\n\n test.setUp();\n this.testReport = new TestReport(id, this.getClass().getName());\n while (alive.get()) {\n test.test(this.id);\n counter.incrementAndGet();\n }\n //long stop = System.currentTimeMillis();\n //System.out.println(\"2: \" + this.getClass().getName() + \"#\" + id + \", \" + stop + \" \" + (stop - now) + \" ms\");\n } catch (Exception e) {\n e.printStackTrace();\n } finally {\n try {\n test.tearDown();\n this.testReport.stopTimers();\n //testReport.printInfo();\n } catch (Exception e) {\n // ignore errors in tearDown for now\n }\n }\n\n }", "@Test \n\tpublic void edit() \n\t{\n\t\tassertTrue(true);\n\t}", "@Test\n void setCompleted() {\n }", "private void runAllTests(){\n System.out.println(\"------ RUNNING TESTS ------\\n\");\n testAdd(); // call tests for add(int element)\n testGet(); // tests if the values were inserted correctly\n testSize(); // call tests for size()\n testRemove(); // call tests for remove(int index)\n testAddAtIndex(); // call tests for add(int index, int element)\n\n // This code below will test that the program can read the file\n // and store the values into an array. This array will then be sorted\n // by the insertionSort and it should write the sorted data back into the file\n\n testReadFile(); // call tests for readFile(String filename)\n testInsertionSort(); // call tests for insertionSort()\n testSaveFile(); // call tests for saveFile(String filename)\n System.out.println(\"\\n----- TESTING COMPLETE ----- \");\n }", "public void testPreConditions() {\r\n\t //fail(\"Precondition check not implemented!\");\r\n\t assertEquals(true,true);\r\n\t }" ]
[ "0.7250601", "0.7185898", "0.7052526", "0.7042993", "0.6845589", "0.6837368", "0.6827742", "0.6800221", "0.67250663", "0.67163813", "0.65702605", "0.6569358", "0.6507708", "0.64518553", "0.6448052", "0.6446228", "0.64227533", "0.6422585", "0.64217323", "0.63893867", "0.6388073", "0.6384003", "0.6361389", "0.6361227", "0.6355809", "0.6353582", "0.6334883", "0.63299066", "0.63140213", "0.63067716", "0.6288935", "0.6263107", "0.6251446", "0.6244589", "0.6231892", "0.62316656", "0.62316656", "0.6230277", "0.6213703", "0.61904836", "0.6178627", "0.6172316", "0.6147163", "0.61371934", "0.61369765", "0.61288774", "0.61234736", "0.6115738", "0.6114305", "0.61014724", "0.60976505", "0.6090093", "0.6069524", "0.60562855", "0.6054475", "0.6045671", "0.60357666", "0.6030288", "0.60234654", "0.601935", "0.6012614", "0.6011477", "0.60069215", "0.5979228", "0.5978051", "0.5955416", "0.59547365", "0.5952798", "0.59495735", "0.59298086", "0.59284526", "0.5923685", "0.59231263", "0.5922846", "0.5913744", "0.5911438", "0.5910506", "0.5899637", "0.58949184", "0.58949184", "0.58949184", "0.5884365", "0.58812225", "0.58738494", "0.587281", "0.58724135", "0.58711445", "0.5864059", "0.5856496", "0.5856496", "0.5852844", "0.5850809", "0.584827", "0.5844794", "0.584258", "0.58423156", "0.583736", "0.58353955", "0.58342737", "0.58294797", "0.58289015" ]
0.0
-1
180 Sets up the fixture, for example, open a network connection. 181 This method is called before a test is executed. 182
protected void setUp() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setUp()\r\n {\r\n /* Add any necessary initialization code here (e.g., open a socket). */\r\n }", "@Before\n public void setup() {\n Helpers.fillData();\n }", "protected void setUp()\n {\n /* Add any necessary initialization code here (e.g., open a socket). */\n }", "@Before\r\n public void setup() {\r\n dbwMock.userId = \"testUser\";\r\n dbw = new DatabaseWrapper(dbwMock);\r\n\r\n context = ApplicationProvider.getApplicationContext();\r\n\r\n book = new Book();\r\n\r\n requester = new Profile();\r\n }", "@Before\n\tpublic void setup() {\n\n\t\tclient = ClientBuilder.newClient();\n\n\t}", "@BeforeClass\n public static void setUpBeforeClass() {\n TestNetworkClient.reset();\n context = ApplicationProvider.getApplicationContext();\n dataStorage = TestDataStorage.getInstance(context);\n ApplicationSessionManager.getInstance().startSession();\n }", "@Before\n\t\t public void setUp() throws Exception {\n\t\t\t testHelper.setUp();\n\t\t }", "@Before\n\tpublic void setUp()\n\t{\n\t\tOptionsManager.getSingleton().setTestMode(true);\n\t\tQuestManager.resetSingleton();\n\t}", "@Before\r\n\tpublic void setup() {\r\n\t}", "@Before\n public void setUp() throws Exception{\n sDataManager.getmNotes().clear();//before the test runs it should have an empty note\n sDataManager.initializeExampleNote();\n }", "@Before\r\n\tpublic void setup() throws Exception {\n\t\tinitializeInMemoryDatabase();\r\n\r\n\t\t// Created from org.openmrs.test.CreateInitialDataSet\r\n\t\t// without line for \"concept_synonym\" table (not exist)\r\n\t\t// using 1.4.4-createdb-from-scratch-with-demo-data.sql\r\n\t\t// Removed all empty short_name=\"\" from concepts\r\n\t\t// Added missing description to relationship_type\r\n\t\t// Removed all patients and related patient/person info (id 2-500)\r\n\t\t// Removed all concepts except those in sqldiff\r\n\t\texecuteDataSet(\"initial-openmrs-dataset.xml\");\r\n\r\n\t\t// Includes Motech data added in sqldiff\r\n\t\texecuteDataSet(\"motech-dataset.xml\");\r\n\t\t\r\n\t\t// Add example Location, Facility and Community\r\n\t\texecuteDataSet(\"facility-community-dataset.xml\");\r\n\r\n\t\tauthenticate();\r\n\r\n\t\tactivator.startup();\r\n\t}", "@Before\n\t public void setUp() {\n\t }", "@Before public void setUp() { }", "@Before\n\tpublic void setup() {\n\t\t\n\t\t\n\t}", "@Before\n public void setUp()\n {\n m_instance = ConversationRepository.getInstance();\n m_fileSystem = FileSystem.getInstance();\n }", "@Before\n\tpublic void setUp() {\n\t\tgateInfoDatabase = new GateInfoDatabase();\t\t\n\t}", "protected void setUp() {\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\r\n\t\tpd = new PreparedData();\r\n\r\n\t}", "public void setUp() {\n\n\t}", "@BeforeTest\n public void setUp() {\n UrlaubrWsUtils.migrateDatabase(TravelServiceImpl.DEFAULT_URL, TravelServiceImpl.DEFAULT_USER, TravelServiceImpl.DEFAULT_PASSWORD);\n\n service = new TravelServiceImpl();\n }", "@BeforeClass\n public static void classSetUp() {\n printTestClassHeader();\n uri = Const.ActionURIs.ADMIN_INSTRUCTORACCOUNT_ADD;\n // removeAndRestoreTypicalDataInDatastore();\n }", "@Before\n\tpublic void setUp() throws Exception\n\t{\n\n\t\tPlayer currentPlayer = new Player(\"joe\");\n\t\tcurrentPlayer.getInventory().add(new Crack(0,\"itemName\", \"description\", 100));\n\t\tDWD content = new DWD(currentPlayer);\n\t\tScanner scanner = new Scanner(System.in);\n\t\tgls = new GameLogicService(content, scanner);\n\t\tgls.init(currentPlayer.getName());\n\n\t}", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n public void setup() {\n }", "@Before\n\tpublic void setup() {\n\t\tdatabase = new DatabaseLogic();\n\t}", "@Override\r\n\tpublic void setUp() {\n\t\t\r\n\t}", "@BeforeEach\n void setUp() {\n Database database = Database.getInstance();\n database.runSQL(\"cleandb.sql\");\n\n noteDao = new GenericDao(Note.class);\n }", "protected void setUp() throws Exception {\n super.setUp();\n }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tsbu = Sbu.getUniqueSbu(\"SBU\");\n\t\tbiblio = new Biblioteca(\"Biblioteca\", \"viaBteca\", sbu);\n\t\tmanager = new ManagerSistema(\"codiceFiscaleManager\", \"NomeManager\", \"CognomeManager\", \n\t\t\t\t\"IndirizzoManager\", new Date(), \"34012899967\", \n\t\t\t\t\"emil@Manager.it\", \"passwordM\", sbu);\n\t\tbibliotecario = new Bibliotecario(\"codiceFiscaleB1\", \"nomeB1\", \"cognomeB1\", \"indirizzoB1\", \n\t\t\t\tnew Date(), \"340609797\", \"email@Biblio1.it\", \n\t\t\t\t\"passwordB1\", biblio);\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tthis.client = new Client(\"toto\");\r\n\t\tthis.client.ajouterFichier(\"lol\");\r\n\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t}", "@Before\r\n\tpublic void setUp() {\n\t}", "@BeforeClass\r\n\tpublic static void setUp() {\n\t\tboard = Board.getInstance();\r\n\t\t// set the file names to use my config files\r\n\t\tboard.setConfigFiles(\"Board_Layout.csv\", \"ClueRooms.txt\", \"players_test.txt\", \"cards.txt\");\t\t\r\n\t\t// Initialize will load BOTH config files \r\n\t\tboard.initialize();\r\n\t}", "@Before\n\tpublic void setUp() {\n\t}", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before public void setUp() {\n }", "@Before\r\n\t\tpublic void setUp() throws Exception {\r\n\t\t\tdriver.get(\"http://lit-bayou-7912.herokuapp.com\");\r\n\t\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}", "@BeforeClass\n\tpublic static void setup() {\n\t\tdataMunger = new DataMunger();\n\n\t}", "@BeforeClass (alwaysRun = true)\n public void dataPreparation()\n {\n serverHealth.isServerReachable();\n serverHealth.assertServerIsOnline();\n\n // Before we start testing the live indexing we need to use the reindexing component to index the system nodes.\n Step.STEP(\"Index system nodes.\");\n AlfrescoStackInitializer.reindexEverything();\n\n Step.STEP(\"Create a test user and private site.\");\n testUser = dataUser.createRandomTestUser();\n testSite = helper.createPrivateSite(testUser);\n }", "protected void setUp() {\n\n }", "@Before\n public void setUp()\n {\n clientIn1 = new ClientInformation();\n clientIn1.setReaderToArray();\n clientIn1.printClientList();\n clientIn1.setAlphabetically();\n }", "@Before\n\tpublic void setUp() throws Exception {\n\t\t\n\t}", "protected void setUp() {\n config = new ContestConfig();\n }", "@BeforeEach\n\tpublic void setup() {\n\t\tif (!initialized) {\n\t\t\tbaseURI = String.format(uri, port);\n\t\t\tinitialized = true;\n\t\t}\n\t}", "protected void setUp() throws Exception {\n \n }", "@Before\n public void setup () {\n driver = new HtmlUnitDriver( true );\n wait = new WebDriverWait( driver, 10 );\n HibernateDataGenerator.generateTestFaculties();\n }", "@Before\r\n\t public void setUp(){\n\t }", "@BeforeClass\n\tpublic static void setUp() {\n\t\tboard = Board.getInstance();\n\t\t// set the file names to use my config files\n\t\tboard.setConfigFiles(\"CTest_ClueLayout.csv\", \"CTest_ClueLegend.txt\");\n\t\t// Initialize will load BOTH config files\n\t\tboard.initialize();\n\t\t\n\t\tplayerHuman.setConfigFile(\"CTest_PlayerHuman.txt\");\n\t\tplayerComputer.setConfigFile(\"CTest_PlayerComputer.txt\");\n\n\t}", "protected void setUp()\n {\n }", "protected void setUp()\n {\n }", "@Before\r\n\tpublic void setUp() throws Exception {\r\n\t\tdriver.get(\"http://lit-bayou-7912.herokuapp.com/\");\r\n\t}", "@Before\n\tpublic void setUp() throws Exception\n\t{\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Before\n\tpublic void setUp() throws Exception {\n\t}", "@Before\n public void setup() {\n }", "@Override\r\n\tpublic void setUp() {\n\r\n\t}", "@Before\n\tpublic void setup() \n\t{\n\t\tsuper.setup();\n\t\t\n }", "@Before\n public void setUp() throws Exception {\n }", "@Before\n public void setUp() throws Exception {\n }", "@BeforeClass\n\t\tpublic static void setUp() {\n\t\t\tboard = Board.getInstance();\n\t\t\t// set the file names to use my config files\n\t\t\tboard.setConfigFiles(\"ourConfigFiles/GameBoard.csv\", \"ourConfigFiles/Rooms.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.setCardFiles(\"ourConfigFiles/Players.txt\", \"ourConfigFiles/Weapons.txt\");\t\t\n\t\t\t// Initialize will load BOTH config files \n\t\t\tboard.initialize();\n\t\t}", "protected void setUp() throws Exception {\n TestEnvironnement.forceFakeDriver();\n testEnv = TestEnvironnement.newEnvironment();\n Dependency.setConnectionManager(testEnv.getConnectionManager());\n }", "@Before\n public void setUp()\n throws Exception\n {\n super.setUp();\n }", "protected void setUp() throws Exception {\n super.setUp();\n FailureTestHelper.loadConfig();\n FailureTestHelper.loadData();\n dao = new SQLServerGameDataDAO(\"com.orpheus.game.persistence.SQLServerGameDataDAO\");\n }", "@BeforeMethod\n public void setUp() throws IOException {\n loader = getTemporalSocialNetworkLoader();\n }", "@Before\n public void setUp() {\n start(fakeApplication(inMemoryDatabase(), fakeGlobal()));\n }", "public void setUp()\r\n {\r\n //empty on purpose\r\n }", "@BeforeEach\n\tpublic void setup() {\n\t\tnome = \"cliente1 da Silva\";\n\t\tdocumentoValido = \"22492552020\";\n\t\tdocumentoInvalido = \"465801940\";\n\t\tdocumentoJaCadastrado = \"465.801.940-06\";\n\t\temail = \"cliente1@gmail.com\";\n\t\t\n\t\tlogradouro = \"Rua das meninas, 15\";\n\t\tbairro = \"Jose pinheiro\";\n\t\tcomplemento = \"Proximo a loteria\";\n\t\tuf = \"PB\";\n\t\t\n\t\tsalario = new BigDecimal(2000);\n\t\tsalarioNegativo = new BigDecimal(-1);\n\t\tsalarioZerado = new BigDecimal(0);\n\t\t\n\t}", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n public void setUp() {\n }", "@Before\n\tpublic void setUp() throws Exception {\n//\t\tdao = new MonkeyDao();\n\t}", "public void setUp() throws Exception {\n super.setUp();\n TestHelper.clearTemp();\n }", "@Before\n \tpublic void init() throws SimpleDBException {\n assertNotNull(applicationContext);\n handlerAdapter = applicationContext.getBean(\"handlerAdapter\", HandlerAdapter.class);\n this.testClient = this.createTestClient();\n \t\trefreshRequestAndResponse();\n \t}", "@Before\n\tpublic void setUp() {\n\t\t/*\n\t\t * TODO: initialize the text fixture. For the initial pattern, use the \"blinker\"\n\t\t * pattern shown in:\n\t\t * https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#Examples_of_patterns\n\t\t * The actual pattern GIF is at:\n\t\t * https://en.wikipedia.org/wiki/Conway%27s_Game_of_Life#/media/File:Game_of_life_blinker.gif\n\t\t * Start from the vertical bar on a 5X5 matrix as shown in the GIF.\n\t\t */\n\t}", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "@Before\r\n public void setUp()\r\n {\r\n }", "public void setUp() {\n // ensure the ont doc manager is in a consistent state\n OntDocumentManager.getInstance().reset( true );\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }", "@Before\n public void setUp()\n {\n }" ]
[ "0.7178761", "0.71701515", "0.71177995", "0.7112942", "0.69515693", "0.68958664", "0.6841469", "0.6822861", "0.6815555", "0.6811485", "0.68100226", "0.67893285", "0.67689896", "0.67672837", "0.67629075", "0.6735312", "0.6728773", "0.670507", "0.6699819", "0.66685957", "0.66670763", "0.66587716", "0.6655885", "0.6655885", "0.6655885", "0.6649479", "0.6648399", "0.66455156", "0.66296536", "0.66221225", "0.6618129", "0.66042405", "0.66042405", "0.6600273", "0.65990555", "0.65952677", "0.659294", "0.659294", "0.659294", "0.659294", "0.659294", "0.65914154", "0.6588815", "0.6587479", "0.6587062", "0.658331", "0.65813965", "0.6580035", "0.65765184", "0.65757316", "0.6566172", "0.65636736", "0.65626657", "0.6559667", "0.6559551", "0.6559551", "0.6543881", "0.6543383", "0.6536301", "0.6536301", "0.65300584", "0.6519945", "0.651993", "0.6513659", "0.6513659", "0.65133286", "0.6512287", "0.6510078", "0.65073484", "0.6499745", "0.6498243", "0.64980155", "0.649643", "0.64961547", "0.64961547", "0.64961547", "0.64961547", "0.64961547", "0.64922285", "0.6488502", "0.6485569", "0.6484309", "0.6483091", "0.6483091", "0.6483091", "0.6483091", "0.64772165", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536", "0.64769536" ]
0.6537657
58
186 Tears down the fixture, for example, close a network connection. 187 This method is called after a test is executed. 188
protected void tearDown() throws Exception { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@After\n public void tearDown() {\n fixture.cleanUp();\n }", "@After\n public void tearDown() {\n fixture = null;\n }", "@AfterTest\n\tpublic void teardown()\n\t{\n\t\t\n\t\tdriver.close();\n\t}", "@After\n\t\t public void tearDown() throws Exception {\n\t\t\t testHelper.tearDown();\n\t\t }", "protected void tearDown() {\n testEnv.close();\n }", "@AfterClass\r\n\tpublic static void testCleanup() {\r\n\t\tConfig.teardown();\r\n\t}", "@After\n public void teardown() {\n RoboGuice.Util.reset();\n }", "@AfterClass\n\tpublic static void teardown() {\n\t\tdataMunger = null;\n\n\t}", "@After\r\n public void tearDown() throws Exception {\r\n super.tearDown();\r\n TestHelper.cleanupEnvironment();\r\n instance = null;\r\n }", "@After\n\tpublic void afterTest() {\n\t\tmyD.close();\n\n\t}", "@Override\n\tpublic void teardown() {\n\t}", "protected void tearDown()\r\n {\r\n /* Add any necessary cleanup code here (e.g., close a socket). */\r\n }", "@After\n\tpublic void teardown() {\n\t\tdrv.quit();\n\t}", "@AfterTest\n\tpublic void tearDown() throws Exception\n\t{\n\t\tlog.info(\"Starting tear Down\");\n//\t\t\t\tdriver.close();\n\t}", "@AfterClass\n\tpublic void teardown()\n\t{\n\t\tdriver.close();\n\t}", "@AfterSuite\n\tpublic void teardown() {\n\t\t\n\t\tdriver.quit();\n\t}", "@Override\n public void teardown() {\n }", "@AfterClass\n public static void closeTestFixture() {\n entityManager.close();\n entityManagerFactory.close();\n }", "@AfterTest\n public void tearDown() {\n Log.endLog(\"Test is ending!\");\n driver.close();\n }", "protected void tearDown()\n {\n /* Add any necessary cleanup code here (e.g., close a socket). */\n }", "@AfterClass\n\tpublic void teardown(){\n\t}", "@AfterTest\r\n public void tearDown() {\n }", "@Override\r\n\t@After\r\n\tpublic void callTearDown() throws Exception\r\n\t{\r\n\t\tsuper.callTearDown();\r\n\t}", "@After\n\tpublic void teardown() {\n\t\tthis.driver.quit();\n\t}", "protected void tearDown() throws Exception {\n super.tearDown();\n FailureTestHelper.unloadData();\n FailureTestHelper.unloadConfig();\n }", "@AfterSuite\r\n\tpublic void tearDown() {\r\n\t\tSystem.out.println(\"Driver teared down\");\r\n\t}", "public void tearDown() throws Exception {\n TestHelper.clearTemp();\n super.tearDown();\n }", "protected void tearDown() {\n config = null;\n }", "@AfterSuite\n\tpublic void teardown() {\n\t\tlogger.info(\"ALL TESTS COMPLETED: Quiting driver\");\n\t\tgmailPg.quitDriver();\n\t}", "protected void tearDown() throws Exception {\r\n super.tearDown();\r\n FailureTestHelper.unloadConfig();\r\n }", "protected void tearDown() {\n\t}", "protected void tearDown() throws Exception {\r\n cleanupDatabase();\r\n\r\n defaultDBUserRetrieval = null;\r\n\r\n UnitTestHelper.clearConfig();\r\n defaultConnection.close();\r\n super.tearDown();\r\n }", "@After\n\tpublic void tearDown() {}", "@AfterEach\n public void tearDown() throws Exception\n {\n\n application = null;\n config = null;\n externalContext = null;\n if (facesContext != null)\n {\n facesContext.release();\n }\n facesContext = null;\n lifecycle = null;\n lifecycleFactory = null;\n renderKit = null;\n request = null;\n response = null;\n servletContext = null;\n session = null;\n FactoryFinder.releaseFactories();\n ResourceBundleVarNames.resetNames();\n\n tearDownClassloader();\n }", "public void teardown() {\n LOGGER.info(\"Shutting down driver\");\n driver.quit();\n }", "void teardown();", "void teardown();", "@After\n public void tearDown() throws Exception {\n testInstance = null;\n }", "@AfterClass\r\n public static void cleanUpTestFixture(){\r\n entityManagerFactory.close();\r\n }", "@After\r\n\tpublic void tearDown() {\r\n\t\tvend = null; \r\n\t\tcsListen = null;\r\n\t\tdcListen = null;\r\n\t}", "public void tearDown() {\n tearDown(true);\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tinstance.unlock();\n\t}", "@AfterClass\n\tpublic static void testCleanup() {\n\t}", "@After\n public void tearDown() {\n \n }", "@After\r\n\tpublic void tearDown() {\n\t}", "@After\n public void teardown() throws Exception{\n localScribenginCluster.shutdown();\n }", "@After\n public void tearDown(){\n client.generateReport(false);\n // Releases the client so that other clients can approach the agent in the near future.\n client.releaseClient();\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\tydelseService.setEntityManager(null);\n\t}", "@After\n\tpublic void testEachCleanup() {\n\t\tSystem.out.println(\"Test Completed!\");\n\t}", "@After\r\n public void tearDown() throws Exception {\n }", "@After\r\n public void tearDown() throws Exception {\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\teventDao = null;\t\t\n\t\tcontroller = null;\n\t\tresponse = null;\n\t\trequest = null;\n\t}", "@Override\r\n protected void tearDown() throws Exception {\r\n ctx = null;\r\n projectService = null;\r\n }", "@Override\n public void tearDown() {\n testEngine = null;\n }", "@AfterTest\n\tpublic void afterTest() {\n\t\tiDriver.quit();\n\t\tSystem.out.println(\"=====================VEGASF_419_END=====================\");\n\t}", "@AfterEach\n public void teardown() {\n mockDAO = null;\n addFlight = null;\n flight = null;\n }", "@Override\r\n protected void tearDown()\r\n {\r\n seed = null;\r\n island = null;\r\n position = null;\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@After\r\n public void tearDown()\r\n {\r\n }", "@AfterMethod(alwaysRun = true)\n public void cleanupTest() throws Exception {\n busService.getBus().unregister(testListener);\n busService.getBus().stop();\n \n // STOP NOTIFICATION QUEUE\n ((Engine)entitlementService).stop();\n\n log.warn(\"DONE WITH TEST\\n\");\n }", "@After\r\n public void tearDown() throws Exception {\r\n PWCallback.resetHandle();\r\n }", "@After\n public void tearDown(){\n choose = null;\n tmp = null;\n }", "public static void teardown() {\n\t\tdriver.quit();\n\t}", "@After\n\tpublic void tearDown() {\n\n\t}", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@After\n public void tearDown() {\n }", "@Teardown\n public void tearDown() {\n if (channel != null) {\n channel.shutdownNow();\n channel = null;\n }\n }", "@After\n\tpublic void tearDown() {\n\t\theroRepository.delete(HERO_ONE_KEY);\n\t\theroRepository.delete(HERO_TWO_KEY);\n\t\theroRepository.delete(HERO_THREE_KEY);\n\t\theroRepository.delete(HERO_FOUR_KEY);\n\t\theroRepository.delete(\"hero::counter\");\n\t}", "@AfterClass\n public void cleanUp() {\n }", "@After\r\n\tpublic void tearDown() throws Exception {\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\t// release the memory\n\t\tringBuffer = null;\n\t}", "@AfterMethod\r\n\t\tpublic void tearDown(){\r\n\t\t\t\r\n\t\t \r\n\t\t\tdriver.close();\r\n\t\t\tdriver.quit();\r\n\t\t\t\t\r\n\t\t\t}", "@After\n\tpublic void tearDown() throws Exception{\n\t\t// Don't need to do anything here.\n\t}", "@AfterTest\npublic void end()\n{\n\tlogin.s.quit();\n}", "public void tearDown() {\n }", "@After\n\tpublic void tearDown() throws Exception {\n\t\t\n\t}", "@After\n public void tearDown() throws Exception {\n databaseTester.onTearDown();\n }", "@AfterEach\n public void tearDown() {\n scope.close();\n tracer = null;\n assertNull(tracer);\n }", "@After\n public void cleanUp(){\n mockUserRepo = null;\n mockSession = null;\n sut = null;\n }", "protected void tearDown()\n {\n }", "protected void tearDown()\n {\n }", "@After\r\n public void tearDown() throws Exception {\r\n solo.finishOpenedActivities();\r\n }", "@AfterMethod(description = \"close driver after test\")\n public void tearDown()\n {\n driver.close();\n }", "@AfterEach\r\n void tearDown() {\r\n\r\n dome = null;\r\n\r\n }", "@After\n public void tearDown() {\n }", "protected void tearDown() \n\t{\n\t\tif (container != null) \n\t\t{\n\t\t\tcontainer.dispose();\n\t\t}\n\t\tcontainer = null;\n\t}", "@After\n\tpublic void tearDown() throws Exception {\n\t\tserverChannel.close();\n\t\tchannel = null;\n\t\tclient = null;\n\t}", "@After\n public void tearDown () {\n }", "@AfterClass\n public static void shutdown()\n {\n }", "@After\n public void tearDown() throws Exception {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }", "@AfterEach\n public void tearDown() {\n }" ]
[ "0.8074667", "0.8029908", "0.77228403", "0.7481708", "0.74394095", "0.74311066", "0.74170417", "0.7415721", "0.7352132", "0.73433614", "0.73059386", "0.7302197", "0.7287918", "0.72753334", "0.7267165", "0.72434515", "0.7237262", "0.723641", "0.7230956", "0.72287965", "0.7207694", "0.7192451", "0.7187141", "0.71734923", "0.7157237", "0.7153261", "0.71378183", "0.7135553", "0.71328807", "0.7119864", "0.71106327", "0.7110145", "0.7091094", "0.7083478", "0.7081742", "0.70631415", "0.70631415", "0.7061012", "0.7059388", "0.70574415", "0.70563734", "0.7041201", "0.70404744", "0.70402634", "0.7028061", "0.70240176", "0.70237774", "0.70169693", "0.70132035", "0.7002437", "0.7002437", "0.6995765", "0.69954115", "0.69907767", "0.6983533", "0.69796586", "0.69786894", "0.69780266", "0.69780266", "0.69780266", "0.69780266", "0.6977594", "0.696968", "0.6965251", "0.6964742", "0.6955387", "0.6955077", "0.6955077", "0.6955077", "0.6955077", "0.6955077", "0.6941233", "0.693472", "0.69343126", "0.6934048", "0.6930693", "0.69304246", "0.6929412", "0.6927423", "0.6925265", "0.6922018", "0.6919582", "0.69189215", "0.69158804", "0.69116783", "0.69116783", "0.6910595", "0.69097704", "0.6907732", "0.69051445", "0.6904806", "0.6904688", "0.6901149", "0.68996096", "0.68989724", "0.6898841", "0.6898841", "0.6898841", "0.6898841", "0.6898841" ]
0.69290775
78
192 Returns a string representation of the test case 193
@Override public String toString() { return getName() + "(" + getClass().getName() + ")"; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void main(String[] args) {\n\r\n\t\tfor (int i = 1; i <= 100; i++) {\r\n\t\t\tString code = StringUtils.leftPad(Integer.toString(i), 6, '0');\r\n\r\n\t\t\tSystem.out.println(\"WA\" + code + encode(\"WA\" + code));\r\n\r\n\t\t}\r\n\r\n\t}", "String mo38971b();", "String mo21078i();", "@Test(timeout = 4000)\n public void test0() throws Throwable {\n int int0 = (-2712);\n Utility.accessToString(int0);\n }", "public static void main(String[] args) {\n StringBuilder sb = new StringBuilder();\n sb.append(1);\n sb.append(\"00\");\n sb.append(\"%\");\n sb.append(' ');\n sb.append('P');\n \n String createdString = sb.toString();\n System.out.println(\"createdString = \" + createdString);\n\n }", "@Test\n public void testAddress()\n {\n System.out.println(\"address\");\n int addr = 16893;\n System.out.println(N2TCode.address(addr));\n System.out.println(Integer.toBinaryString(addr));\n }", "String mo20730b();", "@Test\n\tpublic void fibonacciEncodingTest() {\n\t\tAssert.assertTrue(ifn.fibonacciEncoding(143).trim().equals(\"01010101011\"));\n\t}", "@Override\n protected long getTestSolution() {\n return 100024;\n }", "public static String solution() {\r\n\t\treturn \"73162890\";\r\n\t}", "@Test(timeout = 4000)\n public void test33() throws Throwable {\n String string0 = EWrapperMsgGenerator.fundamentalData((-1622103582), \"convertible = \");\n assertEquals(\"id = -1622103582 len = 14\\nconvertible = \", string0);\n }", "@Test(timeout = 4000)\n public void test113() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(false);\n assertEquals(\"=== Summary ===\\n\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_18() {\n CuteNetlibCase.doTest(\"KEN-18.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "String mo20731c();", "public static final String generateTableTestCase(){\n\t\n\t\tint[] operators = new int[]{AND,AND_AND,DIVIDE,GREATER,GREATER_EQUAL,\n\t\t\t\tLEFT_SHIFT,LESS,LESS_EQUAL,MINUS,MULTIPLY,OR,OR_OR,PLUS,REMAINDER,\n\t\t\t\tRIGHT_SHIFT,UNSIGNED_RIGHT_SHIFT,XOR};\n\t\n\t\tclass Decode {\n\t\t\tpublic final String constant(int code){\n\t\t\t\tswitch(code){ \n\t\t\t\t\tcase T_boolean \t: return \"true\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_byte\t\t: return \"((byte) 3)\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_char\t\t: return \"'A'\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_double\t: return \"300.0d\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_float\t: return \"100.0f\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_int\t\t: return \"1\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_long\t\t: return \"7L\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangString\t: return \"\\\"hello-world\\\"\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_null\t\t: return \"null\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_short\t: return \"((short) 5)\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangObject\t: return \"null\";} //$NON-NLS-1$\n\t\t\t\treturn \"\";} //$NON-NLS-1$\n\t\n\t\t\tpublic final String type(int code){\n\t\t\t\tswitch(code){ \n\t\t\t\t\tcase T_boolean \t: return \"z\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_byte\t\t: return \"b\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_char\t\t: return \"c\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_double\t: return \"d\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_float\t: return \"f\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_int\t\t: return \"i\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_long\t\t: return \"l\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangString\t: return \"str\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_null\t\t: return \"null\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_short\t: return \"s\"; //$NON-NLS-1$\n\t\t\t\t\tcase T_JavaLangObject\t: return \"obj\";} //$NON-NLS-1$\n\t\t\t\treturn \"xxx\";} //$NON-NLS-1$\n\t\t\t\n\t\t\tpublic final String operator(int operator){\n\t\t\t\t\tswitch (operator) {\n\t\t\t\t\tcase EQUAL_EQUAL :\treturn \"==\"; //$NON-NLS-1$\n\t\t\t\t\tcase LESS_EQUAL :\treturn \"<=\"; //$NON-NLS-1$\n\t\t\t\t\tcase GREATER_EQUAL :return \">=\"; //$NON-NLS-1$\n\t\t\t\t\tcase LEFT_SHIFT :\treturn \"<<\"; //$NON-NLS-1$\n\t\t\t\t\tcase RIGHT_SHIFT :\treturn \">>\"; //$NON-NLS-1$\n\t\t\t\t\tcase UNSIGNED_RIGHT_SHIFT :\treturn \">>>\"; //$NON-NLS-1$\n\t\t\t\t\tcase OR_OR :return \"||\"; //$NON-NLS-1$\n\t\t\t\t\tcase AND_AND :\t\treturn \"&&\"; //$NON-NLS-1$\n\t\t\t\t\tcase PLUS :\t\t\treturn \"+\"; //$NON-NLS-1$\n\t\t\t\t\tcase MINUS :\t\treturn \"-\"; //$NON-NLS-1$\n\t\t\t\t\tcase NOT :\t\t\treturn \"!\"; //$NON-NLS-1$\n\t\t\t\t\tcase REMAINDER :\treturn \"%\"; //$NON-NLS-1$\n\t\t\t\t\tcase XOR :\t\t\treturn \"^\"; //$NON-NLS-1$\n\t\t\t\t\tcase AND :\t\t\treturn \"&\"; //$NON-NLS-1$\n\t\t\t\t\tcase MULTIPLY :\t\treturn \"*\"; //$NON-NLS-1$\n\t\t\t\t\tcase OR :\t\t\treturn \"|\"; //$NON-NLS-1$\n\t\t\t\t\tcase TWIDDLE :\t\treturn \"~\"; //$NON-NLS-1$\n\t\t\t\t\tcase DIVIDE :\t\treturn \"/\"; //$NON-NLS-1$\n\t\t\t\t\tcase GREATER :\t\treturn \">\"; //$NON-NLS-1$\n\t\t\t\t\tcase LESS :\t\t\treturn \"<\";\t} //$NON-NLS-1$\n\t\t\t\treturn \"????\";} //$NON-NLS-1$\n\t\t}\n\t\n\t\t\t\n\t\tDecode decode = new Decode();\n\t\tString s;\n\t\n\t\ts = \"\\tpublic static void binaryOperationTablesTestCase(){\\n\" + //$NON-NLS-1$\n\t\n\t\t\t\"\\t\\t//TC test : all binary operation (described in tables)\\n\"+ //$NON-NLS-1$\n\t\t\t\"\\t\\t//method automatically generated by\\n\"+ //$NON-NLS-1$\n\t\t\t\"\\t\\t//org.eclipse.jdt.internal.compiler.ast.OperatorExpression.generateTableTestCase();\\n\"+ //$NON-NLS-1$\n\t\t\n\t\t\t\"\\t\\tString str0;\\t String str\\t= \"+decode.constant(T_JavaLangString)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tint i0;\\t int i\\t= \"+decode.constant(T_int)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tboolean z0;\\t boolean z\\t= \"+decode.constant(T_boolean)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tchar c0; \\t char c\\t= \"+decode.constant(T_char)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tfloat f0; \\t float f\\t= \"+decode.constant(T_float)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tdouble d0;\\t double d\\t= \"+decode.constant(T_double)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tbyte b0; \\t byte b\\t= \"+decode.constant(T_byte)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tshort s0; \\t short s\\t= \"+decode.constant(T_short)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tlong l0; \\t long l\\t= \"+decode.constant(T_long)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\t\\tObject obj0; \\t Object obj\\t= \"+decode.constant(T_JavaLangObject)+\";\\n\"+ //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\"\\n\"; //$NON-NLS-1$\n\t\n\t\tint error = 0;\t\t\n\t\tfor (int i=0; i < operators.length; i++)\n\t\t{\tint operator = operators[i];\n\t\t\tfor (int left=0; left<16;left++)\n\t\t\tfor (int right=0; right<16;right++)\n\t\t\t{\tint result = (OperatorSignatures[operator][(left<<4)+right]) & 0x0000F;\n\t\t\t\tif (result != T_undefined)\n\t\n\t\t\t\t\t//1/ First regular computation then 2/ comparaison\n\t\t\t\t\t//with a compile time constant (generated by the compiler)\n\t\t\t\t\t//\tz0 = s >= s;\n\t\t\t\t\t//\tif ( z0 != (((short) 5) >= ((short) 5)))\n\t\t\t\t\t//\t\tSystem.out.println(155);\n\t\n\t\t\t\t{\ts += \"\\t\\t\"+decode.type(result)+\"0\"+\" = \"+decode.type(left); //$NON-NLS-1$ //$NON-NLS-3$ //$NON-NLS-2$\n\t\t\t\t\ts += \" \"+decode.operator(operator)+\" \"+decode.type(right)+\";\\n\"; //$NON-NLS-2$ //$NON-NLS-1$ //$NON-NLS-3$\n\t\t\t\t\tString begin = result == T_JavaLangString ? \"\\t\\tif (! \" : \"\\t\\tif ( \"; //$NON-NLS-2$ //$NON-NLS-1$\n\t\t\t\t\tString test = result == T_JavaLangString ? \".equals(\" : \" != (\"; //$NON-NLS-2$ //$NON-NLS-1$\n\t\t\t\t\ts += begin\t+decode.type(result)+\"0\"+test //$NON-NLS-1$\n\t\t\t\t\t\t\t\t+decode.constant(left)+\" \" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t+decode.operator(operator)+\" \" //$NON-NLS-1$\n\t\t\t\t\t\t\t\t+decode.constant(right)+\"))\\n\"; //$NON-NLS-1$\n\t\t\t\t\ts += \"\\t\\t\\tSystem.out.println(\"+ (++error) +\");\\n\"; //$NON-NLS-1$ //$NON-NLS-2$\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\treturn s += \"\\n\\t\\tSystem.out.println(\\\"binary tables test : done\\\");}\"; //$NON-NLS-1$\n\t}", "@Test\n @Tag(\"bm1000\")\n public void testE226() {\n CuteNetlibCase.doTest(\"E226.SIF\", \"-11.638929066370546\", \"111.65096068931459\", NumberContext.of(7, 4));\n }", "@Test\n public void test39() throws Throwable {\n String[] stringArray0 = new String[7];\n Evaluation.main(stringArray0);\n }", "@Test(timeout = 4000)\n public void test000() throws Throwable {\n byte[] byteArray0 = new byte[4];\n byteArray0[0] = (byte) (-71);\n byteArray0[1] = (byte)38;\n byteArray0[2] = (byte) (-71);\n byteArray0[3] = (byte) (-28);\n MethodWriter.writeShort(byteArray0, 0, (byte)38);\n assertArrayEquals(new byte[] {(byte)0, (byte)38, (byte) (-71), (byte) (-28)}, byteArray0);\n }", "@Test(timeout = 4000)\n public void test014() throws Throwable {\n FileSystemHandling.appendLineToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"RuntimeInvisibleParameterAnnotations\", \"oc[MfnZM[~MHOK iO\", \"^9`YcaS\\\"6k.\", (String[]) null, false, false);\n Item item0 = new Item();\n methodWriter0.visitVarInsn(185, 1);\n Integer integer0 = new Integer(143);\n int int0 = 3;\n Integer integer1 = new Integer(3);\n int int1 = 510;\n try { \n Integer.decode(\"org.objectweb.asm.jip.ByteVector\");\n fail(\"Expecting exception: NumberFormatException\");\n \n } catch(NumberFormatException e) {\n //\n // For input string: \\\"org.objectweb.asm.jip.ByteVector\\\"\n //\n verifyException(\"java.lang.NumberFormatException\", e);\n }\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void test80BAU3B() {\n CuteNetlibCase.doTest(\"80BAU3B.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test061() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-4015));\n FileSystemHandling.setPermissions((EvoSuiteFile) null, false, false, false);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, false, true);\n methodWriter0.visitMultiANewArrayInsn(\"dVw2Z7M){e/Y(#j\", (-615));\n MethodWriter methodWriter1 = new MethodWriter(classWriter0, 2, \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", \"dVw2Z7M){e/Y(#j\", (String[]) null, true, true);\n Label label0 = new Label();\n String string0 = \"KY0B/+MuB[P.E(8)u)\";\n String string1 = \"\";\n // Undeclared exception!\n try { \n methodWriter1.visitLocalVariable(\"\\\"|2x^C5+x:\", \"\", \"KY0B/+MuB[P.E(8)u)\", label0, label0, 2);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "@Test(timeout = 4000)\n public void test54() throws Throwable {\n JSSubstitution jSSubstitution0 = new JSSubstitution();\n JSTerm jSTerm0 = new JSTerm();\n SystemInUtil.addInputLine(\"0(u\");\n int int0 = 369;\n // Undeclared exception!\n try { \n jSTerm0.toStr();\n fail(\"Expecting exception: ArrayIndexOutOfBoundsException\");\n \n } catch(ArrayIndexOutOfBoundsException e) {\n //\n // 0 >= 0\n //\n verifyException(\"java.util.Vector\", e);\n }\n }", "@Ignore\r\n @Test\r\n public void testCreateEncodingsLabelBitString2()\r\n {\r\n System.out.println(\"testCreateEncodingsLabelBitString2\");\r\n HuffmanEncoder huffman = new HuffmanEncoder(p2, ensemble2);\r\n HuffmanNode root = huffman.createTree();\r\n EncodingsLabelTextCreator enc = new EncodingsLabelTextCreator(root);\r\n String expResult = \"{ a: 01, b: 00, c: 0 }\"; \r\n String result = enc.getLabelText();\r\n System.out.println(result);\r\n assertEquals(expResult, result);\r\n }", "public static void main(String[] args) {\n\t\tTest02 sol = new Test02();\n\t\tString[] shirtSize = { \"XS\", \"S\", \"L\", \"L\", \"XL\", \"S\" };\n\t\tint[] ret = sol.solution(shirtSize);\n\t\tSystem.out.println(\"답: \" + Arrays.toString(ret) + \" .\");\n\t}", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_13() {\n CuteNetlibCase.doTest(\"KEN-13.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n public void test12() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString(\"randomWidthFactorTipText\");\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01D);\n assertEquals(\"randomWidthFactorTipText\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "@Test(timeout = 4000)\n public void test021() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getStructure();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString(\"\", false);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(0.0, evaluation0.SFSchemeEntropy(), 0.01);\n }", "@Test(timeout = 4000)\n public void test110() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString();\n assertEquals(0.0, evaluation0.unclassified(), 0.01);\n assertEquals(\"\\nTotal Number of Instances 0 \\n\", string0);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n }", "public String toString()\r\n/* 438: */ {\r\n/* 439:522 */ return \"Luffa-\" + (getDigestLength() << 3);\r\n/* 440: */ }", "private static String create50DigitString(){\n StringBuilder sb = new StringBuilder(\"1\");\n for(int i = 1; i < 50; i++){\n sb.append(\"0\");\n }\n return sb.toString();\n }", "abstract String mo1748c();", "public static void main (String[] args)\r\n\t{\r\n\t\tSystem.out.println(\"5814\");\r\n\t}", "@Test(timeout = 4000)\n public void test050() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(3046);\n String[] stringArray0 = new String[8];\n stringArray0[0] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[1] = \"s4#6U\";\n stringArray0[2] = \"81<U@W{b30+,bjYk\";\n stringArray0[3] = \")1Dc@`M-,v4\";\n stringArray0[4] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[5] = \"s4#6U\";\n stringArray0[6] = \"R$_Ff!sF,uE4P'wGFDy\";\n stringArray0[7] = \"s4#6U\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-493), \"R$_Ff!sF,uE4P'wGFDy\", \"2m<}(%PX(!\", \"R$_Ff!sF,uE4P'wGFDy\", stringArray0, false, false);\n Label label0 = new Label();\n Label label1 = new Label();\n int[] intArray0 = new int[3];\n intArray0[0] = 187;\n intArray0[2] = 187;\n Label[] labelArray0 = new Label[1];\n labelArray0[0] = label1;\n methodWriter0.visitLookupSwitchInsn(label0, intArray0, labelArray0);\n assertEquals(1, labelArray0.length);\n }", "static void method_8299() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Ò˜œÛ¢ï¬ó\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8034 = (new String((char[])var4)).intern();\r\n String var2 = field_8034;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 198;\r\n break;\r\n case 1:\r\n var10009 = 134;\r\n break;\r\n case 2:\r\n var10009 = 223;\r\n break;\r\n case 3:\r\n var10009 = 180;\r\n break;\r\n case 4:\r\n var10009 = 243;\r\n break;\r\n case 5:\r\n var10009 = 181;\r\n break;\r\n default:\r\n var10009 = 138;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "@Test(timeout = 4000)\n public void test033() throws Throwable {\n Range range0 = Range.ofLength(127L);\n LinkedList<Range> linkedList0 = new LinkedList<Range>();\n range0.complementFrom(linkedList0);\n Range.CoordinateSystem range_CoordinateSystem0 = Range.CoordinateSystem.ZERO_BASED;\n String string0 = range0.toString(range_CoordinateSystem0);\n assertEquals(\"[ 0 .. 125 ]/0B\", string0);\n }", "public static void main(String[] args) {\n\t\tchar aa = '\\u0000';\r\n\t\tchar a = '\\u0041';\r\n\t\tchar b = '\\u0042';\r\n\t\tchar c = '\\u0043';\r\n\t\tchar d = '\\u0044';\r\n\t\tchar e = '\\u0045';\r\n\t\tchar f = '\\u0046';\r\n\t\tchar g = '\\u0047';\r\n\t\tchar h = '\\u0048';\r\n\t\tchar i = '\\u0049';\r\n\t\tchar j = '\\u004A';\r\n\t\tchar k = '\\u004B';\r\n\t\tchar l = '\\u004C';\r\n\t\tchar m = '\\u004D';\r\n\t\tchar n = '\\u004E';\r\n\t\tchar o = '\\u004F';\r\n\t\tchar p = '\\u0051';\r\n\t\tchar q = '\\u0051';\r\n\t\tchar r = '\\u0052';\r\n\t\tchar s = '\\u0053';\r\n\t\tchar t = '\\u0054';\r\n\t\tchar u = '\\u0055';\r\n\t\tchar v = '\\u0056';\r\n\t\tchar w = '\\u0057';\r\n\t\tchar x = '\\u0058';\r\n\t\tchar y = '\\u0059';\r\n\t\tchar z = '\\u0060';\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tSystem.out.println(+i+\"\"+aa+\"\"+w+\"\"+i+\"\"+s+\"\"+h+\"\"+aa+\"\"+t+\"\"+o+\"\"+aa+\"\"+p+\"\"+e+\"\"+r+\"\"+i+\"\"+s+\"\"+h);\r\n\t}", "@Test(timeout = 4000)\n public void test77() throws Throwable {\n NaiveBayesMultinomialText naiveBayesMultinomialText0 = new NaiveBayesMultinomialText();\n String string0 = naiveBayesMultinomialText0.getRevision();\n assertEquals(2.0, naiveBayesMultinomialText0.getLNorm(), 0.01);\n assertFalse(naiveBayesMultinomialText0.getUseWordFrequencies());\n assertEquals(3.0, naiveBayesMultinomialText0.getMinWordFrequency(), 0.01);\n assertEquals(1.0, naiveBayesMultinomialText0.getNorm(), 0.01);\n assertEquals(\"9122\", string0);\n assertEquals(0, naiveBayesMultinomialText0.getPeriodicPruning());\n assertFalse(naiveBayesMultinomialText0.getNormalizeDocLength());\n }", "@Ignore\r\n @Test\r\n public void testCreateEncodingsLabelBitString()\r\n {\r\n System.out.println(\"createEncodingsLabelBitString\");\r\n HuffmanEncoder huffman = new HuffmanEncoder(p, ensemble);\r\n HuffmanNode root = huffman.createTree();\r\n EncodingsLabelTextCreator enc = new EncodingsLabelTextCreator(root);\r\n String expResult = \"{ a: 01, b: 10, c: 11, d: 001, e: 000 }\"; \r\n String result = enc.getLabelText();\r\n System.out.println(result);\r\n assertEquals(expResult, result);\r\n }", "@Test(timeout = 4000)\n public void test115() throws Throwable {\n TestInstances testInstances0 = new TestInstances();\n Instances instances0 = testInstances0.generate((String) null);\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toMatrixString();\n assertEquals(\"=== Confusion Matrix ===\\n\\n a b <-- classified as\\n 0 0 | a = class1\\n 0 0 | b = class2\\n\", string0);\n }", "@Test(timeout = 4000)\n public void test005() throws Throwable {\n Label label0 = new Label();\n FileSystemHandling.appendStringToFile((EvoSuiteFile) null, \"oc[MfnZM[~MHOK iO\");\n ClassWriter classWriter0 = new ClassWriter((-2450));\n String[] stringArray0 = new String[0];\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"H\", \"/i%NB\", \"LocalVariableTable\", stringArray0, false, false);\n methodWriter0.exceptionCount = 1;\n methodWriter0.getSize();\n int int0 = methodWriter0.getSize();\n assertEquals(38, int0);\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testKEN_11() {\n CuteNetlibCase.doTest(\"KEN-11.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "private String testString() {\n\t return\n\t \"CPLEX 10.1.0: optimal integer solution; objective 0\\n\" +\n\t \"0 MIP simplex iterations\\n\" +\n\t \"0 branch-and-bound nodes\\n\" +\n\t \"shipping_amount [*,*] (tr)\\n\" +\n\t \"# $1 = Product98464\\n\" +\n\t \"# $2 = Product98783\\n\" +\n\t \"# $4 = Product98989\\n\" +\n\t \"# $6 = Product99172\\n\" +\n\t \"# $7 = Product98911\\n\" +\n\t \"# $8 = Product98970\\n\" +\n\t \"# $9 = Product98991\\n\" +\n\t \"# $10 = Product99022\\n\" +\n\t \"# $11 = Product98803\\n\" +\n\t \": $1 $2 Product98731 $4 Product99036 $6 $7 $8 $9 $10 $11 :\\n\" +\n\t \"=\\n\" +\n\t \"Store65536 9 9 0 9 19 11 11 16 12 12 17\\n\" +\n\t \"Store65583 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65581 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65627 0 0 18 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65542 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65631 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65546 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65625 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65610 0 0 0 3 4 0 0 0 0 0 0\\n\" +\n\t \"Store65620 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65603 0 0 0 0 0 0 0 0 0 0 0\\n\" +\n\t \"Store65634 0 1 0 0 0 0 0 0 0 0 222\\n\" +\n\t \";\\n\";\n\t}", "public static void main(String[] args) {\n byte b1=125;\n System.out.println(b1);\n byte b2=(byte)129;\n System.out.println(b2);\t\t\n\t}", "@Test\n public void encodeAsStringNegative()\n {\n final int value = -5;\n final BinaryEncoder encoder = new BinaryEncoder(-8, 8, 1.0);\n final String result = encoder.encodeAsString(value);\n if (IS_VERBOSE)\n {\n System.out.println(\"result = \" + result);\n }\n assertNotNull(result);\n assertEquals(\"0011\", result);\n }", "@Test(timeout = 4000)\n public void test099() throws Throwable {\n String[] stringArray0 = new String[0];\n Evaluation.main(stringArray0);\n assertEquals(0, stringArray0.length);\n }", "public abstract String mo11611b();", "public static void main(String[] args) {\n\t\tSystem.out.println(getCode());\n\t\t// 调用getCode()方法打印一个四位数的随机验证码结果\n\t}", "public static void main(String[] args) {\n\r\n\t\t\r\n\t\tTest01 t = new Test01();\r\n\t\t\r\n\t\t//String st = \"1927\";\r\n\t\t//int in\t= 2;\t// n 개 제거\r\n\r\n\t\tString st = \"1231234\";\r\n\t\tint in\t= 3;\t\r\n\t\t\r\n\t\tString an = t.solution(st, in);\r\n\t\t\r\n\t\tSystem.out.println(an);\r\n\t}", "public static void main(String[] args) {\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"012345678\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"0123456789\"));\r\n\tSystem.out.println(CodeMap.getInstance().encode(\"01234567890\"));\r\n\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UCYF\\nALXLAT\\nSAZUF\\nCYFALT\\nXLASAU\\nYCXH\"));\r\n//\tSystem.out.println(CodeMap.getInstance().decode(\"UHTL\\nYTHCFC\\nJJZUU\\nHTLYTX\\nHCFJJT\\nAFTY\"));\r\n\t}", "@Test(timeout = 4000)\n public void test078() throws Throwable {\n FileSystemHandling.setPermissions((EvoSuiteFile) null, true, true, true);\n ClassWriter classWriter0 = new ClassWriter((-1878));\n classWriter0.addType(\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\\\"\";\n stringArray0[1] = \"\\\"\";\n classWriter0.newLong(0L);\n stringArray0[2] = \"\";\n stringArray0[3] = \"\\\"\";\n classWriter0.newClass(\"\\\"\");\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1878), \"\", \"<T'RwU+).UKJX>\", \"\", stringArray0, true, true);\n methodWriter0.visitAnnotation(\"\", true);\n methodWriter0.visitFieldInsn(1, \"\\\"\", \"char\", \"3<|siktz\");\n Label label0 = new Label();\n String string0 = label0.toString();\n assertEquals(\"L23\", string0);\n \n ByteVector byteVector0 = classWriter0.pool;\n methodWriter0.signature = \"\";\n methodWriter0.getSize();\n methodWriter0.visitFieldInsn(102, \"char\", \"Code\", \"\");\n methodWriter0.visitLocalVariable(\"\\\"\", \"Code\", \"7,9%\\\"lXhsy+;K+!\", label0, label0, 16777239);\n int int0 = methodWriter0.getSize();\n assertEquals(116, int0);\n }", "static String m20335a(int i) {\n return String.format(null, \"%s.ols%d.%d\", \"v2\", 100, Integer.valueOf(i));\n }", "@Test\n\tpublic void testHw1_1000000LOC31method21_8()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n @Tag(\"slow\")\n public void testKEN_07() {\n CuteNetlibCase.doTest(\"KEN-07.SIF\", \"-6.795204433816869E8\", \"-1.61949281194431E8\", NumberContext.of(7, 4));\n }", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"/\\fë%mwH]s,\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1436 = (new String((char[])var4)).intern();\r\n String var2 = field_1436;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 240;\r\n break;\r\n case 2:\r\n var10009 = 4;\r\n break;\r\n case 3:\r\n var10009 = 165;\r\n break;\r\n case 4:\r\n var10009 = 237;\r\n break;\r\n case 5:\r\n var10009 = 247;\r\n break;\r\n default:\r\n var10009 = 200;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "@Test(timeout = 4000)\n public void test119() throws Throwable {\n TextDirectoryLoader textDirectoryLoader0 = new TextDirectoryLoader();\n Instances instances0 = textDirectoryLoader0.getDataSet();\n Evaluation evaluation0 = new Evaluation(instances0);\n String string0 = evaluation0.toSummaryString((String) null, true);\n assertEquals(0.0, evaluation0.SFPriorEntropy(), 0.01);\n assertEquals(\"null\\nTotal Number of Instances 0 \\n\", string0);\n }", "@Test(timeout = 4000)\n public void test075() throws Throwable {\n DecisionTable decisionTable0 = new DecisionTable();\n String string0 = Evaluation.getGlobalInfo(decisionTable0);\n assertEquals(\"\\nSynopsis for weka.classifiers.rules.DecisionTable:\\n\\nClass for building and using a simple decision table majority classifier.\\n\\nFor more information see: \\n\\nRon Kohavi: The Power of Decision Tables. In: 8th European Conference on Machine Learning, 174-189, 1995.\", string0);\n }", "@Test\n @Tag(\"bm1000\")\n public void testSCAGR25() {\n CuteNetlibCase.doTest(\"SCAGR25.SIF\", \"-1.475343306076852E7\", null, NumberContext.of(7, 4));\n }", "@Test(timeout = 4000)\n public void test12() throws Throwable {\n DefaultNucleotideCodec defaultNucleotideCodec0 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray0 = new byte[5];\n byteArray0[0] = (byte) (-3);\n byte byte0 = (byte) (-2);\n defaultNucleotideCodec0.getGappedOffsetFor(byteArray0, 2130);\n Nucleotide nucleotide0 = Nucleotide.NotCytosine;\n Set<Nucleotide> set0 = nucleotide0.getBasesFor();\n byte[] byteArray1 = defaultNucleotideCodec0.encode((Collection<Nucleotide>) set0);\n DefaultNucleotideCodec defaultNucleotideCodec1 = DefaultNucleotideCodec.INSTANCE;\n defaultNucleotideCodec1.toString(byteArray1);\n DefaultNucleotideCodec defaultNucleotideCodec2 = DefaultNucleotideCodec.INSTANCE;\n byte[] byteArray2 = new byte[5];\n byteArray2[0] = (byte) (-2);\n byteArray2[1] = (byte) (-3);\n byteArray2[2] = (byte) (-3);\n byteArray2[3] = (byte) (-3);\n byteArray2[4] = (byte) (-3);\n // Undeclared exception!\n try { \n defaultNucleotideCodec2.toString(byteArray2);\n fail(\"Expecting exception: NegativeArraySizeException\");\n \n } catch(NegativeArraySizeException e) {\n //\n // no message in exception (getMessage() returned null)\n //\n verifyException(\"java.lang.AbstractStringBuilder\", e);\n }\n }", "public static void main(String[] args) {\n new BigInteger(\"abc\",16);\n String test = \"#$Y^!#Pf&~#FUyTtAfZhCs&Dly%M@(muOI@Le^mydvc((w$x-cP&t-f$R%CCp)bCck@P-ag\";\n LetterSort opr = new LetterSort();\n opr.sortLetters(test);\n\n String test2 = \" asd \".replaceAll(\"[^ ]\", \"\");\n System.out.println(test2.length()+\"\");\n\n int[] test1 = new int[]{1,2,4};\n int[] test3 = test1;\n\n test3[0] = 5;\n System.out.println(test1[0]+\"\");\n System.out.println(Integer.toBinaryString(10));\n\n int i = 1_000_000_000;\n int j = 2_000_000_000;\n System.out.println(\"Sum \" + ((long) i+j));\n }", "@Test(timeout = 4000)\n public void test017() throws Throwable {\n byte[] byteArray0 = new byte[9];\n byteArray0[0] = (byte)120;\n byteArray0[1] = (byte) (-68);\n ByteArrayInputStream byteArrayInputStream0 = new ByteArrayInputStream(byteArray0);\n JavaCharStream javaCharStream0 = new JavaCharStream(byteArrayInputStream0);\n JavaParserTokenManager javaParserTokenManager0 = new JavaParserTokenManager(javaCharStream0);\n Token token0 = javaParserTokenManager0.getNextToken();\n assertEquals(0, javaCharStream0.bufpos);\n assertEquals(74, token0.kind);\n }", "public static void main(String args[]){\nSystem.out.println(Integer.toOctalString(8)); \nSystem.out.println(Integer.toOctalString(19)); \nSystem.out.println(Integer.toOctalString(81)); \n}", "static void method_1458() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Â\u0002;\u0017sIȰ{T\u001e\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_1791 = (new String((char[])var4)).intern();\r\n String var2 = field_1791;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 220;\r\n break;\r\n case 1:\r\n var10009 = 19;\r\n break;\r\n case 2:\r\n var10009 = 57;\r\n break;\r\n case 3:\r\n var10009 = 122;\r\n break;\r\n case 4:\r\n var10009 = 30;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 165;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "private String result(int i) {\r\n\t\tswitch(sim40.memory[i]){\r\n\r\n\t\tcase 1: /* print */\r\n\t\t\treturn (\"\"+sim40.memory[Simulator.ACCUMULATOR_ADDRESS]);\r\n\r\n\t\tcase 2: /* printch */\r\n\t\t\treturn (\"\"+(char)sim40.memory[Simulator.ACCUMULATOR_ADDRESS]);\r\n\r\n\t\tcase 3: /* printb */\r\n\t\t\treturn (Integer.toBinaryString(sim40.memory[Simulator.ACCUMULATOR_ADDRESS]));\r\n\t\t}\r\n\r\n\t\treturn \"\";\r\n\t}", "public abstract CharSequence mo2160e();", "static void method_6617() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"3\u0012qêXI}@k\u0017ê\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_6523 = (new String((char[])var4)).intern();\r\n String var2 = field_6523;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 162;\r\n break;\r\n case 1:\r\n var10009 = 140;\r\n break;\r\n case 2:\r\n var10009 = 252;\r\n break;\r\n case 3:\r\n var10009 = 8;\r\n break;\r\n case 4:\r\n var10009 = 186;\r\n break;\r\n case 5:\r\n var10009 = 171;\r\n break;\r\n default:\r\n var10009 = 159;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "@Test\n\tpublic void testHw1_1000000LOC26method4_8()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void MyTest() {\n\t\tSystem.out.println(convert(\"PAYPALISHIRING\", 5));\n\t\tSystem.out.println(convert(\"01234567890\", 4));\n//\t\tint[][] arr = new int[1][2];\n//\t\tfor (int i = 0; i < arr.length; i++) {\n//\t\t\tSystem.out.println(Arrays.toString(arr[i]));\n//\t\t}\n\t}", "static void method_2892() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"Plf æ¤Ý\\\"\u0017\\f¢\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_2300 = (new String((char[])var4)).intern();\r\n String var2 = field_2300;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 87;\r\n break;\r\n case 1:\r\n var10009 = 100;\r\n break;\r\n case 2:\r\n var10009 = 125;\r\n break;\r\n case 3:\r\n var10009 = 212;\r\n break;\r\n case 4:\r\n var10009 = 146;\r\n break;\r\n case 5:\r\n var10009 = 208;\r\n break;\r\n default:\r\n var10009 = 169;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "public static void main(String[] args) {\n\n int N = 4;\n int [] arr = new int[N];\n\n generateBinaryString(N, arr, 0);\n // 2 items and 4 spaces\n }", "@Test\n public void testToBinary() {\n Object[][] datas = new Object[][]{\n {0, \"0\"},\n {5, \"101\"},\n {10, \"1010\"},\n {11, \"1011\"}\n };\n for (Object[] data : datas) {\n String result = Tools.toBinary((int) data[0]); //Actual\n String expResult = (String) data[1]; //Expected\n assertEquals(result, expResult);\n System.out.println(\"testToBinary()\");\n }\n }", "@Test(timeout = 4000)\n public void test23() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(32767);\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \"%%N)&#pn7Z\", \"%%N)&#pn7Z\", \"Label offset position has not been resolved yet\", (String[]) null, false, true);\n Label label0 = new Label();\n Object object0 = new Object();\n methodWriter0.visitLocalVariable(\"Label offset position has not been resolved yet\", \"Label offset position has not been resolved yet\", \"StackMapTable\", label0, label0, 1);\n MethodWriter methodWriter1 = null;\n try {\n methodWriter1 = new MethodWriter(classWriter0, 3928, \"&h'pH__a\", \"double\", \"StackMapTable\", (String[]) null, false, true);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "String mo38972c();", "String mo17375a();", "@Test\n public void printToString() {\n System.out.println(ModuleInfo.getFromModuleCode(\"CS1010\").get());\n }", "@Test\n @Tag(\"bm1000\")\n public void testRECIPELP() {\n CuteNetlibCase.doTest(\"RECIPELP.SIF\", \"-266.616\", \"-104.818\", NumberContext.of(7, 4));\n }", "public static void main(String[] args) {\n Solution s = new Solution();\n System.out.println(s.letterCombinations(\"67\").toString());\n\n }", "public static void main(String[] args) {\n\t\tbyte a=(byte)130;\n\t\tSystem.out.println(\"128을 저장한 byte 값은 : \"+ a);\n\n\t}", "public static String csTestAnswer(int i) {\r\n String answer = \"T\";\r\n String[] csTestAnswer = {\"T\",\"T\",\"T\", \"F\", \"F\", \"T\", \"F\", \"T\", \"F\", \"F\"};\r\n if (i == 100) {\r\n for (int counter = 0; counter < 9; counter++) {\r\n System.out.println(csTestAnswer[counter]);\r\n }\r\n }\r\n answer = csTestAnswer[i];\r\n\r\n return answer;\r\n }", "@Test\n\tpublic void testHw1_1000000LOC26method4_10()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n public void testContextToString() {\n final Context context = new Context();\n context.buffer = new byte[3];\n context.currentLinePos = 13;\n context.eof = true;\n context.ibitWorkArea = 777;\n context.lbitWorkArea = 999;\n context.modulus = 5;\n context.pos = 42;\n context.readPos = 981;\n final String text = context.toString();\n assertTrue(text.contains(\"[0, 0, 0]\"));\n assertTrue(text.contains(\"13\"));\n assertTrue(text.contains(\"true\"));\n assertTrue(text.contains(\"777\"));\n assertTrue(text.contains(\"999\"));\n assertTrue(text.contains(\"5\"));\n assertTrue(text.contains(\"42\"));\n assertTrue(text.contains(\"981\"));\n }", "@Test(timeout = 4000)\n public void test007() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter(23);\n classWriter0.toByteArray();\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, 2, \".JAR\", \".JAR\", \".JAR\", (String[]) null, false, false);\n Attribute attribute0 = new Attribute(\"LineNumberTable\");\n String[] stringArray0 = new String[1];\n stringArray0[0] = \"\\u0002X\";\n MethodWriter methodWriter1 = null;\n try {\n methodWriter1 = new MethodWriter(classWriter0, 23, \"Y`2\", \"\\u0002X\", \"&|Niopx\", stringArray0, true, true);\n fail(\"Expecting exception: StringIndexOutOfBoundsException\");\n \n } catch(StringIndexOutOfBoundsException e) {\n }\n }", "void mo5875b(String str, long j);", "String mo1152b();", "@Test(timeout = 4000)\n public void test032() throws Throwable {\n Label label0 = new Label();\n ClassWriter classWriter0 = new ClassWriter((-2450));\n classWriter0.index = (-2450);\n classWriter0.newInteger(2);\n String[] stringArray0 = new String[0];\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-2450), \"oc[MfnZM[~MHOK iO\", \"/i%NB\", \"LocalVariableTable\", stringArray0, false, false);\n methodWriter0.visitLocalVariable(\"/i%NB\", \"LocalVariableTable\", \"LocalVariableTable\", label0, label0, (-2450));\n methodWriter0.visitLocalVariable(\"RuntimeVisibleAnnotations\", \"*/TEiGBLds&\", \"/i%NB\", label0, label0, (-2444));\n }", "@Test\n @Tag(\"slow\")\n @Tag(\"unstable\")\n public void testQAP12() {\n CuteNetlibCase.doTest(\"QAP12.SIF\", \"1234567890\", \"1234567890\", NumberContext.of(7, 4));\n }", "@Test\n\tvoid testDecodeWays() {\n\t\tassertEquals(2, new DecodeWays().numDecodings(\"12\"));\n\t\tassertEquals(3, new DecodeWays().numDecodings(\"226\"));\n\t\tassertEquals(0, new DecodeWays().numDecodings(\"00\"));\n\t\tassertEquals(0, new DecodeWays().numDecodings(\"01\"));\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_10()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_9()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(intToString(525));\n\t}", "@Test(timeout = 4000)\n public void test65() throws Throwable {\n LovinsStemmer lovinsStemmer0 = new LovinsStemmer();\n String string0 = lovinsStemmer0.getRevision();\n assertEquals(\"8034\", string0);\n }", "public static void main(String[] args) {\n String s = \"**********1111111111\";\n Solution solution = new Solution();\n System.out.println(solution.numDecodings(s));\n }", "public static void main(String[] args) throws UnsupportedEncodingException {\n test18();\n }", "@Test\r\n public void testDescifrar() {\r\n System.out.println(\"descifrar\");\r\n String frase = \"KRÑD\";\r\n int base = 3;\r\n char[] expResult = {'H','O','L','A'};\r\n char[] result = Cifrado.descifrar(frase, base);\r\n assertArrayEquals(expResult, result);\r\n \r\n }", "@Test\n public void testGetShuffleString1() throws Exception {\n System.out.println(\"getShuffleString\");\n String appSaltKeyText = \"1234564IWCwFSOTf\";\n int expResult = 16;\n String result = ShuffleString.getShuffleString(appSaltKeyText);\n assertEquals(expResult, result.length());\n }", "@Test\n\tpublic void testHw1_1000000LOC26method4_9()\n\t\tthrows Exception {\n\t\thw1_1000000LOC26 fixture = new hw1_1000000LOC26();\n\t\tfixture.f0 = (short) 1;\n\t\tbyte var0 = (byte) 1;\n\t\tString var1 = \"\";\n\t\tbyte var2 = (byte) 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC26method4(var0, var1, var2);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC26\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "public static void main(String[] args) {\n\t\tSystem.out.println(7 + '0');\r\n\t\tprintInt1(837);\r\n\t\t// c2i();\r\n\t\t// c2i('a');\r\n\t}", "static void method_9231() {\r\n boolean var10000 = true;\r\n char[] var10003 = \"¯W!BÔK)Ý/HG\".toCharArray();\r\n Object var10004 = var10003.length;\r\n Object var4 = true;\r\n char[] var10002 = var10003;\r\n char[] var10001 = (char[])var10004;\r\n int var0 = 0;\r\n\r\n while(true) {\r\n var10003 = var10002;\r\n var10002 = var10001;\r\n var10001 = var10003;\r\n char[] var5 = var10002;\r\n var10002 = var10003;\r\n if(var10003 <= var0) {\r\n field_8734 = (new String((char[])var4)).intern();\r\n String var2 = field_8734;\r\n return;\r\n }\r\n\r\n char var10007 = (char)((Object[])var4)[var0];\r\n short var10009;\r\n switch(var0 % 7) {\r\n case 0:\r\n var10009 = 179;\r\n break;\r\n case 1:\r\n var10009 = 68;\r\n break;\r\n case 2:\r\n var10009 = 33;\r\n break;\r\n case 3:\r\n var10009 = 45;\r\n break;\r\n case 4:\r\n var10009 = 187;\r\n break;\r\n case 5:\r\n var10009 = 36;\r\n break;\r\n default:\r\n var10009 = 70;\r\n }\r\n\r\n ((Object[])var4)[var0] = (char)(var10007 ^ var5 ^ var10009);\r\n ++var0;\r\n }\r\n }", "@Test(timeout = 4000)\n public void test068() throws Throwable {\n ClassWriter classWriter0 = new ClassWriter((-1983180370));\n classWriter0.addType(\"\");\n FileSystemHandling fileSystemHandling0 = new FileSystemHandling();\n String[] stringArray0 = new String[4];\n stringArray0[0] = \"\\\"\";\n stringArray0[1] = \"char\";\n classWriter0.newLong(32L);\n stringArray0[2] = \"\";\n stringArray0[3] = \"\\\"\";\n MethodWriter methodWriter0 = new MethodWriter(classWriter0, (-1983180370), \"\", \"<T'RwU+).UKJX>\", \"\", stringArray0, true, false);\n methodWriter0.visitAnnotation(\"\", false);\n methodWriter0.visitVarInsn(2, 1);\n methodWriter0.visitFieldInsn(1, \"char\", \"char\", \"<init>\");\n Label label0 = new Label();\n String string0 = label0.toString();\n assertEquals(\"L23\", string0);\n \n ByteVector byteVector0 = new ByteVector(1);\n byteVector0.putShort(1);\n byteVector0.putUTF8(\"Label offset position has not been resolved yet\");\n ByteVector byteVector1 = classWriter0.pool;\n methodWriter0.put(byteVector1);\n methodWriter0.getSize();\n methodWriter0.visitFieldInsn(153, \"char\", \"c8E+g/+VYG;^slpR|N\", \"UuKpnSVn~O3\");\n methodWriter0.visitInsn(2);\n methodWriter0.visitFrame(78, 1, stringArray0, 78, stringArray0);\n int int0 = methodWriter0.getSize();\n assertEquals(90, int0);\n }", "@Test\n\tpublic void testHw1_1000000LOC31method21_7()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_5()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}", "@Test\n\tpublic void testHw1_1000000LOC31method21_6()\n\t\tthrows Exception {\n\t\thw1_1000000LOC31 fixture = new hw1_1000000LOC31();\n\t\tint var0 = 1;\n\t\tchar var1 = '\u0001';\n\t\thw1_1000000LOC4 var2 = new hw1_1000000LOC4();\n\t\tint var3 = 1;\n\t\tint var4 = 1;\n\n\t\tbyte result = fixture.hw1_1000000LOC31method21(var0, var1, var2, var3, var4);\n\n\t\t// add additional test code here\n\t\t// An unexpected exception was thrown in user code while executing this test:\n\t\t// java.lang.ClassNotFoundException: hw1_1000000LOC31\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:366)\n\t\t// at java.net.URLClassLoader$1.run(URLClassLoader.java:355)\n\t\t// at java.security.AccessController.doPrivileged(Native Method)\n\t\t// at java.net.URLClassLoader.findClass(URLClassLoader.java:354)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:425)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.UserDefinedClassLoader.loadClass(UserDefinedClassLoader.java:62)\n\t\t// at java.lang.ClassLoader.loadClass(ClassLoader.java:358)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionContextImpl.getClass(ExecutionContextImpl.java:99)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.SimpleTypeExpression.execute(SimpleTypeExpression.java:205)\n\t\t// at com.instantiations.eclipse.analysis.expression.model.MethodInvocationExpression.execute(MethodInvocationExpression.java:544)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.core.ExecutionRequest.execute(ExecutionRequest.java:286)\n\t\t// at com.instantiations.assist.eclipse.junit.execution.communication.LocalExecutionClient$1.run(LocalExecutionClient.java:158)\n\t\t// at java.lang.Thread.run(Thread.java:744)\n\t\tassertEquals((byte) 0, result);\n\t}" ]
[ "0.60368", "0.59246296", "0.58979857", "0.5831426", "0.58233386", "0.58196056", "0.5816898", "0.5814603", "0.578618", "0.57623917", "0.5698296", "0.5673779", "0.5667734", "0.56495714", "0.56362176", "0.5633599", "0.56307507", "0.562816", "0.56261796", "0.56164694", "0.5610775", "0.5607457", "0.5603699", "0.5598785", "0.5581926", "0.558012", "0.55753285", "0.55731547", "0.553922", "0.5531347", "0.5525034", "0.55224633", "0.5517743", "0.551728", "0.54993737", "0.54955643", "0.54949355", "0.5494475", "0.5480716", "0.5473033", "0.54721516", "0.5472027", "0.546846", "0.5465375", "0.5463673", "0.54590243", "0.54557186", "0.5450673", "0.54444784", "0.5438605", "0.5434707", "0.5430192", "0.54258287", "0.5424411", "0.54203266", "0.5418138", "0.54154706", "0.5414671", "0.54122514", "0.5396352", "0.53926474", "0.53902715", "0.53896016", "0.5383319", "0.5383209", "0.5382935", "0.5381334", "0.53716767", "0.5368682", "0.5362937", "0.5361304", "0.5356919", "0.53524506", "0.53513956", "0.53505296", "0.5349122", "0.5347111", "0.5342414", "0.5341471", "0.5340619", "0.53369", "0.53344506", "0.5329965", "0.5329945", "0.5328155", "0.5326535", "0.53229684", "0.5320686", "0.53192794", "0.53188", "0.53153497", "0.5315326", "0.5314895", "0.53145796", "0.5314264", "0.53124255", "0.53048444", "0.5302744", "0.5300297", "0.5299494", "0.52978873" ]
0.0
-1
199 Gets the name of a TestCase
public String getName() { return fName; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getTestname() {\n return testname;\n }", "public static String getTestCaseClassName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tfor (StackTraceElement e : stackTraceElements) {\n\t\t\tString s = e.toString();\n\t\t\tif (s.contains(\"com.textura.cpm.testsuites\")) {\n\t\t\t\tint endMethod = s.lastIndexOf('(');\n\t\t\t\tint beginMethod = s.lastIndexOf('c', endMethod);\n\t\t\t\tif (beginMethod < 0 || beginMethod >= endMethod) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString caseName = s.substring(beginMethod, endMethod);\n\t\t\t\ttry {\n\t\t\t\t\tInteger.parseInt(caseName.substring(1));\n\t\t\t\t\treturn s;\n\t\t\t\t} catch (Exception a) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "protected String getName() {\n return testClass.getName();\n }", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "public TestCase(String name) {\n fName= name;\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void testGetName() {\n assertEquals(hero.getName(), \"hero\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "public String getTestCaseNameForTestMethod(String methodName)\n {\n return \"Perf_SustainedPubSub\";\n }", "@Test\n public void whenGetNameThenReturnResult() {\n String expected = underTest.getName();\n assertThat(expected, is(\"UnderTest\"));\n }", "@Override\n\t\tpublic String getName() {\n\t\t\tSystem.out.println(ITestResult.SUCCESS);\n\t\t\treturn null;\n\t\t}", "public String getTestName() {\n return testURL;\n }", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "@Test\n public void testName() {\n\n }", "@Test\r\n\tpublic void getName() {\r\n\t\tassertEquals(\"Name was intialized as 'test'\", \"test\", testObj.getName());\r\n\t}", "@Test\n public void testGetLastAttackTitle() {\n \n assertEquals(hero.getLastAttackTitle(), \"The starting battle specs are:\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n }", "private String getJiraTestCaseComponent() {\n component = name.replace(\"TC - \", \"\");\n component = component.substring(0, component.indexOf(\":\"));\n return component;\n }", "@Test\n public void testSetName() {\n \n hero.setName(\"cheyo\");\n assertEquals(hero.getName(), \"cheyo\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "public String getTestSetName() {\n return this.testSetName;\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "public void testGetName_fixture18_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture18();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public String getTestMethodName() {\n return m_testMethodName;\n }", "public void testGetName_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public void testName()\r\n {\r\n assertEquals( \"name\", m_name, m_directive.getName() );\r\n }", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture23_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture23();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public String getShortTestClassName()\r\n {\r\n return target.getClass().getSimpleName();\r\n }", "@Override\n protected String testName(FrameworkMethod method)\n {\n return method.getName() + getName();\n }", "protected String getMethodSpecificTestDataFileName() {\r\n StringBuffer result = new StringBuffer()\r\n .append(TESTDATA+\"/\")\r\n .append(getClassNameWithoutPackage())\r\n .append(\"_\")\r\n .append(getName())\r\n .append(\".xml\");\r\n return result.toString();\r\n }", "public TestCase(String name) {\n\t\tsetName(name);\n\t}", "public void testGetName_fixture28_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture28();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public void testGetName_fixture22_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture22();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "public void testGetName_fixture24_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture24();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "public String getTestDefinitionName() {\n return testdefinitionname;\n }", "public void testGetName_fixture11_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture11();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "@Test\n public void testGetScriptGroupName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getScriptGroupName();\n\n assertEquals(\"\", result);\n }", "public void testGetName_fixture26_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture26();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public void testGetName_fixture10_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture10();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public void testGetName_fixture14_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture14();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "public String getTestBedName() {\r\n\t\treturn testBedName; \r\n\t}", "public void testGetName_fixture25_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture25();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testGetName() {\n System.out.println(\"getName\");\n Unit instance = new Unit();\n String expResult = \"\";\n String result = instance.getName();\n assertEquals(expResult, result);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "@Test\n\tpublic void test_getName() {\n\tTennisPlayer c1 = new TennisPlayer(24,\"John Isner\");\n\tassertEquals(\"John Isner\",c1.getName());\n }", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture4_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture4();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "public void testGetName_fixture12_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture12();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "public String getTestCaseType() {\r\n\t\treturn testCaseType;\r\n\t}", "public Map<String,String> getTestCaseNames() throws IOException {\n return testCaseNames;\n }", "public String getTestClassName()\r\n {\r\n return target.getClass().getName();\r\n }", "public void testGetName_fixture5_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture5();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetName_fixture8_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture8();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public void testGetName_fixture20_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture20();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "@Test\n public void getNameTest() {\n // expected name for e1\n String expected = \"Pepper Potts\";\n\n assertEquals(\"The expected value of name does not match the actual: \"\n , expected, e1.getName());\n }", "public void testGetName_fixture21_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture21();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "public void testGetName_fixture27_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture27();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "@Test\n public void testClassName() {\n TestClass testClass = new TestClass();\n logger.info(testClass.getClass().getCanonicalName());\n logger.info(testClass.getClass().getName());\n logger.info(testClass.getClass().getSimpleName());\n }", "public static void setTestName(String rnTest)\n\t{\n\t\trnTestName = rnTest;\n\t\tlogger.info(\"set test case name\");\n\t\t\n\t}", "@Override\n\tpublic String toString() {\n\t\treturn name+\" : \"+test;\n\t}", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testGetName()\n {\n assertThat(m_SUT.getName(), is(\"test name\"));\n }", "public void testGetName_fixture9_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture9();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public void testGetName_fixture19_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture19();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"An��t-1.0.txt\", result);\n\t}", "public static String getTestScenario1(String TC)\r\n\t{\r\n\t\treturn testScenario.get(TC);\r\n\t}", "@Override\r\n\tpublic void onTestSuccess(ITestResult result) {\n\t\tSystem.out.println(\"onTestSuccess -> Test Name: \"+result.getName());\r\n\t}", "public void testGetName_fixture13_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture13();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"\", result);\n\t}", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();", "String getName();" ]
[ "0.76010966", "0.7479011", "0.74420774", "0.72199935", "0.7095071", "0.6984804", "0.6981791", "0.69779396", "0.6924273", "0.6902206", "0.68432015", "0.6780702", "0.6775892", "0.67724967", "0.67695284", "0.6760921", "0.6685126", "0.66750073", "0.66324663", "0.66324663", "0.66324663", "0.66324663", "0.66165566", "0.6601709", "0.6595027", "0.6580483", "0.6517367", "0.6514482", "0.64990777", "0.6488288", "0.64596623", "0.6451522", "0.64384866", "0.6435281", "0.6427987", "0.6415996", "0.64119345", "0.6395105", "0.6388266", "0.63762313", "0.6356155", "0.6343868", "0.63302594", "0.6325068", "0.6315926", "0.6313905", "0.63012236", "0.6288267", "0.62860054", "0.6283692", "0.6274277", "0.62739074", "0.6265884", "0.62654483", "0.6258175", "0.62539107", "0.62503976", "0.6242244", "0.6235218", "0.6234308", "0.622651", "0.6217105", "0.61933666", "0.6187607", "0.6179841", "0.6168266", "0.61647475", "0.61634237", "0.6136083", "0.6120667", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511", "0.6119511" ]
0.0
-1
6 Sets the name of a TestCase
public void setName(String name) { fName= name; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void setTestName( String name ) {\n\t\ttestName = name;\n\t}", "@Override\n\t\tpublic void setTestName(String name) {\n\t\t\t\n\t\t}", "public TestCase(String name) {\n fName= name;\n }", "public TestCase(String name) {\n\t\tsetName(name);\n\t}", "public static void setTestName(String rnTest)\n\t{\n\t\trnTestName = rnTest;\n\t\tlogger.info(\"set test case name\");\n\t\t\n\t}", "public void setTestname(String testname) {\n this.testname = testname;\n }", "public TestCase(String name)\r\n {\r\n super(name);\r\n resetIO();\r\n }", "@org.junit.Test\n public void setName() {\n }", "public void testSetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public String getTestname() {\n return testname;\n }", "public void setTestMethodName(String name) {\n m_testMethodName = name;\n }", "@Test\r\n public void testSetName() {\r\n\r\n }", "@Test\n void setName() {\n }", "@Test\n public void testSetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String name = \"\";\n\n fixture.setName(name);\n\n }", "@Test\n public void testName() {\n\n }", "@Override\n\t\tpublic String getTestName() {\n\t\t\treturn null;\n\t\t}", "@Test\n void setName() {\n\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void nameTest() {\n // TODO: test name\n }", "@Test\n public void testSetName() {\n \n hero.setName(\"cheyo\");\n assertEquals(hero.getName(), \"cheyo\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "public WizardsTest(String testName) {\n super(testName);\n }", "protected String getName() {\n return testClass.getName();\n }", "public void setTestSetName(String testSetName) {\n this.testSetName = testSetName;\n }", "public void testSetName_fixture5_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture5();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public PlanillaTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void junitTestStarted(String name) { }", "public void junitTestStarted(String name) { }", "public void testSetName_fixture4_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture4();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"\";\n Unit instance = new Unit();\n instance.setName(name);\n // TODO review the generated test code and remove the default call to fail.\n fail(\"The test case is a prototype.\");\n }", "public void testSetName_fixture18_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture18();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public TabletTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture17_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture17();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testName()\r\n {\r\n assertEquals( \"name\", m_name, m_directive.getName() );\r\n }", "public void testSetName_fixture23_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture23();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture28_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture28();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture16_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture16();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture14_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture14();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public SustainedTestCase(String name)\n {\n super(name);\n }", "public void testSetName_fixture11_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture11();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public SampleJUnit(String name) {\r\n\t\tsuper(name);\r\n\t}", "public void testGetName_fixture6_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture6();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testSetName_fixture8_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture8();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture26_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture26();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testGetName() {\n assertEquals(hero.getName(), \"hero\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "public String getTestCaseNameForTestMethod(String methodName)\n {\n return \"Perf_SustainedPubSub\";\n }", "@Test\n public void testSetName_1()\n throws Exception {\n Project fixture = new Project();\n fixture.setWorkloadNames(\"\");\n fixture.setName(\"\");\n fixture.setScriptDriver(ScriptDriver.SilkPerformer);\n fixture.setWorkloads(new LinkedList());\n fixture.setComments(\"\");\n fixture.setProductName(\"\");\n String name = \"\";\n\n fixture.setName(name);\n\n }", "@Override\n protected String testName(FrameworkMethod method)\n {\n return method.getName() + getName();\n }", "public LTest(String name) {\r\n\t\tsuper(name);\r\n\t}", "public void testSetName_fixture10_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture10();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture24_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture24();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public ULTest(String name) {\n\t\tsuper(name);\n\t}", "public void testSetName_fixture22_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture22();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"\";\n Manager instance = new Manager();\n instance.setName(name);\n \n fail(\"The test case is a prototype.\");\n }", "public ParamNameTest(String testName) {\n super(testName);\n }", "@Test\r\n\tpublic void getName() {\r\n\t\tassertEquals(\"Name was intialized as 'test'\", \"test\", testObj.getName());\r\n\t}", "public void testSetName_fixture12_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture12();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public String getTestSetName() {\n return this.testSetName;\n }", "@Before\n public void setNames() {\n super.setTestRobot(\"tkt.RedShift\");\n super.setEnemyRobot(\"sample.Tracker\");\n }", "public void testSetName_fixture9_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture9();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n user.setName(\"Mauricio\");\n assertEquals(\"Mauricio\", user.getName());\n }", "@Test\n public void groupNameTest() {\n // TODO: test groupName\n }", "public void testSetName_fixture27_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture27();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testGetName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n\n String result = fixture.getName();\n\n assertEquals(\"\", result);\n }", "public void testSetName_fixture3_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture3();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testGetName_fixture5_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture5();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testSetName_fixture25_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture25();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void setNameTest() {\n e1.setName(\"Pepper Stark\");\n String expected = \"Pepper Stark\";\n\n assertEquals(\"The expected new name does not match the actual: \"\n , expected, e1.getName());\n }", "@Test\n public void testTrackerNaming() {\n }", "@Test\n public void testSetScriptGroupName_1()\n throws Exception {\n LogicStep fixture = new LogicStep();\n fixture.setScript(\"\");\n fixture.setName(\"\");\n fixture.setOnFail(\"\");\n fixture.setScriptGroupName(\"\");\n fixture.stepIndex = 1;\n String scriptGroupName = \"\";\n\n fixture.setScriptGroupName(scriptGroupName);\n\n }", "public TestCase() {\n fName= null;\n }", "public void testSetName_fixture21_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture21();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testSetName_fixture1_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture1();\n\t\tString name = \"\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n public void testSetLastAttackTitle() {\n hero.setLastAttackTitle(\"Your end stats are:\");\n assertEquals(hero.getLastAttackTitle(), \"Your end stats are:\");\n System.out.println(testName.getMethodName() + \" PASSED.\");\n \n }", "public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(getDirectoryFinder().getBuildDirectory(), testType+ \".\" +testMethod +\".out\").getAbsolutePath();\n\t}", "public void testSetName_fixture20_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture20();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public static String getTestCaseClassName() {\n\t\tStackTraceElement stackTraceElements[] = (new Throwable()).getStackTrace();\n\t\tfor (StackTraceElement e : stackTraceElements) {\n\t\t\tString s = e.toString();\n\t\t\tif (s.contains(\"com.textura.cpm.testsuites\")) {\n\t\t\t\tint endMethod = s.lastIndexOf('(');\n\t\t\t\tint beginMethod = s.lastIndexOf('c', endMethod);\n\t\t\t\tif (beginMethod < 0 || beginMethod >= endMethod) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString caseName = s.substring(beginMethod, endMethod);\n\t\t\t\ttry {\n\t\t\t\t\tInteger.parseInt(caseName.substring(1));\n\t\t\t\t\treturn s;\n\t\t\t\t} catch (Exception a) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn \"\";\n\t}", "public void setTestMethod(JUnitTestCase testCase) {\n\t\tthis.testCase = testCase;\n\t\tthis.testMethod = testCase.getMethodName();\n\t\tthis.outputFilename = new File(\n\t\t\t\tgetDirectoryFinder().getBuildDirectory(), testType + \".\"\n\t\t\t\t\t\t+ testMethod + \".out\").getAbsolutePath();\n\t}", "@Test\n public void testGetName()\n {\n assertThat(m_SUT.getName(), is(\"test name\"));\n }", "@Test\r\n\tpublic void testNameAccessors() {\r\n\r\n\t\t// Create a new Notification and use accessors to set the note name\r\n\t\tINotification note = new Notification(\"TestNote\");\r\n\r\n\t\t// test assertions\r\n\t\tAssert.assertEquals(\"Expecting note.getName() == 'TestNote'\", note.getName(), \"TestNote\");\r\n\t}", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n Menu instance = MenuFactory.createMenu(MenuType.FOOD, name, 14000);\n instance.setName(name);\n assertEquals(name, instance.getName());\n }", "public void testSetName_fixture13_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture13();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public NetUtilsTestCase(String name) {\n super(name);\n }", "public void testSetName_fixture3_2()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture3();\n\t\tString name = \"\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "@Test\n\tpublic void testGetSetName() {\n\t\tfinal String testName = \"Canada BC\";\n\t\tthis.shippingRegionImpl.setName(testName);\n\t\tassertEquals(testName, this.shippingRegionImpl.getName());\n\t}", "public IndentRulesTestCase(String name) {\n super(name);\n }", "public SwitchLookupTest(String name) {\n super(name);\n }", "private String getJiraTestCaseName() {\n String summary = issue.substring(issue.indexOf(\"summary\"), issue.indexOf(\"timetracking\"));\n name = summary.substring(summary.indexOf(\"TC\"));\n name = name.substring(0, name.indexOf(\"\\\",\"));\n return name;\n }", "@Test\n public void whenGetNameThenReturnResult() {\n String expected = underTest.getName();\n assertThat(expected, is(\"UnderTest\"));\n }", "public void testChangeName() {\n System.out.println(\"changeName\");\n String expResult = \"Anu\";\n //String result = new changeName('Anu', \"Shar\");\n assertEquals(expResult, result);\n }", "public void testGetName_fixture7_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture7();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "@Test\n public void testSetName() {\n service.setName(\"ServiceNew\");\n assertEquals(\"ServiceNew\", service.getName());\n \n }", "public void testSetName_fixture19_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture19();\n\t\tString name = \"0123456789\";\n\n\t\tfixture.setName(name);\n\n\t\t// add additional test code here\n\t}", "public void testGetName_fixture15_1()\n\t\tthrows Exception {\n\t\tFolder fixture = getFixture15();\n\n\t\tString result = fixture.getName();\n\n\t\t// add additional test code here\n\t\tassertEquals(\"0123456789\", result);\n\t}", "public void testGetSetTitle() {\n exp = new Experiment(\"10\");\n exp.setTitle(\"test\");\n assertEquals(\"test/set title does not work\", \"test\", exp.getTitle());\n }", "private static String testSetName(String newName, Greeter greeter)\n {\n String output = \"Saying hello to the greeter: \\n\" + greeter.sayHello();\n output += \"Setting \" + newName + \" as the newName\";\n greeter.setName(newName);\n output += \"Saying hello to the greeter: \\n\" + greeter.sayHello();\n return output;\n }", "public SqlValidatorTestCase(String name)\n {\n super(splitName(name));\n SqlConformance conformance = splitConformance(name);\n if (conformance == null) {\n conformance = SqlConformance.Default;\n }\n this.tester = getTester(conformance);\n }", "@Test\n public void testSetName() {\n System.out.println(\"setName\");\n String name = \"Test\";\n Library instance = new Library();\n instance.setName(name);\n String result = instance.getName();\n assertEquals(name, result);\n }" ]
[ "0.80113554", "0.79969305", "0.7808698", "0.7671117", "0.7603308", "0.73510987", "0.7232953", "0.7137752", "0.69864744", "0.6949277", "0.6932019", "0.6887904", "0.6887268", "0.6876068", "0.6868231", "0.6863931", "0.6844291", "0.68274504", "0.68274504", "0.68274504", "0.68274504", "0.67967594", "0.6695948", "0.6692213", "0.6665068", "0.66620016", "0.6618267", "0.6615993", "0.66011727", "0.6598572", "0.6598572", "0.65944195", "0.65881664", "0.65738255", "0.6567549", "0.65644467", "0.65492976", "0.6525007", "0.65218186", "0.6518301", "0.6517418", "0.6513061", "0.6504173", "0.65039814", "0.65013725", "0.6497132", "0.64798677", "0.6469543", "0.64605534", "0.64562327", "0.64514345", "0.64498156", "0.6442159", "0.64379466", "0.6429504", "0.64152086", "0.64092195", "0.6400302", "0.639568", "0.6388834", "0.63704354", "0.63602084", "0.6355245", "0.634673", "0.6327569", "0.63230354", "0.6301309", "0.6291686", "0.6288282", "0.6285219", "0.6282008", "0.6270275", "0.62643355", "0.6263513", "0.6260107", "0.6247716", "0.62448084", "0.62435395", "0.62434596", "0.6223007", "0.62214357", "0.6193524", "0.6191557", "0.61890656", "0.618418", "0.61563855", "0.6148814", "0.6146277", "0.6145819", "0.6138745", "0.6127131", "0.61242235", "0.61204904", "0.61104614", "0.6109235", "0.6108439", "0.61069906", "0.6102781", "0.6100753", "0.60906076", "0.6085535" ]
0.0
-1
To start the IED server
public void startServer(PWModelDetails pwModelDetails) { try { List<ServerSap> serverSaps = null; try { serverSaps = ServerSap.getSapsFromSclFile(pwModelDetails.getSclFileName()); } catch (SclParseException e) { logger.info("Error parsing SCL/ICD file: " + e.getMessage()); e.printStackTrace(); return; } serverSap = serverSaps.get(0); serverSap.setPort(pwModelDetails.getPortNumber()); InetAddress address = null; try { ipAddress = pwModelDetails.getIpAddress(); address = InetAddress.getByName(ipAddress); } catch (UnknownHostException e) { logger.info("Unknown host: " + ipAddress); logger.info("Proxy will run with the defualt IP as define in the SCL file."); logger.info("Unknown host " + ipAddress); return; } if (address != null) { serverSap.setBindAddress(address); } Runtime.getRuntime().addShutdownHook(new Thread() { @Override public void run() { if (serverSap != null) { serverSap.stop(); } logger.info("Server was stopped"); } }); ServerModel serverModel = serverSap.getModelCopy(); // create a SampleServer instance that can be passed as a callback object to startListening() and // SmartPowerIEDServer sampleServer = new SmartPowerIEDServer(); SoftGridIEDServer sampleServer = this; // Open MUC initialization List<BasicDataAttribute> branchCircuitBreakerVals = new ArrayList<BasicDataAttribute>(3); for (String reference : iedRefFcHashMap.keySet()) { BasicDataAttribute field = (BasicDataAttribute) serverModel.findModelNode(reference, iedRefFcHashMap.get(reference)); if (field == null) { logger.info(">>>>>> Error in obtaining SCL reference object = " + reference); } branchCircuitBreakerVals.add(field); } // Power World Device Initialization ParameterGenerator parameterGenerator = new ParameterGenerator(); parameterGenerator.setSclKeyToPWKeyMap(pwModelDetails.getSclToPWMapping()); parameterGenerator.setKeyParameters(pwModelDetails.getKeyArray()); parameterGenerator.setValueParameters(pwModelDetails.getDataFieldArray()); parameterGenerator.setPersistedValues(pwModelDetails.getValueArray()); parameterGenerator.setDeviceObjectName(pwModelDetails.getDeviceName()); if (controlAPI == null) { controlAPI = IedControlerFactory.getPWComBridgeIterface(); synchronized (controlAPI) { if (!controlAPI.isCaseOpened()) { controlAPI.openCase(); } } } parameterGenerator.setControlAPI(controlAPI); // load power world data serverSap.startListening(sampleServer, parameterGenerator); try { serverSap.setValues(branchCircuitBreakerVals); } catch (Exception e) { logger.info("pwModelDetails.getModelNodeReference() = " + pwModelDetails.getModelNodeReference()); e.printStackTrace(); } String[][] paramPack = parameterGenerator.getParamPack(); type = IEDUtils.getIEDType(parameterGenerator.getDeviceObjectName()); id = ++IED_COUNT; StringBuffer sb = new StringBuffer(); String logDataSeperator = ":"; boolean loged = false; logEvent("IED : " + type.name() + " : " + id + " is Started...!"); String[] elements = null; while (true) { synchronized (this) { try { Thread.sleep(PW_INTERROGATION_INTERVAL); } catch (InterruptedException e) { e.printStackTrace(); } } elements = parameterGenerator.loadDataValues(paramPack); if (elements == null) { if(type.name().equals("BUS")) { System.out.println("BUS"); } continue; } sb.append("Type:").append(type.name()); for (int i = 0; i < branchCircuitBreakerVals.size(); i++) { BasicDataAttribute modelNodes = branchCircuitBreakerVals.get(i); if (modelNodes != null && elements.length > i) { String pwKeyName = null; for (String sclKey : parameterGenerator.getSclKeyToPWKeyMap().keySet()) { if (modelNodes.getReference().toString().endsWith(sclKey)) { pwKeyName = sclKey; } } if (pwKeyName == null) { continue; } for (int j = 0; j < paramPack[0].length; j++) { if (!loged) { sb.append(logDataSeperator).append(paramPack[0][j]).append(logDataSeperator).append(elements[j]); } if (parameterGenerator.getSclKeyToPWKeyMap().get(pwKeyName).equals(paramPack[0][j])) { if (modelNodes instanceof BdaDoubleBitPos) { byte[] status = new byte[1]; if (elements[j].equalsIgnoreCase("open")) { status[0] = 0; } else { status[0] = 1; } ((BdaDoubleBitPos) modelNodes).setValue(status); } else if (modelNodes instanceof BdaVisibleString) { ((BdaVisibleString) modelNodes).setValue(elements[j]); } else if (modelNodes instanceof BdaFloat32) { ((BdaFloat32) modelNodes).setFloat(Float.parseFloat(elements[j])); } } } loged = true; } } serverStarted = true; // synchronized (logger) { // if (ConfigUtil.MANUAL_EXPERIMENT_MODE) { // if this string is not printed in the log file, logger.info(sb.toString()); // } // } sb = new StringBuffer(""); loged = false; serverSap.setValues(branchCircuitBreakerVals); if (serverStoped) { serverStarted = false; break; } } } catch (Exception e) { e.printStackTrace(); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void start() {\n System.out.println(\"server started\");\n mTerminalNetwork.listen(mTerminalConfig.port);\n }", "public void startServer() {\n server.start();\n }", "private void startServer() {\n\t\ttry {\n//\t\t\tserver = new Server();\n//\t\t\tserver.start();\n\t\t} catch (Exception e) {\n\t\t\t// TODO: add message in UI for user\n\t\t}\n\t}", "@Override\r\n protected void start() throws StartException {\n\r\n if (!Main.INIT_COMPLETE.isReached()) startServer();\r\n new EDTRunner() {\r\n\r\n @Override\r\n protected void runInEDT() {\r\n initGUI();\r\n }\r\n };\r\n\r\n }", "public void run(){\n\t\tstartServer();\n\t}", "public void startServer() {\n URLClassLoader loader = createClasspath(opts);\n X_Process.runInClassloader(loader, appServer\n .map(DevAppServer::doStartServer, getAppName() + \"Server\", getPort())\n .ignoreOut1().unsafe());\n }", "public void start() {\n System.err.println(\"Server will listen on \" + server.getAddress());\n server.start();\n }", "public void start() {\n \t\tinit();\n\t\tif(!checkBackend()){\n\t\t\tvertx.createHttpServer().requestHandler(new Handler<HttpServerRequest>() {\n\t\t\t\tpublic void handle(HttpServerRequest req) {\n\t\t\t\t String query_type = req.path();\t\t\n\t\t\t\t req.response().headers().set(\"Content-Type\", \"text/plain\");\n\t\t\t\t\n\t\t\t\t if(query_type.equals(\"/target\")){\n\t\t\t\t\t String key = req.params().get(\"targetID\");\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequest(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t else {\n\t\t\t\t\t String key = \"1\";\n\t\t\t\t\t\ttry {\n\t\t\t\t\t\t\tprocessRequestRange(key,req);\n\t\t\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t } \n\t\t\t}).listen(80);\n\t\t} else {\n\t\t\tSystem.out.println(\"Please make sure that both your DCI are up and running\");\n\t\t\tSystem.exit(0);\n\t\t}\n\t}", "private static void startServer(){\n try{\n MMServer server=new MMServer(50000);\n }catch (IOException ioe){\n System.exit(0);\n }\n \n }", "public void run() {\n Runtime.getRuntime().addShutdownHook(new MNOSManagerShutdownHook(this));\n\n OFNiciraVendorExtensions.initialize();\n\n this.startDatabase();\n\n try {\n final ServerBootstrap switchServerBootStrap = this\n .createServerBootStrap();\n\n this.setServerBootStrapParams(switchServerBootStrap);\n\n switchServerBootStrap.setPipelineFactory(this.pfact);\n final InetSocketAddress sa = this.ofHost == null ? new InetSocketAddress(\n this.ofPort) : new InetSocketAddress(this.ofHost,\n this.ofPort);\n this.sg.add(switchServerBootStrap.bind(sa));\n }catch (final Exception e){\n throw new RuntimeException(e);\n }\n\n }", "@Test\n public void startServer() throws InterruptedException {\n UicdInstrumentation uicdInstrumentation =\n UicdInstrumentation.getInstance(\n getInstrumentation().getContext(), DEFAULT_PORT);\n uicdInstrumentation.startServer();\n\n while (!uicdInstrumentation.isStopServer()) {\n SystemClock.sleep(PING_SERVER_MS);\n }\n }", "public static void startServer() {\n clientListener.startListener();\n }", "public static void runServer(int port) throws IOException {\n\t\tserver = new CEMSServer(port);\n\t\tuiController.setServer(server);\n\t\tserver.listen(); // Start listening for connections\n\t}", "public void startServer() {\n System.out.println(\"Inicie\");\n httpServer = new HttpServer();\n httpServer.registerProessor(\"/App\", this);\n try {\n httpServer.start();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void start() throws IOException {\n ThreadExecutor.registerClient(this.getClass().getName());\n tcpServer.startServer();\n }", "public void Start(){\n Registry registry = null;\n try{\n for(int i=0;i<nsize;i++){\n registry= LocateRegistry.getRegistry(this.ports[i]);\n PRMI stub = (PRMI) registry.lookup(\"DCMP\");\n System.out.println(\"env calls Init to man \"+i);\n stub.InitHandler(new Request(this.id, -1, 'e'));\n D++;\n }\n\n } catch(Exception e){\n return;\n }\n return;\n }", "private void start(String[] args){\n\t\tServerSocket listenSocket;\n\n\t\ttry {\n\t\t\tlistenSocket = new ServerSocket(Integer.parseInt(args[0])); //port\n\t\t\tSystem.out.println(\"Server ready...\");\n\t\t\twhile (true) {\n\t\t\t\tSocket clientSocket = listenSocket.accept();\n\t\t\t\tSystem.out.println(\"Connexion from:\" + clientSocket.getInetAddress());\n\t\t\t\tClientThread ct = new ClientThread(this,clientSocket);\n\t\t\t\tct.start();\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(\"Error in EchoServer:\" + e);\n\t\t}\n\t}", "public void start() throws Exception {\n ServerSocket socket = new ServerSocket(0);\n port = socket.getLocalPort();\n socket.close();\n\n final String[] localArgs = {\"-inMemory\", \"-port\", String.valueOf(port)};\n server = ServerRunner.createServerFromCommandLineArgs(localArgs);\n server.start();\n url = \"http://localhost:\" + port;\n\n // internal client connection so we can easily stop, cleanup, etc. later\n this.dynamodb = getClient();\n }", "private void startServer() throws RemoteException, AlreadyBoundException{\n\t\ttry{\n\t\t\tInsuranceImplementation impl = new InsuranceImplementation();\n\t\t\timpl.setIPAddress(ipHospital.getText());\n\t\t\timpl.setPortNumebr(Integer.parseInt(portHospital.getText()));\n\t\t\t\n\t\t\tRegistry registry = LocateRegistry.createRegistry(Integer.parseInt(portInsurance.getText()));\n\t\t\tregistry.bind(Constants.RMI_ID, impl); \n\t\t\t\n\t\t\tlogMessage(\"Insurance Server Started\");\n\t\t\t\n\t\t} catch (Exception exp)\n\t\t{\n\t\t\tlogMessage(\"ObjID already in use.\\nPlease kill the process running at port 5002\");\n\t\t\texp.printStackTrace();\n\t\t} \n\t\t\n\t}", "public void start() throws IOException {\n\t\tserverSocket = new ServerSocket(port);\n\t\tserverCallbacks.forEach(c -> c.onServerStarted(this, port));\n\t}", "void startAIGame() {\n int status = gameServer.restartServer( true, settingsMenu.getMapSize(),\n settingsMenu.getPlayFor(), settingsMenu.getFirstMove(),\n settingsMenu.getServerName() );\n if( status != 0 ) {\n JOptionPane.showMessageDialog( frame, Language.ERROR_STARTUP,\n Language.CAPTION_ERROR, JOptionPane.PLAIN_MESSAGE );\n } else {\n host = \"127.0.0.1\";\n role = \"admin\";\n password = gameServer.getServerPassword();\n ( new Thread( this ) ).start();\n }\n }", "public void launch() throws NotBoundException, IOException\n\t{\n\t\t//call method to connect to server\t\t\n\t\tServerManager serverConnect = initialConnect();\t\n\t\n\t\t//get Setup menu from server\n\t\tSetUpMenu newSetup = new SetUpMenu(serverConnect);\n\t\tnewSetup.welcomeMenu();\n\t}", "protected void start() throws IOException {\r\n\t\tif (smscListener == null) {\r\n\t\t\tSystem.out.print(\"Enter port number> \");\r\n\t\t\tint port = Integer.parseInt(keyboard.readLine());\r\n\t\t\tSystem.out.print(\"Starting listener... \");\r\n\t\t\tsmscListener = new SMSCListenerImpl(port, true);\r\n\t\t\tprocessors = new PDUProcessorGroup();\r\n\t\t\tmessageStore = new ShortMessageStore();\r\n\t\t\tdeliveryInfoSender = new DeliveryInfoSender();\r\n\t\t\tdeliveryInfoSender.start();\r\n\t\t\tusers = new Table(usersFileName);\r\n\t\t\tfactory = new SimulatorPDUProcessorFactory(processors, messageStore, deliveryInfoSender, users);\r\n\t\t\tfactory.setDisplayInfo(displayInfo);\r\n\t\t\tsmscListener.setPDUProcessorFactory(factory);\r\n\t\t\tsmscListener.start();\r\n\t\t\tSystem.out.println(\"started.\");\r\n\t\t} else {\r\n\t\t\tSystem.out.println(\"Listener is already running.\");\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tIndexServer is = new IndexServer(3002,\"/src/P2Pfile/Peer2/filefolder\" );\n\t\t\tSystem.out.println(\"Peer2Server Start\");\n\t\t\tis.ConnectionAccept();\n\t\t\t\n\t\t\n\t\t\t\n\t\t}", "public void startServer() throws Exception\n {\n\t\t\tString SERVERPORT = \"ServerPort\";\n\t\t\tint serverport = Integer.parseInt(ConfigurationManager.getConfig(SERVERPORT));\n\t\t\t\n \n Srvrsckt=new ServerSocket ( serverport );\n while ( true )\n {\n Sckt =Srvrsckt.accept();\n new Thread ( new ConnectionHandler ( Sckt ) ).start();\n }\n \n \n\n\n }", "protected void serverStarted()\n {\n // System.out.println\n // (\"Server listening for connections on port \" + getPort());\n }", "public void startup() {\n\t\tstart();\n }", "public void run() {\n ServerSocketChannelFactory acceptorFactory = new OioServerSocketChannelFactory();\n ServerBootstrap server = new ServerBootstrap(acceptorFactory);\n\n // The pipelines string together handlers, we set a factory to create\n // pipelines( handlers ) to handle events.\n // For Netty is using the reactor pattern to react to data coming in\n // from the open connections.\n server.setPipelineFactory(new EchoServerPipelineFactory());\n\n server.bind(new InetSocketAddress(port));\n }", "public void runServer() throws IOException {\n runServer(0);\n }", "public void startServer() {\n // configure the server properties\n int maxThreads = 20;\n int minThreads = 2;\n int timeOutMillis = 30000;\n\n // once routes are configured, the server automatically begins\n threadPool(maxThreads, minThreads, timeOutMillis);\n port(Integer.parseInt(this.port));\n this.configureRoutesAndExceptions();\n }", "public void start() {\n _serverRegisterProcessor = new ServerRegisterProcessor();\n _serverRegisterProcessor.start();\n }", "void startServer(int port) throws Exception;", "public void startServer() throws IOException {\n log.info(\"Starting server in port {}\", port);\n try {\n serverSocket = new ServerSocket(port);\n this.start();\n log.info(\"Started server. Server listening in port {}\", port);\n } catch (IOException e) {\n log.error(\"Error starting the server socket\", e);\n throw e;\n }\n }", "public void start()\n {\n try\n {\n sshd.start();\n }\n catch (IOException e)\n {\n log.error(\"Unable to start ssdh.\", e);\n throw new RuntimeException(e);\n }\n }", "public void startLocalServer() {\n \t boolean exists = (new File(addeMcservl)).exists();\n \t if (exists) {\n \t // Create and start the thread if there isn't already one running\n\t \tif (thread != null) {\n \t \t\tthread = new AddeThread();\n \t \t\tthread.start();\n \t\t System.out.println(addeMcservl + \" was started\");\n \t \t} else {\n \t \t\tSystem.out.println(addeMcservl + \" is already running\");\n \t \t}\n \t } else {\n \t \tSystem.out.println(addeMcservl + \" does not exist\");\n \t }\n \t}", "public void start() {}", "public void start() {}", "public void startRunning() {\n\t\t\t\n\t\t\ttry {\n\t\t\t\t\n\t\t\t\tserver = new ServerSocket(6789, 100); //6789 is the port number for docking(Where to connect). 100 is backlog no, i.e how many people can wait to access it.\n\t\t\t\twhile (true) {\n\t\t\t\t\t//This will run forever.\n\t\t\t\t\t\n\t\t\t\t\ttry{\n\t\t\t\t\t\t\n\t\t\t\t\t\twaitForConnection();\n\t\t\t\t\t\tsetupStreams();\n\t\t\t\t\t\twhileChatting();\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tcatch(EOFException eofException) {\n\t\t\t\t\t\t\n\t\t\t\t\t\tshowMessage(\"\\n The server has ended the connection!\");\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tfinally {\n\t\t\t\t\t\t\n\t\t\t\t\t\tcloseAll();\n\t\t\t\t\t\t//Housekeeping.\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tcatch(IOException ioException ) {\n\t\t\t\t\n\t\t\t\tioException.printStackTrace();\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t\t\n\t\t}", "public void start() {\n System.out.println(\"Machine started.\");\n }", "public void start() {\n\n\t}", "public void startServer()\n\t{\n\t\twhile(true)\n\t\t{\n\t\t\tSystem.out.println(\"Listen\");\n\t\t\tif(listenInitialValuesRequest)\n\t\t\t{\n\t\t\t\tlistenInitialValuesRequest();\n\t\t\t}\n\t\t}\n\t}", "private void start() {\n\n\t}", "public static void main(String[] arg) {\n // start server on port 1500\n new SnesNETsrv(13375);\n }", "public void start(int port);", "public static void startServer() throws IOException {\n ServerSocket serverSocket = new ServerSocket(port_number);\n\n System.out.println(\"Server Up\");\n System.out.println(\"Port number: \" + port_number);\n\n Thread loop = loopClients(serverSocket);\n loop.start();\n\n while (running) {\n try {\n Thread.sleep(1000l);\n\n } catch (Exception e) {\n\n }\n }\n\n loop.stop();\n removeAllClients();\n }", "@Override\n @SuppressWarnings(\"CallToPrintStackTrace\")\n public void simpleInitApp() {\n \n\n try {\n System.out.println(\"Using port \" + port);\n // create the server by opening a port\n server = Network.createServer(port);\n server.start(); // start the server, so it starts using the port\n } catch (IOException ex) {\n ex.printStackTrace();\n destroy();\n this.stop();\n }\n System.out.println(\"Server started\");\n // create a separat thread for sending \"heartbeats\" every now and then\n new Thread(new NetWrite()).start();\n server.addMessageListener(new ServerListener(), ChangeVelocityMessage.class);\n // add a listener that reacts on incoming network packets\n \n }", "public void start()\n {\n }", "public void start() {\n system = ActorSystem.create(\"http-server\", config);\n\n Settings settings = SettingsExtension.SettingsExtensionProvider.get(system);\n\n vHostHandlers = settings.vHostConfigs()\n .stream()\n .map(vc -> new AkkaTcpHandler(system, vc))\n .collect(Collectors.toList());\n\n vHostHandlers.forEach(VHostHandler::start);\n\n Runtime.getRuntime().addShutdownHook(new Thread(this::terminate));\n }", "private void runServer()\n\t{\n\t\tif(sm == null)\n\t\t{\n\t\t\tsm = new ServerManager();\n\t\t}\n\t\t\n\t\tint port = 1209;\n\t\ttry \n\t\t{\n\t\t\twaitUser(sm, port);\n\t\t\t//이 아래 로직이 실행된다는건 유저가 다 들어왔다는 뜻임. 즉 게임 시작할 준비 되었음을 의미함\t\t\t\n\t\t\tGame.getInstance().runGame();\n\t\t} \n\t\tcatch (Exception e)\n\t\t{\n\t\t\tSystem.out.println(\"[Server.runServer()] error >>> : \" + e.getMessage());\n\t\t}\n\t}", "public void start() {\n\n // server 환경설정\n EventLoopGroup bossGroup = new NioEventLoopGroup(bossCount);\n EventLoopGroup workerGroup = new NioEventLoopGroup();\n\n try {\n\n ServerBootstrap b = new ServerBootstrap();\n b.group(bossGroup, workerGroup)\n .channel(NioServerSocketChannel.class)\n .childHandler(new ChannelInitializer<SocketChannel>() {\n @Override\n public void initChannel(SocketChannel ch) throws Exception {\n ChannelPipeline pipeline = ch.pipeline();\n pipeline.addLast(new StringDecoder(CharsetUtil.UTF_8));\n pipeline.addLast(new StringEncoder(CharsetUtil.UTF_8));\n pipeline.addLast(new LoggingHandler(LogLevel.INFO));\n pipeline.addLast(SERVICE_HANDLER);\n }\n })\n .option(ChannelOption.SO_BACKLOG, backLog)\n .childOption(ChannelOption.SO_KEEPALIVE, true);\n\n ChannelFuture channelFuture = b.bind(tcpPort).sync();\n channelFuture.channel().closeFuture().sync();\n } catch (InterruptedException e) {\n e.printStackTrace();\n } finally {\n bossGroup.shutdownGracefully();\n workerGroup.shutdownGracefully();\n }\n\n }", "public static void startAppiumServer() throws IOException, InterruptedException {\n\n\tRuntime runtime = Runtime.getRuntime();\n\n\tprocess = runtime.exec(STARTSERVER);\n\n\tThread.sleep(7000);\n\n\tif (process != null) {\n\n\tSystem.out.println(\"Appium server started\");\n\n\t}\n\n\t}", "private void start() throws IOException {\n\n\n int port = 9090;\n server = ServerBuilder.forPort(port)\n .addService(new CounterServiceImpl())\n .build()\n .start();\n // logger.info(\"Server started, listening on \" + port);\n\n /* Add hook when stop application*/\n Runtime.getRuntime().addShutdownHook(new Thread() {\n @Override\n public void run() {\n // Use stderr here since the logger may have been reset by its JVM shutdown hook.\n // IRedis.USER_SYNC_COMMAND.\n System.err.println(\"*** shutting down gRPC server since JVM is shutting down\");\n Count.this.stop();\n System.err.println(\"*** server shut down\");\n\n }\n });\n }", "public static void main(String[] args) {\n Server server = new Server(1234);\n server.listen();\n \n // YOUR CODE HERE\n // It is not required (or recommended) to implement the server in\n // this runner class.\n }", "public void start() {\n }", "public Map startServerProcess(String id) throws IOException\n\t{\n\t\treturn request(POST, address(id, \"start\"));\n\t}", "private Main startJndiServer() throws Exception {\n\t\tNamingServer namingServer = new NamingServer();\n\t\tNamingContext.setLocal(namingServer);\n\t\tMain namingMain = new Main();\n\t\tnamingMain.setInstallGlobalService(true);\n\t\tnamingMain.setPort( -1 );\n\t\tnamingMain.start();\n\t\treturn namingMain;\n\t}", "public void start() {\n\t\t\n\t}", "public void start() {\n\t\t\n\t}", "public void startEngine(){\r\n isEngineRunning = true;\r\n System.out.println(\"[i] Engine is running.\");\r\n }", "public void start()\n throws IOException, StunException\n {\n localSocket = new IceUdpSocketWrapper(\n new SafeCloseDatagramSocket(serverAddress));\n\n stunStack.addSocket(localSocket);\n stunStack.addRequestListener(serverAddress, this);\n\n }", "public void start(){\n runServerGUI();\n // new server thread object created\n ServerThread m_Server = new ServerThread(this);\n m_Server.start();\n }", "public static void main (String[] args){\r\n\t\tnew Server().startRunning();\r\n\t}", "public void startServer() throws Exception {\n \t\ttry {\n \t\t\t// Instruct the robot to begin now\n\t \tout.write(RBCConstants.ROBOT_BEGIN);\n\t \tout.flush();\n\n\t\t\t// Now go into the infinite loop to do communications, return when server stopped or interrupted\n\t\t startListening(in, out);\n\n\t\t // All done, close the connection\n\t\t closeEverything();\n\t\t rb.showRobotDisconnected();\n\t } catch (InterruptedIOException e) {\n\t \tcloseEverything();\n\t \trb.showRobotDisconnected();\n \t\t} catch (IOException e) {\n\t\t rb.updateStatusBar(\"Unable to Start Robot\", Color.black);\n\t\t System.out.println(\"Unable to Start Robot\");\n\t\t\tcloseEverything();\n\t\t\trb.showRobotDisconnected();\n \t\t}\n }", "public void startServer(){\r\n try {\r\n\r\n while(true){\r\n\r\n s = sc.accept();\r\n new ServerThread(s).start();\r\n }\r\n }\r\n catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n finally {\r\n try {\r\n sc.close();\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }", "public void start() {\n\t\t\n\t\ttry {\n\t\t\tmainSocket = new DatagramSocket(PORT_NUMBER);\n\t\t}\n\t\tcatch(SocketException ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t\t\n\t\t//Lambda expression to shorten the run method\n\t\tThread serverThread = new Thread( () -> {\n\t\t\tlisten();\n\t\t});\n\t\t\n\t\tserverThread.start();\n\t}", "protected void serverStarted()\n {\n System.out.println(\"Server listening for connections on port \" + getPort());\n }", "@Override\n public void run() {\n eventLoopGroup = EPOLL ? new EpollEventLoopGroup() : new NioEventLoopGroup();\n try {\n System.out.println(startServerMsg);\n LOGGER.info(startServerMsg);\n new ServerBootstrap()\n .group(eventLoopGroup)\n .channel(EPOLL ? EpollServerSocketChannel.class : NioServerSocketChannel.class)\n .childOption(ChannelOption.TCP_NODELAY, true)\n .childOption(ChannelOption.SO_KEEPALIVE,true)\n .childOption(ChannelOption.RCVBUF_ALLOCATOR,new AdaptiveRecvByteBufAllocator(1024,16*1024,1024*1024))\n .childHandler(new ChannelInitializer() {\n @Override\n protected void initChannel(Channel ch) {\n ChannelPipeline pipeline = ch.pipeline();\n pipeline.addLast(\"decoder\", new Decoder());\n pipeline.addLast(\"handler\",new TcpServerHandler(viewModel));\n }\n })\n .bind(port).sync().channel().closeFuture().syncUninterruptibly();\n } catch (InterruptedException e) {\n LOGGER.error(\"Failed to start server : \",e);\n e.printStackTrace();\n } finally {\n System.out.println(ANSI_RED+\"Server shutting down.\"+ANSI_RESET);\n LOGGER.info(\"Server shutting down.\");\n eventLoopGroup.shutdownGracefully();\n\n }\n }", "void startServer(String name, Config.ServerConfig config);", "public void start() {\n\t\tSystem.out.println(\"开启系统1\");\r\n\t}", "public void startServer() {\n\r\n try {\r\n echoServer = new ServerSocket(port);\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n // Whenever a connection is received, start a new thread to process the connection\r\n // and wait for the next connection.\r\n while (true) {\r\n try {\r\n clientSocket = echoServer.accept();\r\n numConnections++;\r\n ServerConnection oneconnection = new ServerConnection(clientSocket, numConnections, this);\r\n new Thread(oneconnection).start();\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }\r\n\r\n }", "public void start()\n {}", "@Test\r\n public void startServerAndThreads() throws IOException {\r\n //init\r\n InetAddress iPAddress = InetAddress.getByName(\"localhost\");\r\n int port = 99;\r\n\r\n Server server = new Server(port, iPAddress);\r\n server.start();\r\n }", "public void start() {\n threadPoolExecutor.setCorePoolSize(configurations.threadPoolSize());\n new Thread(this::startServer).start();\n }", "public static void main(String[] args) throws Exception{\n\t\tDicService dicService = new DicServiceImpl();\n\t\tdicService.loadDic();\n\t\t// Start on port 1099\n\t\tLocateRegistry.createRegistry(1099);\n\t\tNaming.rebind(\"dicService\", dicService);\n\t\t//Print server is ready\n\t\tSystem.out.println(\"Server ready.\");\n\t}", "protected void serverStarted()\r\n {\r\n System.out.println\r\n (\"Server listening for connections on port \" + getPort());\r\n }", "public void start() {\n\n }", "public SocketServer() {\n \n super();\n start();\n\n }", "public void appiumStart() throws IOException, InterruptedException {\n // Execute command string to start appium server.\n p = Runtime.getRuntime().exec(cmd);\n // Provide wait time of 10 mins to start appium server properly.\n // If face any error(Could not start a new session...) then Increase\n // this time to 15 or 20 mins.\n Thread.sleep(10000);\n if (p != null) {\n System.out.println(\"Appium server Is started now.\");\n }\n }", "public synchronized void start() {\n\t\tif(isStarted) {\n\t\t\treturn;\n\t\t}\n\t\tif(isStopped) {\n\t\t\tthrow new IllegalStateException(\"Cannot restart a TorClient instance. Create a new instance instead.\");\n\t\t}\n\t\tlogger.info(\"Starting Orchid (version: \"+ Tor.getFullVersion() +\")\");\n\t\tverifyUnlimitedStrengthPolicyInstalled();\n\t\tdirectoryDownloader.start(directory);\n\t\tcircuitManager.startBuildingCircuits();\n\t\tif(dashboard.isEnabledByProperty()) {\n\t\t\tdashboard.startListening();\n\t\t}\n\t\tisStarted = true;\n\t}", "public void run() {\n final Server server = new Server(8081);\n\n // Setup the basic RestApplication \"context\" at \"/\".\n // This is also known as the handler tree (in Jetty speak).\n final ServletContextHandler context = new ServletContextHandler(\n server, CONTEXT_ROOT);\n final ServletHolder restEasyServlet = new ServletHolder(\n new HttpServletDispatcher());\n restEasyServlet.setInitParameter(\"resteasy.servlet.mapping.prefix\",\n APPLICATION_PATH);\n restEasyServlet.setInitParameter(\"javax.ws.rs.Application\",\n \"de.kad.intech4.djservice.RestApplication\");\n context.addServlet(restEasyServlet, CONTEXT_ROOT);\n\n\n try {\n server.start();\n server.join();\n } catch (Exception e) {\n e.printStackTrace();\n }\n\n }", "public void startRunning(){\n\t\ttry{\n\t\t\tserver = new ServerSocket(6789, 100);\n\t\t\t//int Port Number int 100 connections max (backlog / queue link)\n\t\t\twhile(true){\n\t\t\t\ttry{\n\t\t\t\t\twaitForConnection();\n\t\t\t\t\tsetupStreams();\n\t\t\t\t\twhileChatting();\n\t\t\t\t\t//connect and have conversation\n\t\t\t\t}catch(EOFException eofe){\n\t\t\t\t\tshowMessage(\"\\n Punk Ass Bitch.\");\n\t\t\t\t}finally{\n\t\t\t\t\tcloseChat();\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}catch(IOException ioe){\n\t\t\tioe.printStackTrace();\n\t\t\t\n\t\t}\n\t}", "public void start()\r\n\t\t{\r\n\t\tDebug.assert(serverSocket != null, \"(Server/123)\");\r\n\r\n \t// flag the server as running\r\n \tstate = RUNNING;\r\n\r\n // Loop while still listening, accepting new connections from the server socket\r\n while (state == RUNNING)\r\n \t{\r\n // Get a connection from the server socket\r\n\t\t\tSocket socket = null;\r\n\t\t\ttry {\r\n socket = serverSocket.accept();\r\n \tif (state == RUNNING) \r\n \t createLogin(socket);\r\n }\r\n \r\n // The socket timeout allows us to check if the server has been shut down.\r\n // In this case the state will not be RUNNING and the loop will end.\r\n\t\t catch ( InterruptedIOException e )\r\n\t\t \t{\r\n\t\t \t// timeout happened\r\n\t\t \t}\r\n\t\t \r\n\t\t // This shouldn't happen...\r\n \t catch ( IOException e )\r\n \t \t{\r\n log(\"Server: Error creating Socket\");\r\n \t \tDebug.printStackTrace(e);\r\n \t }\r\n\t }\r\n\t \r\n\t // We've finished, clean up\r\n disconnect();\r\n\t\t}", "protected void start() {\n }", "private static void startServer() {\n new Thread() {\n public void run() {\n Server server = new Server();\n server.startUDP();\n }\n }.start();\n }", "public void run(){\n\n\t\tServerSocket socketEcoute;\n\t\ttry {\n\t\t\tsocketEcoute = new ServerSocket();\n\t\t\tsocketEcoute.bind(new InetSocketAddress(this.defaultPort));\n\t\t\tSystem.out.println(\"Port manager started on : \"+this.defaultPort);\n\t\t\twhile(true){\n\t\t\t\tSocket socketConnexion = socketEcoute.accept();\n\t\t\t\tSystem.out.println(\"Someone is connected on PortManager\");\n\t\t\t\t\n\t\t\t\tnew PortManagerThread(socketConnexion,this.ctrl).start();\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\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}", "private void startServer() throws IOException {\n while (true) {\n System.out.println(\"[1] Waiting for connection...\");\n\n client = server.accept();\n System.out.println(\"[2] Connection accepted from: \" + client.getInetAddress());\n\n in = new BufferedReader(new InputStreamReader(client.getInputStream()));\n out = new PrintStream(client.getOutputStream(), true);\n\n while (!in.ready()) ;\n\n String line = in.readLine();\n ManageConnections connection = new ManageConnectionsFactory().getConnection(line);\n\n connection.goConnect(client, in, out);\n }\n }", "public Server() throws IOException {\n System.out.println(\"\\t Server Started \\n\");\n }", "public void init() throws IOException {\r\n try {\r\n serverSocket = new ServerSocket(PORT);\r\n this.running = true;\r\n } catch (IOException e) {\r\n System.out.println(e);\r\n }\r\n }", "public void start() throws Exception {\n\n Location location = (locationManager != null && locationManager.getLocation() != null) ? locationManager.getLocation() : null;\n\n if(location == null)\n location = new NetworkNodeCommunicationDeviceLocation(\n 0.0 ,\n 0.0,\n 0.0 ,\n 0 ,\n 0.0 ,\n System.currentTimeMillis(),\n LocationSource.UNKNOWN\n );\n\n NodeContext.add(NodeContextItem.LOCATION, location);\n\n this.initialize();\n LOG.info(\"Starting the internal server\");\n this.server.start();\n LOG.info(\"Server URI = \" + this.server.getURI());\n this.server.join();\n\n\n\n }", "public void startServer() throws IOException{\n\t\t\n\t\tlistenThread = Thread.currentThread();\n\t\twhile(!listenThread.isInterrupted())\n\t\t{\n\t\t\tSocket clientSocket = null;\n\t\t\ttry {\n\t\t\t\tclientSocket = listenSocket.accept();\n\t\t\t\tConnectionHandler connectionHandler = new ConnectionHandler(clientSocket);\n\t\t\t\tTestInstance testInstance = new TestInstance(connectionHandler, dataHandler, outputServer);\n\t\t\t\ttestInstances.add(testInstance);\n\t\t\t\tnew Thread(testInstance).start();\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "@Override\n public void run() {\n try {\n registerWithServer();\n initServerSock(mPort);\n listenForConnection();\n\t} catch (IOException e) {\n Logger.getLogger(Server.class.getName()).log(Level.SEVERE, null, e);\n setTextToDisplay(\"run(): \" + e.getMessage());\n setConnectedStatus(false);\n\t}\n }", "public RunMe() throws IOException {\n\n\t\t// Load data\n\t\tloadDataMap();\n\t\t\n\t\t// Start server\n\t\tcfg = createFreemarkerConfiguration();\n\t\tsetPort(8081);\n\t\tinitializeRoutes();\n\t}", "public void run() {\n running = true;\n System.out.println(\"Server started on port: \" + port);\n manageClients();\n receive();\n startConsole();\n }", "@Override\r\n\tpublic void initial() {\n\t\ttry {\r\n\t\t\tserverSocket = new ServerSocket(port);\r\n\t\t} catch (IOException e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t}\r\n\t\t// System.out.println(\"LocalProxy run on \" + port);\r\n\t}", "@Override\r\n\tpublic void start() {\n\t\tSystem.out.println(\"Jeep车启动\");\r\n\t}", "private void startServer(int port) throws IOException {\n System.out.println(\"Booting the server!\");\n\n // Open the server channel.\n serverSocketChannel = ServerSocketChannel.open();\n serverSocketChannel.bind(new InetSocketAddress(port));\n serverSocketChannel.configureBlocking(false);\n\n // Register the channel into the selector.\n selector = Selector.open();\n serverSocketChannel.register(selector, SelectionKey.OP_ACCEPT);\n }", "@Override\n\tpublic void start() {\n\t\tSystem.out.println(\"TESLA has been started\");\n\t}", "public void run()\n\t{\n\t\trunning = true;\n\t\tSystem.out.println(\"Server started on port \" + port);\n\t}", "public void startRunning(){\r\n\t\ttry{\r\n\t\t\twhile( true ){\r\n\t\t\t\tserver = new ServerSocket(PORT);\r\n\t\t\t\ttry{\r\n\t\t\t\t\twaitForClient(1);\r\n\t\t\t\t\twaitForClient(2);\r\n\t\t\t\t\tnew ServerThread(connectionClient1, connectionClient2, this).start();\r\n\t\t\t\t}\r\n\t\t\t\tcatch( EOFException e ){\r\n\t\t\t\t\tshowMessage(\"\\nServer ended the connection\");\r\n\t\t\t\t}\r\n\t\t\t\tfinally {\r\n\t\t\t\t\tserver.close();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch( IOException e ){\r\n\t\t}\r\n\t}", "public void start();" ]
[ "0.7039027", "0.701725", "0.6961597", "0.6816257", "0.6791782", "0.6704073", "0.6682718", "0.6667778", "0.65924543", "0.6562595", "0.6560519", "0.65528655", "0.65507776", "0.65406644", "0.6514202", "0.6506686", "0.6495357", "0.64826006", "0.64799744", "0.6465176", "0.64510953", "0.6442458", "0.641997", "0.6398316", "0.6396677", "0.6385924", "0.63752043", "0.63689345", "0.6364315", "0.63625145", "0.6358789", "0.6343438", "0.6342007", "0.63166237", "0.6314297", "0.6294345", "0.6294345", "0.62865525", "0.6283893", "0.62783086", "0.6267188", "0.625682", "0.6254232", "0.62346077", "0.62198305", "0.621154", "0.62085533", "0.62080455", "0.6186614", "0.6182723", "0.6180048", "0.61727446", "0.6165313", "0.6162587", "0.6160367", "0.61478233", "0.6145692", "0.6145692", "0.6143559", "0.6139935", "0.61354077", "0.6129568", "0.61217296", "0.6119734", "0.6116602", "0.61111474", "0.610685", "0.6099635", "0.6093676", "0.6088117", "0.6087728", "0.608056", "0.60750306", "0.6074214", "0.6073896", "0.60689306", "0.6049253", "0.6044599", "0.6025255", "0.6022828", "0.60155183", "0.60090935", "0.6008067", "0.5997544", "0.5995597", "0.5987125", "0.5979864", "0.59734243", "0.5971882", "0.5959103", "0.59531534", "0.595239", "0.5948188", "0.5944715", "0.59419614", "0.59394944", "0.59371954", "0.5934696", "0.59340584", "0.59336144" ]
0.6254239
42
dont need .to(), it's smart enough to know which
@Override protected void configure() { bind(Tire.class); bind(Spoke.class); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getTo();", "Object getFrom();", "public int to() {\n return this.to;\n }", "int getTo();", "public String getTo()\r\n {\r\n return to;\r\n }", "long getTo();", "public void set_to(String to2) {\n\t\tthis.to=to2;\n\t}", "public V getTo()\n\t{\n\t\treturn to;\n\t}", "String getFrom();", "String getFrom();", "String getFrom();", "String getFrom();", "public String getTo() {\n Object ref = to_;\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 to_ = s;\n return s;\n }\n }", "public String getTo() {\n return to;\n }", "public String getTo() {\n Object ref = to_;\n if (!(ref instanceof String)) {\n com.google.protobuf.ByteString bs =\n (com.google.protobuf.ByteString) ref;\n String s = bs.toStringUtf8();\n to_ = s;\n return s;\n } else {\n return (String) ref;\n }\n }", "public FromTo() {\n this(\"now-6h\", \"now\");\n }", "private void setTo (int to) {\n this.to = to;\n }", "public void setTo(String to) {\n this.to = to;\n }", "public\t ToHeader getTo()\n { return (ToHeader) toHeader ; }", "public int getTo() {\n return to_;\n }", "String directsTo();", "int getFrom();", "public long getTo() {\n return to_;\n }", "protected final int to() {\n if (to >= 0) {\n lastTo = to;\n to = -1;\n } else {\n lastTo = newState();\n }\n return lastTo;\n }", "@Override\n\tpublic String toString(){\n\t\treturn this.from+\"----\"+this.to; \n\t}", "public int getTo() {\n return to;\n }", "public int from() {\n return this.from;\n }", "public V getFrom()\n\t{\n\t\treturn from;\n\t}", "private void toRent() {\n }", "public void from(IETeam from);", "long getFrom();", "public String toString()\r\n/* 398: */ {\r\n/* 399:351 */ return \"<\" + this.t + \", \" + this.from + \", \" + this.to + \">\";\r\n/* 400: */ }", "@Override\n public void from(String from) {\n }", "public void setTo(int to) {\n this.to = to;\n }", "boolean hasTo();", "public long getTo() {\n return to_;\n }", "public int getTo() {\n return to_;\n }", "Target convert(Source source);", "public String getTo(){\r\n\t\tString output = \"\";\r\n\t\tfor(int i = 0; i < to.size(); i++){\r\n\t\t\tif(i > 0){\r\n\t\t\t\toutput += \";\";\r\n\t\t\t}\r\n\t\t\toutput += to.get(i);\r\n\t\t}\r\n\t\treturn output;\r\n\t}", "protected final int from() {\n if (from >= 0) {\n int result = from;\n from = -1;\n return result;\n }\n assert lastTo >= 0 : \"There hasn't been a last operation so we can't default to its destination!\";\n return lastTo;\n }", "private static String hashOf(State from, State to) {\n return \"From\" + String.valueOf(from.hashCode()) + \"To\" + String.valueOf(to.hashCode());\n }", "public T caseFrom(From object) {\n\t\treturn null;\n\t}", "private int random(int from, int to) {\n return from + (int) (Math.random() * (to - from + 1));\n }", "public int from() {\n return from;\n }", "private Transformer getNonDirectTransformer(Class<?> from, Class<?> to, Collection<String> usingNames)\n {\n if( !this.graphImpl.containsVertex(from) || !this.graphImpl.containsVertex(to) )\n {\n return null;\n }\n\n List<DefaultEdge> route = DijkstraShortestPath.findPathBetween(this.graphImpl, from, to);\n\n TransformerChain transChain = null;\n // if there is a route between the two classes\n if( route != null )\n {\n transChain = new TransformerChain();\n // Get a sequence of direct-only transformers\n for( DefaultEdge edge : route )\n {\n transChain.addTransformer(\n this.getTransformer( this.graphImpl.getEdgeSource(edge), this.graphImpl.getEdgeTarget(edge), usingNames ) );\n }\n }\n\n return transChain;\n }", "public String getFrom()\r\n {\r\n return from;\r\n }", "public final Self to(int to) {\n this.to = to;\n return self();\n }", "T convert(S e);", "public int getFrom() {\n return (from);\n }", "public Node getTo() {\n return to;\n }", "Target convert(Source source, Target target);", "public Square getTo() {\n return to;\n }", "public int getFrom() {\n return from;\n }", "public TransitionBuilder2<S, T> catchall(final S to) {\n return new TransitionBuilder2<S, T>(\n transitions.cons(new Transition<S, T>(\n transitions.getHead().getFromState(), null, to)));\n }", "FROM toObject(CONTEXT context, final TO value);", "public int getFrom() {\n return from_;\n }", "static public org.openflow.protocol.interfaces.OFPortNo to(OFPortNo i) {\n \treturn __compatMapping.get(i.getValue());\n }", "public String getFrom(){\r\n\t\treturn from;\r\n\t}", "private final void r(String s) { if (m() > 0) setto(s); }", "public String getFrom() {\n return from;\n }", "Seen.ServerToB getSeenServerToB();", "public Vertex<VV> getTo()\r\n { return to; }", "private Proof faxm1Convert(Proof p) {\n Equals eq = (Equals) p.lastExpr();\n Expression s = eq.firstArgument;\n Expression t = eq.secondArgument;\n return mpBack(faxm1Gen(s, t), p);\n }", "@Override\n\tpublic VType getTarget() {\n\t\t// TODO: Add your code here\n\t\treturn super.to;\n\t}", "static URITranslator map(URI source, URI target) {\n return original -> Objects.equals(source, original) ? target : original;\n }", "@Test\n public void test4(){\n final int num = 1;\n Converter<Integer, String> stringConverter =\n (from) -> String.valueOf(from + num);\n // 3\n System.out.println(stringConverter.convert(2));\n\n }", "public long getFrom() {\n return from_;\n }", "public String toString() {\n return \"(\" + From + \",\" + To + \")\";\n }", "public <E extends IETeam> E into(E into);", "private String toBaseString(final Object o) {\n return o.getClass().getName() + \"@\" + Integer.toHexString(System.identityHashCode(o));\n }", "@Override\n\tprotected UserTO getTo() {\n\t\treturn userTO;\n\t}", "@Override\n public String toString() {\n return String.format(\"(%d->%d|%.6f)\", from, to, weight);\n }", "@JsonProperty(\"to\")\n public String getTo() {\n return to;\n }", "public Timestamp getValidTo();", "public int getFrom() {\n return from_;\n }", "private String findFrom(String from) {\n\t\tPattern UNIT = Pattern.compile(\"^\\\\w+.\\\\w+(?=\\\\ )\"); // Match two words\n\t\tMatcher m = UNIT.matcher(from);\n\t\twhile (m.find()) {\n\t\t\tfrom = m.group(0);\n\t\t}\n\t\treturn from;\n\t}", "public String getFrom() {\n return from;\n }", "private void setFrom (int from) {\n this.from = from;\n }", "public void set_from(String from2) {\n\t\tthis.from=from2;\n\t}", "public String getToTag() {\n return toHeader == null? null: toHeader.getTag();\n }", "Object translate( Object source );", "TO fromObject(CONTEXT context, final FROM obj);", "Report.LocationOuterClass.Location.FromType getFrom();", "java.lang.String getToUid();", "public Vertex getTo() {\r\n\r\n return to;\r\n }", "public List<String> getTo() {\n return to;\n }", "public long getToUid() {\n return toUid_;\n }", "public long getFrom() {\n return from_;\n }", "public T caseFromJoin(FromJoin object)\n {\n return null;\n }", "void toEnd();", "private static String getLabel(State from, State to) {\n String label = transitionLabels.get(hashOf(from, to));\n if (label != null)\n return label;\n else\n return \"\";\n }", "public Builder setTo(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n\n to_ = value;\n onChanged();\n return this;\n }", "String getTarget();", "String getTarget();", "protected final boolean toIsDefault() {\n return to < 0;\n }", "N getTarget();", "@JSProperty(\"to\")\n double getTo();", "public String getFrom() {\r\n\t\treturn from;\r\n\t}", "private Date getTo(RuleTypes.HistoricRequirements ph) {\n Calendar date = new GregorianCalendar();\n date.set(Calendar.HOUR_OF_DAY, 0);\n date.set(Calendar.MINUTE, 0);\n date.set(Calendar.SECOND, 0);\n date.set(Calendar.MILLISECOND, 0);\n int today;\n\n Calendar now = new GregorianCalendar();\n\n switch(ph) {\n case TODAY:\n return now.getTime();\n case YESTERDAY:\n return date.getTime();\n case THIS_WEEK:\n return now.getTime();\n case LAST_WEEK:\n today = date.get(Calendar.DAY_OF_WEEK);\n date.add(Calendar.DAY_OF_WEEK,-today+Calendar.SUNDAY);\n return date.getTime();\n case THIS_MONTH:\n return now.getTime();\n case LAST_MONTH:\n date.add(Calendar.MONTH, -1);\n date.set(Calendar.DAY_OF_MONTH, date.getActualMaximum(Calendar.DAY_OF_MONTH));\n return date.getTime();\n case T12_HRS:\n return now.getTime();\n case T24_HRS:\n return now.getTime();\n case T2_DAYS:\n return now.getTime();\n case T3_DAYS:\n return now.getTime();\n case T4_DAYS:\n return now.getTime();\n case T5_DAYS:\n return now.getTime();\n case T6_DAYS:\n return now.getTime();\n case T7_DAYS:\n return now.getTime();\n }\n return null;\n\n }", "State.Builder<E, S, A> to(S state);", "public static Set<MustAliasBUEdge> constructMove(Variable from, Variable to) {\n\t\tif (from == null || to == null)\n\t\t\tthrow new RuntimeException(\"Neither from nor to can be null!\");\n\t\tSet<MustAliasBUEdge> ret = new ArraySet<MustAliasBUEdge>();\n\t\t// Case 1: from \\notin ms && to \\notin ms\n\t\tMustAliasBUEdge c1 = new MustAliasBUEdge();\n\t\tc1.constraint = new AliasConstraint();\n\t\tSet<Variable> notInV1 = c1.constraint.getNotInVSet();\n\t\tnotInV1.add(from);\n\t\tnotInV1.add(to);\n\t\tret.add(c1);\n\t\t// Case 2: from \\in ms && to \\notin ms\n\t\tMustAliasBUEdge c2 = new MustAliasBUEdge();\n\t\tc2.constraint = new AliasConstraint();\n\t\tSet<Variable> notInV2 = c2.constraint.getNotInVSet();\n\t\tnotInV2.add(to);\n\t\tSet<Variable> inV2 = c2.constraint.getInVSet();\n\t\tinV2.add(from);\n\t\tc2.genSet.add(new Pair<Variable, Variable>(to, from));\n\t\tret.add(c2);\n\t\t// Case 3: from \\notin ms && to \\in ms\n\t\tMustAliasBUEdge c3 = new MustAliasBUEdge();\n\t\tc3.constraint = new AliasConstraint();\n\t\tSet<Variable> notInV3 = c3.constraint.getNotInVSet();\n\t\tnotInV3.add(from);\n\t\tSet<Variable> inV3 = c3.constraint.getInVSet();\n\t\tinV3.add(to);\n\t\tc3.killSet.add(to);\n\t\tret.add(c3);\n\t\t// Case 4: from \\in ms && to \\in ms\n\t\tMustAliasBUEdge c4 = new MustAliasBUEdge();\n\t\tc4.constraint = new AliasConstraint();\n\t\tSet<Variable> inV4 = c4.constraint.getInVSet();\n\t\tinV4.add(from);\n\t\tinV4.add(to);\n\t\tc4.killSet.add(to);\n\t\tc4.genSet.add(new Pair<Variable, Variable>(to, from));\n\t\tret.add(c4);\n\t\treturn ret;\n\t}" ]
[ "0.6079896", "0.55621517", "0.5507354", "0.53788203", "0.53579485", "0.53060913", "0.5259887", "0.5224327", "0.5211841", "0.5211841", "0.5211841", "0.5211841", "0.51506895", "0.5148421", "0.5140474", "0.51108074", "0.51058", "0.509226", "0.5039765", "0.50263613", "0.50206524", "0.49920386", "0.4984366", "0.49832714", "0.49792254", "0.49565288", "0.49305636", "0.49238557", "0.491625", "0.48992327", "0.48982012", "0.48927185", "0.48653433", "0.48631388", "0.48427984", "0.48387456", "0.48157892", "0.47925287", "0.47760844", "0.4775074", "0.47544703", "0.4737274", "0.47278696", "0.47216025", "0.47196588", "0.4704061", "0.46992472", "0.46870184", "0.4681499", "0.46795586", "0.4677624", "0.46590135", "0.46464148", "0.46268418", "0.46234196", "0.46206245", "0.4591464", "0.45716566", "0.45694798", "0.45680502", "0.4561242", "0.4555461", "0.45541808", "0.45490685", "0.45223647", "0.4517117", "0.44832936", "0.44498965", "0.44257253", "0.4423466", "0.44233", "0.44213554", "0.44187003", "0.44185802", "0.44133717", "0.44123286", "0.43995303", "0.43973008", "0.43910402", "0.438602", "0.43780613", "0.43718156", "0.43628395", "0.43569833", "0.43487504", "0.43376318", "0.4333816", "0.4331684", "0.433022", "0.43299848", "0.43287292", "0.4327388", "0.4324445", "0.4324445", "0.43226245", "0.43162173", "0.43112242", "0.43048495", "0.43004712", "0.4299772", "0.4295096" ]
0.0
-1
Add point of customer to database.
public static int addNormalPoint(String cardNumber,int taskid, int point, String mid,String tid,String poscc,Connection con) { LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.addNormalPoint(cardNumber, taskid, point, mid,tid,poscc,con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void addCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().save(customer);\n\t}", "private void addCustomer(Customer customer) {\n List<String> args = Arrays.asList(\n customer.getCustomerName(),\n customer.getAddress(),\n customer.getPostalCode(),\n customer.getPhone(),\n customer.getCreateDate().toString(),\n customer.getCreatedBy(),\n customer.getLastUpdate().toString(),\n customer.getLastUpdatedBy(),\n String.valueOf(customer.getDivisionID())\n );\n DatabaseConnection.performUpdate(\n session.getConn(),\n Path.of(Constants.UPDATE_SCRIPT_PATH_BASE + \"InsertCustomer.sql\"),\n args\n );\n }", "@Override\n\t@Transactional\n\tpublic void addCustomer(Customer customer) {\n\n\t\tSystem.out.println(\"here is our customer\" + customer);\n\n\t\thibernateTemplate.saveOrUpdate(customer);\n\n\t}", "@Override\n public void addCustomer(Customer customer) {\n log.info(\"Inside addCustomer method\");\n customerRepository.save(customer);\n }", "private void addUserPoint() {\n\n String userRefEmail = edtEmailPengguna.getText().toString().replace('.', '_');\n final int poin = Integer.parseInt(tvPoinTransaksi.getText().toString());\n\n final DatabaseReference userDataRef = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(userRefEmail);\n userDataRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String userCurrentPoint = Objects.requireNonNull(dataSnapshot.child(\"point\").getValue()).toString();\n\n int finalPoint = Integer.parseInt(userCurrentPoint) + poin;\n userDataRef.child(\"point\").setValue(finalPoint);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }", "void insert(Customer customer);", "public void add(Customer c) {\n customers.add(c);\n\n fireTableDataChanged();\n }", "public boolean addCustomer(Customer customer) throws DatabaseOperationException;", "public void addCustomer() {\n\t \n\t try{\n\t\t con = openDBConnection();\n\t\t callStmt = con.prepareCall(\" {call team5.CUSTOMER_ADD_PROC(?,?,?,?,?,?,?)}\");\n\t\t callStmt.setString(1,this.emailad);\n\t\t callStmt.setString(2,this.fname);\n\t\t callStmt.setString(3,this.lname);\n\t\t callStmt.setString(4,this.username);\n\t\t callStmt.setString(5,this.password);\n\t\t callStmt.setString(6,this.adminUsername);\n\t\t callStmt.setInt(7, this.id);\n\t\t callStmt.execute();\n\t\t callStmt.close();\n\t } catch (Exception E) {\n\t E.printStackTrace();\n\t }\n}", "public void add(Customer customer) {\n\t\tSessionFactory sessionFactory = HibernateUtil.getSessionFactory();\n\t\t//Step 2. Create/Obtain Session object\n\t\tSession session = sessionFactory.getCurrentSession();\n\t\t//Step 3. Start/Participate in a Transaction\n\t\tTransaction tx = session.beginTransaction();\n\t\t\n\t\t//Now we can insert/update/delete/select whatever we want\n\t\tsession.save(customer); //save method generates insert query\n\t\t\n\t\ttx.commit();\n\t}", "public void addCustomer(){\n Customer customer = new Customer();\n customer.setId(data.numberOfCustomer());\n customer.setFirstName(GetChoiceFromUser.getStringFromUser(\"Enter First Name: \"));\n customer.setLastName(GetChoiceFromUser.getStringFromUser(\"Enter Last Name: \"));\n data.addCustomer(customer,data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has added Successfully!\");\n }", "void insertCustomerDDPay(CustomerDDPay cddp);", "@Override\n public CustomerEntity incrementBonusPoints(CustomerEntity customerEntity, int bonusPoints) {\n customerEntity.setBonusPoints(customerEntity.getBonusPoints() + bonusPoints);\n return customerRepository.save(customerEntity);\n }", "public Customermodel addCustomer(Customermodel customermodel) {\n\t\t return customerdb.save(customermodel);\n\t }", "@Override\n\tpublic void addCustomer(Customer customer) {\n\t\tcustomerDao.addCustomer(customer);\n\t}", "public void addPoint (String user, double point) throws IOException { \r\n this.point = this.point + point; \r\n Owner o = new Owner(user, password);\r\n String lineSplit[];\r\n out = new FileReader(\"Customer.txt\");\r\n BufferedReader read = new BufferedReader(out);\r\n \r\n String line;\r\n String data = \"\";\r\n \r\n while((line = read.readLine()) != null){\r\n lineSplit = null;\r\n lineSplit = line.split(\",\");\r\n userName = lineSplit[0];\r\n password = lineSplit[1];\r\n status = o.changeStatus(this.point);\r\n \r\n if(user.equals(userName)){\r\n data+=userName+\",\"+password+\",\"+status+\",\"+this.point+\"\\r\\n\";\r\n System.out.println(data);\r\n }\r\n else{\r\n data+=line+\"\\r\\n\";\r\n }\r\n }\r\n read.close();\r\n in = new FileWriter(\"Customer.txt\");\r\n in.write(data);\r\n in.close();\r\n }", "public void addCustomer(CustomerSignup p)\n {\n Session session = this.sessionFactory.getCurrentSession();\n \n session.persist(p);\n \n CustomerLogin cl=new CustomerLogin();\n cl.setUsername(p.getUsername());\n cl.setPassword(p.getPassword());\n cl.setId(p.getId());\n session.persist(cl);\n \n Authorities a = new Authorities();\n a.setUsername(p.getUsername());\n a.setAuthority(\"ROLE_USER\");\n a.setId(p.getId());\n session.saveOrUpdate(a);\n\n session.flush();\n \n logger.info(\"Customer saved successfully, Customer Details=\"+p);\n }", "public void addUser(Customer user) {}", "private void addCustomer() {\n try {\n FixCustomerController fixCustomerController = ServerConnector.getServerConnector().getFixCustomerController();\n\n FixCustomer fixCustomer = new FixCustomer(txtCustomerName.getText(), txtCustomerNIC.getText(), String.valueOf(comJobrole.getSelectedItem()), String.valueOf(comSection.getSelectedItem()), txtCustomerTele.getText());\n\n boolean addFixCustomer = fixCustomerController.addFixCustomer(fixCustomer);\n\n if (addFixCustomer) {\n JOptionPane.showMessageDialog(null, \"Customer Added Success !!\");\n } else {\n JOptionPane.showMessageDialog(null, \"Customer Added Fail !!\");\n }\n\n } catch (NotBoundException | MalformedURLException | RemoteException ex) {\n new ServerNull().setVisible(true);\n } catch (ClassNotFoundException | IOException ex) {\n Logger.getLogger(InputCustomers.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "private void addPoint( LatLng point ) {\n \t\tthis.addMarker( point );\n \t\tthis.commitPolygon();\n \t}", "public void addCustomer() {\r\n\t\tdo {\r\n\t\t\tString name = getToken(\"Enter the customer's name: \");\r\n\t\t\tString phoneNumber = getToken(\"Enter the phone number: \");\r\n\t\t\tCustomer customer = store.addCustomer(name, phoneNumber);\r\n\t\t\tif (customer == null) {\r\n\t\t\t\tSystem.out.println(\"Could not add customer.\");\r\n\t\t\t}\r\n\t\t\tSystem.out.println(customer);\r\n\t\t} while (yesOrNo(\"Would you like to add another Customer?\"));\r\n\t}", "@Override\n\tpublic boolean addCustomer(Customer customer) {\n\t\tint result=0;\n\t\tConnection connection;\n\t\ttry {\n\t\t\tconnection = DBConnection.makeConnection();\n\t\t\tPreparedStatement Statement = connection.prepareStatement(INSERT_CUSTOMER_QUERY);\n\t\t\tStatement.setInt(1, customer.getCustomerId());\n\t\t\tStatement.setString(2, customer.getCustomerName());\n\t\t\tStatement.setString(3, customer.getCustomerAddress());\n\t\t\t\tStatement.setInt(4, customer.getBillAmount());\n\t\t\t\tresult=Statement.executeUpdate();\n\n\t\t} \n\t\tcatch(SQLException e)\n\t\t{\n\t\t\te.printStackTrace();\n\t\t}catch (Exception e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t\n\t\tif(result==0)\n\t\treturn false;\n\t\telse\n\t\t\treturn true;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t}", "@Override\n\tpublic void createCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\ttry {\n\t\t\t\n\t\t\tStatement st = con.createStatement();\n\t\t\tString create = String.format(\"insert into customer values('%s', '%s')\", customer.getCustName(),\n\t\t\t\t\tcustomer.getPassword());\n\t\t\tst.executeUpdate(create);\n\t\t\tSystem.out.println(\"Customer added successfully\");\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \"Unable to add A customer, Try Again! \");\n\t\t} finally {\n\t\t\tpool.returnConnection(con);\n\t\t}\n\t}", "@Override\r\n\tpublic void insert(Customer customer) throws SQLException {\r\n\r\n\t\tString insertSql = \"INSERT INTO \" + tableName\r\n\t\t\t\t+ \"(name, surname, birth_date, birth_place, address, city, province, cap, phone_number, newsletter, email)\"\r\n\t\t\t\t+ \" VALUES (?,?,?,?,?,?,?,?,?,?,?)\";\r\n\t\ttry {\r\n\t\t\t//connection = ds.getConnection();\r\n\t\t\tpreparedStatement = connection.prepareStatement(insertSql);\r\n\t\t\tpreparedStatement.setString(1, customer.getName());\r\n\t\t\tpreparedStatement.setString(2, customer.getSurname());\r\n\t\t\tpreparedStatement.setDate(3, (Date) customer.getBirthdate());\r\n\t\t\tpreparedStatement.setString(4, customer.getBirthplace());\r\n\t\t\tpreparedStatement.setString(5, customer.getAddress());\r\n\t\t\tpreparedStatement.setString(6, customer.getCity());\r\n\t\t\tpreparedStatement.setString(7, customer.getProvince());\r\n\t\t\tpreparedStatement.setInt(8, customer.getCap());\r\n\t\t\tpreparedStatement.setString(9, customer.getPhoneNumber());\r\n\t\t\tpreparedStatement.setInt(10, customer.getNewsletter());\r\n\t\t\tpreparedStatement.setString(11, customer.getEmail());\r\n\t\t\tpreparedStatement.executeUpdate();\r\n\t\t\tconnection.commit();\r\n\t\t} catch (SQLException e) {\r\n\t\t}\r\n\t}", "@Override\n\tpublic boolean addCustomer(Customer customer) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t try {\n\t\tShippingAddress shippingAddress=customer.getShippingAddress();\n\t session.save(customer);\n\t session.save(shippingAddress);\n\t\n\t\treturn true;\n\t }\n\t catch(HibernateException e)\n\t {\n\t \t\n\t \te.printStackTrace();\n\t \treturn false;\n\t }\n\t}", "@Override\r\n\tpublic int insertNewCustomer(Customer cust) throws CustException {\n\t\tmanager.persist(cust);\r\n\t\treturn 1;\r\n\t}", "public int insertCustomer() {\n\t\treturn 0;\r\n\t}", "@Override\n\tpublic void putCustomers(Customer customer) {\n\n\t\tsessionFactory.getCurrentSession().saveOrUpdate(customer);;\n\n\t}", "static void addCustomer(customer customer) {\n\n }", "public void addPoints(int point){\n\t\tthis.points += point;\n\t}", "public void addPoint() {\n points += 1;\n }", "@Override\r\n\tpublic int insertCustomer(Customer customer) throws BillingServicesDownException {\n\t\treturn 0;\r\n\t}", "public static boolean addCustomer(Customer customer) throws SQLException {\n \n if (customerInDatabase(customer.getCustomer())) {\n System.out.println(\"Customer \" + customer.getCustomer() + \" already in DB (addCustomer)\");\n return false;\n }\n else if (customer.getCustomer().isEmpty()) {\n System.out.println(\"Customer given is empty (addCustomer\");\n return false;\n }\n String insertStatement = \"INSERT INTO customer(customerName, addressId, active, createDate, createdBy, lastUpdateBy) \" +\n \"VALUES (?,?,?,?,?,?)\";\n \n DBQueryPrepared.setPreparedStatement(CONN, insertStatement);\n ps = DBQueryPrepared.getPreparedStatement();\n ps.setString(1, customer.getCustomer());\n ps.setString(2, String.valueOf(customer.getAddressId()));\n ps.setString(3, \"1\");\n ps.setString(4, model.timeConversion.getTime().toString());\n ps.setString(5, \"currentUser\");\n ps.setString(6, \"currentUser\");\n ps.execute();\n return true; \n }", "@Override\n\tpublic void addCustomer(Customer customer, Branch branch) {\n\t\t\n\t}", "public boolean addCustomer(CustomerBean customer);", "@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 create(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"INSERT INTO customer (name, id, phone) VALUES (?, ?, ?)\");\n ppst.setString(1, c.getName());\n ppst.setString(2, c.getId());\n ppst.setString(3, c.getPhone());\n ppst.executeUpdate();\n System.out.println(\"Customer created.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Creation error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "public Customer addCustomer(Customer customer) {\n customer.setMemberSince(LocalDate.now());\n customer.setStatus(MembershipStatus.ACTIVE);\n return customerRepository.save(customer);\n }", "public void addPoint(Point point){\n\t\t\tclusterPointsList.add(point);\n\t\t}", "public void addCustomer(int Id, String name, String dob, String gender, String number, String email, String address, String password, Boolean promo, Integer reward, Boolean reg) throws SQLException { //code for add-operation \n st.executeUpdate(\"INSERT INTO IOTBAY.CUSTOMER \" + \"VALUES ('\" \n + Id + \"','\" + name + \"', '\" + dob + \"', '\" \n + gender + \"', '\" + number + \"', '\" \n + email + \"', '\" + address + \"', '\" \n + password + \"', '\" + promo + \"', '\"+ reward + \"', '\"+ reg \n + \"')\");\n\n }", "public void addPoint(Point point) {\r\n\t\t\r\n\t\tthis.listOfPoints.add(point);\r\n\t}", "int insert(CustomerVisit record);", "public void addCustomerMoney(Coin c){\n customerMoney.add(c);\n }", "public void addCustomer(Customer customer) {\r\n if (hasID(customer.getID())) {\r\n return;\r\n }\r\n\r\n for (int i = 0; i < customers.length; i++) {\r\n if (customers[i] == null) {\r\n customers[i] = customer;\r\n return;\r\n }\r\n }\r\n\r\n System.err.println(\"No more room in database!\");\r\n }", "public int addCustomer(Customer customer) {\n return model.addCustomer(customer);\n }", "@Override\n\tpublic void saveCustomer(AMOUNT theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// save the customer ... \n\t\tcurrentSession.save(theCustomer);\n\t}", "private Customer addCustomer(String title, String firstName, String lastName, String phone, String email, String addressLine1, String addressLine2, String city, String state, String postCode, String country) {\r\n out.print(title);\r\n out.print(firstName);\r\n out.print(lastName);\r\n out.print(phone);\r\n out.print(email);\r\n out.print(addressLine1);\r\n out.print(addressLine2);\r\n out.print(city);\r\n out.print(state);\r\n out.print(postCode);\r\n out.print(country);\r\n\r\n Customer customer = new Customer();\r\n customer.setCustomerTitle(title);\r\n customer.setCustomerFirstName(firstName);\r\n customer.setCustomerLastName(lastName);\r\n customer.setCustomerPhone(phone);\r\n customer.setCustomerEmail(email);\r\n customer.setCustomerAddressLine1(addressLine1);\r\n customer.setCustomerAddressLine2(addressLine2);\r\n customer.setCustomerCity(city);\r\n customer.setCustomerState(state);\r\n customer.setCustomerPostCode(postCode);\r\n customer.setCustomerCountry(country);\r\n\r\n em.persist(customer);\r\n return customer;\r\n }", "public void addPoint(int points){\n\t\tthis.fidelityCard.point += points;\t\t\n\t}", "BonusResponse add(Long customerId, Long authorizedBy, BonusRequest bonus);", "public static void addCustomer(String name, String address, String firstDivision, String postalCode, String phoneNumber) throws SQLException{\r\n\r\n //connection and prepared statement set up\r\n Connection conn = DBConnection.getConnection();\r\n String insertStatement = \"INSERT INTO customers(Customer_Name, Address, Postal_Code, Phone, Created_By, Last_Updated_By, Division_ID) VALUES(?,?,?,?,?,?,?);\";\r\n DBQuery.setPreparedStatement(conn, insertStatement);\r\n PreparedStatement ps = DBQuery.getPreparedStatement();\r\n int divisionID = getDivisionID(firstDivision);\r\n String userName = DBUsers.getUser();\r\n\r\n ps.setString(1,name);\r\n ps.setString(2, address);\r\n ps.setString(3,postalCode);\r\n ps.setString(4,phoneNumber);\r\n ps.setString(5,userName);\r\n ps.setString(6,userName);\r\n ps.setInt(7,divisionID);\r\n\r\n ps.execute();\r\n\r\n if(ps.getUpdateCount() > 0) {\r\n System.out.println(ps.getUpdateCount() + \" row(s) effected\");\r\n }\r\n else {\r\n System.out.println(\"no change\");\r\n }\r\n }", "void storeObject(PointLatLng point, String id);", "public void addPoint( final Point2d point ){\n points.add(new Point2d(point));\n\n dirty = true;\n }", "public void addCustomer() {\n\t\tSystem.out.println(\"Enter your first name.\");\n\t\tString fn = scan.nextLine();\n\t\tSystem.out.println(\"Enter your last name.\");\n\t\tString ln = scan.nextLine();\n\t\tSystem.out.println(\"Enter your username.\");\n\t\tString user = scan.nextLine();\n\t\tSystem.out.println(\"Enter your password.\");\n\t\tString pw = scan.nextLine();\n\t\tSystem.out.println(\"Password once more (to be safe.)\");\n\t\tString pw2 = scan.nextLine();\n\t\t/*if (pw.toString() != pw2.toString()) {\n\t\t\tSystem.out.println(\"Whoops! Let's try that again.\");\n\t\t\taddCustomer();\n\t\t}\n\t\t*/\n\t\t//else {\n String sql = \"INSERT INTO bank.login (first_name, last_name, user_name, password) VALUES (\"+\"\\\"\"+fn+\"\\\"\"+\", \"+\"\\\"\"+ln+\"\\\"\"+\", \"\n\t\t+\"\\\"\"+user+\"\\\"\"+\", \"+\"\\\"\"+pw+\"\\\"\"+\")\";\n\n try{\n \t\n \tconnect.databaseUtil();\n Statement statement = Database.connection.createStatement();\n // ResultSet resultSet =\n \t\tstatement.executeUpdate(sql);\n try {\n \t\t\tconnect.databaseClose();\n \t\t} catch (SQLException e) {\n \t\t\t\n \t\t\te.printStackTrace();\n \t\t}\n\n bank.start();\n }\n \n\n catch(SQLException e){\n \t\te.printStackTrace();\n Menus.custMenu();\n\n }\n\n \n\t\t\n\t}", "public void addPoint(double x, double y, double z);", "public Customer putCustomer(final Customer customer) {\n return dbClient.put(customer);\n }", "public void addCustomer(CustomerAccount acc){\n accountHM.put(acc.getVehicle().getPlate(),acc);\n }", "public void insert(VRpDyTrxTotal record) {\r\n getSqlMapClientTemplate().insert(\"V_RP_DY_TRX_TOTAL.ibatorgenerated_insert\", record);\r\n }", "public void addPoint(T p) {\n points.add(p);\n }", "private void addToDB(String CAlias, String CPwd, String CFirstName,\n String CLastName, String CStreet, String CZipCode, String CCity,\n String CEmail)\n {\n con.driverMysql();\n con.dbConnect();\n \n try \n {\n sqlStatement=con.getDbConnection().createStatement();\n sqlString=\"INSERT INTO customer (CAlias, CFirstName, CLastName, CPwd, \"\n + \"CStreetHNr, CZipCode, CCity, CEmail, CAccessLevel)\"\n + \" VALUES\"\n + \"('\" + CAlias + \"', '\" + CFirstName + \"', '\" + CLastName\n + \"', '\" + CPwd + \"', '\" + CStreet + \"', '\" \n + CZipCode + \"', '\" + CCity + \"', '\" + CEmail + \"', 1);\";\n \n sqlStatement.executeUpdate(sqlString);\n sqlString=null;\n con.getDbConnection().close();\n } \n catch (Exception ex) \n {\n error=ex.toString();\n }\n }", "void insertCustomer() {\n\t\tCallableStatement cs = null;\n\t\ttry {\n\t\t\tString call = \"call insert_customer (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)\";\n\t\t\tcs = conn.prepareCall(call);\t\t\t\n\t\t\tArrayList <String> param = new ArrayList<String>(); \n\t\t\tparam.add(genderBox.getSelectedItem().toString());\n\t\t\tparam.add(titleBox.getSelectedItem().toString());\n\t\t\tparam.add(fieldFirstName.getText());\t\t\t\n\t\t\tparam.add(fieldMidName.getText());\n\t\t\tparam.add(fieldLastName.getText());\n\t\t\tparam.add(fieldAddress.getText());\n\t\t\tparam.add(fieldCity.getText());\n\t\t\tparam.add(fieldState.getText());\n\t\t\tparam.add(fieldZipcode.getText());\n\t\t\tparam.add(fieldEmail.getText());\t\t\t\n\t\t\tparam.add(fieldUsername.getText());\n\t\t\tparam.add(fieldPassword.getText());\n\t\t\tparam.add(fieldTelephone.getText());\n\t\t\tparam.add(fieldMaidenName.getText());\n\t\t\tparam.add(fieldBirthday.getText());\n\t\t\tparam.add(cctypeBox.getSelectedItem().toString());\n\t\t\tparam.add(fieldCCnumber.getText());\n\t\t\tparam.add(fieldCCV.getText());\n\t\t\tparam.add(fieldExpirDate.getText());\n\t\t\tparam.add(fieldSocialSecurity.getText() + \" \");\n\t\t\t\n\t\t\tfor (int i = 0; i < 20; i++) {\n\t\t\t\tcs.setString(i+1, param.get(i));\n\t\t\t}\n\t\t\tcs.executeUpdate();\n\t\t\tconn.commit();\n\t\t} catch (SQLException e) {\n\t\t\tSystem.err.println(\"Exception caught: \" + e.getMessage());\n\t\t\tJOptionPane.showMessageDialog(this, \"User, \" + fieldUsername.getText() +\" already exists.\");\n\t\t} finally {\n\t\t\t\n\t\t}\n\t}", "public void addCustomer(String c){\n\t\tif(!containsCustomer(c)){\n\t\t\tCustomer e = new Customer(c);\n\t\t\tlist.add(e);\n\t\t}\n\t}", "private DataPoint _addPoint(DataPoint point) {\n DataPoint existingPoint = ntree.add(point);\n if (existingPoint != null) {\n return existingPoint;\n }\n ensureDistances();\n lastAddedPoint = point;\n return null;\n }", "public boolean insertCustomer(Customer customer){\n\n ContentValues cv = new ContentValues();\n\n cv.put(\"customer_name\", customer.getName());\n cv.put(\"customer_description\", customer.getDescription());\n\n long insert = _db.insert(\"Customer\", null, cv);\n\n // Checks if rows have been updated.\n if(insert == -1){\n return false;\n }\n\n return true;\n }", "public void addCustomerSQL(Connection connection) throws SQLException {\r\n String sql1 = \"INSERT INTO Customers (first_name, last_name, age, gender, money)\"\r\n + \" VALUES (?,?,?,?,?)\";\r\n PreparedStatement statement1 = connection.prepareStatement(sql1);\r\n for(int i = 0; i < customers.size();i++) {\r\n statement1.setString(1,customers.get(i).getF_Name());\r\n statement1.setString(2,customers.get(i).getL_Name());\r\n statement1.setInt(3,customers.get(i).getAge());\r\n statement1.setInt(4,customers.get(i).getGender());\r\n statement1.setDouble(5,customers.get(i).getMoney());\r\n int rows = statement1.executeUpdate();\r\n if (rows > 0) {\r\n System.out.println(\"new user added\");\r\n }\r\n }\r\n }", "public void register(Customer c) {\n\t\tUser.customers.add(c);\n\t}", "public void addPoint(java.util.List point)\n {\n synchronized (monitor())\n {\n check_orphaned();\n org.apache.xmlbeans.SimpleValue target = null;\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(POINT$0);\n target.setListValue(point);\n }\n }", "@Override\n\tpublic int addCustomerReprieve(CustomerReprieve customerReprieve) {\n\t\treturn customerDao.addCustomerReprieve(customerReprieve);\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// currentSession.save(theCustomer);\n\n\t\t// save/upate the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t}", "public boolean addPoint(Point p);", "public void insert(HProvinceFb record) {\r\n getSqlMapClientTemplate().insert(\"H_PROVINCE_FB.ibatorgenerated_insert\", record);\r\n }", "@Override\n\t@Transactional\n\tpublic void save(Customer customer) {\n\t\tcustomerDAO.save(customer);\n\t}", "public static void createAccount(Customer customer) {\n\t\tcustomerList.add(customer);\n\t}", "public void insert(ZyCorporation record) {\r\n getSqlMapClientTemplate().insert(\"zy_corporation.insertcorporation\", record);\r\n }", "public void add(ActionEvent e) {\r\n Customer newCustomer = new Customer();\r\n newCustomer.setContactfirstname(tempcontactfirstname);\r\n newCustomer.setContactlastname(tempcontactlastname);\r\n save(newCustomer);\r\n addRecord = !addRecord;\r\n }", "@Override\n\tpublic void insert(CvcShippingEntity cvcShipping) {\n\t\tcvcShippingDao.insert(cvcShipping);\n\t}", "public void addCustomer(CustomerWithGoods customer) {\n\t\tthis.allCustomers.add(customer);\n\t}", "@Override\n\tpublic void add() {\n\t\tSystem.out.println(\"Mobile Customer Add()\");\n\t}", "public void setCustomer(Customer customer) {\r\n\t\tthis.customer = customer;\r\n\t\tpassengers.add(customer);\r\n\t}", "AccountModel addByCustomer(AccountModel account,String customerId) throws AccountException, CustomerException;", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save/upate the customer ... finally LOL\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t\n\t}", "public static void CreateCustomer() \r\n\t{\n\t\t\r\n\t}", "private Customer createCustomerData() {\n int id = -1;\n Timestamp createDate = DateTime.getUTCTimestampNow();\n String createdBy = session.getUsername();\n\n if (action.equals(Constants.UPDATE)) {\n id = existingCustomer.getCustomerID();\n createDate = existingCustomer.getCreateDate();\n createdBy = existingCustomer.getCreatedBy();\n }\n\n String name = nameField.getText();\n String address = addressField.getText() + \", \" + cityField.getText();\n System.out.println(address);\n String postal = postalField.getText();\n String phone = phoneField.getText();\n Timestamp lastUpdate = DateTime.getUTCTimestampNow();\n String lastUpdatedBy = session.getUsername();\n\n FirstLevelDivision division = divisionComboBox.getSelectionModel().getSelectedItem();\n int divisionID = division.getDivisionID();\n\n return new Customer(id, name, address, postal, phone, createDate, createdBy, lastUpdate, lastUpdatedBy, divisionID);\n }", "@Override\n\t@Transactional\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tcustomerDAO.saveCustomer(theCustomer);\n\t\t\n\t}", "@PostMapping(\"/customers\")\n public Customer addCustomer(@RequestBody Customer theCustomer)\n {\n //also just in case they pass an id in JSON .. set id to o\n //this is to force a save of new item ... instead od update\n theCustomer.setId(0);\n customerService.save(theCustomer);\n return theCustomer;\n }", "@PostMapping(\"/addcustomer\")\n\tpublic String save(@ModelAttribute(\"customer\") Customer theCustomer) {\n\t\tcustomerServices.save(theCustomer);\n\t\treturn \"redirect:/dairymilk/customers\";\n\t}", "int insert(PointsExchangeRecord record);", "int insert(AddressMinBalanceBean record);", "void insertFlightseat(AirFlightseat dRef);", "public void add(Point point) {\n\t\tthis.points.add(point);\n\t}", "public void addCustomer(Customer customer) throws UserExistsException {\r\n if (customerExists(customer)){\r\n throw new UserExistsException(\"Customer \"+ customer.getF_Name()+\" already exists\");\r\n }\r\n customers.add(customer);\r\n }", "@Override\n\tpublic int insert(CustomerBrowse record) {\n\t\treturn customerBrowseMapper.insert(record);\n\t}", "@Override\n\tpublic void insert(UserFlight userFlight) {\n\t\t\n\t}", "@Override\r\n\tpublic void createAccount(Customer customer) {\n\t\tcustMap.put(customer.getMobileNo(),customer);\r\n\t\t\r\n\t}", "public void append(CPoint cpoint) {\n\tcplist.add(cpoint);\n }", "public void insert(Point2D p) {\n pointSet.add(p);\n }", "@Override\r\n\tpublic int insert(FarmerCredit record) {\n\t\treturn farmerCreditDao.insert(record);\r\n\t}", "public Customer(String userName, String password, String status, double point){\r\n this.userName = userName;\r\n this.password = password; \r\n this.status = status;\r\n this.point = point;\r\n }", "@Override\n\tpublic void saveCustomer(Customer theCustomer) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// save the customer\n\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t//currentSession.save(theCustomer);\n\t}", "@PostMapping(\"/customers\")\r\n\tpublic Customer addCustomer(@RequestBody Customer customer) {\n\t\tcustomer.setId(0);\r\n\t\t\r\n\t\tcustomerService.saveCustomer(customer);\r\n\t\treturn customer;\r\n\t}", "@Override\n\tpublic void saveCustomer(Customer theCustomer){\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n//\t\tcurrentSession.createQuery(\"from Customer c where c.firstName=\"+ theCustomer.getFirstName()).executeUpdate();\n\n\t\tQuery<Customer> query =\n\t\t\t\tcurrentSession.createQuery(\"select c from Customer c \"+\n\t\t\t\t\t\t\t\t\"where c.firstName =:theCustomerFirstName and \" +\n\t\t\t\t\t\t\t\t\"c.lastName =:theCustomerLastName and \" +\n\t\t\t\t\t\t\t\t\"c.email=:theCustomerEmail\",\n\t\t\t\t\t\t Customer.class);\n\n\t\t// set parameter on query\n\t\tquery.setParameter(\"theCustomerFirstName\", theCustomer.getFirstName());\n\t\tquery.setParameter(\"theCustomerLastName\", theCustomer.getLastName());\n\t\tquery.setParameter(\"theCustomerEmail\", theCustomer.getEmail());\n\n\t\ttry {\n\t\t\t// execute query and get instructor\n\t\t\tCustomer temp = query.getSingleResult();\n\t\t}\n\t\tcatch (Exception exe){\n\t\t\tlogger.log(Level.INFO,\"Already exists!!\");\n\t\t\tcurrentSession.saveOrUpdate(theCustomer);\n\t\t}\n\t}", "public void addPoint(Point p) {\r\n line.add(p);\r\n }" ]
[ "0.66976565", "0.66885954", "0.6505853", "0.64579165", "0.63943666", "0.639312", "0.63899684", "0.63569325", "0.63522935", "0.63467556", "0.6340972", "0.63340086", "0.6289212", "0.6236889", "0.62274176", "0.6219725", "0.6215639", "0.6212862", "0.6189498", "0.61837655", "0.6177879", "0.6145584", "0.6143015", "0.6140901", "0.61403733", "0.61132514", "0.61087865", "0.6089106", "0.6059413", "0.60515124", "0.60354567", "0.6034352", "0.6028716", "0.5994735", "0.5992675", "0.59855634", "0.59711206", "0.5962296", "0.5958558", "0.59564394", "0.5929039", "0.5922845", "0.5918309", "0.58995247", "0.5899399", "0.5896966", "0.58807385", "0.5880474", "0.58686143", "0.58661515", "0.58298916", "0.5816494", "0.580831", "0.58077514", "0.5795738", "0.578305", "0.57816315", "0.5779608", "0.5778923", "0.57755077", "0.57734585", "0.577223", "0.5765249", "0.57636106", "0.5756273", "0.5752538", "0.5750395", "0.5748931", "0.5747045", "0.57457435", "0.5738207", "0.57347685", "0.5728548", "0.57203496", "0.5719464", "0.5716258", "0.57162315", "0.5708483", "0.5705181", "0.5701725", "0.5701487", "0.5698915", "0.56876695", "0.56875", "0.56845796", "0.5680469", "0.5677811", "0.5668809", "0.56638634", "0.5663745", "0.5659398", "0.565586", "0.5650757", "0.56490934", "0.5647307", "0.5646663", "0.5642922", "0.5642082", "0.56405115", "0.5638829", "0.56351054" ]
0.0
-1
Get event point and log it in log event table
public static int addEventPoint(String cardNumber,float money,int logId,Connection con){ LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.addEventPoint(cardNumber,money, logId, con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "abstract protected void _log(TrackingEvent event) throws Exception;", "public synchronized void onPointEvent(Object source, PointEvent evt) {\n PointData pd = evt.getPointData();\n // Check that there's data.. ?\n if (pd == null) { // || pd.getData() == null) {\n return;\n }\n\n // Find the index of the point\n String fullname = pd.getName();\n int i = 0;\n for (; i < itsNumPoints; i++) {\n if (itsNames[i].equals(fullname)) {\n break;\n }\n }\n if (i == itsNumPoints) {\n Logger logger = Logger.getLogger(this.getClass().getName());\n logger.warn(\"(\" + itsParent.getFullName() + \") received unsolicited data from \" + fullname);\n return;\n }\n\n // Everything looks good\n itsValues[i] = pd;\n\n // Check whether now is an appropriate time to recalculate output\n if (matchData()) {\n // Recalculate output and fire update event\n Object resval = doCalculations();\n AbsTime ts;\n if (itsNumPoints==1) {\n \t // Only listening to a single point so preserve the timestamp\n \t ts = pd.getTimestamp();\n } else {\n \t // Mutliple points, therefore original timestamp is not clearly defined\n \t ts = new AbsTime();\n }\n PointData res = new PointData(itsParent.getFullName(), ts, resval);\n itsParent.firePointEvent(new PointEvent(this, res, true));\n }\n }", "public void onLogEvent(String date, String source, String level, String msg);", "public EventLogEntry getEventLogEntry(int index);", "public EventLogMessageEntry getEventLogMessage(int index);", "static public void logEventInfo( MotionEvent oEvent )\n {\n final int iHistorySize = oEvent.getHistorySize();\n final int iPointerCount = oEvent.getPointerCount();\n String strMessage = String.format(\n \"Entering handleTouchEvent() with a event history of depth %d and %d pointers\",\n iHistorySize,\n iPointerCount );\n Logger.v( strMessage );\n\n // Look for up/down events in history\n for ( int h = 0; h < iHistorySize; h++ )\n {\n strMessage = String.format( \"Event history %d\", h );\n Logger.v( strMessage );\n\n for ( int p = 0; p < iPointerCount; p++ )\n {\n strMessage = String.format(\n \" pointer %d: (%f, %f)\",\n oEvent.findPointerIndex( p ),\n oEvent.getHistoricalX( p, h ),\n oEvent.getHistoricalY( p, h ) );\n Logger.v( strMessage );\n }\n }\n\n strMessage = String.format( \"Main event of type %d\", oEvent.getAction() );\n Logger.v( strMessage );\n\n for ( int p = 0; p < iPointerCount; p++ )\n {\n strMessage = String.format(\n \" pointer %d: (%f, %f)\",\n oEvent.findPointerIndex( p ),\n oEvent.getX( p ),\n oEvent.getY( p ) );\n Logger.v( strMessage );\n }\n }", "private void insertEventRecord(Device device, \n long fixtime, int statusCode, Geozone geozone,\n GeoPoint geoPoint, \n long gpioInput,\n double speedKPH, double heading, \n double altitude,\n double odomKM)\n {\n\n /* create event */\n EventData evdb = createEventRecord(device, fixtime, statusCode, geoPoint, gpioInput, speedKPH, heading, altitude, odomKM);\n\n /* insert event */\n // this will display an error if it was unable to store the event\n Print.logInfo(\"Event : [0x\" + StringTools.toHexString(statusCode,16) + \"] \" + StatusCodes.GetDescription(statusCode,null));\n if (device != null) {\n device.insertEventData(evdb); \n }\n this.eventTotalCount++;\n\n }", "public void logBefore(JoinPoint joinPoint);", "public static void logEvent(SimulationEvent event) {\n\t\tevents.add(event);\n\t\tSystem.out.println(event);\n\t}", "public IEventLog getEventLog();", "private void logEvent(String operation, EntryEvent event) {\n}", "@Override\n public void append( LogEvent event ) {\n long eventTimestamp;\n if (event instanceof AbstractLoggingEvent) {\n eventTimestamp = ((AbstractLoggingEvent) event).getTimestamp();\n } else {\n eventTimestamp = System.currentTimeMillis();\n }\n LogEventRequest packedEvent = new LogEventRequest(Thread.currentThread().getName(), // Remember which thread this event belongs to\n event, eventTimestamp); // Remember the event time\n\n if (event instanceof AbstractLoggingEvent) {\n AbstractLoggingEvent dbLoggingEvent = (AbstractLoggingEvent) event;\n switch (dbLoggingEvent.getEventType()) {\n\n case START_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the test case id, which we will later pass to ATS agent\n testCaseState.setTestcaseId(eventProcessor.getTestCaseId());\n\n // clear last testcase id\n testCaseState.clearLastExecutedTestcaseId();\n\n //this event has already been through the queue\n return;\n }\n case END_TEST_CASE: {\n\n // on Test Executor side we block until the test case start is committed in the DB\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n // remember the last executed test case id\n testCaseState.setLastExecutedTestcaseId(testCaseState.getTestcaseId());\n\n // clear test case id\n testCaseState.clearTestcaseId();\n // this event has already been through the queue\n return;\n }\n case GET_CURRENT_TEST_CASE_STATE: {\n // get current test case id which will be passed to ATS agent\n ((GetCurrentTestCaseEvent) event).setTestCaseState(testCaseState);\n\n //this event should not go through the queue\n return;\n }\n case START_RUN:\n\n /* We synchronize the run start:\n * Here we make sure we are able to connect to the log DB.\n * We also check the integrity of the DB schema.\n * If we fail here, it does not make sense to run tests at all\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n Level level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n // create the queue logging thread and the DbEventRequestProcessor\n if (queueLogger == null) {\n initializeDbLogging(null);\n }\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, false);\n //this event has already been through the queue\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n return;\n case END_RUN: {\n /* We synchronize the run end.\n * This way if there are remaining log events in the Test Executor's queue,\n * the JVM will not be shutdown prior to committing all events in the DB, as\n * the END_RUN event is the last one in the queue\n */\n atsConsoleLogger.info(\"Waiting for \"\n + event.getClass().getSimpleName()\n + \" event completion\");\n\n /** disable root logger's logging in order to prevent deadlock **/\n level = LogManager.getRootLogger().getLevel();\n Configurator.setRootLevel(Level.OFF);\n\n AtsConsoleLogger.setLevel(level);\n\n waitForEventToBeExecuted(packedEvent, dbLoggingEvent, true);\n\n /*Revert Logger's level*/\n Configurator.setRootLevel(level);\n AtsConsoleLogger.setLevel(level);\n\n //this event has already been through the queue\n return;\n }\n case DELETE_TEST_CASE: {\n // tell the thread on the other side of the queue, that this test case is to be deleted\n // on first chance\n eventProcessor.requestTestcaseDeletion( ((DeleteTestCaseEvent) dbLoggingEvent).getTestCaseId());\n // this event is not going through the queue\n return;\n }\n default:\n // do nothing about this event\n break;\n }\n }\n\n passEventToLoggerQueue(packedEvent);\n }", "@Override\n public void handleEventRecord(EventRecord record) {\n if(record.isTimepoint()){\n locationToLocationEventInfoMap.put(record.getLocation(), new LocationEventInfo(record,\"GOOD, ST\"));\n }\n if ((record.isRevenue() | ! record.isRevenue())& record.isTimepoint()){\n TimePoint timePoint = new TimePoint(\n previousTripRecord.getGtfsTripId(),\n record.getBoxId(),\n boxIdToTimepointMap.get(record.getBoxId()),\n record.getRawDistanceFromStartOfTrip());\n timePoints.add(timePoint);\n }\n }", "public void logEvent(Throwable throwable) {\n System.out.println(\"PC Log.listener - stack trace: \");\n throwable.printStackTrace();\n }", "public void logEvent(long timestamp, int componentTag, int eventTag, Parcelable data) {\n }", "synchronized public LogEvent getLogEvent () {\n LogEvent evt = (LogEvent) get (LOGEVT.toString());\n if (evt == null) {\n evt = new LogEvent ();\n evt.setNoArmor(true);\n put (LOGEVT.toString(), evt);\n }\n return evt;\n }", "public String getEventLocation() {\n\t\treturn eventLocation;\n\t}", "Date getEventFiredAt();", "public void logEvent(String message) {\n System.out.println(\"PC Log.listener: \"+message);\n\n }", "public void logSensorData () {\n\t}", "public static void addGpsLogDataPoint( Connection connection, OmsGeopaparazziProject3To4Converter.GpsPoint point,\n long gpslogId ) throws Exception {\n Date timestamp = TimeUtilities.INSTANCE.TIME_FORMATTER_LOCAL.parse(point.utctime);\n\n String insertSQL = \"INSERT INTO \" + TableDescriptions.TABLE_GPSLOG_DATA + \"(\" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_ID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \", \" + //\n TableDescriptions.GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName() + //\n \") VALUES\" + \"(?,?,?,?,?,?)\";\n try (PreparedStatement writeStatement = connection.prepareStatement(insertSQL)) {\n writeStatement.setLong(1, point.id);\n writeStatement.setLong(2, gpslogId);\n writeStatement.setDouble(3, point.lon);\n writeStatement.setDouble(4, point.lat);\n writeStatement.setDouble(5, point.altim);\n writeStatement.setLong(6, timestamp.getTime());\n\n writeStatement.executeUpdate();\n }\n }", "public void logEvent(final LogEvent event) {\n loggerConfig.log(event);\n }", "public void onTouchEvent(MotionEvent event) {\n\t\t// history\n\t\t// pointers\n\t\tmDurationLogger.start();\n\t\tevent.getPointerCount();\n\t\tevent.getAction();\n\t\tif (event.getHistorySize() > 0){\n\t\t\tLog.i(\"TouchLogger\",\n\t\t\t\t\t\" x:\" + event.getX() +\n\t\t\t\t\t\"Touch duration:\"\n\t\t\t\t\t+ (event.getEventTime() - event\n\t\t\t\t\t\t\t.getHistoricalEventTime(0)) + \" size:\"\n\t\t\t\t\t\t\t+ event.getHistorySize()\n\t\t\t\t\t\t\t+ \"action:\"\n\t\t\t\t\t\t\t+ event.getAction());\n\t\t\tfor (int h = 0 ; h < event.getHistorySize() ; h ++){\n\n\t\t\t\tfor (int i = 0 ; i < event.getPointerCount() ; i++){\n\n\t\t\t\t\tLog.i(\"TouchLogger\",\n\t\t\t\t\t\t\t\" h \" \n\t\t\t\t\t\t\t+ h\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ i\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ event.getHistoricalEventTime(h)\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ event.getHistoricalX(i,h)\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ event.getHistoricalY(i,h)\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ event.getHistoricalPressure(i,h)\n\t\t\t\t\t\t\t+ \" \"\n\t\t\t\t\t\t\t+ event.getHistoricalSize(i,h));\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0 ; i < event.getPointerCount() ; i++){\n\t\t\tLog.i(\"TouchLogger\",\n\t\t\t\t\t\" current \" \n\t\t\t\t\t+ getActionName(event.getAction() & MotionEvent.ACTION_MASK)\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ (event.getAction() & MotionEvent.ACTION_POINTER_ID_MASK)\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ event.getEventTime()\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ i\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ event.getX(i)\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ event.getY(i)\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ event.getPressure(i)\n\t\t\t\t\t+ \" \"\n\t\t\t\t\t+ event.getSize(i));\n\t\t}\n\n\t\tmDurationLogger.end();\n\t}", "private void dumpEvent(MotionEvent event) {\n String names[] = {\"DOWN\", \"UP\", \"MOVE\", \"CANCEL\", \"OUTSIDE\", \"POINTER_DOWN\", \"POINTER_UP\", \"7?\", \"8?\", \"9?\"};\n StringBuilder sb = new StringBuilder();\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n sb.append(\"event ACTION_\").append(names[actionCode]);\n\n if (actionCode == MotionEvent.ACTION_POINTER_DOWN || actionCode == MotionEvent.ACTION_POINTER_UP) {\n sb.append(\"(pid \").append(action >> MotionEvent.ACTION_POINTER_ID_SHIFT);\n sb.append(\")\");\n }\n\n sb.append(\"[\");\n for (int i = 0; i < event.getPointerCount(); i++) {\n sb.append(\"#\").append(i);\n sb.append(\"(pid \").append(event.getPointerId(i));\n sb.append(\")=\").append((int) event.getX(i));\n sb.append(\",\").append((int) event.getY(i));\n if (i + 1 < event.getPointerCount())\n sb.append(\";\");\n }\n\n sb.append(\"]\");\n Log.d(\"Touch Events ---------\", sb.toString());\n }", "public abstract void logTraceTime();", "private void dumpEvent(MotionEvent event) \n {\n String names[] = { \"DOWN\", \"UP\", \"MOVE\", \"CANCEL\", \"OUTSIDE\",\"POINTER_DOWN\", \"POINTER_UP\", \"7?\", \"8?\", \"9?\" };\n StringBuilder sb = new StringBuilder();\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n sb.append(\"event ACTION_\").append(names[actionCode]);\n\n if (actionCode == MotionEvent.ACTION_POINTER_DOWN || actionCode == MotionEvent.ACTION_POINTER_UP) \n {\n sb.append(\"(pid \").append(action >> MotionEvent.ACTION_POINTER_ID_SHIFT);\n sb.append(\")\");\n }\n\n sb.append(\"[\");\n for (int i = 0; i < event.getPointerCount(); i++) \n {\n sb.append(\"#\").append(i);\n sb.append(\"(pid \").append(event.getPointerId(i));\n sb.append(\")=\").append((int) event.getX(i));\n sb.append(\",\").append((int) event.getY(i));\n if (i + 1 < event.getPointerCount())\n sb.append(\";\");\n }\n\n sb.append(\"]\");\n Log.d(\"Touch Events ---------\", sb.toString());\n }", "com.google.speech.logs.timeline.InputEvent.Event getEvent();", "abstract protected void _log(TrackingActivity activity) throws Exception;", "private void dumpEvent(MotionEvent event) {\n String names[] = {\"DOWN\", \"UP\", \"MOVE\", \"CANCEL\", \"OUTSIDE\", \"POINTER_DOWN\", \"POINTER_UP\", \"7?\", \"8?\", \"9?\"};\n StringBuilder sb = new StringBuilder();\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n sb.append(\"event ACTION_\").append(names[actionCode]);\n\n if (actionCode == MotionEvent.ACTION_POINTER_DOWN || actionCode == MotionEvent.ACTION_POINTER_UP) {\n sb.append(\"(pid \").append(action >> MotionEvent.ACTION_POINTER_ID_SHIFT);\n sb.append(\")\");\n }\n\n sb.append(\"[\");\n for (int i = 0; i < event.getPointerCount(); i++) {\n sb.append(\"#\").append(i);\n sb.append(\"(pid \").append(event.getPointerId(i));\n sb.append(\")=\").append((int) event.getX(i));\n sb.append(\",\").append((int) event.getY(i));\n if (i + 1 < event.getPointerCount())\n sb.append(\";\");\n }\n\n\n\n }", "public void logBeforeAnnotation(JoinPoint joinPoint);", "public void startNewEvent() {\n // JCudaDriver.cuEventRecord(cUevent,stream);\n }", "public EventEntry getEventEntry();", "private static void dumpEvent(MotionEvent event)\n {\n String[] names = {\"DOWN\", \"UP\", \"MOVE\", \"CANCEL\", \"OUTSIDE\",\n \"POINTER_DOWN\", \"POINTER_UP\", \"7?\", \"8?\", \"9?\"};\n StringBuilder sb = new StringBuilder();\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n sb.append(\"event ACTION_\").append(names[actionCode]);\n if (actionCode == MotionEvent.ACTION_POINTER_DOWN\n || actionCode == MotionEvent.ACTION_POINTER_UP) {\n sb.append(\"(pid \").append(\n action >> MotionEvent.ACTION_POINTER_ID_SHIFT);\n sb.append(\")\");\n }\n sb.append(\"[\");\n for (int i = 0; i < event.getPointerCount(); i++) {\n sb.append(\"#\").append(i);\n sb.append(\"(pid \").append(event.getPointerId(i));\n sb.append(\")=\").append((int) event.getX(i));\n sb.append(\",\").append((int) event.getY(i));\n if (i + 1 < event.getPointerCount())\n sb.append(\";\");\n }\n sb.append(\"]\");\n LogHelper.d(TAG, sb.toString());\n }", "@Override\r\n protected void append(LoggingEvent event)\r\n {\n String category = event.getLoggerName();\r\n String logMessage = event.getRenderedMessage();\r\n String nestedDiagnosticContext = event.getNDC();\r\n String threadDescription = event.getThreadName();\r\n String level = event.getLevel().toString();\r\n long time = event.timeStamp;\r\n LocationInfo locationInfo = event.getLocationInformation();\r\n\r\n // Add the logging event information to a LogRecord\r\n Log4JLogRecord record = new Log4JLogRecord();\r\n\r\n record.setCategory(category);\r\n record.setMessage(logMessage);\r\n record.setLocation(locationInfo.fullInfo);\r\n record.setMillis(time);\r\n record.setThreadDescription(threadDescription);\r\n\r\n if (nestedDiagnosticContext != null) {\r\n record.setNDC(nestedDiagnosticContext);\r\n } else {\r\n record.setNDC(\"\");\r\n }\r\n\r\n if (event.getThrowableInformation() != null) {\r\n record.setThrownStackTrace(event.getThrowableInformation());\r\n }\r\n\r\n try {\r\n record.setLevel(LogLevel.valueOf(level));\r\n } catch (LogLevelFormatException e) {\r\n // If the priority level doesn't match one of the predefined\r\n // log levels, then set the level to warning.\r\n record.setLevel(LogLevel.WARN);\r\n }\r\n MgcLogBrokerMonitor monitor = Lf5MainWindowController.getMonitor();\r\n if (monitor != null) {\r\n monitor.addMessage(record);\r\n }\r\n }", "public static void logEvent(String eventType) {\n logEvent(eventType, null);\n }", "public String getEventLocation() {\n\t\treturn location;\n\t}", "Point userClickPoint();", "String getEventId();", "public String getEventId();", "protected void printEvent(Event event) {\n System.out.println(\"\\t\" + event.getName());\n System.out.println(\"\\t\" + event.getDate().getDate());\n System.out.println(\"\\t\" + event.getTime().get12HTime());\n\n if (event.getDuration() != 0) {\n System.out.println(\"\\tFor \" + event.getDuration() + \" minutes\");\n }\n }", "public abstract LogPointer getPointer() throws IOException;", "public abstract LogPointer getPointer() throws IOException;", "@Override\r\n\tpublic Location getEventLocation() {\n\t\treturn null;\r\n\t}", "@Override\r\n\tpublic Location getEventLocation() {\n\t\treturn null;\r\n\t}", "private String makeEventStamp() {\n String name = \"DTSTAMP\";\n return formatTimeProperty(LocalDateTime.now(), name) + \"\\n\";\n }", "@Override\n protected void append(LoggingEvent event) {\n if (event.getMessage() instanceof WrsAccessLogEvent) {\n WrsAccessLogEvent wrsLogEvent = (WrsAccessLogEvent) event.getMessage();\n\n try {\n HttpServletRequest request = wrsLogEvent.getRequest();\n if (request != null) {\n String pageHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_PAGEHASH));\n String requestHash = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_BCD_REQUESTHASH));\n String sessionId = ((String)MDC.get(RequestLifeCycleFilter.MDC_KEY_SESSION_ID));\n String requestUrl = request.getRequestURL().toString();\n String reqQuery = request.getQueryString();\n requestUrl += (reqQuery != null ? \"?\" + reqQuery : \"\");\n if (requestUrl.length()> 2000)\n requestUrl = requestUrl.substring(0, 2000);\n String bindingSetName = wrsLogEvent.getBindingSetName();\n if (bindingSetName != null && bindingSetName.length()> 255)\n bindingSetName = bindingSetName.substring(0, 255);\n String requestXML = wrsLogEvent.getRequestDoc()!=null ? Utils.serializeElement(wrsLogEvent.getRequestDoc()) : null;\n\n // log access\n if(AccessSqlLogger.getInstance().isEnabled()) {\n final AccessSqlLogger.LogRecord recordAccess = new AccessSqlLogger.LogRecord(\n sessionId\n , requestUrl\n , pageHash\n , requestHash\n , bindingSetName\n , requestXML\n , wrsLogEvent.getRowCount()\n , wrsLogEvent.getValueCount()\n , wrsLogEvent.getRsStartTime()\n , wrsLogEvent.getRsEndTime()\n , wrsLogEvent.getWriteDuration()\n , wrsLogEvent.getExecuteDuration()\n );\n AccessSqlLogger.getInstance().process(recordAccess);\n }\n }\n }\n catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "private void dumpEvent(MotionEvent event) {\n\t\tString names[] = { \"DOWN\", \"UP\", \"MOVE\", \"CANCEL\", \"OUTSIDE\", \"POINTER_DOWN\", \"POINTER_UP\",\n\t\t\t\t\"7?\", \"8?\", \"9?\" };\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint action = event.getAction();\n\t\tint actionCode = action & MotionEvent.ACTION_MASK;\n\t\tsb.append(\"event ACTION_\").append(names[actionCode]);\n\t\tif (actionCode == MotionEvent.ACTION_POINTER_DOWN\n\t\t\t\t|| actionCode == MotionEvent.ACTION_POINTER_UP) {\n\t\t\tsb.append(\"(pid \").append(action >> MotionEvent.ACTION_POINTER_INDEX_SHIFT);\n\t\t\tsb.append(\")\");\n\t\t}\n\t\tsb.append(\"[\");\n\t\tfor (int i = 0; i < event.getPointerCount(); i++) {\n\t\t\tsb.append(\"#\").append(i);\n\t\t\tsb.append(\"(pid \").append(event.getPointerId(i));\n\t\t\tsb.append(\")=\").append((int) event.getX(i));\n\t\t\tsb.append(\",\").append((int) event.getY(i));\n\t\t\tif (i + 1 < event.getPointerCount())\n\t\t\t\tsb.append(\";\");\n\t\t}\n\t\tsb.append(\"]\");\n\t\tLog.d(TAG_DUMP, sb.toString());\n\t}", "public static void collectDataForLog( Connection connection, GpsLog log ) throws SQLException {\n long logId = log.id;\n\n String query = \"select \"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LAT.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_LON.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_ALTIM.getFieldName() + \",\"\n + //\n GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName()\n + //\n \" from \" + TABLE_GPSLOG_DATA + \" where \"\n + //\n GpsLogsDataTableFields.COLUMN_LOGID.getFieldName() + \" = \" + logId + \" order by \"\n + GpsLogsDataTableFields.COLUMN_DATA_TS.getFieldName();\n\n try (Statement newStatement = connection.createStatement()) {\n newStatement.setQueryTimeout(30);\n ResultSet result = newStatement.executeQuery(query);\n\n while( result.next() ) {\n double lat = result.getDouble(1);\n double lon = result.getDouble(2);\n double altim = result.getDouble(3);\n long ts = result.getLong(4);\n\n GpsPoint gPoint = new GpsPoint();\n gPoint.lon = lon;\n gPoint.lat = lat;\n gPoint.altim = altim;\n gPoint.utctime = ts;\n log.points.add(gPoint);\n }\n }\n }", "public void getEventDetails() {\r\n\t\t// Query DB to get specific event information based on EventID.\r\n\t}", "static void doLogpileCall(final LoggingEvent loggingEvent, final ErrorHandler errorHandler) {\n final JavaUtilLogData logData = JavaUtilLogData.getInstance();\n\n try {\n final Engine engine = logData.getEngine();\n final Event event = new Event();\n event.setServerId(logData.getServerId());\n event.setApplication(logData.getApplication());\n event.setDate(new Date(loggingEvent.timeStamp));\n if (loggingEvent.getMessage() != null) {\n event.setMessage(String.valueOf(loggingEvent.getMessage()));\n }\n event.setComponent(loggingEvent.getLoggerName());\n event.setStacktrace(formatStackTrace(loggingEvent\n .getThrowableStrRep()));\n\n engine.post(event);\n } catch (Exception e) {\n\n errorHandler.error(\"error in logpile\", e,\n ErrorCode.GENERIC_FAILURE);\n }\n }", "@UITopiaVariant(affiliation = \"RWTH Aachen\", author = \"Kefang\", email = \"***@gmail.com\", uiLabel = UITopiaVariant.USEVARIANT)\n\t@PluginVariant(variantLabel = \"Sample Event Log\", requiredParameterLabels = { 0 })\n\tpublic XLog sampleLog(PluginContext context, XLog log) {\n\t\tint num = 50;\n\t\treturn EventLogUtilities.sampleLog(log, num)[0];\n\t}", "@Override\n public void onEvent(String eventName, HashMap dataFromHansel) {\n if (\"hansel_nudge_event\".equals(eventName)) {\n FirebaseAnalyticsHelper.logEvent(this, \"hansel_nudge_event\", dataFromHansel);\n }\n }", "@Override\n\tpublic void drawPoint(MouseEvent e, int state) {\n\n\t}", "@Subscribe\n private void handleJumpToDateTimeEvent(JumpToDateTimeEvent event) {\n logger.info(LogsCenter.getEventHandlingLogMessage(event));\n setDisplayedDateTime(event.targetLocalDateTime);\n }", "public static LogType EVENT()\n {\n if (g_oEvent == null)\n {\n try\n {\n g_oEvent = new LogType(\"EVENT\", 30);\n }\n catch (Goliath.Exceptions.InvalidParameterException ex)\n {}\n }\n return g_oEvent;\n }", "public PointEventNode(String id) {\n\t\tsuper(id);\n\t}", "int insert(TemperatureMeasureHitchEvent record);", "public void pointToMouse() {\n pointToXY(p.mouseX,p.mouseY);\n }", "public String getEpicsRecordNameGetPoint() {\n\t\treturn epicsRecordNameGetPoint;\n\t}", "Builder addRecordedAt(Event value);", "protected void logEventCreation(final GossipEvent event) {\n logger.debug(CREATE_EVENT.getMarker(), \"Creating {}\", event::toString);\n }", "private void doPoint()\n\t{\n\t\tubisenseData = new UbisenseMockupData();\n\n\t\telapsedTime = 0;\n\t\t\n\t\tubisenseData.setTagID(Helper.DEFAULT_TAG_ID);\n\t\tubisenseData.setUnit(Helper.UBISENSE_UNIT);\n\t\tubisenseData.setOntology(Helper.LP_ONTOLOGY_URL);\n\t\tubisenseData.setVersion(Helper.UBISENSE_VERSION);\n\t\tubisenseData.setId(\"\");\n\t\tubisenseData.setSendTime(sendTime);\n\t\tubisenseData.setPosition(new Point3D(\tx1/100,\n\t\t\t\t\t\t\t\t\t\t\t\ty1/100,\n\t\t\t\t\t\t\t\t\t\t\t\t1.6));\n\t\tlong millis = startDate.getMillis();\n\t\tmillis += offset.toStandardDuration().getMillis();\n//\t\tmillis += parentOffset.toStandardDuration().getMillis();\n\n\t\twhile (elapsedTime < toolDuration && !this.terminate)\n\t\t{\n\t\t\tubisenseData.setId(String.valueOf(Helper.getRandomInt()));\n\t\t\tubisenseData.setTime(millis + (long)(elapsedTime*SLEEP_INTERVAL));\n\t\t\tEntryEvent event = new EntryEvent(this);\n\t\t\tthis.notifyListeners(event);\n\t\t\telapsedTime++;\n\t\t\ttry\n\t\t\t{\n\t\t\t\tif (speed > 0)\n\t\t\t\t\tThread.sleep(SLEEP_INTERVAL/speed);\n\t\t\t}\n\t\t\tcatch (InterruptedException e)\n\t\t\t{\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t}", "public void logAfter(JoinPoint joinPoint);", "Event getEvent();", "long getFirstLogIndex();", "public void mousePressed(MouseEvent event)\n\t\t{\n\t\t\ttempPoint1 = event.getPoint();\n\t\t}", "public abstract void logLap(int currentLap);", "@SuppressWarnings(\"deprecation\")\n @TargetApi(Build.VERSION_CODES.ECLAIR)\n @SuppressLint(\"NewApi\")\n private void dumpEvent(MotionEvent event) {\n String names[] = {\"DOWN\", \"UP\", \"MOVE\", \"CANCEL\", \"OUTSIDE\",\n \"POINTER_DOWN\", \"POINTER_UP\", \"7?\", \"8?\", \"9?\"};\n StringBuilder sb = new StringBuilder();\n int action = event.getAction();\n int actionCode = action & MotionEvent.ACTION_MASK;\n sb.append(\"event ACTION_\").append(names[actionCode]);\n if (actionCode == MotionEvent.ACTION_POINTER_DOWN\n || actionCode == MotionEvent.ACTION_POINTER_UP) {\n sb.append(\"(pid \").append(\n action >> MotionEvent.ACTION_POINTER_ID_SHIFT);\n sb.append(\")\");\n }\n sb.append(\"[\");\n for (int i = 0; i < event.getPointerCount(); i++) {\n sb.append(\"#\").append(i);\n sb.append(\"(pid \").append(event.getPointerId(i));\n sb.append(\")=\").append((int) event.getX(i));\n sb.append(\",\").append((int) event.getY(i));\n if (i + 1 < event.getPointerCount())\n sb.append(\";\");\n }\n sb.append(\"]\");\n }", "private String makeEventLocation(String location) {\n return \"LOCATION:\" + location + \"\\n\";\n }", "private void computeScreenLocation(MouseEvent mouseEvent)\r\n\t{\r\n\t\t\r\n\t\tscreenLocation.setLocation(mouseEvent.getX(), mouseEvent.getY());\r\n\t\tSwingUtilities.convertPointToScreen(screenLocation, (Component)mouseEvent.getSource());\r\n\t\r\n\t}", "public void PushEventStatisticsFromDB() {\n\t\tmyDBUtil.open();\n\t\tCursor mCursor = myDBUtil.queryMarkIsZero();\n\t\tmCursor.moveToFirst();\n\t\tdo {\n\t\t\tfinal EventStatisticsData eventStatisticsData = new EventStatisticsData();\n\t\t\tString[] colums = new String[]{\n\t\t\t\t\t\"behavior\", \"appId\", \"appSrc\", \"packageName\", \"client\", \"listenArea\",\n\t\t\t\t\t\"listenContextId\", \"listenContextSrc\", \"clientVersion\", \"referenceId\",\n\t\t\t\t\t\"appName\", \"appVersion\"};\n\t\t\tint index;\n\t\t\tString value;\n\t\t\tfor (int i = 0; i < colums.length; i++) {\n\t\t\t\tindex = mCursor.getColumnIndex(colums[i]);\n\t\t\t\tvalue = mCursor.getString(index);\n\t\t\t\teventStatisticsData.SetParamFromApp(i, value);\n\t\t\t}\n\t\t\tindex = mCursor.getColumnIndex(\"_id\");\n\t\t\tfinal int id = mCursor.getInt(index);\n\t\t\tGetIPFromServer(new GetIpCallback() {\n\t\t\t\t@Override\n\t\t\t\tpublic void solve(String result) {\n\t\t\t\t\tif (result != null && eventStatisticsData != null) {\n\t\t\t\t\t\tpushStatisticsEvent(eventStatisticsData, false, id);\n\t\t\t\t\t\tLog.d(TAG, \"im here don't insert to db,just update\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t});\n\n\t\t} while (mCursor.moveToNext());\n\t\tmCursor.close();\n\t\tmyDBUtil.close();\n\t}", "@FXML\r\n private void displayPostion(MouseEvent event) {\r\n status.setText(\"X = \" + event.getX() + \". Y = \" + event.getY() + \".\");\r\n }", "@Override\n\t\t\t\tpublic void onMapClick(LatLng point) {\n\t\t\t\t\tLog.d(\"数据测试\", \"\");\n\t\t\t\t\t\n\t\t\t\t}", "public void logData(){\n }", "public void getCoord(MouseEvent me){\n if(mapImage.getImage()!=null) {\n double xPos = me.getX();\n double yPos = me.getY();\n Main.ps.setTitle(xPos + \" \" + yPos);\n }\n }", "public void logLocation(View view) {\n writeGPSDataToDB(locationHandler.getLatitude(), locationHandler.getLongitude(), locationHandler.getAltitude());\n databaseHandler.setValueInExpInfo(((TextView) findViewById(R.id.accelerate_indicator_rec)).getText().toString(), \"receiver_orientation\", experimentNumber);\n accelerometerHandler.close();\n Toast.makeText(this, \"receivers GPS data logged\", Toast.LENGTH_SHORT).show();\n gpsLogged = true;\n }", "public File logDataFetch(ProceedingJoinPoint joinPoint) throws Throwable {\r\n\t\t\r\n\t\tStringBuilder logBuilder = new StringBuilder(\"FETCH EVENT:\\n\\tCLASS: \");\r\n\t\tlogBuilder.append(joinPoint.getTarget().getClass().getSimpleName());\r\n\t\tlogBuilder.append(\"\\n\\tSOURCE: \").append(joinPoint.getArgs()[0]);\r\n\t\t\r\n\t\tFile fetchedFile = (File) joinPoint.proceed();\r\n\t\tlogBuilder.append(\"\\n\\tFETCHED: File(\").append(fetchedFile.getPath()).append(\")\");\r\n\t\tlogger.logDebug(logBuilder.toString());\r\n\t\t\r\n\t\treturn fetchedFile;\r\n\t\t\r\n\t}", "private void viewEvents() {\n ReferenceFrame frame = selectFrame(\"What frame would you like to view the events from?\");\n List<Event> transformedEvents = new ArrayList<>();\n for (Event event: world.getEvents()) {\n transformedEvents.add(event.lorentzTransform(frame));\n }\n for (Event event: transformedEvents) {\n System.out.println(event.getName() + \" occurs at t = \" + event.getTime() + \" and x = \" + event.getX());\n }\n }", "private static void logEvent(Object ev, boolean uiEvent) {\n String bus;\n if (uiEvent) {\n bus = \"UI_BUS\";\n } else {\n bus = \"BUS\";\n }\n if (verbose) {\n Log.i(LOG_TAG, \"posting \" + ev.getClass().getSimpleName() + \" of type \" + ev.getClass().getAnnotation(Event.class).type() + \" on \" + bus);\n }\n }", "public void writeEvent(LogEvent logEvent) throws Exception {\n appendObjectToLog(logEvent);\n }", "Point position(String installationId, List<String> scannersAddr, List<BeaconEvent> events);", "public static void recordAuditEventStart(UUID eventId) {\n\n if (eventId == null) {\n return;\n }\n\n if (eventTracker == null) {\n eventTracker = new EventTrackInfo();\n }\n\n recordAuditEventStart(eventId.toString());\n\n }", "@Override\n\tpublic WFMS_Position_Audit getWFMS_Position_Audit(String paId)\n\t\tthrows PortalException {\n\t\treturn wfms_Position_AuditPersistence.findByPrimaryKey(paId);\n\t}", "@Before(\"AccessLogingpc()\")\n public void beforeAdvice_AccessLogingpc(JoinPoint joinPoint) {\n System.out.println(\"**************Start Method***************\");\n System.out.println(joinPoint.getSignature());\n System.out.println(Arrays.toString(joinPoint.getArgs()));\n }", "@Override\n public void ProcessEvent(XMSEvent evt){\n FunctionLogger logger=new FunctionLogger(\"ProcessEvent\",this,myLogger);\n logger.args(evt);\n if(evt.getCall() == myInboundCall){\n ProcessInboundEvent(evt);\n } else if(evt.getCall() == myOutboundCall){\n ProcessOutboundEvent(evt);\n } else{\n logger.error(\"Event Received for an unknown Call. Ignoring\");\n }\n \n }", "public void mouseDragged(MouseEvent e) \n {\n recordLabel(e.getPoint()); \n }", "public void checkPoint (String detail) {\n getProfiler().checkPoint (detail);\n }", "private void retrieveRemoteEventData(){\n\n //This returns a JSON object with a {\"eventIndex\": int, \"event\": int} pattern.\n String data = getJSON(hostUrl + \"retrieve_remote_event.php?matchId=\" + matchId\n + \"&player=\" + oppositePlayer, 2000);\n\n // Parse the JSON information into an EventIndexPair object.\n Event e = new Gson().fromJson(data, Event.class);\n\n // Set event and eventIndex variables retrieved from JSON to the remoteActiveEvent and\n // remoteEventIndex global variables.\n // These variables will be used to process events locally on the next frame.\n if (e != null){\n if (e.getIndex() > remoteEventIndex){\n\n remoteActiveEvent = e;\n remoteEventIndex = e.getIndex();\n\n }\n }\n\n }", "public void setEpicsRecordNameGetPoint(String epicsRecordNameGetPoint) {\n\t\tthis.epicsRecordNameGetPoint = epicsRecordNameGetPoint;\n\t}", "@Around(\"loggingPointcut()\")\n public Object logAroundEndpoint(ProceedingJoinPoint joinPoint) throws Throwable {\n if (log.isDebugEnabled()) {\n initTime = System.currentTimeMillis();\n String parametros = concatenateArgs(joinPoint);\n log.debug(\"Inicio: {}.{}({}) with argument[s] = {}\", joinPoint.getSignature().getDeclaringTypeName(),\n joinPoint.getSignature().getName(), concatenateSignatureArgs(joinPoint.getArgs()), parametros);\n }\n try {\n String resultado;\n Object result = joinPoint.proceed();\n try {\n resultado = Util.formatAsJson(result);\n } catch (JsonMappingException ex) {//It's only caught for FileSystemResource files\n log.debug(\"Exception: \" + ex.getMessage());\n resultado = String.valueOf(joinPoint.proceed());\n }\n\n if (log.isDebugEnabled()) {\n log.debug(\"Fin: {}.{}({}) with result = {} \\n and total time: {} ms\", joinPoint.getSignature().getDeclaringTypeName(),\n joinPoint.getSignature().getName(), concatenateSignatureArgs(joinPoint.getArgs()), resultado, (System.currentTimeMillis() - initTime));\n }\n return result;\n } catch (IllegalArgumentException e) {\n log.error(\"Illegal argument: {} in {}.{}()\", Arrays.toString(joinPoint.getArgs()),\n joinPoint.getSignature().getDeclaringTypeName(), joinPoint.getSignature().getName());\n throw new HandlerException(e.getLocalizedMessage());\n } catch (HandlerException ex) {\n throw new HandlerException(ex.getMessage(), ex);\n } catch (Throwable thw) {\n throw new HandlerException(UNSUCESSFUL, thw);\n }\n }", "@Override\r\n\tpublic String toString() {\r\n\t\treturn this.event;\r\n\t}", "public static void logEvent(String eventType, JSONObject eventProperties) {\n /*if(ZeTarget.robolectricTesting) {\n System.out.println(\"ZETARGET: logEvent - \" + eventType);\n }*/\n checkedLogEvent(eventType, eventProperties, null, System.currentTimeMillis(), true);\n }", "public static void recordAuditEventStart(String eventId) {\n\n MDC.put(STATUS_CODE, COMPLETE_STATUS);\n postMdcInfoForEvent(eventId);\n\n if (eventTracker == null) {\n eventTracker = new EventTrackInfo();\n }\n var event = new EventData();\n event.setRequestId(eventId);\n event.setStartTime(Instant.now());\n eventTracker.storeEventData(event);\n MDC.put(MDC_KEY_REQUEST_ID, eventId);\n debugLogger.info(\"CONCURRENTHASHMAP_LIMIT : {}\", concurrentHashMapLimit);\n // --- Tracking the size of the concurrentHashMap, if it is above limit, keep EventTrack\n // Timer running\n int size = eventTracker.getEventInfo().size();\n\n debugLogger.info(\"EventInfo concurrentHashMap Size : {} on {}\", size, new Date());\n debugLogger.info(\"isEventTrackerRunning : {}\", isEventTrackerRunning);\n\n if (size >= concurrentHashMapLimit) {\n\n\n if (!isEventTrackerRunning) {\n\n startCleanUp();\n isEventTrackerRunning = true;\n }\n\n } else if (size <= stopCheckPoint && isEventTrackerRunning) {\n\n stopCleanUp();\n }\n }", "public void record(Event evt) {\n record0(evt);\n }", "@Override\n\t\tpublic void mouseMoved(MouseEvent e) {\n\t\t\tint x = e.getX();\n\t\t\tint y = e.getY();\n\t\t\t//System.out.println(\"X: \" + x + \" Y: \" +y);\n\n\t\t}", "private void populateSensorData(String name, long timeStamp, float x, float y, float z) {\n //Log.d(CLASS_NAME,sensorData.toString());\n\n //Appending the key and Co-ordinates\n logValues.append(name).append(\";\").append(timeStamp).append(\";\").append(pressedKey).append(\";\")\n .append(coordinateX).append(\";\").append(coordinateY).append(\";\").append(x).append(\";\")\n .append(y).append(\";\").append(z).append(\"\\r\\n\");\n\n }", "void log(String source, String line);", "@Before(\"pointcut()\") //pointcut names must match\n public void log(){\n logger.info(\"-------LOG INFO first------\");\n }", "public EventHandle createReportLocationEvent(){\n reportLocationEventName = name+\"_reportLocactionEvnt\";\n reportLocation = ECAAgent.getDefaultECAAgent().createPrimitiveEvent(\n reportLocationEventName, // Event name\n \"MAKEFITS.Track\", // class Name\n EventModifier.END, // Event Modifier\n \"void setLatitudeLongitude(Latitude,Longitude)\", // Method signature\n this); // Instance (track1, track2,...,or trackN)\n return (PrimitiveEventHandle) reportLocation;\n }", "public synchronized void event(String s){\n\t\tif(printStdOut){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\tif(eventLogPath != null){\n\t\t\teventLogWriter.println(s);\n\t\t}\n\t}" ]
[ "0.62763107", "0.62674445", "0.60188925", "0.58243775", "0.57354754", "0.57325184", "0.57274234", "0.5694549", "0.5547943", "0.5519876", "0.55025584", "0.54324806", "0.54156846", "0.53803563", "0.53707457", "0.5369346", "0.5365281", "0.5348663", "0.53365374", "0.531517", "0.5283056", "0.5281596", "0.52745", "0.5271712", "0.5263417", "0.5261311", "0.52513945", "0.52458876", "0.5224009", "0.52105653", "0.5208694", "0.51806474", "0.51762694", "0.51699144", "0.5164288", "0.5159111", "0.51498556", "0.51370466", "0.5131808", "0.51277643", "0.5117719", "0.5117719", "0.5104985", "0.5104985", "0.5103033", "0.50890404", "0.50525206", "0.50393754", "0.503755", "0.503733", "0.5035096", "0.5032254", "0.5014966", "0.50119853", "0.50034046", "0.4992103", "0.49896088", "0.49880016", "0.498122", "0.4981096", "0.49670258", "0.4956229", "0.49502683", "0.49495935", "0.4946165", "0.4941772", "0.4927654", "0.4926109", "0.49256486", "0.4918048", "0.49095932", "0.49037445", "0.48977822", "0.48954982", "0.48829973", "0.48828754", "0.48765656", "0.48752913", "0.48716816", "0.48557764", "0.4851449", "0.4848743", "0.48474127", "0.48432705", "0.48392588", "0.48391023", "0.48235577", "0.48200867", "0.481968", "0.48168704", "0.4814592", "0.48137483", "0.4809149", "0.4807669", "0.48028266", "0.48020682", "0.4800288", "0.4800245", "0.4799021", "0.4794742" ]
0.5425349
12
Subtract point of customer to database.
public static int subtractPoint(String cardNumber,int taskid, int point, String mid,String tid,String poscc,Connection con) { LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.subtractPoint(cardNumber, taskid, point, mid,tid,poscc,con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void deductPoint (String user, double point) throws IOException { \r\n this.point = this.point - point; \r\n Owner o = new Owner(user, password);\r\n String lineSplit[];\r\n out = new FileReader(\"Customer.txt\");\r\n BufferedReader read = new BufferedReader(out);\r\n \r\n String line;\r\n String data = \"\";\r\n \r\n while((line = read.readLine()) != null){\r\n lineSplit = null;\r\n lineSplit = line.split(\",\");\r\n userName = lineSplit[0];\r\n password = lineSplit[1];\r\n status = o.changeStatus(this.point);\r\n \r\n if(user.equals(userName)){\r\n data+=userName+\",\"+password+\",\"+status+\",\"+this.point+\"\\r\\n\";\r\n System.out.println(data);\r\n }\r\n else{\r\n data+=line+\"\\r\\n\";\r\n }\r\n }\r\n read.close();\r\n in = new FileWriter(\"Customer.txt\");\r\n in.write(data);\r\n in.close();\r\n }", "@Override\r\n\tpublic void minusFromCost() {\n\t\t\r\n\t}", "public Vector minus(Point point){\n\t\tdouble xSubtracted = this.getX()-point.getX();\n\t\tdouble ySubtracted = this.getY()-point.getY();\n\t\treturn new Vector (xSubtracted, ySubtracted);\n\t}", "Point subtract(Point otherPoint) {\n\t\treturn(new Point(x-otherPoint.x,y-otherPoint.y));\n\t}", "@Override\r\n\tpublic void removeCustomer() {\n\t\t\r\n\t}", "public void customerLeaves(Customer cust);", "void removeCustomer(Customer customer);", "public void subtract() {\n\t\t\n\t}", "public void subtract(Point3 p) {\r\n\t\tset(this.x - p.x, this.y - p.y, this.z - p.z);\r\n\t}", "@Override\n public double viewDebit(Item item, Customer customer) {\n return itemRepo.getDebit(item,customer);\n }", "public static void extract_money(){\n TOTALCMONEY = TOTALCMONEY - BALANCERETRIEVE; //the total cashier money equals the total cashier money minus the retrieve request\r\n BALANCE = BALANCE - BALANCERETRIEVE; //the user balance equals the account minus the retrieve request\r\n }", "BrainTreeCustomerResult removeCustomer(BrainTreeCustomerRequest request);", "public Vector subtract(Point3D p){\n// return new Vector(\n// p.x.coord- x.coord,\n// p.y.coord- y.coord,\n// p.z.coord- z.coord);\n return new Vector(\n x.coord- p.x.coord,\n y.coord- p.y.coord,\n z.coord- p.z.coord);\n }", "public Point subtract(Point b)\n {\n return new Point(this.x - b.x, this.y - b.y);\n }", "public Point3 getPointMinus(int pointNr);", "public Coordinate subtract(Coordinate other) {\n return new Coordinate(usubtract(_coord, other._coord));\n }", "public void purchase(Unit unit) {\n purchasePoints = purchasePoints - unit.cost();\n }", "public void recordPurchase(double amount)\n {\n balance = balance - amount;\n // your code here\n \n }", "@Override\n public BigDecimal getTotalUnallocatedCredit(String customerId, Date atDate, EMCUserData userData) {\n BigDecimal outstandingCredit = null;\n\n //Get total outstanding credits for customer, which existed at atDate\n EMCQuery query = new EMCQuery(enumQueryTypes.SELECT, DebtorsOpenTransactions.class);\n query.addFieldAggregateFunction(\"credit\", \"SUM\");\n query.addFieldAggregateFunction(\"creditAmountSettled\", \"SUM\");\n\n //Customer is optional.\n if (customerId != null) {\n query.addAnd(\"customerId\", customerId);\n }\n\n //Bev requested that we remove this check. This will now show all unallocated credits,\n //regardless of whether or not they existed at atDate.\n //query.addAnd(\"createdDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n //Check that future payments are not included.\n query.addAnd(\"transactionDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n\n Object[] creditTotals = (Object[]) util.executeSingleResultQuery(query, userData);\n\n if (creditTotals != null) {\n BigDecimal totalCredit = creditTotals[0] == null ? BigDecimal.ZERO : (BigDecimal) creditTotals[0];\n BigDecimal totalCreditSettled = creditTotals[1] == null ? BigDecimal.ZERO : (BigDecimal) creditTotals[1];\n\n outstandingCredit = totalCredit.subtract(totalCreditSettled);\n }\n\n //If atDate less than today, ignore updates made to transactions between atDate and today.\n //Only check dates, not time\n Calendar atCalendar = Calendar.getInstance();\n atCalendar.setTime(atDate);\n atCalendar.set(Calendar.HOUR, 0);\n atCalendar.set(Calendar.MINUTE, 0);\n atCalendar.set(Calendar.SECOND, 0);\n atCalendar.set(Calendar.MILLISECOND, 0);\n\n Calendar nowCalendar = Calendar.getInstance();\n nowCalendar.setTime(Functions.nowDate());\n nowCalendar.set(Calendar.HOUR, 0);\n nowCalendar.set(Calendar.MINUTE, 0);\n nowCalendar.set(Calendar.SECOND, 0);\n nowCalendar.set(Calendar.MILLISECOND, 0);\n\n if (atCalendar.compareTo(nowCalendar) < 0) {\n EMCQuery creditQuery = new EMCQuery(enumQueryTypes.SELECT, DebtorsTransactionSettlementHistory.class);\n creditQuery.addFieldAggregateFunction(\"creditSettled\", \"SUM\");\n //Only include transactions that existed on atDate. Bev requested that we remove this check.\n //creditQuery.addAnd(\"transactionCreatedDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n\n //Only include transactions that fall on or before atDate.\n creditQuery.addAnd(\"creditTransactionDate\", atDate, EMCQueryConditions.LESS_THAN_EQ);\n\n //Customer Id is optional.\n if (customerId != null) {\n creditQuery.addAnd(\"customerId\", customerId);\n }\n\n //Only include transactions settled after atDate\n creditQuery.addAnd(\"createdDate\", atDate, EMCQueryConditions.GREATER_THAN);\n\n BigDecimal creditSettled = (BigDecimal) util.executeSingleResultQuery(creditQuery, userData);\n if (creditSettled == null) {\n creditSettled = BigDecimal.ZERO;\n }\n\n outstandingCredit = outstandingCredit.add(creditSettled);\n }\n\n return outstandingCredit;\n }", "@Override\n\tpublic double subtract(double in1, double in2) {\n\t\treturn 0;\n\t}", "@Override\n\tpublic void removeCustomer(Customer customer) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\t\n\t\tCustomer custCheck = getCustomer(customer.getId());\n\t\tif(custCheck.getCustName() == null)\n\t\t\tthrow new Exception(\"No Such customer Exists.\");\n\t\t\n\t\tif(custCheck.getCustName().equalsIgnoreCase(customer.getCustName()) && customer.getId() == custCheck.getId()) {\n\t\t\ttry {\n\t\t\t\t\tStatement st = con.createStatement();\n\t\t\t\t\tString remove = String.format(\"delete from customer where id in('%d')\", \n\t\t\t\t\t\tcustomer.getId());\n\t\t\t\t\tst.executeUpdate(remove);\n\t\t\t\t\tSystem.out.println(\"Customer removed successfully\");\n\t\t\t} catch (SQLException e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB\");\n\t\t\t}finally {\n\t\t\t\ttry {\n\t\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tSystem.out.println(e.getMessage());\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Coordinates minus(final Coordinates coor) {\n\t\tx -= coor.getX();\n\t\ty -= coor.getY();\n\t\treturn this;\n\t}", "public static int transferPoints(String from, String to, int addPoints){\n\t\tint deductPoints = 0 - addPoints;\n\t\t\n\t\tMongoCollection<Document> collection = getDatabase().getCollection(\"LoginInformation\");\n\n\t\tDocument cursorName = collection.find(eq(\"username\", from)).first();\n\t\tif(cursorName == null){\n\t\t\treturn -1;\n\t\t}\n\t\t\n\t\ttry {\n\t\t\tDouble fromCurPoints = collection.find(eq(\"username\", from)).first().getDouble(\"points\");\n\t\t\tif(fromCurPoints < addPoints){\n System.out.println(\"fromCurPoints:\" + fromCurPoints + \" and addPoints is: \" + addPoints);\n\t\t\t\treturn -1;\n\t\t\t}\n\n\t\t\tDouble toCurPoints = collection.find(eq(\"username\", to)).first().getDouble(\"points\");\n\t\t\t\n\t\t\ttry {\n\t\t\t\tcollection.updateOne(eq(\"username\", from), new Document(\"$inc\", new Document(\"points\", deductPoints)));\n\t\t\t\tcollection.updateOne(eq(\"username\", to), new Document(\"$inc\", new Document(\"points\", addPoints)));\n\t\t\t\treturn (int)(fromCurPoints - addPoints);\n\t\t\t} catch(Exception ex){\n\t\t\t\tcollection.updateOne(eq(\"username\", from), new Document(\"$set\", new Document(\"points\", fromCurPoints)));\n\t\t\t\tcollection.updateOne(eq(\"username\", to), new Document(\"$set\", new Document(\"points\", toCurPoints)));\n\n\t\t\t\treturn -1;\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\treturn -1;\n\t\t}\n\n\t}", "public Vector subtract(Vector other){\n\t\treturn new Vector(x-other.x, y-other.y, z-other.z);\n\t}", "public void setCustomerPurchase(double purchase) { this.customerPurchase = purchase; }", "public void removeCustomer(){\n String message = \"Choose one of the Customer to remove it\";\n if (printData.checkAndPrintCustomer(message)){\n subChoice = GetChoiceFromUser.getSubChoice(data.numberOfCustomer());\n if (subChoice!=0){\n data.removeCustomer(data.getCustomer(subChoice-1),data.getBranch(data.getBranchEmployee(ID).getBranchID()));\n System.out.println(\"Customer has removed Successfully!\");\n }\n }\n }", "public Point3D minus(Point3D subtrahend) {\n\t\tPoint3D copy = new Point3D(this);\n\t\tcopy.homogenize();\n\t\tPoint3D subCopy = new Point3D(subtrahend);\n\t\tsubCopy.homogenize();\n\n\t\tcopy.x -= subCopy.x;\n\t\tcopy.y -= subCopy.y;\n\t\tcopy.z -= subCopy.z;\t\t\n\t\t\n\t\treturn copy;\n\t}", "@Override\n\tpublic int getBalanceToCustomer(String customerId) {\n\t\treturn 0;\n\t}", "public void removeUser(Customer user) {}", "void updateCustomerDDPay(CustomerDDPay cddp);", "public PointDeductData getPointDeductData(Customer fromAccount, Customer toAccount, RewardCurrency fromRewardCurrency,double rewardQty) {\n\n // Create the PointDeductData object\n PointDeductData pointDeductData = new PointDeductData();\n\n\n // Set the fields\n pointDeductData.setMerchantNo(fromAccount.getCusMerchantNo());\n\n\n pointDeductData.setRedeemQty(rewardQty);\n\n\n pointDeductData.setRwdCurrencyId(fromRewardCurrency.getRwdCurrencyId());\n\n pointDeductData.setRwdCurrencyName(fromRewardCurrency.getRwdCurrencyName());\n\n pointDeductData.setLoyaltyId(fromAccount.getCusLoyaltyId());\n\n pointDeductData.setTxnLocation(fromAccount.getCusLocation());\n\n\n\n pointDeductData.setTxnDate(new Date(new java.util.Date().getTime()));\n\n pointDeductData.setTxnType(TransactionType.TRANSFER_POINT_FROM);\n\n pointDeductData.setExternalRef(toAccount.getCusLoyaltyId());\n\n\n // return the object\n return pointDeductData;\n\n\n }", "void delete(Customer customer);", "public double getCustomerPurchase() { return this.customerPurchase; }", "public void remove_transfered_points(int points) {\n\t\tthis.balance = this.balance - points;\n\t\tif(this.balance < 10000) this.status = \"Bronze\";\n\t\telse if(this.balance >= 10000) this.status = \"Silver\";\n\t\t\n\t}", "@Override\r\n\tpublic void deposit(String mobileNo, double amount) {\n\t\tCustomer customer = custMap.get(mobileNo);\r\n\t\tdouble updateAmount = customer.getInitialBalance();\r\n\t\tupdateAmount += amount;\r\n\t\tString name = customer.getName();\r\n\t\tString newMobileNo = customer.getMobileNo();\r\n\t\tfloat age = customer.getAge();\r\n\t\t\r\n\t\tcustomer.setAge(age);\r\n\t\tcustomer.setInitialBalance(updateAmount);\r\n\t\tcustomer.setName(name);\r\n\t\tcustomer.setMobileNo(newMobileNo);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, customer);\r\n\t\tSystem.out.println(\"Amount deposited\");\r\n\t}", "@Test\n public void subtract() {\n assertEquals(\"Wrong vector subtract\", new Vector(1, 1, 1),\n new Vector(new Point3D(2, 3, 4)).subtract(new Vector(new Point3D(1, 2, 3))));\n\n }", "public Point2F subtract(Point2F p)\r\n {return add(p.negative());}", "void deleteCustomerById(int customerId);", "public abstract void subtractCage(int cellValue, int currentRow, int currentCol);", "public void subtractCreditTransaction(double withdrawAmount){\n if(!checkAccountOpen()){\n System.out.println(\"Your credit transaction in the amount of -$\" + withdrawAmount +\" has been declined\");\n }\n else {\n this.currentBalance = this.currentBalance - withdrawAmount;\n if(this.currentBalance<0){\n System.out.println(\"Appropriate funds not found. Please check your current balance.\");\n this.currentBalance = this.currentBalance + withdrawAmount;\n }\n else {\n System.out.println(\"Your credit transaction has been approved!\");\n System.out.println(\"Your current balance is: $\" + currentBalance);\n }\n }\n\n }", "public static void main(String[] args) {\n Money r1 = new Money(10, 0);\n Money r2 = new Money(2, 0);\n Money r3 = r1.minus(r2);\n r3.cents();\n System.out.println(r3.cents());\n }", "public Vector subtract(Vector other) {\n\t\treturn new Vector(x - other.x, y - other.y);\n\t}", "public double distance(Customer i, Customer j);", "public JavaPairRDD<String, Integer> substractExample(){\n return firstSet\n .subtractByKey(secondSet);\n }", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void delete(Customer customer) {\n\t\t\n\t}", "public void deleteCustomer(Customer customer) {\n\n\t\tcustomers.remove(customer);\n\n\t\tString sql = \"UPDATE customer SET active = 0 WHERE customerId = ?\";\n\n\t\ttry ( Connection conn = DriverManager.getConnection(URL, USER_NAME, PASSWORD);\n\t\t\t\tPreparedStatement prepstmt = conn.prepareStatement(sql); ) {\n\n\t\t\tint customerId = Customer.getCustomerId(customer);\n\t\t\tprepstmt.setInt(1, customerId);\n\t\t\tprepstmt.executeUpdate();\n\n\t\t} catch (SQLException e){\n\t\t\tSystem.out.println(\"SQLException: \" + e.getMessage());\n\t\t\tSystem.out.println(\"SQLState: \" + e.getSQLState());\n\t\t\tSystem.out.println(\"VendorError: \" + e.getErrorCode());\n\t\t}\n\t}", "public static void deposit(){\n TOTALCMONEY = TOTALCMONEY + BALANCEDEPOSIT; //the cashier money equals the cashier money plus the amount that is being deposited\r\n BALANCE = BALANCE + BALANCEDEPOSIT; //the user balance equals the user balance plus the amount that is being deposited\r\n }", "@Override\r\n\tpublic vec3 minus() {\n\t\treturn null;\r\n\t}", "public double withdrawFrom(double amount)\r\n {\r\n _balance -= amount;\r\n\r\n return _balance;\r\n }", "public void testMinus() {\n \tMeasurement a = new Measurement(2,6);\n \tMeasurement b = new Measurement(1,5);\n \tMeasurement c = a.minus(b);\n \t\n assertTrue(a.getFeet() == 2);\n assertTrue(a.getInches() == 6);\n assertTrue(b.getFeet() == 1);\n assertTrue(b.getInches() == 5);\n \n assertTrue(c.getFeet() == 1);\n assertTrue(c.getInches() == 1);\n }", "public void subtract()\r\n {\r\n resultDoubles = Operations.subtraction(leftOperand, rightOperand);\r\n resultResetHelper();\r\n }", "public void declineTransaction(CommandOfService c) throws Exception {\n // We give back the points to the user\n Service s = c.getService();\n User u = c.getOwner();\n if(s.getTypeService() == 0){\n userDAO.addPoints(s.getCost(),u);\n }\n DAO.declineTransaction(c);\n FacadeNotification facadeNotification = FacadeNotification.getInstance();\n String title = \"Transaction declined!\";\n String desc = \"Your command for: \"+s.getTitle()+\" has been declined.\\n\";\n try {\n facadeNotification.createNotification(u.getIdUser(),title,desc);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void delete(Customer c){\n Connection conn = ConnectionFactory.getConnection();\n PreparedStatement ppst = null;\n try {\n ppst = conn.prepareCall(\"DELETE FROM customer WHERE customer_key = ?\");\n ppst.setInt(1, c.getCustomerKey());\n ppst.executeUpdate();\n System.out.println(\"Successfully deleted.\");\n } catch (SQLException e) {\n throw new RuntimeException(\"Delete error: \", e);\n } finally {\n ConnectionFactory.closeConnection(conn, ppst);\n }\n }", "public void onDeleteButton(View view) {\n\n // delete the transaction from the DB\n DocumentReference docRef = db.document(firebaseAuth.getCurrentUser().getUid()).collection(transactionDate).document(transactionID);\n docRef.delete();\n\n // update totalsum\n HashMap<String, Double> sum = new HashMap<>();\n sum.put(\"amount\", totalSum - transaction.getAmount());\n db.document(firebaseAuth.getCurrentUser().getUid()).collection(\"Wallet\").document(\"MainWallet\").set(sum);\n //redirect to main page\n startActivity(new Intent(EditTransaction.this, MainActivity.class));\n\n\n }", "@Override\n\tpublic void Save(Customer customer) {\n\t\tif (customerCheckDao.CheckIfRealPerson(customer)) {\n\t\t\tsuper.Save(customer);\n\t\t\tSystem.out.println(\"Veri tabanưna kaydedildi\");\n\t\t} else {\n\t\t\tSystem.err.println(\"Cannot divide by zero\");\n\t\t}\n\t}", "float getCPC() throws SQLException;", "float getTotalCost() throws SQLException;", "public void decreaseMoneyForReserve(String login,BigDecimal money);", "public T subtract(T measure);", "void deleteCustomerDDPayById(int id);", "@Override\n\tpublic void removeCustomer(Session session){\n\t\ttry{\n\t\t\tSystem.out.print(\"*--------------Remove Customers here--------------*\\n\");\n\t\t\t//scanner class allows the admin to enter his/her input\n\t\t\tScanner scanner = new Scanner(System.in);\n\t\t\t//read input customer id\n\t\t\tSystem.out.print(\"Enter Customer Id to delete the customer: \");\n\t\t\tint customerId = scanner.nextInt();\n\n\t\t\t//pass these input items to client controller\n\t\t\tsamp=mvc.removeCustomer(session,customerId);\n\t\t\tSystem.out.println(samp);\n\t\t}\n\t\tcatch(Exception e){\n\t\t\tSystem.out.println(\"Online Market App- Remove Customer Exception: \" +e.getMessage());\n\t\t}\n\t}", "public void detachACustomer() {\r\n\t\tSystem.out.println(\"\\nDetaching a customer\");\r\n\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\r\n\t\tCustomer2 customer= em.find(Customer2.class, (long)90);\r\n\t\tSystem.out.println(customer);\r\n\t\t\r\n\t\ttx.commit(); \r\n\r\n\t\t// customer koparilmis(detached) durumda. Yapilan degisiklikleri VT'ye yazmak icin\r\n\t\t// merge yapilmali.\r\n\t\tcustomer.setLastName(\"Detached\");\r\n\t\tSystem.out.println(\"Does persistent context have customer? \" + em.contains(customer));\r\n\t\tem.close();\r\n\t\t\r\n\t\tem = emf.createEntityManager();\r\n\t\ttx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tem.merge(customer);\r\n\t\ttx.commit();\r\n\t\t\r\n\t\tCustomer2 retrievedCustomer = em.find(Customer2.class, (long)90);\r\n\t\tSystem.out.println(retrievedCustomer);\r\n\t\r\n\t\tem.close();\r\n\t}", "@Override\r\n\tpublic int insertCustomer(Customer customer) throws BillingServicesDownException {\n\t\treturn 0;\r\n\t}", "public SVector subtract(SVector other) {\n this.x -= other.getX();\n this.y -= other.getY();\n this.z -= other.getZ();\n return this;\n }", "public void checkOut(Customer customer) {\n\n customer.greetCustomer();\n System.out.println(\"--------------------------------------\");\n\n // Tussentotaalprijs berekenen en printen\n int firstTotalPrice = calculateTotalPrice(customer.basket);\n\n System.out.println(\"Het tussentotaal is: \" + firstTotalPrice + \" euro\");\n\n // Korting berekenen\n int discount = calculateDiscount(customer.basket);\n\n //int finalTotalPrice = calculateEndPrice(firstTotalPrice, discount);\n }", "public void updateSalerCustomerByDel(int uid) {\n\t\tthis.salerCustomerMapper.updateSalerCustomerByDel(uid);\n\t}", "public void setExistingCustomer(Customer existingCustomer) { this.existingCustomer = existingCustomer; }", "public void deletecustomer(long id) {\n\t\t customerdb.deleteById(id);\n\t }", "private void subtraction()\n\t{\n\t\tFun = Function.SUBTRACT; //Function set to determine what action should be taken later.\n\t\t\n\t\t\tsetLeftValue();\n\t\t\tentry.grabFocus();\n\t\t\n\t}", "void deleteCustomerById(Long id);", "public void deductCoin(int c) {\n setCoin(getCoin() - c);\n }", "private void updateCustomerCredit(BusinessPartner businessPartner, BigDecimal amount, boolean add) {\n OBDal.getInstance().refresh(businessPartner);\n BigDecimal creditUsed = businessPartner.getCreditUsed();\n if (add) {\n creditUsed = creditUsed.add(amount);\n } else {\n creditUsed = creditUsed.subtract(amount);\n }\n businessPartner.setCreditUsed(creditUsed);\n OBDal.getInstance().save(businessPartner);\n OBDal.getInstance().flush();\n }", "@Override\n public BigDecimal getBalance(String customerId, EMCUserData userData) {\n BigDecimal outstandingDebit = null;\n\n //Get total outstanding credits for customer, which existed at atDate\n EMCQuery query = new EMCQuery(enumQueryTypes.SELECT, DebtorsOpenTransactions.class);\n query.addFieldAggregateFunction(\"debit\", \"SUM\");\n query.addFieldAggregateFunction(\"debitAmountSettled\", \"SUM\");\n query.addFieldAggregateFunction(\"credit\", \"SUM\");\n query.addFieldAggregateFunction(\"creditAmountSettled\", \"SUM\");\n\n //Customer is optional.\n if (customerId != null) {\n query.addAnd(\"customerId\", customerId);\n }\n\n query.addAnd(\"transactionDate\", Functions.nowDate(), EMCQueryConditions.LESS_THAN_EQ);\n\n Object[] debitTotals = (Object[]) util.executeSingleResultQuery(query, userData);\n\n if (debitTotals != null) {\n BigDecimal totalDebit = debitTotals[0] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[0];\n BigDecimal totalDebitSettled = debitTotals[1] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[1];\n BigDecimal totalCredit = debitTotals[2] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[2];\n BigDecimal totalCreditSettled = debitTotals[3] == null ? BigDecimal.ZERO : (BigDecimal) debitTotals[3];\n outstandingDebit = totalDebit.subtract(totalDebitSettled);\n totalCredit = totalCredit.subtract(totalCreditSettled);\n outstandingDebit = outstandingDebit.subtract(totalCredit);\n }\n return outstandingDebit;\n }", "public int resta(){\r\n return x-y;\r\n }", "public void update(Customer myCust){\n }", "void deposit(double Cash){\r\n\t\tbalance=balance+Cash;\r\n\t}", "public void deposit();", "private void mStoreCustomerPassbookData(int iCustId, double dblCustCreditAmount, String strBillNo) {\r\n Cursor cursorCustomerData = null;\r\n try {\r\n cursorCustomerData = db.getCustomer(iCustId);\r\n if (cursorCustomerData != null && cursorCustomerData.getCount() > 0) {\r\n if (cursorCustomerData.moveToFirst()) {\r\n //if (cursorCustomerData.getDouble(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_OpeningBalance)) > 0) {\r\n CustomerPassbookBean customerPassbookBean = new CustomerPassbookBean();\r\n customerPassbookBean.setStrCustomerID(cursorCustomerData.getInt(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_CustId)) + \"\");\r\n customerPassbookBean.setStrName(cursorCustomerData.getString(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_CustName)));\r\n customerPassbookBean.setStrPhoneNo(cursorCustomerData.getString(cursorCustomerData.getColumnIndex(DatabaseHandler.KEY_CustContactNumber)));\r\n customerPassbookBean.setDblOpeningBalance(0);\r\n customerPassbookBean.setDblDepositAmount(0);\r\n customerPassbookBean.setDblDepositAmount(dblCustCreditAmount);\r\n //double dblTotalAmountFromCustPassbookDB = getCustomerPassbookAvailableAmount(customerPassbookBean.getStrCustomerID(), customerPassbookBean.getStrPhoneNo());\r\n double dblTotalDepositAmount = getCustomerPassbookTotalDepositAndOpeningAmount(customerPassbookBean.getStrCustomerID(), customerPassbookBean.getStrPhoneNo());\r\n double dblTotalCrdeitAmount = getCustomerPassbookTotalCreditAmount(customerPassbookBean.getStrCustomerID(), customerPassbookBean.getStrPhoneNo());\r\n //double dblTotalAmountFinal = (Double.parseDouble(String.format(\"%.2f\", dblCustCreditAmount)) + Math.abs(dblTotalAmountFromCustPassbookDB));\r\n double dblTotalAmountFinal;\r\n dblTotalAmountFinal = dblTotalCrdeitAmount - (dblTotalDepositAmount + customerPassbookBean.getDblDepositAmount());\r\n customerPassbookBean.setDblTotalAmount(Double.parseDouble(String.format(\"%.2f\", (dblTotalAmountFinal))));\r\n if (trainingMode)\r\n customerPassbookBean.setStrDescription(Constants.BILL_NO + \" : TM\" + strBillNo);\r\n else\r\n customerPassbookBean.setStrDescription(Constants.BILL_NO + \" : \" + strBillNo);\r\n\r\n Date date1 = new Date();\r\n try {\r\n date1 = new SimpleDateFormat(\"dd-MM-yyyy\").parse(BUSINESS_DATE);\r\n } catch (Exception e) {\r\n Log.e(TAG, \"\" + e);\r\n Log.e(TAG, \"\" + e);\r\n }\r\n customerPassbookBean.setStrDate(\"\" + date1.getTime());\r\n customerPassbookBean.setDblCreditAmount(0);\r\n customerPassbookBean.setDblPettyCashTransaction(dblCustCreditAmount);\r\n customerPassbookBean.setDblRewardPoints(0);\r\n try {\r\n //Commented for git push purpose\r\n db.addCustomerPassbook(customerPassbookBean);\r\n } catch (Exception ex) {\r\n Log.i(TAG, \"Inserting data into customer passbook in billing screen: \" + ex.getMessage());\r\n }\r\n // }\r\n }\r\n } else {\r\n Log.i(TAG, \"No customer data selected for storing customer passbook in billing screen.\");\r\n }\r\n } catch (Exception ex) {\r\n Log.i(TAG, \"Unable to store the customer passbook data in billing screen.\" + ex.getMessage());\r\n } finally {\r\n if (cursorCustomerData != null) {\r\n cursorCustomerData.close();\r\n }\r\n }\r\n }", "public void debitBankAccount() {\n\t\tint beforeDebit = this.sender.getBankAccount().getAmount();\n\t\tthis.sender.getBankAccount().setAmount(beforeDebit - this.getCost());\n\t\tSystem.out.println(this.getCost() + \" euros is debited from \" + this.sender.getName()\n\t\t\t\t+ \" account whose balance is now \" + this.sender.getBankAccount().getAmount() + \" euros\");\n\t}", "public void update(Customer customer) {\n\n\t}", "public Double getCostAmong(CustomerAdaptaded... customers) {\n\t\treturn this.getDistanceTimeCostMatrixDesorderCustomers().getTimeCostAmong(customers);\n\t}", "@Override\n\tpublic void updateCustomerStatus() {\n\t\tfor(int i=0;i<customersInLine.size();i++) {\n\t\t\tif((customersInLine.get(i).getArrival() + customersInLine.get(i).getPatience()) <= this.getCurrentTurn()) {\n\t\t\t\tcustomersInLine.remove(i);\n\t\t\t\tcustomersInRestaurant--;\n\t\t\t\tunsatisfiedCustomers++;\n\t\t\t\ti=-1;\n\t\t\t}\n\t\t}\n\t}", "@Override\r\n\tpublic void withdraw(String mobileNo, double withdrawAmount) {\n\t\tCustomer customer = custMap.get(mobileNo);\r\n\t\tdouble amount = customer.getInitialBalance();\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t\tString name = customer.getName();\r\n\t\tString newMobileNo = customer.getMobileNo();\r\n\t\tfloat age = customer.getAge();\r\n\t\t\r\n\t\tif(amount - withdrawAmount > 500)\r\n\t\t\tamount -= withdrawAmount;\r\n\t\t\r\n\t\tcustomer.setAge(age);\r\n\t\tcustomer.setInitialBalance(amount);\r\n\t\tcustomer.setName(name);\r\n\t\tcustomer.setMobileNo(newMobileNo);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, customer);\r\n\t\tSystem.out.println(\"Amount withdrawn\");\r\n\t\t\r\n\t\t\r\n\t}", "public void subBalance()\n\t\t{\n\t\t\tthis.setBalance_acc2(this.getBalance_acc2() - this.getTemp_w_acc2());\n\t\t}", "public double calculateCost(Purchase purchase);", "void deductFromAmount(double amount) {\n this.currentAmount -= amount;\n }", "public void deleteCustomer(Customer customer){\n _db.delete(\"Customer\", \"customer_name = ?\", new String[]{customer.getName()});\n }", "public static void subtractSaveCounter1(Context context) {\n prefs = context.getSharedPreferences(\"com.mobile.counterappmobile\", context.MODE_PRIVATE);\n SaveCounter1 = prefs.getInt(saveCounter1, 0);\n SaveCounter1 = SaveCounter1 - SaveInc;\n prefs.edit().putInt(saveCounter1, SaveCounter1).commit();\n\n }", "CustomerOrder update(CustomerOrder customerOrder);", "BigDecimal getOrigAmount();", "float getCTR() throws SQLException;", "public void Deposit(double ammount){\n abal = ammount + abal;\n UpdateDB();\n }", "@PutMapping(\"/points/{customerId}\")\n @ResponseStatus(HttpStatus.NO_CONTENT)\n public void updatePointsOnAccount(@PathVariable(\"customerId\") int customerId, @RequestBody @Valid LevelUpViewModel lvm) {\n\n if (customerId != lvm.getCustomerId()) {\n throw new IllegalArgumentException(String.format(\"Id %s in the PathVariable does not match the Id %s in the RequestBody \", customerId, lvm.getCustomerId()));\n }\n\n serviceLayer.updatePoints(lvm);\n }", "public void subtractCoins (int n) {\n this.coinCount = Math.max(0, this.coinCount - n);\n this.save();\n }", "public AmmoAmountUncapped subtract(AmmoAmountUncapped c){\n if (!canBuy(c)){ // c is\n throw new IllegalArgumentException(\"Cost is greater than available amounts\");\n } else {\n Map<AmmoColor,Integer> newMap = new EnumMap<>(getAmounts());\n for (Map.Entry<AmmoColor, Integer> i: c.getAmounts().entrySet()){\n newMap.put(i.getKey(), getAmounts().get(i.getKey())-i.getValue());\n }\n return new AmmoAmountUncapped(newMap);\n }\n }", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "@Override\n\tpublic void update(Customer customer) {\n\t\t\n\t}", "private void deductGamePoints(List<Integer> prevGamePoints) {\n for (int i = 0; i < numAlive; i++) {\n int playerTrickPoints = trickPoints.get(i);\n if (playerTrickPoints < 0) {\n int prevPoints = prevGamePoints.get(i);\n int newPoints = prevPoints + playerTrickPoints;\n \n if (newPoints < 0) {\n // Cannot have negative points\n gamePoints.set(i, 0);\n } else {\n gamePoints.set(i, newPoints);\n }\n }\n }\n }", "private void addUserPoint() {\n\n String userRefEmail = edtEmailPengguna.getText().toString().replace('.', '_');\n final int poin = Integer.parseInt(tvPoinTransaksi.getText().toString());\n\n final DatabaseReference userDataRef = FirebaseDatabase.getInstance().getReference().child(\"Users\").child(userRefEmail);\n userDataRef.addListenerForSingleValueEvent(new ValueEventListener() {\n @Override\n public void onDataChange(@NonNull DataSnapshot dataSnapshot) {\n String userCurrentPoint = Objects.requireNonNull(dataSnapshot.child(\"point\").getValue()).toString();\n\n int finalPoint = Integer.parseInt(userCurrentPoint) + poin;\n userDataRef.child(\"point\").setValue(finalPoint);\n }\n\n @Override\n public void onCancelled(@NonNull DatabaseError databaseError) {\n }\n });\n }" ]
[ "0.6040063", "0.5824464", "0.57723004", "0.57514524", "0.56386626", "0.5540692", "0.5518872", "0.55009335", "0.54802537", "0.5479679", "0.5471761", "0.54617697", "0.54518265", "0.54199636", "0.5418446", "0.5388452", "0.53172195", "0.5306356", "0.5213668", "0.5200066", "0.5197891", "0.51797503", "0.516448", "0.5159551", "0.51479864", "0.514753", "0.51434565", "0.5135938", "0.5134486", "0.5131733", "0.51313853", "0.510096", "0.5091199", "0.5082573", "0.50806546", "0.50799495", "0.50718254", "0.5065803", "0.5048417", "0.5045272", "0.50284976", "0.5028276", "0.50211287", "0.50175816", "0.50134194", "0.50134194", "0.5004152", "0.49704", "0.4964415", "0.49603805", "0.4957752", "0.49502555", "0.4950012", "0.49468493", "0.4932067", "0.49320236", "0.49283433", "0.49231017", "0.49229425", "0.49193513", "0.49132785", "0.49088585", "0.49022812", "0.4902057", "0.49005747", "0.48988986", "0.48956418", "0.48941022", "0.489036", "0.48871717", "0.48839876", "0.4873477", "0.486874", "0.4863887", "0.48578998", "0.48380452", "0.483539", "0.4835166", "0.48299193", "0.48290554", "0.48263484", "0.48259443", "0.48257264", "0.48206687", "0.48193866", "0.4815227", "0.48075667", "0.4805693", "0.4805327", "0.48051235", "0.4805051", "0.4803252", "0.48029765", "0.47895482", "0.4789294", "0.47881174", "0.47833785", "0.47833785", "0.4779814", "0.4779099" ]
0.5990988
1
Get customer from customer identify.
public static DTO_JPOS_Customer getCustomer(int customerId,Connection con) { LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.getCustomer(customerId,con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getCustomer(String custId);", "java.lang.String getCustomerId();", "java.lang.String getCustomerId();", "static customer getCustomer(String uid) {\n return null;\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "Customer getCustomerById(final Long id);", "Customer getCustomerById(int customerId);", "public Customer getCustomerByName(String customerName);", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "String getCustomerID();", "public au.gov.asic.types.AccountIdentifierType getCustomer()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.AccountIdentifierType target = null;\n target = (au.gov.asic.types.AccountIdentifierType)get_store().find_element_user(CUSTOMER$0, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "Customer getCustomerByMobileNumber(String mobileNumber) throws EOTException;", "public Customer getCustomer(int userId) {\n\t\tIterator i = customers.iterator();\n\t\twhile (i.hasNext()) {\n\t\t\tCustomer customer = (Customer) i.next();\n\t\t\tif (userId == customer.getUserId()) {\n\t\t\t\treturn customer;\n\t\t\t}\n\t\t}\n\t\treturn null;\n\t}", "Customer getCustomer();", "@Override\r\n\tpublic Customer getCustomer(int customerID) {\n\t\treturn null;\r\n\t}", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "public Customer getCustomerDetails() throws Exception {\n\t\treturn customersDBDAO.getOneCustomer(customerId);\n\t}", "public au.gov.asic.types.MessageIdentifierType.CustomerIdentifier getCustomerIdentifier()\n {\n synchronized (monitor())\n {\n check_orphaned();\n au.gov.asic.types.MessageIdentifierType.CustomerIdentifier target = null;\n target = (au.gov.asic.types.MessageIdentifierType.CustomerIdentifier)get_store().find_element_user(CUSTOMERIDENTIFIER$2, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public Customer getCustomer() {\n String __key = this.customerId;\n if (customer__resolvedKey == null || customer__resolvedKey != __key) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n CustomerDao targetDao = daoSession.getCustomerDao();\n Customer customerNew = targetDao.load(__key);\n synchronized (this) {\n customer = customerNew;\n \tcustomer__resolvedKey = __key;\n }\n }\n return customer;\n }", "String getCustomerNameById(int customerId);", "@Override\r\n\tpublic Customer getCustomer(String custId) {\r\n\t\tOptional<Customer> optionalCustomer = null;\r\n\t\tCustomer customer = null;\r\n\t\toptionalCustomer = customerRepository.findById(custId);\r\n\t\tif (optionalCustomer.isPresent()) {\r\n\t\t\tcustomer = optionalCustomer.get();\r\n\t\t\treturn customer;\r\n\t\t} else {\r\n\t\t\tthrow new EntityNotFoundException(\"Customer With Id \" + custId + \" does Not Exist.\");\r\n\t\t}\r\n\r\n\t}", "@Override\n\tpublic CustomerData getCustomer(Long custId) {\n\t \n\t\tOptional<CustomerData> optionalCust = customerRepository.findById(custId);\n\t\t//Optional object use for check if a customer id is existing or not\n if(optionalCust.isPresent()) {\n return optionalCust.get(); //if customer id is exist then return a value\n }\n\t\treturn null;\n\t\t\n\t}", "@Override\n public Customer getCustomer(Long userId) {\n Optional<Customer> customer = customerDao.getCustomer(userId);\n if (!customer.isPresent()) {\n logger.error(\"Customer with this id {} doesn't exist\", userId);\n }\n return customer.orElseThrow(ResourceNotFoundException::new);\n }", "public Customer getCustomer(String cID, ArrayList<Customer> customers) throws NotFoundException\r\n\t{\t\r\n\t\tCustomer cust = null;\r\n\t\tfor(int i=0; i<customers.size(); i++)\r\n\t\t{\r\n\t\t\tif(customers.get(i).getcID().equals(cID))\r\n\t\t\t\tcust = customers.get(i);\r\n\t\t}\r\n\t\t\r\n\t\tif(cust == null)\r\n\t\t\tthrow new NotFoundException(cID);\r\n\t\t\r\n\t\treturn cust;\t\t\r\n\t}", "public static Customer getCustomer(int index)\n\t{\n\t\treturn customerList.get(customerSearch.get(index - 1));\n\t}", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public static Customer getCustomer(int id_cust) {\n Connection c = connection();\n PreparedStatement stmt;\n int id = 0;\n String name = null;\n String email = null;\n String password = null;\n Customer customer = null;\n try {\n String sql = \"SELECT * FROM customer WHERE id=?;\";\n stmt = c.prepareStatement(sql);\n stmt.setInt(1, id_cust);\n ResultSet rs = stmt.executeQuery();\n while (rs.next()) {\n id = rs.getInt(\"id\");\n name = rs.getString(\"name\");\n email = rs.getString(\"email\");\n password = rs.getString(\"password\");\n }\n stmt.close();\n c.close();\n customer = new Customer(id, name, email, password);\n } catch (SQLException e) {\n e.printStackTrace();\n }\n return customer;\n }", "public String getCustomer() {\n return customer;\n }", "public Customer getCustomers(int customerId) {\n for(Customer customer:customers){\n if(customer.getId() == customerId){\n return customer;\n }\n }\n return null;\n }", "@Override\n\tpublic Uni<Customer> findCustomerById(Long cid) {\n\t\treturn repo.findById(cid);\n\t}", "public Customer getCustomer(int phone)\n\t{\n\t\treturn CustomerContainer.getInstance().getCustomer(phone);\n\t}", "public Customer getCustomer(String customerID, DataPool allData){\r\n\t\t\r\n\t\tif (allData == null || customerID== null) \r\n\t\t\treturn null;\r\n\t\treturn treeData.get(customerID);\r\n\t\t\r\n\t}", "public void getCustomerID (){\n\t\t//gets the selected row \n\t\tint selectedRowIndex = listOfAccounts.getSelectedRow();\n\t\t//gets the value of the first element of the row which is the \n\t\t//customerID\n\t\tcustomerID = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 0);\n\t\tcustomerName = (String) listOfAccounts.getModel().getValueAt(selectedRowIndex, 1);\n\t}", "public void lookupCustomer(String customerId) {\r\n customer = transaction.getCustomerInfo(customerId);\r\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "private Customer findCustomer(String customerName){\n for(int i=0; i<customers.size(); i+=1){\n Customer existingCustomer = this.customers.get(i);\n if(existingCustomer.getName().equals(customerName)){\n return existingCustomer;\n }\n }\n return null;\n }", "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "public static Customer getCustomer(int _customerID) throws SQLException{\n ResultSet rs = ConnectionManager.selectAllColumns(\"Tbl_Customer_GroupNo\", \"CustomerID= \"+_customerID);\n if(rs.next()){\n Customer cus = new Customer(rs.getInt(\"CustomerId\"), rs.getString(\"FirstName\"), rs.getString(\"LastName\"), rs.getString(\"Address\"), rs.getString(\"Email\"), rs.getString(\"Phone\"));\n return cus;\n }else{\n return null;\n }\n }", "public Customer getCustomer(int id) {\r\n\t\treturn manager.getCustomer(id);\r\n\t}", "@Override\n\tpublic Customer getCustomer(Integer id) {\n\t\treturn customerDao.findById(id);\n\t}", "public ICustomer getCustomer(final Customer customer) {\n ICustomer iCustomer = null;\n if(CustomerType.REGULAR.equals(customer.getCustomerType())) {\n iCustomer = new RegularCustomer();\n }\n return iCustomer;\n }", "CustomerDTO getCustomerDetails(Long customerId,String userName) throws EOTException;", "@Override\n\tpublic Customer retrieveCustomer(Integer id) {\n\n\t\tCustomer customer = new Customer();\n\n\t\tfor (Customer cust : customers) {\n\t\t\tif (cust.getId() == id) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setUsername(cust.getUsername());\n\t\t\t\tcustomer.setFirstName(cust.getFirstName());\n\t\t\t\tcustomer.setLastName(cust.getLastName());\n\t\t\t\tcustomer.setEmail(cust.getEmail());\n\t\t\t\tcustomer.setUserType(cust.getUserType());\n\t\t\t\tcustomer.setPassword(cust.getPassword());\n\t\t\t\tcustomer.setAddress(cust.getAddress());\n\t\t\t}\n\t\t}\n\t\tlogger.info(\"A GET call retrieved a customer: retrieveCustomer()\");\n\t\treturn customer;\n\t}", "@Override\n\tpublic Customer getCustomerById(long customerId) {\n\t\treturn null;\n\t}", "public Customer getSpecificCustomerById(String customerId){\n Customer specificCustomer = null;\n\n try{\n // try and connect\n conn = DriverManager.getConnection(URL);\n\n // make sql query\n PreparedStatement preparedStatement =\n conn.prepareStatement(\"SELECT CustomerId, FirstName, LastName, Country, PostalCode, Phone, Email FROM Customer WHERE CustomerId=?\");\n preparedStatement.setString(1, customerId);\n // execute query\n ResultSet set = preparedStatement.executeQuery();\n\n while(set.next()){\n specificCustomer = new Customer(\n set.getString(\"CustomerId\"),\n set.getString(\"FirstName\"),\n set.getString(\"LastName\"),\n set.getString(\"Country\"),\n set.getString(\"PostalCode\"),\n set.getString(\"Phone\"),\n set.getString(\"Email\")\n );\n }\n }\n catch(Exception exception){\n System.out.println(exception.toString());\n }\n finally{\n try{\n conn.close();\n }\n catch (Exception exception){\n System.out.println(exception.toString());\n }\n }\n return specificCustomer;\n }", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\t\t\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\t\t\n\t\treturn theCustomer;\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t// now retrieve/read from database using the primary key\n\t\tCustomer theCustomer = currentSession.get(Customer.class, theId);\n\n\t\treturn theCustomer;\n\t}", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "Customer findById(Long id);", "@SuppressWarnings(\"finally\")\n\tpublic Customer getCustomer(int cust_id) throws SQLException //final&complete IMPL\n\t{\n\t\tCustomer res=null;\n\t\t\n\t\ttry\n\t\t{\n\t\t\tConnection connection = openConnection();\n\t\t\tPreparedStatement queryStatement;\n\t\t\tResultSet queryResult;\n\t\t\t\n\t\t\tqueryStatement =connection.prepareStatement(\"select * from CUSTOMERS where customer_id=?;\");\n\t\t\tqueryStatement.setString(1, Integer.toString(cust_id));\n\t\t\tqueryResult = queryStatement.executeQuery();\n\t\t\t\n\t\t\tif(queryResult.next())\n\t\t\t{\n\t\t\t\tString cust_username=null, cust_password=null, user_email=null, user_PicURL=null;\n\t\t\t\tString cust_fname=null, cust_lname=null;\n\t\t\t\tboolean isCustomer = true;\n\t\t\t\t\n\t\t\t\tcust_fname = queryResult.getString(2);\n\t\t\t\tcust_lname = queryResult.getString(3);\n\t\t\t\tcust_username = queryResult.getString(4);\n\t\t\t\tcust_password = queryResult.getString(5);\n\t\t\t\tuser_email = queryResult.getString(6);\n\t\t\t\t\n\t\t\t\tres = new Customer((short)cust_id, cust_username, cust_password, cust_fname + cust_lname, user_email, user_PicURL, isCustomer, null, null);\n\t\t\t}\n\t\t}\t\n\t\tfinally\n\t\t{\n\t\t\tcloseConnection();\n\t\t\tif(res==null)\n\t\t\t\tthrow new SQLException(\"No customer user found for provided credantials!\");\n\t\t\telse\n\t\t\t\treturn res;\n\t\t}\n\t}", "public com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer getCustomer() {\r\n return customer;\r\n }", "@Override\n @Transactional\n public Customer getCustomer(int customerId) {\n Optional<Customer> queryResult = customerRepository.findById(customerId);\n // if null return new Customer(), otherwise return the Customer\n return queryResult.orElseGet(Customer::new);\n }", "@Override\r\n\tpublic Customer getCustomerById(int id) {\n\t\treturn customerdao.getCustomerById(id);\r\n\t}", "@Override\n\tpublic Customer getCustomer(int customerId) {\n\t\tSession session=sessionFactory.getCurrentSession();\n\t\ttry {\n\t\t\t\n\t\t\tCustomer customer =session.get(Customer.class, customerId);\n\t\t return customer;\t\t\t\n\t\t}\n\t\tcatch(HibernateException exception){\n\t\t\texception.printStackTrace();\n\t\t}\n\t\treturn null;\n\t\t\n\t}", "public final String getCustomerId() {\n\t\treturn customerId;\n\t}", "@Override\n public CustomerEntity getCustomerData(Long id) {\n return customerPersistencePort.getUser(id);\n }", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "@Override\n\tpublic Customer getCustomer(int theId) {\n\t\tSession currentSession = sessionFactory.getCurrentSession();\n\n\t\t//now retrieve/read from database using the primary key or id..\n\t\tCustomer theCustomer = currentSession.get(Customer.class,theId);\n\n\t\treturn theCustomer;\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId()\n\t{\n\t\treturn customerId;\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "public Customer getCustomerById(Integer id) throws DataNotFoundException {\n Optional<Customer> optionalCustomer = customerRepository.findById(id);\n if(optionalCustomer.isPresent())\n return optionalCustomer.get();\n else\n throw new DataNotFoundException(\"Customer with id: \" + id + \" not found\");\n }", "@Override\n\tpublic Customer getCustomer(long id) throws Exception {\n\t\tConnection con = pool.getConnection();\n\t\tCustomer customer = new Customer();\n\t\ttry {\n\t\t\tString getCustomer = String.format(\"select * from customer where id in('%d')\", id);\n\n\t\t\tStatement st = con.createStatement();\n\t\t\tResultSet rs = st.executeQuery(getCustomer);\n\n\t\t\tif (rs.next()) {\n\t\t\t\tcustomer.setId(id);\n\t\t\t\tcustomer.setCustName(rs.getString(\"Cust_Name\"));\n\t\t\t\tcustomer.setPassword(rs.getString(\"Password\"));\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Customer \" + customer.getCustName() + \" ID: \" + customer.getId() + \" was retrived.\");\n\t\t\t} else {\n\t\t\t\tthrow new Exception(\"Customer with ID: \" + id + \" was not found in the DB.\");\n\t\t\t}\n\n\t\t} catch (SQLException e) {\n\t\t\tSystem.out.println(e.getMessage() + \" Could not retrieve data from DB.\");\n\t\t} finally {\n\t\t\ttry {\n\t\t\t\tConnectionPool.getInstance().returnConnection(con);\n\t\t\t} catch (Exception e) {\n\t\t\t\tSystem.out.println(e.getMessage() + \" Could not close connection\");\n\t\t\t}\n\t\t}\n\t\treturn customer;\n\t}", "public Customer getCustomerBy_id(ObjectId _id) {\n\t\treturn custRepo.findBy_id(_id);\n\t}", "@Override\n\tpublic MstCustomerDto getOne(String kdCustomer) {\n\t\tMstCustomerDto mstCustomerDto=new MstCustomerDto();\n\t\tMstCustomer mstCustomer = new MstCustomer();\n\t\tmstCustomer=mstCustomerDao.getOne(kdCustomer);\n\t\tmstCustomerDto = mapperFacade.map(mstCustomer, MstCustomerDto.class);\n\t\t\n\t\treturn mstCustomerDto;\n\t}", "public String getCustomerid() {\n return customerid;\n }", "public SalerCustomer getSalerCustomer(int uid) {\n\t\treturn this.salerCustomerMapper.getSalerCustomer(uid);\n\t}", "public Customer getCustom(short customerId) {\n\t\treturn custom.selectByPrimaryKey(customerId);\n\t\t\n\t}", "public Customer displayCustomer(int cid);", "@Override\n\tpublic Customer findCustomer(int customerId) {\n\t\treturn null;\n\t}", "public static Customer getCustomerByKey(int customerKey) {\r\n\t\tCustomer customer = null;\r\n\t\tConnection conn = ConnectionFactory.getConnection();\r\n\t\tString query = \"SELECT customerUuid, customerType, customerName, personKey, addressKey FROM Customer WHERE customerKey = ?\";\r\n\r\n\t\tPreparedStatement ps = null;\r\n\t\tResultSet rs = null;\r\n\r\n\t\ttry {\r\n\t\t\tps = conn.prepareStatement(query);\r\n\t\t\tps.setInt(1, customerKey);\r\n\t\t\trs = ps.executeQuery();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\t\r\n\t\t\t\tString customerType = rs.getString(\"customerType\");\r\n\t\t\t\tString customerUuid = rs.getString(\"customerUuid\");\r\n\t\t\t\tString customerName = rs.getString(\"customerName\");\r\n\t\t\t\tint personKey = rs.getInt(\"personKey\");\r\n\t\t\t\tPerson person = Person.getPersonByKey(personKey);\r\n\t\t\t\tint addressKey = rs.getInt(\"addressKey\");\r\n\t\t\t\tAddress address = Address.getAddressByKey(addressKey);\r\n\t\t\t\t\r\n\t\t\t\tif (customerType.equals(\"G\")) {\r\n\t\t\t\t\tcustomer = new GovernmentCustomer(customerUuid, person, customerName, address);\r\n\t\t\t\t} else {\r\n\t\t\t\t\tcustomer = new CorporateCustomer(customerUuid, person, customerName, address);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\t\r\n\t\t} catch (SQLException e) {\r\n\t\t\t\r\n\t\t\tSystem.out.println(\"SQLException: \");\r\n\t\t\te.printStackTrace();\r\n\t\t\tthrow new RuntimeException(e);\r\n\t\t\t\r\n\t\t} finally {\r\n\t\t\t\r\n\t\t\tConnectionFactory.closeConnection(conn, ps, rs);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn customer;\r\n\t}", "@Override\n\tpublic Customer getCustomer(int id) {\n\t\treturn sessionFactory.getCurrentSession().get(Customer.class, id);\n\t}", "public List<Customer> getCustomerByID() {\n Query query = em.createNamedQuery(\"Customer.findByCustomerId\")\r\n .setParameter(\"customerId\", custID);\r\n // return query result\r\n return query.getResultList();\r\n }", "Customer getCustomer() {\n\t\treturn customer;\n\t}", "public Integer getCustomer() {\n return customer;\n }", "public Customer getCustomer() {\n\t\treturn customer;\n\t}", "@GetMapping(\"/customers/{customer_id}\")\n\tpublic Customer getcustomer(@PathVariable(\"customer_id\") int customerid) {\n\t\tCustomer thecustomer=thecustomerService.getCustomer(customerid);\n\t\tif(thecustomer==null) {\n\t\t\tthrow new CustomerNotFoundException(\"Customer with id : \"+customerid+\" not found\");\n\t\t}\n\t\t\n\t\treturn thecustomer;\n\t}", "public Customer searchCustomerByPhone() {\r\n\t\t//Input customer phone.\r\n\t\tString phone = readString(\"Input the customer phone: \");\r\n\t\tCustomer f = my.findByPhone(phone);\r\n\t\treturn f;\r\n\t}", "public Customer getCustomer(int ma) {\n\t\tCustomer cus = new Customer();\n\t\ttry {\n\t\t\tPreparedStatement stm = conn.prepareStatement(Queries.GET_CUSTOMER_BY_ID);\n\t\t\tstm.setInt(1, ma);\n\t\t\tResultSet rs = stm.executeQuery();\n\t\t\twhile (rs.next()) {\n\t\t\t\tcus = CustomerConverter.convert(rs);\n\t\t\t\t\n\t\t\t}\n\t\t} catch (SQLException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\treturn cus;\n\t}", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public Long getCustomerId() {\n return customerId;\n }", "public static Customer getcustNum(String custNum){\n Customer customer = new Customer();\n\n // fill the Customer object with data\n customer.setcustNum(custNum);\n if (custNum.equals(\"1001\")) {\n customer.setfull_name(\"Barbara White\");\n customer.setaddress(\"3400 Richmond Parkway #3423\");\n customer.setcity(\"Bristol\");\n customer.setstate(\"CT\");\n customer.setpostalCode(\"06010\");\n }\n else if (custNum.equals(\"1002\")) {\n customer.setfull_name(\"Karl Vang\");\n customer.setaddress(\"327 Franklin Street\");\n customer.setcity(\"Edina\");\n customer.setstate(\"MN\");\n customer.setpostalCode(\"55435\");\n }\n\n else if (custNum.equals(\"1003\")) {\n customer.setfull_name(\"Ronda Chavan\");\n customer.setaddress(\"518 Commanche Dr.\");\n customer.setcity(\"Greensboro\");\n customer.setstate(\"NC\");\n customer.setpostalCode(\"27410\");\n }\n\n else {\n customer.setfull_name(\"Unknown\");\n }\n\n return customer;\n }", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public Integer getCustomerId()\n {\n return customerId;\n }", "public String getCustomerId() {\n\t\treturn customerId;\n\t}", "public void retrieveACustomerWithID(long id) {\r\n\t\tSystem.out.println(\"\\nCustomer with id \" + id);\r\n\t\tEntityManager em = emf.createEntityManager();\r\n\t\tEntityTransaction tx = em.getTransaction();\r\n\t\ttx.begin();\r\n\t\tCustomer2 customer = em.find(Customer2.class, id);\r\n\t\tif(customer == null){\r\n\t\t\tSystem.out.println(\"\\nNo such customer with id: \" + id);\r\n\t\t\treturn;\r\n\t\t}\r\n\t\tSystem.out.println(customer);\r\n\t\ttx.commit();\r\n\t\tem.close();\r\n\t}", "public CustomerProfile getCustomerProfile();", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n if (customerBuilder_ == null) {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n } else {\n return customerBuilder_.getMessage();\n }\n }", "protected Optional<Customer> getCustomer() {\n return customer.getOptional();\n }", "public Customer getCustomerById(Integer id) {\n\t\treturn (Customer) sessionFactory.getCurrentSession().createCriteria(Customer.class).add(Restrictions.eq(\"id\",id)).uniqueResult();\r\n\t}", "public int getCustomerId() {\n return customerId;\n }", "public int getCustomerId() {\n return customerId;\n }", "public Customer getCustomer() {\n return this.customer;\n }", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public Customer getCustomer() {\r\n return customer;\r\n }" ]
[ "0.7740952", "0.7552235", "0.7552235", "0.7534887", "0.7490194", "0.7456039", "0.741094", "0.7386757", "0.73495084", "0.7348919", "0.73410916", "0.72395176", "0.7222866", "0.7178203", "0.71446955", "0.71185493", "0.7066266", "0.70626783", "0.70314175", "0.70270437", "0.702021", "0.7018419", "0.70169586", "0.697039", "0.6965753", "0.6947321", "0.69456196", "0.693947", "0.6910652", "0.68998855", "0.68897676", "0.6879394", "0.68561876", "0.685204", "0.682598", "0.6825023", "0.68114406", "0.68100667", "0.6808524", "0.6806052", "0.6804213", "0.6800909", "0.6797829", "0.6763504", "0.6740918", "0.6721143", "0.67121476", "0.6711479", "0.67113376", "0.67011243", "0.66937673", "0.66870314", "0.66824013", "0.6676959", "0.6676684", "0.6667159", "0.66507226", "0.66505605", "0.6640711", "0.66275114", "0.66275114", "0.66269284", "0.6624285", "0.6624285", "0.6623511", "0.6621895", "0.66187596", "0.66163266", "0.6613016", "0.6606157", "0.6601885", "0.6597303", "0.6592753", "0.6592418", "0.6591827", "0.6582187", "0.6581762", "0.6572914", "0.6564117", "0.6550977", "0.6548098", "0.65473604", "0.6538087", "0.6537603", "0.6537603", "0.6528371", "0.6510805", "0.6507239", "0.6496189", "0.64846665", "0.6476406", "0.64579815", "0.6447912", "0.6439292", "0.6438074", "0.6419759", "0.6414483", "0.6414483", "0.64143515", "0.6413302", "0.64098936" ]
0.0
-1
Get current point of customer.
public static int getCurrentPoint(String cardId,Connection con){ LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.getCurrentPoint(cardId, con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public Customer getCurrentCustomer() {\n\t\treturn currentCustomer;\n\t}", "public KDPoint getPoint() {\n\t\treturn new KDPoint(this.loc.lat,this.loc.lng,0.0);\n\t}", "public Point getPoint()\n\t{\n\t\treturn point;\n\t}", "public Customer getCustomer() {\r\n\t\treturn this.customer;\r\n\t}", "public double getPoint() {\r\n return point;\r\n }", "public double getPoint() {\r\n return point;\r\n }", "public ImPoint getCurrentLoc() {\n\treturn curPoint; // REMOVE this line -- dummy code to get it to compile\n }", "public CustomerPath customer() {\n if (_customer == null)\n _customer = new CustomerPath(this, Keys.PAYMENT_P2007_03__PAYMENT_P2007_03_CUSTOMER_ID_FKEY, null);\n\n return _customer;\n }", "public Point getPoint(){\n\t\treturn _point;\n\t}", "public Point getPoint() {\n return point;\n }", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\r\n\t\treturn customer;\r\n\t}", "public Customer getCustomer() {\n\t\treturn customer;\n\t}", "public Point getLocation() {\n return currentLocation;\n }", "public Point getPoint() {\n return this.mPoint;\n }", "public Integer getPoint() {\n return point;\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Customer getCustomer () {\r\n\t\treturn customer;\r\n\t}", "public com.commercetools.api.models.customer.CustomerReference getCustomer() {\n return this.customer;\n }", "public Coordinate getCurrent( )\n\t{\n\t\treturn currentLocation;\n\t}", "public org.tempuri.Customers getCustomer() {\r\n return customer;\r\n }", "Customer getCustomer() {\n\t\treturn customer;\n\t}", "public ImPoint getCurrentLoc() {\n \treturn this.startLoc;\n }", "public GFRecordDataModel getCustomerLocalCustomerInformation()\n\t{\n\t\treturn getCustomerLocalCustomerInformation(system, unit, customerNumber);\n\t}", "public ReturnCustomer getCustomer() {\n return (ReturnCustomer) get(\"customer\");\n }", "public Integer getCustomer() {\n return customer;\n }", "public String getCustomer() {\n return customer;\n }", "public Customer getCustomer() {\n return this.customer;\n }", "public int currentCustomerId() {\n if (this.currentCustomerAuthenticated()) {\n return this.currentCustomer.getId();\n }\n return 0;\n }", "public int getPoint(){\n return point;\n }", "com.google.ads.googleads.v6.resources.Customer getCustomer();", "public Point getLocation ( )\r\n\t{\r\n\t\treturn new Point ( currentCol, currentRow );\r\n\t}", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n }", "public native GLatLng getPoint(GInfoWindow self)/*-{\r\n\t\treturn self.getPoint();\r\n\t}-*/;", "@Override\n public String getCustomer() {\n return this.customerName;\n }", "public Customer getCustomer() {\r\n return customer;\r\n }", "public Number getCustomerId() {\n return (Number)getAttributeInternal(CUSTOMERID);\n }", "public com.huawei.www.bme.cbsinterface.cbs.businessmgr.IndividualCustomer getCustomer() {\r\n return customer;\r\n }", "public Customer getCustomer()\n {\n return this.customer;\n }", "public Location getCurrentLocation() { return entity.getLocation(); }", "@Override\r\n\tpublic String currentUser() {\n\t\treturn temp.getCustomerName();\r\n\t}", "public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}", "public int getCurrentTimepoint()\n\t{\n\t\treturn current_timepoint;\n\t}", "public Customer getCustomer() {\n return customer;\n }", "public Point getCoordinate() {\n return this.coordinate;\n }", "public Point getLocation();", "public Point getLocation() { return loc; }", "public Money getUsePoint() {\n\t\treturn usePoint;\n\t}", "public String getCustomerReference() {\n return customerReference;\n }", "public double GetSetpoint() {\n\t\treturn msc.GetSetpoint();\n\t}", "public Point getLocation() {\n return pos;\n }", "public int getPointX() {\n return pointX;\n }", "@GetMapping(\"/points/{customerId}\")\n @ResponseStatus(HttpStatus.OK)\n public int retrievePointsByCustomerId(@PathVariable(\"customerId\") int customerId) {\n\n return serviceLayer.getPoints(customerId);\n }", "public double getSetpoint() {\n return getController().getSetpoint();\n }", "public Point getLocation() {\n return location;\n }", "public Coordinate getCoordinate() {\n\t\treturn super.listCoordinates().get(0);\n\t}", "public LatLng getCurrentPosition(){\n if(currentPosition == null) {\n return null;\n }\n else\n return currentPosition;\n }", "public ParseGeoPoint getGeoPoint () {\n return getParseGeoPoint(ATTRIBUTE_GEO_POINT);\n }", "io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer();", "public Customer getCustomer()\n {\n return customer;\n }", "public final Point getLocation() {\n return this.location ;\n }", "public Point getScreenCoordinate(Coord c) {\n return getScreenCoordinate(c.getLatitude(), c.getLongitude());\n }", "public String getCustomerPlace() {\r\n return town.getName();\r\n }", "public Point getLocation() {\r\n return new Point((int)x,(int)y);\r\n }", "public Point getLocation() {\n Map<String, Long> map = (java.util.Map<String, Long>) driver.executeAtom(\n atoms.getLocationJs, false, this);\n return new Point(map.get(\"x\").intValue(), map.get(\"y\").intValue());\n }", "public Point getReferencePoint(){\n return referencePoint;\n }", "public long getCustomerId() {\n return customerId;\n }", "public long getCustomerId() {\n return customerId;\n }", "public Point getCarLocation() {\r\n\r\n SQLiteQueryBuilder builder = new SQLiteQueryBuilder();\r\n builder.setTables(FTS_VIRTUAL_TABLE_CAR);\r\n builder.setProjectionMap(mColumnMapCar);\r\n\r\n Cursor cursor = builder.query(mDatabaseOpenHelper.getReadableDatabase(),\r\n null, null, null, null, null, null);\r\n\r\n if (cursor == null) {\r\n return null;\r\n } else if (!cursor.moveToFirst()) {\r\n cursor.close();\r\n return null;\r\n }\r\n\r\n String point_str = cursor.getString(1);\r\n\r\n point_str = point_str.trim();\r\n String[] coordinates = point_str.split(\",\");\r\n String lon = coordinates[0];\r\n String lat = coordinates[1];\r\n\r\n double flon = Float.valueOf(lon);\r\n double flat = Float.valueOf(lat);\r\n\r\n return (new Point(flon, flat));\r\n }", "public Long getCustomerId() {\n return customerId;\n }", "public String getCustomerName() {\n\t\treturn this.customer.getCustomerName();\n\t}", "protected String getCustomerID() {\n\t\treturn this.clientUI.getCustomerID();\n\t}", "public Point getLocation() {\n\t\treturn location;\n\t}", "public Customer getCustomer() {\n String __key = this.customerId;\n if (customer__resolvedKey == null || customer__resolvedKey != __key) {\n if (daoSession == null) {\n throw new DaoException(\"Entity is detached from DAO context\");\n }\n CustomerDao targetDao = daoSession.getCustomerDao();\n Customer customerNew = targetDao.load(__key);\n synchronized (this) {\n customer = customerNew;\n \tcustomer__resolvedKey = __key;\n }\n }\n return customer;\n }", "public BigDecimal getCurrentCostPrice () \n\t{\n\t\tBigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_CurrentCostPrice);\n\t\tif (bd == null)\n\t\t\t return Env.ZERO;\n\t\treturn bd;\n\t}", "public Point getclickedPoint() {\r\n return clickedPoint;\r\n }", "public PointInSpace getPointInSpace() {\n return point;\n }", "public String getCustomerId() {\r\n\t\treturn getId();\r\n\t}", "public Point getStartPoint() {\n // First, this is Settler's location\n UnitList units = unitService.findByClassUuid(Settlers.CLASS_UUID);\n if (units != null && !units.isEmpty()) {\n return units.getAny().getLocation();\n }\n\n // If Settlers were destroyed then it is the first city's location\n City city = cityService.getAny();\n if (city != null) {\n return city.getLocation();\n }\n\n // If there is no cities, then the first Unit's location\n AbstractUnit unit = unitService.getAny();\n if (unit != null) {\n return unit.getLocation();\n }\n\n // If there is no units then (0, 0)\n return new Point(0, 0);\n }", "public String getCustomerAddr() {\n return customerAddr;\n }", "public static String getCustomerAddress() {\n\t\treturn customerAddress;\n\t}", "public io.opencannabis.schema.commerce.OrderCustomer.Customer getCustomer() {\n if (customerBuilder_ == null) {\n return customer_ == null ? io.opencannabis.schema.commerce.OrderCustomer.Customer.getDefaultInstance() : customer_;\n } else {\n return customerBuilder_.getMessage();\n }\n }", "public Point getLocPoint(){\n return super.getLocation();\n }", "public Point getPosition();", "Customer getCustomer();", "public Point getPosition(){\r\n return new Point(this.position);\r\n }", "public Point getLocation() {\n\t\treturn location.getCopy();\n\t}", "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 String getCustomerName() {\r\n return name.getName();\r\n }", "public CustomerProfile getCustomerProfile();", "public GeoPoint position(){\n return position;\n }", "public Customer getCustomerDetails() throws Exception {\n\t\treturn customersDBDAO.getOneCustomer(customerId);\n\t}", "public Location getCurrentLocation()\n\t{\n\t\treturn currentLocation;\n\t}", "public long getCustomerId() {\n\t\treturn customerId;\n\t}", "public int pointValue() {\r\n return pointValue;\r\n }", "protected Optional<Customer> getCustomer() {\n return customer.getOptional();\n }", "public Customer getCustomer()\n {\n return customer;\n }", "public int getCustomerID()\r\n\t{\r\n\t\treturn customerID;\r\n\t}", "public String getCustomerId() {\n return customerId;\n }", "public String getCustomerId() {\n return customerId;\n }" ]
[ "0.70314926", "0.70314926", "0.66574705", "0.65742874", "0.65622205", "0.6521666", "0.6521666", "0.64999884", "0.6499908", "0.64972866", "0.64766735", "0.6453519", "0.6453519", "0.64519006", "0.64483994", "0.6424501", "0.6370454", "0.63660264", "0.63338375", "0.63276577", "0.63200927", "0.631206", "0.6285056", "0.6253813", "0.6246929", "0.6234434", "0.6212752", "0.6207391", "0.620553", "0.6193906", "0.61528766", "0.6118902", "0.61106014", "0.6072461", "0.6070468", "0.6066725", "0.60646725", "0.6047043", "0.60323364", "0.6027743", "0.6017969", "0.60160905", "0.60127264", "0.6011136", "0.600927", "0.5993683", "0.59732807", "0.5967844", "0.5944636", "0.5905898", "0.5903471", "0.5893184", "0.5887805", "0.58838046", "0.5876524", "0.58765054", "0.5873087", "0.5851413", "0.58504176", "0.58384603", "0.5834328", "0.58334047", "0.5829093", "0.5828472", "0.5826749", "0.5822084", "0.58200055", "0.58200055", "0.5815146", "0.58006823", "0.5786948", "0.57847095", "0.5780822", "0.57797587", "0.57746327", "0.57662547", "0.5762713", "0.57556564", "0.5755134", "0.57546866", "0.57538646", "0.57522035", "0.5748776", "0.5748562", "0.57474566", "0.5744768", "0.57259285", "0.5725547", "0.5722906", "0.5721217", "0.5720468", "0.5717182", "0.5715085", "0.57127213", "0.57105076", "0.5709507", "0.5705072", "0.5695841", "0.56905603", "0.56905603" ]
0.61225295
31
Check point of customer to exchange gift.
public static int checkRedemptionPoint(String cardNumber,int giftType,Connection con){ LMSDAOFactory factory = LMSDAOFactory.getInstances(); IJPOS_Customer myCustomer = factory.getJPOS_Customer(); return myCustomer.checkRedemptionPoint(cardNumber, giftType, con); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isTransferRequestValid(Customer fromCustomer,Customer toCustomer,RewardCurrency fromRewardCurrency, RewardCurrency toRewardCurrency,TransferPointSetting transferPointSetting) throws InspireNetzException {\n\n MessageWrapper messageWrapper = generalUtils.getMessageWrapperObject(\"\",fromCustomer.getCusLoyaltyId(),\"\",\"\",\"\",fromCustomer.getCusMerchantNo(),new HashMap<String, String>(0),MessageSpielChannel.ALL,IndicatorStatus.YES);\n\n // Check if the customer status is active\n if ( fromCustomer.getCusStatus() != CustomerStatus.ACTIVE ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> The fromCustomer account is not active\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_FROM_CUSTOMER_INACTIVE);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(), CustomerActivityType.TRANSFER_POINT, \"Failed , source customer not active\", fromCustomer.getCusMerchantNo(), \"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_PARTY_NOT_ACTIVE);\n\n }\n\n\n // Check if the toCustomer is active\n if ( toCustomer.getCusStatus() != CustomerStatus.ACTIVE ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> The toCustomer account is not active\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_TO_CUSTOMER_INACTIVE);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , destination customer not active\",fromCustomer.getCusMerchantNo(),\"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_PARTY_NOT_ACTIVE);\n\n }\n\n\n // Check if the both fromCustomer and toCustomer are same\n if ( fromCustomer.getCusCustomerNo().longValue() == toCustomer.getCusCustomerNo().longValue() ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> sourceCustomer and destCustomer cannot be same\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_CUSTOMERS_SAME);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , source and destination customers are same\",fromCustomer.getCusMerchantNo(),\"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_OPERATION_NOT_ALLOWED);\n\n }\n\n\n // Check if the transferPointSetting is valid\n if ( transferPointSetting == null ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> No TransferPointSetting object found\");\n\n messageWrapper.setSpielName(MessageSpielValue.GENERAL_ERROR_MESSAGE);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , no transfer point setting found\",fromCustomer.getCusMerchantNo(),\"\");\n\n // throw exception\n throw new InspireNetzException(APIErrorCode.ERR_OPERATION_FAILED);\n\n }\n\n\n // Check the validity for the location compatibility\n if ( fromCustomer.getCusLocation().longValue() != toCustomer.getCusLocation().longValue() &&\n transferPointSetting.getTpsTransferCompatibility() != TransferPointSettingCompatibility.ACROSS_LOCATIONS ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> Transfer request across locations are not allowed\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_ACROSS_LOCATION);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , transfer request across mega brands not allowed\",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_OPERATION_NOT_ALLOWED);\n\n\n }\n\n\n // check if the customer tier is valid\n boolean isTierValid = isCustomerTierValid(fromCustomer);\n\n // If not valid, then throw exception\n if ( !isTierValid ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> Customer tier does not allow transfer\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_CUSTOMER_TIER_NOT_VALID);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , customer tier doesn't allow transfer \",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_TRANSFER_REQUEST_TIER_NOT_VALID);\n\n }\n\n\n\n\n // Check if the customer has reached max transfer limit\n boolean isMaxTransferValid = isMaxTransfersValid(fromCustomer,transferPointSetting);\n\n // Check if the max transfer condition is valid\n if ( !isMaxTransferValid ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> Customer exceeded maximum limit\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_MAX_TRANSFER_LIMIT_REACHED);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , customer exceeded maximum transfer limit \",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_MAX_TRANSFER_POINT_COUNT_EXCEEDED);\n\n }\n\n\n // Check if the parties involved are part of a linking\n boolean isPartOfLinking = isCustomersLinked(fromCustomer, toCustomer);\n\n // Check if the customers are part of linking\n if ( isPartOfLinking ) {\n\n // Log the information\n log.info(\"transferPoints -> isTransferRequestValid -> From customer and to customer are linked\");\n\n messageWrapper.setSpielName(MessageSpielValue.TRANSFER_POINT_CUSTOMER_LINKED);\n\n userMessagingService.transmitNotification(messageWrapper);\n\n //log the activity\n customerActivityService.logActivity(fromCustomer.getCusLoyaltyId(),CustomerActivityType.TRANSFER_POINT,\"Failed , source and destination customers are linked \",fromCustomer.getCusMerchantNo(),\"\");\n\n // return false\n throw new InspireNetzException(APIErrorCode.ERR_TRANSFER_PARTIES_LINKED);\n\n }\n\n\n // Check if the customer\n return true;\n\n }", "protected boolean customerWantsMeat() { return true; }", "public void payedConfirmation(){\n\t\tassert reserved: \"a seat also needs to be reserved when bought\";\n\t\tassert customerId != -1: \"this seat needs to have a valid user id\";\n\t\tpayed = true;\n\t}", "@Override\r\n\tpublic void payCheck() {\n\t\t\r\n\t}", "@Override\n\tpublic void showConfirmation(Customer customer, List<Item> items, double totalPrice, int loyaltyPointsEarned) {\n\t}", "private TransferPointRequest checkTransferRequestEligibility(TransferPointRequest transferPointRequest) {\n Customer fromAccount = transferPointRequest.getFromCustomer();\n\n //get destination account\n Customer toAccount = transferPointRequest.getToCustomer();\n\n //check if account is linked\n transferPointRequest = isAccountLinked(transferPointRequest);\n\n //set request customer no as from account customer no\n transferPointRequest.setRequestorCustomerNo(fromAccount.getCusCustomerNo());\n\n //if accounts are not linked , requestor is eligible for transfer\n if(!transferPointRequest.isAccountLinked()){\n\n //set transfer eligibility to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n } else {\n\n //if linked , get the transfer point settings\n TransferPointSetting transferPointSetting = transferPointRequest.getTransferPointSetting();\n\n //check redemption settings\n switch(transferPointSetting.getTpsLinkedEligibilty()){\n\n case TransferPointSettingLinkedEligibity.NO_AUTHORIZATION:\n\n //if authorization is not needed set eligibity to ELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.PRIMARY_ONLY:\n\n //check the requestor is primary\n if(!transferPointRequest.isCustomerPrimary()){\n\n //if not primary , then set eligibility to INELIGIBLE\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.INELIGIBLE);\n\n } else {\n\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.SECONDARY_WITH_AUTHORIZATION:\n\n //if customer is secondary , set eligibility to APRROVAL_NEEDED and set approver\n //and requestor customer no's\n if(!transferPointRequest.isCustomerPrimary()){\n\n //set eligibility status as approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n } else {\n\n //set eligibility to eligible\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.ELIGIBLE);\n\n }\n\n return transferPointRequest;\n\n case TransferPointSettingLinkedEligibity.ANY_ACCOUNT_WITH_AUTHORIZATION:\n\n //set eligibility to approval needed\n transferPointRequest.setEligibilityStatus(RequestEligibilityStatus.APPROVAL_NEEDED);\n\n if(transferPointRequest.isCustomerPrimary()){\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getChildCustomerNo());\n\n } else {\n\n //set approver customer no\n transferPointRequest.setApproverCustomerNo(transferPointRequest.getParentCustomerNo());\n\n }\n\n return transferPointRequest;\n\n }\n }\n\n return transferPointRequest;\n\n }", "if (charge == adhocTicket.getCharge()) {\n System.out.println(\"Charge is passed\");\n }", "boolean hasCustomerUserAccessInvitation();", "@Override\n\tpublic void notifyCustomer() {\n\t\tJOptionPane.showMessageDialog(null,\n\t\t\t\t\"Customer Credit has been Charged more than $400\", \"Warning\",\n\t\t\t\tJOptionPane.WARNING_MESSAGE);\n\t}", "@Test\n public void creditApproved() throws Exception {\n Application app = new Application();\n app.setName(\"phil garfield\");\n app.setCreditScore(600);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertTrue(result.isApproved());\n }", "private void processEmails(ConnectionVO cvo, ActionRequest req) throws ActionException {\n\t\tCampaignMessageSender emailer = new CampaignMessageSender(getAttributes());\n\t\tSiteVO site = (SiteVO) req.getAttribute(Constants.SITE_DATA);\n\t\tRezDoxNotifier notifyUtil = new RezDoxNotifier(site, getDBConnection(), getCustomSchema());\n\n\t\t//not yet approved and we have either a sending member or sending business.\n\t\tif (cvo.getApprovedFlag() == 0 && (!StringUtil.isEmpty(cvo.getSenderMemberId()) || !StringUtil.isEmpty(cvo.getSenderBusinessId()))) {\n\t\t\tsendRequestEmail(cvo, emailer, notifyUtil);\n\n\t\t} else if (cvo.getApprovedFlag() == 1) {\n\t\t\tsendApprovedEmail(cvo, emailer, notifyUtil);\n\n\t\t\t//award 25 points to the members involved in this transaction - we do not award points to businesses.\n\t\t\tRewardsAction ra = new RewardsAction(getDBConnection(), getAttributes());\n\t\t\tif (!StringUtil.isEmpty(cvo.getSenderMemberId()))\n\t\t\t\tra.applyReward(Reward.CONNECT.name(), cvo.getSenderMemberId(), req);\n\t\t\tif (!StringUtil.isEmpty(cvo.getRecipientMemberId()))\n\t\t\t\tra.applyReward(Reward.CONNECT.name(), cvo.getRecipientMemberId(), req);\n\t\t}\n\t}", "@Override\n\t\t\tpublic void action() {\n\t\t\t\tMessageTemplate cfpTemplate = MessageTemplate.MatchPerformative(ACLMessage.CFP);\n\t\t\t\tMessageTemplate informTemplate = MessageTemplate.MatchPerformative(ACLMessage.INFORM);\n\t\t\t\tMessageTemplate messageTemplate = MessageTemplate.or(cfpTemplate, informTemplate);\n\t\t\t\tACLMessage receivedMessage = myAgent.receive(messageTemplate);\n\t\t\t\t\n\t\t\t\tif (receivedMessage != null) {\n\t\t\t\t\thasReceivedMessage = true;\n\t\t\t\t\t\n\t\t\t\t\tif (receivedMessage.getPerformative() == ACLMessage.CFP) {\n\t\t\t\t\t\tdouble price = Double.parseDouble(receivedMessage.getContent());\n\t\t\t\t\t\tSystem.out.println(\"Buyer [\" + getAID().getLocalName() + \"] received \"\n\t\t\t\t\t\t\t\t+ \"CFP with price \" + Double.toString(price));\n\t\t\t\t\t\t\n\t\t\t\t\t\t// Value in range; send proposal\n\t\t\t\t\t\tif (price <= priceToBuy) {\n\t\t\t\t\t\t\tACLMessage proposal = new ACLMessage(ACLMessage.PROPOSE);\n\t\t\t\t\t\t\tproposal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\tproposal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(proposal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = sendProposal;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Price too high; refuse and wait for new CFP\n\t\t\t\t\t\t\tACLMessage refusal = new ACLMessage(ACLMessage.REFUSE);\n\t\t\t\t\t\t\trefusal.addReceiver(receivedMessage.getSender());\n\t\t\t\t\t\t\trefusal.setProtocol(receivedMessage.getProtocol());\n\t\t\t\t\t\t\tmyAgent.send(refusal);\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\ttransitionStatus = highPrice;\n\t\t\t\t\t\t}\n\t\t\t\t\t} else if (receivedMessage.getPerformative() == ACLMessage.INFORM) {\n\t\t\t\t\t\ttransitionStatus = noBuyers;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tblock();\n\t\t\t\t}\n\t\t\t}", "private void pay() {\r\n System.out.println(\"Customer sent payment\");\r\n }", "@Test\n public void transferCheckingtoSavingsTest(){\n assertTrue(userC.transfer(150.00, userS));\n }", "boolean CanBuyDevCard();", "boolean CanBuySettlement();", "Boolean checkPass(Customer customer, String pass);", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\tpublic void serviceDeskCustomerGas(){\n\t\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies whether if the Gas customer is not identified within CRM navigates to SMR second page with site number\");\n\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRUser\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\n\t\t.verifyServiceDeskCustomerGas(smrProfile);\t\t\n\t}", "public boolean iConomyCheck(Player player, String action) {\r\n\t\tif (Worker.getPayement() != null && this.getConfig().getBoolean(\"use-iConomy\", true)\r\n\t\t\t\t&& !this.hasPerm(player, \"tomb.free\", false)) {\r\n\t\t\tif (Worker.getPayement().hasAccount(player.getName())) {\r\n\t\t\t\tif (!Worker.getPayement().getAccount(player.getName())\r\n\t\t\t\t\t\t.hasEnough(this.getConfig().getDouble(action, 1.0))) {\r\n\t\t\t\t\tplayer.sendMessage(graveDigger + ChatColor.RED + \"You don't have \"\r\n\t\t\t\t\t\t\t+ Worker.getPayement().format(this.getConfig().getDouble(action, 1.0))\r\n\t\t\t\t\t\t\t+ \" to pay me.\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t} else {\r\n\t\t\t\t\tWorker.getPayement().getAccount(player.getName())\r\n\t\t\t\t\t\t\t.subtract(this.getConfig().getDouble(action, 1.0));\r\n\t\t\t\t\tif (this.getConfig().getDouble(action, 1.0) != 0)\r\n\t\t\t\t\t\tplayer.sendMessage(graveDigger\r\n\t\t\t\t\t\t\t\t+ Worker.getPayement().format(\r\n\t\t\t\t\t\t\t\t\t\tthis.getConfig().getDouble(action, 1.0))\r\n\t\t\t\t\t\t\t\t+ ChatColor.DARK_GRAY + \" used to paying me.\");\r\n\t\t\t\t\treturn true;\r\n\t\t\t\t}\r\n\r\n\t\t\t} else {\r\n\t\t\t\tplayer.sendMessage(graveDigger + ChatColor.RED\r\n\t\t\t\t\t\t+ \"You must have an account to paying me.\");\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn true;\r\n\t}", "public boolean customerInElevator(Customer cust);", "public void examine (Player player) {\n\t\tString desc = getType().getDescription()+\" (id=\"+id+\", amount=\"+amount+\")\";\n\t\tplayer.getDispatcher().sendGameMessage(desc);\n\t\tint value = Virtue.getInstance().getExchange().lookupPrice(id);\n\t\tif (value != -1) {\n\t\t\tplayer.getDispatcher().sendGameMessage(\"This item is worth: \"+StringUtility.formatNumber(value)\n\t\t\t\t\t+\"gp on the Grand Exchange.\");\n\t\t}\n\t}", "public void v_Verify_Guest12_Displayed(){\n\t}", "@Override\n\tpublic void msgReadyForCheck(Customer customerAgent, String choice) {\n\t\t\n\t}", "boolean hasCustomerClient();", "public void v_Verify_Guest11_Displayed(){\n\t}", "@Test\n public void creditDenied() throws Exception {\n Application app = new Application();\n app.setName(\"bill whatwhatwhat\");\n app.setCreditScore(400);\n Offer offer = new Offer();\n offer.setApplication(app);\n\n Application result = service.operation(\"checkCredit\").sendInOut(offer).getContent(Application.class);\n\n // validate the results\n Assert.assertFalse(result.isApproved());\n }", "public void confirmFlight();", "@Test\n public void testDeliveryReturn() {\n //Set up use case\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Provider partner = this.provider2;\n partner.addPartner(originalProvider); //register partnership\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n Booking booking = BookingController.getBooking(orderInfo.getOrderNumber());\n ArrayList<Bike> bookedBikes = booking.bikes;\n\n //deliver bikes to client\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n\n //register return at partner provider\n assertTrue(partner.registerReturn(orderInfo.getOrderNumber()));\n deliveryService.carryOutPickups(LocalDate.now()); //carryout pickups on date when returned\n deliveryService.carryOutDropoffs(); //carry out dropoffs\n originalProvider.checkForDropoffs(); // check for dropoffs\n ArrayList<Bike> availableBikes = new ArrayList<>();\n for (BikeTypes type : originalProvider.getOwnedBikes().keySet()) {\n availableBikes.addAll(originalProvider.getAvailableBikesOfType(type));\n }\n for (Bike bike : bookedBikes) {\n assertTrue(availableBikes.contains(bike));\n }\n }", "@Test\n\tpublic void withdrawTest(){\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tAccount cAcc = new CurrentAccount(cus);\n\t\tbc.withdraw(cAcc, 300);\n\t\tboolean flag = false;\n\t\tif(cAcc.getBalance() == -300.0){\n\t\t\tflag = true;\n\t\t}\n\t\tassertTrue(flag);\n\t}", "public void v_Verify_Guest2_Displayed(){\n\t}", "boolean hasCustomer();", "boolean hasCustomer();", "public void v_Verify_Guest5_Displayed(){\n\t}", "public void v_Verify_Guest3_Displayed(){\n\t}", "@Test\n public void checkUpdateCampaignTest() {\n ObjectIdentityData buyer = ObjectIdentityData.getAnyObjectFromList(buyers);\n // select any not own campaign\n ObjectIdentityData campaign = ObjectIdentityData.getAnyObjectFromList(campaigns);\n RequestData requestData = new CampaignRequestData(campaign, buyer, false);\n GrantsVerification.checkUpdateRequest(requestData, isAdmin());\n }", "@Test(description = \"TA - 290 Verify Order with 2 'Ready to Ship' Items with different SKU/sPurchase with Multishipment for Guest user\")\r\n\tpublic void verifyGuestOrderWithMutlishipment() throws InterruptedException {\r\n\r\n\t\tUIFunctions.addMultipleProducts(\"TumiTestData\", \"GuestDetails\");\r\n\t\tclick(minicart.getMiniCartSymbol(), \"Cart Image\");\r\n\t\tclick(minicart.getProceedCheckOut(), \"Proceed To Cart\");\r\n\t\tclick(mainCart.getProceedCart(), \"Proceed to Checkout\");\r\n\t\tif (!(selectedCountry.contains(\"US\") || selectedCountry.contains(\"Canada\"))) {\r\n\t\t\tinput(singlePage.getEmailAddress(), testData.get(\"EmailID\"), \"Email ID\");\r\n\t\t\tclick(singlePage.getContinueAsGuest(), \"Contiue as Guest\");\r\n\t\t}\r\n\t\tUIFunctions.addMultiship();\r\n\t\tUIFunctions.addMultishipAddressWithCardDeatils(\"TumiTestData\", \"CreditCardDetailsMultishipmnet\");\r\n\t\tUIFunctions.completeOrder();\r\n\r\n\t}", "public void checkCreditCard() throws BusinessException;", "public void checkOut(Customer customer) {\n\n customer.greetCustomer();\n System.out.println(\"--------------------------------------\");\n\n // Tussentotaalprijs berekenen en printen\n int firstTotalPrice = calculateTotalPrice(customer.basket);\n\n System.out.println(\"Het tussentotaal is: \" + firstTotalPrice + \" euro\");\n\n // Korting berekenen\n int discount = calculateDiscount(customer.basket);\n\n //int finalTotalPrice = calculateEndPrice(firstTotalPrice, discount);\n }", "public void v_Verify_Guest4_Displayed(){\n\t}", "public void v_Verify_Guest1_Displayed(){\n\t}", "private void CustomerPaidCheck() {\n\t\tfloat CompanyDemand = Float.parseFloat(label_7.getText());\n\t\tif (CompanyDemand > 0) {\n\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 0 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tPreparedStatement statement = DBConnection.connection\n\t\t\t\t\t\t.prepareStatement(\"update customer_list set `Check` = 1 where Name = '\"\n\t\t\t\t\t\t\t\t+ name + \"'And Last_Name = '\" + lastName + \"' \");\n\t\t\t\tstatement.execute();\n\t\t\t} catch (SQLException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public void validateRequestToBuyPage(){\r\n\t\tsearchByShowMeAll();\r\n\t\tclickCheckboxAndRenewBuyButton();\r\n\t\tverifyRequestToBuyPage();\r\n\t}", "public boolean isApplicable(DevelopmentCard card) {\n\t\treturn (this.familyMember.getActionValue()\n\t\t\t\t+ this.getPlayer().getBonuses().getActivationVariation(card.getCardType())\n\t\t\t\t+ paidServants >= card.getActivationCost());\n\t}", "boolean hasAllowedCredit();", "public void v_Verify_Guest6_Displayed(){\n\t}", "boolean hasExchangeprice();", "CustomerDTO getUserForProof(String name,CustomerDTO customerDTO) throws EOTException;", "public void credit(){\n\t\tSystem.out.println(\"hdfcbank credited\");\n\t\t\n\t}", "boolean hasCustomerUserAccess();", "@Test(description = \"TA - 290 Verify Order with 2 'Ready to Ship' Items with different SKU/sPurchase with Multishipment for Guest user\")\n\tpublic void verifyGuestOrderWithMutlishipment()throws InterruptedException{\n\t\tUIFunctions.addMultipleProducts(\"TumiTestData\",\"GuestDetails\");\n\t\tclick(minicart.getMiniCartSymbol(), \"Cart Image\");\n\t\tclick(minicart.getProceedCheckOut(), \"Proceed to Checkout\");\n\t\tclick(mainCart.getProceedCart(), \"Proceed to Checkout\");\n\t\tinput(singlePage.getEmailAddress(), testData.get(\"EmailID\"), \"Email ID\");\n\t\t//UIFunctions.waitForContinueToEnable();\n\t\tclick(singlePage.getContinueAsGuest(), \"Contiue as Guest\");\n\t\tUIFunctions.addMultiship();\n\t\tUIFunctions.addMultishipAddressWithCardDeatils(\"TumiTestData\",\"CreditCardDetailsMultishipmnet\");\n\t\tUIFunctions.completeOrder();\n\n\t\t\n\t}", "@Override\n\tprotected String showConfirmation() {\n\t\treturn \"Payment is successful. Check your credit card statement for PetSitters, Inc.\";\n\t}", "public void buySellFood(boolean buy, Player customer) {\n if (buy && foodQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Food in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= foodCost) {\n foodQuantity--;\n customer.addSubMoney(-foodCost);\n customer.addSubFood(1);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost += 2;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item.\");\n }\n } else {\n if (customer.getFood() >= 1) {\n customer.addSubMoney(foodCost - 5);\n if (foodQuantity == 0) {\n foodCost = 30;\n } else {\n foodCost -= 2;\n }\n customer.addSubFood(-1);\n foodQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "public void v_Verify_Guest10_Displayed(){\n\t}", "@Override\n public void confirmAddressExchangeRequest(UUID requestId) throws CantConfirmAddressExchangeRequestException, PendingRequestNotFoundException {\n\n System.out.println(\"****** crypto addresses -> confirming address\");\n try {\n\n //only the record you request the address\n\n if(cryptoAddressesNetworkServiceDao.getPendingRequest(requestId).getMessageType().equals(AddressesConstants.OUTGOING_MESSAGE))\n cryptoAddressesNetworkServiceDao.confirmAddressExchangeRequest(requestId);\n\n } catch (CantConfirmAddressExchangeRequestException | PendingRequestNotFoundException e){\n // PendingRequestNotFoundException - THIS SHOULD' HAPPEN.\n errorManager.reportUnexpectedPluginException(this.getPluginVersionReference(), UnexpectedPluginExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_PLUGIN, e);\n throw e;\n } catch (Exception e){\n errorManager.reportUnexpectedPluginException(this.getPluginVersionReference(), UnexpectedPluginExceptionSeverity.DISABLES_SOME_FUNCTIONALITY_WITHIN_THIS_PLUGIN, e);\n throw new CantConfirmAddressExchangeRequestException(FermatException.wrapException(e), null, \"Unhandled Exception.\");\n }\n }", "private void transferCoin(Player customer, MarketObject<?> x) throws IllegalStateException {\n\t\tPlayer seller=game.getPlayerByID(x.getSellingPlayer().getPlayerID());\n\t\tif(customer.checkCoins(x.getPrice()))\n\t\t\tseller.setCoins(\n\t\t\t\tseller.getCoins() + x.getPrice());\n\t\telse\n\t\t\tthrow new IllegalStateException(\"Impossible to buy. You only own \"\n\t\t\t\t\t+customer.getCoins()+\" instead of the \"+x.getPrice()+\" required\");\n\t\t\n\t}", "void askBuyDevCards();", "boolean CheckIfRealPerson(Customer customer);", "void purchaseMade();", "@Override\r\n\t\tpublic void action() {\n MessageTemplate mt = MessageTemplate.MatchPerformative(ACLMessage.ACCEPT_PROPOSAL);\r\n MessageTemplate mt2 = MessageTemplate.MatchPerformative(ACLMessage.PROPOSE);\r\n ACLMessage msg = myAgent.receive(mt);\r\n //If it is a ACCEPT_PROPOSAL, the seller sell the book to the buyer (execpt if the book if not here anymore)\r\n if (msg != null) {\r\n // ACCEPT_PROPOSAL Message received. Process it\r\n title = msg.getContent();\r\n ACLMessage reply = msg.createReply();\r\n\r\n Integer price = (Integer) catalogue.remove(title);\r\n if (price != null) {\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(String.valueOf(price));\r\n System.out.println(title+\" sold to agent \"+msg.getSender().getName());\r\n }\r\n else {\r\n // The requested book has been sold to another buyer in the meanwhile .\r\n reply.setPerformative(ACLMessage.FAILURE);\r\n reply.setContent(\"not-available\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n //If it is a new PROPOSE, the buyer is trying to negociate.\r\n else {\r\n ACLMessage msg2 = myAgent.receive(mt2);\r\n if(msg2 != null){\r\n ACLMessage reply = msg2.createReply();\r\n //If the price of the buyer is OK for the seller according to his tolerance, the transaction is made\r\n if(((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) <= tolerance){\r\n System.out.println(myAgent.getLocalName() + \" say : OK, let's make a deal\");\r\n updateCatalogue(title, Integer.parseInt(msg2.getContent()));\r\n reply.setPerformative(ACLMessage.INFORM);\r\n reply.setContent(msg2.getContent());\r\n }\r\n //Else, the seller accept to negociate, he up his tolerance and ask the buyer to up his real price\r\n else{\r\n //Send a REQUEST Message to negociate with the buyer\r\n reply.setPerformative(ACLMessage.REQUEST);\r\n //Up the tolerance by *change*\r\n tolerance += change;\r\n reply.setContent(String.valueOf(change));\r\n System.out.println(myAgent.getLocalName() + \" say : Let's up your real price while I up my tolerance (\" + ((Integer) catalogue.get(title) - Integer.parseInt(msg2.getContent())) + \" < \" + tolerance + \")\");\r\n }\r\n myAgent.send(reply);\r\n }\r\n else{\r\n block();\r\n }\r\n }\r\n\t\t}", "public boolean isCustomerTierValid(Customer fromCustomer) {\n\n // Get the tier for the customer\n Long tieId = fromCustomer.getCusTier();\n\n // Check if the tieId is null\n if ( tieId == null ) {\n\n // Log the information\n log.info(\"TransferPoints isCustomerTierValid -> Customer does not have a tier\");\n\n // Return false\n return false;\n\n }\n\n\n\n\n // Get the Tier for the customer\n Tier tier = tierService.findByTieId(tieId);\n\n // Check if the tier is null\n if ( tier == null ) {\n\n // Log the information\n log.info(\"TransferPoints isCustomerTierValid -> Customer does not have a tier\");\n\n // Return false\n return false;\n\n }\n\n\n\n // Check if the tier is transfer enabled\n if ( tier.getTieIsTransferPointsAllowedInd() != IndicatorStatus.YES ) {\n\n // Log the information\n log.info(\"TransferPoints isCustomerTierValid -> Customer tier does not allow transfer of points\");\n\n // Return false\n return false;\n\n }\n\n\n\n // Finally return true\n return true;\n\n }", "boolean isAutoRedeem();", "public void checkOutFlight() {\n confirmationPage.checkButton();\n }", "protected void acceptedPaymentVerification() {\n BillingSummaryPage.tableBillingGeneralInformation.getRow(1)\n .getCell(\"Current Due\").waitFor(cell -> !cell.getValue().equals(\"Calculating...\"));\n\n assertThat(BillingSummaryPage.tableBillingGeneralInformation.getRow(1))\n .hasCellWithValue(\"Current Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Due\", BillingHelper.DZERO.toString())\n .hasCellWithValue(\"Total Paid\", modalPremiumAmount.get().toString());\n\n assertThat(BillingSummaryPage.tableBillsAndStatements.getRow(1).getCell(\"Status\")).valueContains(PAID_IN_FULL);\n\n assertThat(BillingSummaryPage.tablePaymentsOtherTransactions)\n .with(POLICY_NUMBER, masterPolicyNumber.get())\n .with(TYPE, PAYMENT)\n .with(TableConstants.BillingPaymentsAndTransactionsGB.AMOUNT, String.format(\"(%s)\", modalPremiumAmount.get().toString()))\n .containsMatchingRow(1);\n\n }", "public void purchase() {\r\n\t\tdo {\r\n\t\t\tString id = getToken(\"Enter customer id: \");\r\n\t\t\tString brand = getToken(\"Enter washer brand: \");\r\n\t\t\tString model = getToken(\"Enter washer model: \");\r\n\t\t\tint quantity = getInteger(\"Enter quantity to purchase: \");\r\n\t\t\tboolean purchased = store.purchaseWasher(id, brand, model, quantity);\r\n\t\t\tif (purchased) {\r\n\t\t\t\tSystem.out.println(\"Purchased \" + quantity + \" of \" + brand + \" \" + model + \" for customer \" + id);\r\n\t\t\t} else {\r\n\t\t\t\tSystem.out.println(\"Purchase unsuccessful.\");\r\n\t\t\t}\r\n\t\t} while (yesOrNo(\"Make another Purchase?\"));\r\n\t}", "@When(\"^I enter Same Day Delivery shipping address on guest shipping page$\")\n public void I_enter_shipping_address_on_guest_shipping_page() {\n HashMap<String, String> opts = new HashMap<>();\n pausePageHangWatchDog();\n opts.put(\"sdd_eligible\", \"true\");\n if (macys()) {\n new Checkout(opts, false).fillShippingData(false);\n } else {\n new CheckoutPageBcom(opts, false).fillGuestShippingData(false);\n }\n resumePageHangWatchDog();\n }", "private static void verifPayement(){\n\t\tint x,y, dime;\n\t\tx=jeu.getAssam().getXPion()-1;\n\t\ty=jeu.getAssam().getYPion()-1;\n\t\tint caseInfoTapis = jeu.cases[x][y].getCouleurTapis();\n\t\tif(caseInfoTapis == tour || caseInfoTapis == 0){\n\t\t\treturn;\n\t\t}\n\t\telse{\n\t\t\tdime = jeu.payerDime(caseInfoTapis,x,y,0,new boolean[7][7]);\n\t\t\tJoueur payeur = jeu.getJoueurs()[tour-1];\n\t\t\tJoueur paye = jeu.getJoueurs()[caseInfoTapis-1];\n\t\t\tif(jeu.payerVraimentDime(payeur,paye,dime)){\n\t\t\t\tjoueurElimine++;\n\t\t\t}\n\t\t\tconsole.afficherPayeurPaye(payeur, paye, dime);\n\t\t}\n\t}", "public void v_Verify_Guest7_Displayed(){\n\t}", "void askDevCardProduction();", "public void verifyBillingWithDeliveryAddress(){\r\n\t\tclass Local {};\r\n\t\tReporter.log(\"TestStepComponent\"+Local.class.getEnclosingMethod().getName());\r\n\t\tReporter.log(\"TestStepInput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepOutput:-\"+\"NA\");\r\n\t\tReporter.log(\"TestStepExpectedResult:- Both Billing and Delivery address should be same\");\r\n\t\ttry{\r\n\t\t\tString BillingAddress = driver.findElement(locator_split(\"txtBillingAddress\")).getText().toString();\r\n\t\t\tclick(locator_split(\"btnDeliverytab\"));\r\n\t\t\tString DeliveryAddress = driver.findElement(locator_split(\"txtDeliveryAddress\")).getText().toString();\r\n\t\t\tif(BillingAddress.equals(DeliveryAddress)){\r\n\t\t\t\tSystem.out.println(\"Both Billing and Delivery address are same\");\r\n\t\t\t\tReporter.log(\"PASS_MESSAGE:- Both Billing and Delivery address are same\");\r\n\t\t\t}\r\n\t\t\telse{\r\n\t\t\t\tReporter.log(\"FAIL_MESSAGE:- Billing and Delivery address are not same\");\r\n\t\t\t}\r\n\t\t}\r\n\t\tcatch(Exception e){\r\n\t\t\tReporter.log(\"FAIL_MESSAGE:- Element \"+elementProperties.getProperty(\"txtBillingAddress\")+\" \"+elementProperties.getProperty(\"txtDeliveryAddress\")+\" \"+elementProperties.getProperty(\"btnDeliverytab\"));\r\n\t\t\tthrow new NoSuchElementException(\"The element with \"\r\n\t\t\t\t\t+ elementProperties.getProperty(\"txtAddtoCartPage\")\r\n\t\t\t\t\t+ \" not found\");\r\n\r\n\t\t}\r\n\t}", "public void testReserveSeatsNullEmail(){\n TheatreTicketService ticketService = new TheatreTicketService();\n String confirmationCode = ticketService.reserveSeats(0, null);\n assertTrue(confirmationCode == null);\n }", "public void pickupDevelopmentCardFromTower(Player player, FamilyMemberColor familyMemberColor, int servants, int indexTower, int indexCell, InformationCallback informationCallback) throws GameException{\n Tower tower = this.mainBoard.getTower(indexTower);\n TowerCell cell = tower.getTowerCell(indexCell);\n\n if(player.getPersonalBoard().getValuables().getResources().get(ResourceType.SERVANT) < servants)\n throw new GameException(GameErrorType.FAMILY_MEMBER_DICE_VALUE);\n\n int servantsValue = servants/player.getPersonalBoard().getExcommunicationValues().getNumberOfSlaves();\n\n LeaderCard leaderCardBrunelleschi = player.getPersonalBoard().getLeaderCardWithName(\"Filippo Brunelleschi\");\n\n if (cell.getPlayerNicknameInTheCell() == null || player.getPersonalBoard().getAlwaysPlaceFamilyMemberInsideActionSpace()){\n\n tower.familyMemberCanBePlaced(player, familyMemberColor);\n\n updateFamilyMemberValue(player, familyMemberColor, servantsValue);\n\n try {\n cell.familyMemberCanBePlaced(player, familyMemberColor);\n\n if (!tower.isFree() && (leaderCardBrunelleschi == null || !leaderCardBrunelleschi.getLeaderEffectActive())) {\n if(player.getPersonalBoard().getValuables().getResources().get(ResourceType.COIN) >= 3)\n player.getPersonalBoard().getValuables().decrease(ResourceType.COIN, 3);\n else\n throw new GameException(GameErrorType.TOWER_COST);\n }\n\n cell.developmentCardCanBeBought(player, informationCallback);\n\n DevelopmentCard card = cell.getDevelopmentCard();\n this.payValuablesToGetDevelopmentCard(player, card, informationCallback);\n\n player.getPersonalBoard().addCard(card);\n if(card.getImmediateEffect() != null)\n card.getImmediateEffect().runEffect(player,informationCallback);\n if(card.getColor().equals(DevelopmentCardColor.BLUE) && card.getPermanentEffect() != null)\n card.getPermanentEffect().runEffect(player, informationCallback);\n\n if(cell.getTowerCellImmediateEffect() != null && canRunTowerImmediateEffects(player, indexCell))\n cell.getTowerCellImmediateEffect().runEffect(player, informationCallback);\n\n player.getPersonalBoard().setFamilyMembersUsed(familyMemberColor);\n\n cell.setPlayerNicknameInTheCell(player.getUsername());\n } catch (GameException e){\n restoreFamilyMemberValue(player, familyMemberColor, servantsValue);\n\n if (!tower.isFree() && (leaderCardBrunelleschi == null || !leaderCardBrunelleschi.getLeaderEffectActive()) && !e.getError().equals(GameErrorType.TOWER_COST))\n player.getPersonalBoard().getValuables().increase(ResourceType.COIN, 3);\n throw e;\n }\n } else {\n throw new GameException(GameErrorType.TOWER_CELL_BUSY);\n }\n }", "public void buySellEnergy(boolean buy, Player customer) {\n if (buy && energyQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Energy in the store\");\n } else {\n if (buy) {\n if (customer.getMoney() >= energyCost) {\n energyQuantity--;\n customer.addSubMoney(-energyCost);\n customer.addSubEnergy(1);\n if (energyQuantity == 0) {\n energyCost = 25;\n } else {\n energyCost += 2;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getEnergy() >= 1) {\n customer.addSubMoney(energyCost - 5);\n if (energyQuantity == 0) {\n energyCost = 25;\n } else {\n energyCost -= 2;\n }\n customer.addSubEnergy(-1);\n energyQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have any of this item to sell\");\n }\n }\n }\n }", "public void v_Verify_Guest9_Displayed(){\n\t}", "@Test\n public void testWrongPartner() {\n /* Set up scenario. As one might see, no partnership was registered hence we throw an\n error.\n */\n this.quotes = Controller.getQuotes(desiredBikes, this.dateRange,\n this.customer.getLocation(),\n true);\n Quote chosenQuote = this.quotes.get(0);\n Provider originalProvider = chosenQuote.provider;\n Payment orderInfo = BookingController.bookQuote(chosenQuote, this.customer);\n deliveryService.carryOutPickups(this.bookingDate);\n deliveryService.carryOutDropoffs();\n assertThrows(AssertionError.class, () ->\n {\n this.provider2.registerReturn(orderInfo.getOrderNumber());\n });\n }", "public void doLogicBuy() {\n\t\tif (!player.isHuman) {\n\t\t\tif (player.money > estimatedFee * 1.5) //\n\t\t\t{\n\t\t\t\tint free = (int) (player.money - estimatedFee * 1.5);\n\t\t\t\tCell c = board.getCells().get(player.position);\n\t\t\t\tif (c instanceof TradeableCell) {\n\t\t\t\t\tTradeableCell tc = (TradeableCell) c;\n\t\t\t\t\tif (tc.getOwner() == null && tc.getPrice() < free) {\n\t\t\t\t\t\ttc.buy(player);\n\t\t\t\t\t\tboard.addMessage(\"Just bought\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "@Test\n\tpublic void testCheckSufficientCredits_OverdraftFacility() {\n\n\t\tint creditsRequired = 11;\n\n\t\tSmsMessage msg = new SmsMessage();\n\t\tSmsTask smsTask = new SmsTask();\n\t\tsmsTask.setSakaiSiteId(SmsConstants.SMS_DEV_DEFAULT_SAKAI_SITE_ID);\n\t\tsmsTask.setSmsAccountId(account.getId());\n\t\tsmsTask.setDateCreated(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setDateToSend(new Timestamp(System.currentTimeMillis()));\n\t\tsmsTask.setStatusCode(SmsConst_DeliveryStatus.STATUS_PENDING);\n\t\tsmsTask.setAttemptCount(2);\n\t\tsmsTask.setMessageBody(SmsConstants.SMS_DEV_DEFAULT_SMS_MESSAGE_BODY);\n\t\tsmsTask.setSenderUserName(\"senderUserName\");\n\t\tsmsTask.setMaxTimeToLive(1);\n\t\tsmsTask.getSmsMessages().add(msg);\n\t\tsmsTask.setCreditEstimate(creditsRequired);\n\t\tmsg.setSmsTask(smsTask);\n\n\t\tboolean sufficientCredits = smsBillingImpl.checkSufficientCredits(\n\t\t\t\taccount.getId(), creditsRequired);\n\t\tAssert.assertFalse(\"Expected insufficient credit\", sufficientCredits);\n\t\thibernateLogicLocator.getSmsAccountLogic().persistSmsAccount(account);\n\t\tsufficientCredits = smsBillingImpl.checkSufficientCredits(account\n\t\t\t\t.getId(), creditsRequired);\n\t\tAssert.assertTrue(\"Expected insufficient credit\", !sufficientCredits);\n\t}", "@Test\n public void checkCreateCampaignTest() {\n ObjectIdentityData buyer = ObjectIdentityData.getAnyObjectFromList(buyers);\n // create request data with campaign test data\n RequestData requestData = new CampaignRequestData(buyer);\n // check create post request\n GrantsVerification.checkCreateRequest(requestData, isAdmin());\n }", "public void needconfirmstion(Pending_appoint_Owner pending_appoint_owner) {\n //TODO\n newOwners.put(pending_appoint_owner.grantee.getId(), pending_appoint_owner);\n user.add_msg(\"a new Owner is being appointed for store:\" + getStore().getName()\n + \"- required your confirmation - \" + pending_appoint_owner.grantee.getId());\n }", "public void acceptTransaction(CommandOfService c) throws Exception {\n Session session = Session.getInstance();\n User currentUser = session.getCurrentUser();\n // We pay with the points\n Service s = c.getService();\n User u = c.getOwner();\n if(s.getTypeService() == 1){\n // We pay the user helping\n userDAO.removePoints(s.getCost(),currentUser);\n userDAO.addPoints(s.getCost(),u);\n }\n else{\n // We pay the owner of the service\n userDAO.addPoints(s.getCost(),s.getOwner());\n }\n DAO.acceptTransaction(c);\n FacadeNotification facadeNotification = FacadeNotification.getInstance();\n String title = \"Transaction accepted!\";\n String desc = \"Your command for: \"+s.getTitle()+\" has been accepted.\\n\" +\n \"The points have been exchanged\";\n try {\n facadeNotification.createNotification(c.getOwner().getIdUser(),title,desc);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public boolean approvePotentialDeliveryMan(final Parcel parcel, final String email);", "private void AndOrderIsSentToKitchen() throws Exception {\n assert true;\n }", "@Override\r\n public void dispenseProduct() {\r\n System.out.println(\"Insufficient funds!\");\r\n\r\n }", "public void v_Verify_Guest8_Displayed(){\n\t}", "public void isPurchased(Player player) {\n\t}", "public boolean isValid_ToBuyTicket() {\n if (this.tktSold < this.museum.getMaxVisit() && isNowTime_in_period()) {\r\n return true;\r\n } else {\r\n return false;\r\n }\r\n }", "public void CashPayment()\n {\n }", "private boolean checkCost(int owner, ItemType item) {\n\t\t\t\t\treturn false;\n\t\t\t\t}", "public synchronized int checkGiftCardValues(String profileId) {\r\n if (getIsCheckValueButtonClicked() == false) {\r\n try {\r\n setIsCheckValueButtonClicked(true);\r\n GiftCard tempGiftCard = null;\r\n boolean validInquiryAttempt = true;\r\n ArrayList tempGiftCardList = new ArrayList();\r\n \r\n if (profileId == null || profileId.equals(\"\")) {\r\n return PROFILE_ID_NOT_FOUND;\r\n }\r\n \r\n for (int i = 0; i < getGiftCardList().size(); i++) {\r\n tempGiftCard = getGiftCardListItem(i);\r\n // System.out.println(\"The entered Card Number is : \" + tempGiftCard.getCardNumber());\r\n if (!tempGiftCard.getIsBlank()) {\r\n String tempGcNumber = tempGiftCard.getCardNumber();\r\n if (tempGcNumber.startsWith(\"80\") || tempGcNumber.startsWith(\"81\") || tempGcNumber.startsWith(\"82\") || tempGcNumber.startsWith(\"83\")) {\r\n // System.out.println(\"Inside the check for incircle cards : \" + tempGcNumber);\r\n validInquiryAttempt = false;\r\n tempGiftCard.setIsValid(false);\r\n tempGiftCard.setTransactionStatus(56);\r\n } else {\r\n // System.out.println(\"Outsie the check for incircle cards : \" + tempGiftCard.getCardNumber());\r\n if (giftCardModCheck(tempGiftCard)) {\r\n // System.out.println(\"The entered Card Number is : \" + tempGiftCard.getCardNumber());\r\n // System.out.println(\"inside the ModCheck condition : \" + tempGiftCard.getCardNumber());\r\n tempGiftCard.setAmountAvailable(0.0d);\r\n tempGiftCard.setIsValid(true);\r\n tempGiftCardList.add(tempGiftCard);\r\n } else {\r\n // System.out.println(\"inside else loop where transaction is set for -1 : \" + tempGiftCard.getCardNumber());\r\n validInquiryAttempt = false;\r\n tempGiftCard.setIsValid(false);\r\n tempGiftCard.setTransactionStatus(-1);\r\n }\r\n }\r\n } else {\r\n tempGiftCard.setIsValid(true);\r\n }\r\n }\r\n \r\n if (isLoggingDebug()) {\r\n logDebug(\"getGiftCardBalancerService-->\" + getGiftCardBalanceService() + \"<---\");\r\n }\r\n // Calling gift card service if atleast one gift card is valid.\r\n if (tempGiftCardList.size() != 0) {\r\n try {\r\n tempGiftCardList = (ArrayList) getGiftCardBalanceService().checkGiftCardBalance(profileId, tempGiftCardList);\r\n } catch (Exception e) {\r\n return GIFT_CARD_SYSTEM_UNAVAILABLE;\r\n }\r\n }\r\n // Logic to add the valid cards from the service to the giftcardList as they may be invalid cards in the giftcardList\r\n List<GiftCard> tempList = new ArrayList<GiftCard>();\r\n for (int i = 0; i < getGiftCardList().size(); i++) {\r\n for (int k = 0; k < tempGiftCardList.size(); k++) {\r\n GiftCard giftCardCurrent = getGiftCardListItem(i);\r\n GiftCard giftCardFromService = (GiftCard) tempGiftCardList.get(k);\r\n if (giftCardCurrent.getCardNumber().equals(giftCardFromService.getCardNumber()) && giftCardCurrent.getCid().equals(giftCardFromService.getCid())) {\r\n if (!tempList.contains(giftCardFromService)) {\r\n giftCardCurrent.setAmountAvailable(giftCardFromService.getAmountAvailable());\r\n giftCardCurrent.setTransactionStatus(giftCardFromService.getTransactionStatus());\r\n tempList.add(giftCardFromService);\r\n } else {\r\n getGiftCardList().remove(i);\r\n }\r\n }\r\n }\r\n }\r\n \r\n if (isLoggingDebug()) {\r\n for (int i = 0; i < getGiftCardList().size(); i++) {\r\n logDebug(\"giftcard--\" + i + \"--->\" + getGiftCardListItem(i) + \"<-----\");\r\n }\r\n }\r\n \r\n Iterator giftCardIterator = getGiftCardList().iterator();\r\n while (giftCardIterator.hasNext()) {\r\n tempGiftCard = (GiftCard) giftCardIterator.next();\r\n switch (tempGiftCard.getTransactionStatus()) {\r\n case GiftCard.AMOUNT_OVER_BALANCE:\r\n case GiftCard.CANCELED:\r\n case GiftCard.NM_MERCH_ONLY:\r\n case GiftCard.ALREADY_ON_FILE:\r\n case GiftCard.NOT_EQUAL_TO_INIT_VALUE:\r\n case GiftCard.BALANCE_NOT_TRUE:\r\n case GiftCard.NOT_BEEN_SOLD:\r\n case GiftCard.LOST_OR_STOLEN:\r\n case GiftCard.EXPIRED:\r\n case GiftCard.INVALID_CIN:\r\n case GiftCard.NOT_ADDING_VALUE:\r\n case GiftCard.DIV_04_ONLY:\r\n case GiftCard.DIV_05_ONLY:\r\n case GiftCard.REFUND_ONLY:\r\n case GiftCard.INVALID_INCIRCLE_CARD:\r\n case GiftCard.CARD_NOT_ON_FILE:\r\n validInquiryAttempt = false;\r\n tempGiftCard.setIsValid(false);\r\n break;\r\n \r\n case GiftCard.INVALID_TRANSACTION_TYPE:\r\n case GiftCard.HOST_COMMUNICATION_ERROR:\r\n case GiftCard.FILES_NOT_OPEN:\r\n case GiftCard.BAD_FILE:\r\n return GIFT_CARD_SYSTEM_UNAVAILABLE;\r\n \r\n case GiftCard.OK:\r\n default:\r\n }\r\n }\r\n \r\n if (validInquiryAttempt) {\r\n // if( !getGiftCardPageType().equals(STATIC_INQUIRY) ) {\r\n if (isLoggingDebug()) {\r\n logDebug(\"sorting.................\");\r\n }\r\n sortByGiftCardAmounts(getGiftCardList());\r\n // }\r\n return NO_ERRORS;\r\n } else {\r\n setInvalidCardErrorCount(getInvalidCardErrorCount() + 1);\r\n return INVALID_CARD_NUMBER;\r\n }\r\n } finally {\r\n setIsCheckValueButtonClicked(false);\r\n }\r\n } else {\r\n return NO_ERRORS;\r\n }\r\n }", "public boolean pay(String szDebterName, String szAmount, String szEntitledName) {\n\t\tboolean bWasAdded;\n\t\t// INFO\n\t\tplay.Logger.info(\"<BUSINESS_LOGIC> The Gelt was'nt confirmed by the debter \" + szDebterName\n\t\t\t\t+ \" the system will delete from the data_base\");\n\t\t// Delete from the records of the temp debts who waiting for confirm\n\t\tbWasAdded = deleteDebt(szDebterName, szAmount, szEntitledName);\n\t\treturn bWasAdded;\n\t}", "boolean isAccepting();", "public void payCharge()\r\n\t{\r\n\t\tSystem.out.print(\"This method is used for pay charge\");\t\r\n\t}", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\tpublic void anonymousSAPGasCustomer(){\t\t\t\t\t\t \n\t\t Report.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the anonymous SMR page for Gas customer\");\n\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"AnonymousSMRUser\");\n\t\tnew SubmitMeterReadAction()\n\t\t.openSMRpage(\"Gas\")\n\t\t.verifyAnonymousSAPGasCustomer(smrProfile)\t\t\n\t\t//.verifySapIsu(smrProfile)\n\t\t.verifyMeterReadConfirmation(smrProfile)\n\t\t.verifyThankYouSurveyPage(smrProfile);\n\t\t//.verifyAnonymousSAPGasCustomer(smrProfile);\n\t}", "@Test\n\tpublic void depositTest(){\n\t\tCustomer cus = new Customer(\"wgl\", myDate, \"Beijing\");\n\t\tAccount cAcc = new CurrentAccount(cus);\n\t\tbc.deposit(cAcc, 500, true);\n\t\tboolean flag = false;\n\t\tif(cAcc.getBalance() == 500.0){\n\t\t\tflag = true;\n\t\t}\n\t\tassertTrue(flag);\n\t}", "public void autoPay() {}", "boolean hasBillingSetup();", "if(true==adhocTicket.isPaid()){\n System.out.println(\"isPaid() is passed\");\n }", "private boolean checkActivation(String date, String serverPay, boolean firstActivation) {\n\t\tLog.d(TAG, serverPay);\n\t\t//if not paid\n\t\tif (!serverPay.equals(\"1\")) {\n\t\t\tboolean inTrial = false;\n\t\t\tif (date != null) {\n\t\t\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"yyyy-MM-dd HH:mm:ss\", Locale.US);\n\t\t\t\tString currentDateAndTime = sdf.format(new Date());\n\t\t\t\tLog.d(TAG, date + \" \" + currentDateAndTime);\n\t\t\t\tinTrial = isInTrialDate(date, currentDateAndTime);\n\t\t\t\tif (inTrial)\n\t\t\t\t\tstoreTrialInfo(date);\n\t\t\t}\n\n\t\t\treturn inTrial;\n\t\t}\n\t\t//must have paid\n\t\telse {\n\t\t\tLog.d(TAG, \"paid\");\n\t\t\t//skips the storing procedure, as it would have already been stored\n\t\t\tif (!firstActivation)\n\t\t\t\tstoreActivation(mContext);\n\t\t\treturn true;\n\t\t}\n\t}", "public void buySellChrystite(boolean buy, Player customer) {\n if (buy && crysQuantity == 0) {\n GameController.errorMessageBox(\"Not enough Crystite in the store.\");\n } else {\n if (buy) {\n crysQuantity--;\n if (customer.getMoney() >= crysCost) {\n customer.addSubMoney(-crysCost);\n customer.addSubCrystite(1);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost += 10;\n }\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n } else {\n if (customer.getCrystite() >= 1) {\n customer.addSubMoney(crysCost-15);\n if (crysQuantity == 0) {\n crysCost = 100;\n } else {\n crysCost -= 10;\n }\n customer.addSubCrystite(-1);\n crysQuantity++;\n } else {\n GameController.errorMessageBox(\"You do not have enough money for this item\");\n }\n }\n }\n }", "@Test(groups ={Slingshot,Regression,SubmitMeterRead})\n\t\t\t\tpublic void verifySAPGasCustomer_AnnualServiceAmount()\t\n\t\t\t\t{\t\n\t\t\t\t\tReport.createTestLogHeader(\"Anonymous Submit meter read\", \"Verifies the SAP SMR page for Electricity customer\");\n\t\t\t\tSMRAccountDetails smrProfile = new TestDataHelper().getAllSMRUserProfile(\"SAPSMRGasUserforsingleMeter\");\n\t\t\t\t\t\t new SubmitMeterReadAction()\n\t\t\t\t\t\t .openSMRpage(\"Gas\")\n\t\t\t\t\t\t.verifyAnonymousSAPGasCustomersRewrite(smrProfile);\n\t\t\t\t}", "final void checkForComodification() {\n\t}" ]
[ "0.66957986", "0.6447144", "0.6284307", "0.6160258", "0.6159208", "0.6094601", "0.60475266", "0.5985842", "0.5933177", "0.59101343", "0.58820474", "0.5862901", "0.5851854", "0.5841657", "0.5835329", "0.5769827", "0.5734961", "0.57290524", "0.5725463", "0.5722629", "0.5711122", "0.56909704", "0.5677659", "0.56753254", "0.5674387", "0.56726325", "0.5671828", "0.56531096", "0.56513584", "0.56484413", "0.5619464", "0.5619464", "0.56168544", "0.56107783", "0.5602318", "0.559747", "0.5594919", "0.5594688", "0.557013", "0.5570102", "0.55585647", "0.55545056", "0.5552441", "0.55498344", "0.55472773", "0.55413675", "0.5539205", "0.55373234", "0.553017", "0.5516021", "0.55135584", "0.55078924", "0.5507804", "0.5499971", "0.54983157", "0.54975677", "0.54944074", "0.5492978", "0.54883575", "0.5487963", "0.54870254", "0.5482606", "0.5474739", "0.5466554", "0.5461885", "0.54606223", "0.5456571", "0.5452442", "0.54464084", "0.54439366", "0.5437094", "0.54282206", "0.54260015", "0.5410352", "0.5410053", "0.5402894", "0.54025006", "0.5400446", "0.5383743", "0.53823406", "0.5378855", "0.53709805", "0.53674245", "0.53561574", "0.5352949", "0.5350951", "0.5346469", "0.5345543", "0.53251815", "0.5324833", "0.53210247", "0.5318163", "0.5306809", "0.53043556", "0.5296354", "0.5296129", "0.52954143", "0.52928376", "0.52907634", "0.5287786" ]
0.5593402
38
Ensures that the music is being played if it should.
public static void updateMusic() { if ( Settings.isMusicOn() && !musicPlaying() ) startMusic(); else if ( !Settings.isMusicOn() && musicPlaying() ) stopMusic(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public static boolean musicPlaying()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\treturn false;\r\n\t\telse\r\n\t\t\treturn musicPlayer.isPlaying();\r\n\t}", "public boolean musicOn ()\n\t{\n\t\tif (musicInt == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public static void startMusic()\n\t{\n\t\tif (music == null)\n\t\t{\n\t\t\tloadMusic();\n\t\t\tif (music.size() < 2)\n\t\t\t{\n\t\t\t\tthrow new GameLogicException(\"At least two songs must be specified.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentMusicFile = 0;\n\t\tmusic.get(currentMusicFile).setVolume(musicVolume / 100.f);\n\t\tmusic.get(currentMusicFile).play();\n\t\tmusic.get(currentMusicFile).setOnCompletionListener(musicOnCompletionListener);\n\t}", "private void initialMusic(){\n\n }", "public void playMusic() {\n\t\ttry {\n\t\t\tsoundManager.playMusic(\"bgroundmusic\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "synchronized void resumeGame() {\n try {\n myGamePause = false;\n if (!myShouldPause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing) {\n music.play(nextStartTime);\n }\n }", "public boolean reset(final PlayListItem playListItem) {\n\n try {\n stop();\n\n mCurrentlyPlaying = playListItem;\n\n mMediaPlayer = MediaPlayer.create(this, Uri.parse(playListItem.getTrackUri()));\n mMediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\n // Keeps the device running, but allows the screen to turn off.\n mMediaPlayer.setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK);\n\n mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n\n @Override\n public void onPrepared(MediaPlayer mp) {\n\n // Media has loaded and we're ready to begin playing.\n Log.d(TAG, \"onPrepared() called\");\n mMediaPlayer.start();\n\n // Notify listeners that a new track has started.\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext())\n .edit()\n .putString(MainActivity.PREF_CURRENT_ALBUM, playListItem.getAlbumName())\n .putString(MainActivity.PREF_CURRENT_ARTIST_NAME, playListItem.getArtistName())\n .putString(MainActivity.PREF_CURRENT_ARTIST_SPOTIFY_ID, playListItem.getArtistId())\n .putString(MainActivity.PREF_CURRENT_TRACK_NAME, playListItem.getTrackName())\n .putString(MainActivity.PREF_CURRENT_TRACK_SPOTIFY_ID, playListItem.getTrackId())\n .putString(MainActivity.PREF_CURRENT_TRACK_URL, playListItem.getTrackUri())\n .putBoolean(MainActivity.PREF_IS_PLAYING, true)\n .commit();\n\n Intent intent = new Intent(TRACK_START_BROADCAST_FILTER);\n intent.putExtra(SpotifyStreamerActivity.KEY_CURRENT_TRACK, playListItem);\n LocalBroadcastManager.getInstance(StreamerMediaService.this).sendBroadcast(intent);\n }\n });\n\n mMediaPlayer.setOnErrorListener(new MediaPlayer.OnErrorListener() {\n\n @Override\n public boolean onError(MediaPlayer mp, int what, int extra) {\n Log.d(TAG, \"onError() called. what:\" + what + \" extra:\" + extra);\n return false;\n }\n });\n\n mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n @Override\n public void onCompletion(MediaPlayer mp) {\n\n if (!continueOnCompletion) {\n\n mNotificationManager.cancel(NotificationTarget.NOTIFICATION_ID);\n\n PreferenceManager.getDefaultSharedPreferences(getApplicationContext())\n .edit()\n .putBoolean(MainActivity.PREF_IS_PLAYING, false)\n .commit();\n }\n\n // Notify listeners that the track has completed.\n Intent intent = new Intent(TRACK_STOP_BROADCAST_FILTER);\n LocalBroadcastManager.getInstance(StreamerMediaService.this).sendBroadcast(intent);\n }\n\n });\n\n } catch (Exception e) {\n Log.e(TAG, \"Error in reset(): \" + e.getMessage());\n return false;\n }\n\n return true;\n }", "private void playlistCheck() {\n\t\t\tif (mServicePlayerEngine != null) {\n\t\t\t\tif (mServicePlayerEngine.getPlaylist() == null\n\t\t\t\t\t\t&& mPlaylist != null) {\n\t\t\t\t\tmServicePlayerEngine.openPlaylist(mPlaylist);\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void Play() {\n superPlaneGodMode = false;\r\n if (!musicPlaying)\r\n backgroundMusic.pause();\r\n if (musicPlaying)\r\n backgroundMusic.start();\r\n paused = false;\r\n }", "public void play()\n\t{\n\t\tif (canPlay)\n\t\t{\n\t\t\tsong.play();\n\t\t\tsong.rewind();\n\t\t\tif (theSong == \"SG1\" || theSong == \"SG2\")\n\t\t\t\tcanPlay = false;\n\t\t}\n\t}", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "@Override\n\tpublic void OnGameStart() {\n\t\tsuper.OnGameStart();\n\t\tMusicManage.setLoopingMusic(tumMusic, true);\n\t\tMusicManage.playMusic(tumMusic);\n\t}", "private boolean musicChecker(String currentInput)\n\t{\n\t\tboolean hasMusic = false;\n\t\t// loop, look for music.\n\n\t\tfor (String currentPhrase : musicList)\n\t\t{\n\t\t\tif (currentPhrase.equals(currentInput))\n\t\t\t{\n\t\t\t\thasMusic = true;\n\t\t\t}\n\t\t}\n\t\treturn hasMusic;\n\t}", "synchronized void toggle() {\n try {\n myShouldPause = !myShouldPause;\n if (myShouldPause) {\n if (myPlayer != null) {\n myPlayer.stop();\n }\n } else if (!myGamePause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public static void startMusic()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\tmusicPlayer = new MusicPlayer( \"Music2.mid\" );\r\n\t\telse\r\n\t\t\tmusicPlayer.play();\r\n\t}", "public static void start(Context c, int music, boolean force) {\r\n if ((!force) && (currentMusic_ != INVALID_NUMBER)) {\r\n // already playing some music and not forced to change immediately\r\n if (music != INVALID_NUMBER) {\r\n nextMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp == null) {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n }\r\n MediaPlayer cp = players_.get(currentMusic_);\r\n if (cp != null) {\r\n cp.setOnCompletionListener(new OnCompletionListener() {\r\n @Override\r\n public void onCompletion(MediaPlayer p) {\r\n MusicHandler.next();\r\n }\r\n });\r\n cp.setLooping(false);\r\n }\r\n }\r\n return;\r\n }\r\n if (currentMusic_ == music) {\r\n // already playing this music\r\n return;\r\n }\r\n if (currentMusic_ != INVALID_NUMBER) {\r\n // playing some other music, pause it and change\r\n pause();\r\n }\r\n currentMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp != null) {\r\n if (!mp.isPlaying()) {\r\n // Note: This continues the piece where it last let off\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n return;\r\n }\r\n } else {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n if (mp == null) {\r\n // Log an error, but don't do anthing (we do not want to risk f/c the app)\r\n Log.e(TAG, \"player was not created successfully\");\r\n } else {\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n }\r\n }\r\n }", "private static void loadMusic()\n\t{\n\t\t// TODO: update this with the correct file names.\n\t\tmusic = new ArrayList<Music>();\n\t\t\n\t\ttry\n\t\t{\n\t\t\tmusic.add(Gdx.audio.newMusic(new FileHandle(new File(MUSIC_PATH + \"Lessons-8bit.mp3\"))));\n\t\t\tmusic.add(Gdx.audio.newMusic(new FileHandle(new File(MUSIC_PATH + \"bolo_menu.mp3\"))));\n\t\t\t//music.add(Gdx.audio.newMusic(new FileHandle(new File(MUSIC_PATH + \"song2.ogg\"))));\n\t\t}\n\t\tcatch (Exception e)\n\t\t{\n\t\t\t\n\t\t\tSystem.out.println(e);\n\t\t\te.printStackTrace();\n\t\t\tthrow e;\n\t\t}\n\t}", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "public void play() {\n\t\tif(currentPlayingItem==null) return;\n\t\tif(!mediaPlayer.isPlaying()) mediaPlayer.start();\n\t\tupdateNotification();\n\t\tsendBroadcast(new Intent(\"com.andreadec.musicplayer.playpausechanged\"));\n\t}", "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "public void playSoundGameWon() {\n\t\tcompletedGameSound.play();\n\t}", "public void play() {\n\t\tmusic.play();\n\t\tsyncPosition();\n\t}", "public boolean hasSong(){\n return numSongs < MAX_SONG;\n }", "public static boolean toggleMusic()\r\n\t{\r\n\t\tif ( musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t\telse\r\n\t\t\tstartMusic();\r\n\t\tSettings.setMusicOn( musicPlaying() );\r\n\t\treturn Settings.isMusicOn();\r\n\r\n\t}", "public boolean isAudioPlaying() {\n\t\tif (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) {\n\t\t\treturn mPlayer.isPlaying();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public static void beginCurrentSoundtrack() {\n\t\t\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null) {\n\t\t\t\n\t\t\t// In case a new game is started before the victory jingle is finished\n\t\t\t// from a previous game (rare occurrence, but possible)\n\t\t\tif (victoryFanfare.isRunning()) victoryFanfare.stop();\t\t\t\n\t\t\t\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].setFramePosition(0);\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void wrong()\n\t{\n\t\tMediaPlayer wrong = MediaPlayer.create(this, R.raw.wrong);\n\t\twrong.start();\n\t}", "public void pauseSong() {\n if (mp.isPlaying()) {\n mp.pause();\n }\n }", "@Override\r\n\tpublic boolean isPlaying() {\n\t\treturn mediaPlayer.isPlaying();\r\n\t}", "public void playMusic() {\n\t\tif (!isReverse) {\n\t\t\tif (!isWah && !isDistorted)\n\t\t\t\talSourcePlay(musicSourceIndex);\n\t\t\tif (isWah && isDistorted)\n\t\t\t\talSourcePlay(wahDistortSourceIndex);\n\t\t\telse if (isWah)\n\t\t\t\talSourcePlay(wahSourceIndex);\n\t\t\telse if (isDistorted)\n\t\t\t\talSourcePlay(distortSourceIndex);\n\t\t\tif (isFlanging) {\n\t\t\t\tif (!isWah && !isDistorted)\n\t\t\t\t\talSourcePlay(flangeSourceIndex);\n\t\t\t\tif (isWah && isDistorted)\n\t\t\t\t\talSourcePlay(wahDistortFlangeSourceIndex);\n\t\t\t\telse if (isWah)\n\t\t\t\t\talSourcePlay(wahFlangeSourceIndex);\n\t\t\t\telse if (isDistorted)\n\t\t\t\t\talSourcePlay(distortFlangeSourceIndex);\n\t\t\t}\n\t\t}\n\t\telse {\n\t\t\tif (!isWah && !isDistorted)\n\t\t\t\talSourcePlay(reverseSourceIndex);\n\t\t\telse if (isWah && isDistorted)\n\t\t\t\talSourcePlay(revWahDistortSourceIndex);\n\t\t\telse if (isWah)\n\t\t\t\talSourcePlay(revWahSourceIndex);\n\t\t\telse if (isDistorted)\n\t\t\t\talSourcePlay(revDistortSourceIndex);\n\t\t\tif (isFlanging) {\n\t\t\t\tif (!isWah && !isDistorted)\n\t\t\t\t\talSourcePlay(revFlangeSourceIndex);\n\t\t\t\tif (isWah && isDistorted)\n\t\t\t\t\talSourcePlay(revWahDistortFlangeSourceIndex);\n\t\t\t\telse if (isWah)\n\t\t\t\t\talSourcePlay(revWahFlangeSourceIndex);\n\t\t\t\telse if (isDistorted)\n\t\t\t\t\talSourcePlay(revDistortFlangeSourceIndex);\n\t\t\t}\n\t\t}\n\t}", "public void initMusicPlayer() {\n PatariSingleton.getInstance().getMediaPlayer().setWakeMode(getApplicationContext(), PowerManager.PARTIAL_WAKE_LOCK);\n PatariSingleton.getInstance().getMediaPlayer().setAudioStreamType(AudioManager.STREAM_MUSIC);\n PatariSingleton.getInstance().getMediaPlayer().setOnPreparedListener(this);\n PatariSingleton.getInstance().getMediaPlayer().setOnCompletionListener(this);\n PatariSingleton.getInstance().getMediaPlayer().setOnErrorListener(this);\n PatariSingleton.getInstance().getMediaPlayer().setOnBufferingUpdateListener(this);\n try {\n if (wifiLock != null && wifiLock.isHeld()) {\n wifiLock.release();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n try {\n wifiLock = ((WifiManager) getApplication().getApplicationContext().getSystemService(Context.WIFI_SERVICE)).createWifiLock(WifiManager.WIFI_MODE_FULL, \"mylock\");\n wifiLock.acquire();\n } catch (Exception e) {\n e.printStackTrace();\n }\n IS_PROGRESS = false;\n }", "public void play(boolean music) {\n\t\tplay(1.0f, 1.0f, music);\n\t}", "public boolean isMusicActive() {\n return mAudioManager.isMusicActive();\n }", "private static void playAudio(String musicFile) {\n }", "public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }", "public boolean checkPlays(Player player){\n return true;\n }", "public void playAudio() {\n if (done==false)\n {\n file.play();\n }\n}", "void pauseGame() {\n try {\n myGamePause = true;\n myPlayer.stop();\n // when the application pauses the game, resources\n // are supposed to be released, so we close the\n // player and throw it away.\n myPlayer.close();\n myPlayer = null;\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public boolean isPlaying() {\n return mPlaying || mStateManager.isPlaying();\n\t}", "@Override\n public void onPause() {\n justAfterPause = true;\n\n if (!soundAlreadyStopped) {\n SoundManager.onPause(instantMusicPause);\n soundAlreadyStopped = true;\n }\n\n instantMusicPause = true;\n super.onPause();\n\n }", "@Override\r\n\tpublic void setMusic() {\r\n\t\tmanager.getMusicManager().setMusic((Music) Gdx.audio.newMusic(Gdx.files.internal(\"Music/Bandit Camp.mp3\")));\r\n\t}", "public void initMusic() {\r\n mSoundPool = new SoundPool(3, AudioManager.STREAM_MUSIC, 0);\r\n mSoundClick = mSoundPool.load(getActivity(), R.raw.click, 1);\r\n mSoundCorrect = mSoundPool.load(getActivity(), R.raw.correct, 1);\r\n mSoundIncorrect = mSoundPool.load(getActivity(), R.raw.wrong, 1);\r\n }", "public void StartMusic(int music_id);", "public static void resumeCurrentSoundtrack() {\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t}", "public void playGameOverSound() {\n\t\ttry {\n\t\t\tAudioInputStream audioStream = AudioSystem.getAudioInputStream(new File(\"Musik/DeadSound.wav\"));\n\t\t\t\n\t\t\tClip clip = AudioSystem.getClip(); \n\t\t\tclip.open(audioStream);\n\t\t\t\n\t\t\tboolean oldStatus = settings.isPlaying(); \n\t\t\t\n\t\t\tstopMusik();\n\t\t\t\n\t\t\t\n\t\t\tthis.settings.setPlaying(oldStatus);\n\t\t\tclip.start();\n\t\t} catch (FileNotFoundException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t} \n\t}", "public void update() {\n\t\tMusicTicker.MusicType var1 = this.mc.getAmbientMusicType();\n\t\t\n\t\tif (this.currentMusic != null) {\n\t\t\tif (!var1.getMusicLocation().equals(this.currentMusic.getSoundLocation())) {\n\t\t\t\tthis.mc.getSoundHandler().stopSound(this.currentMusic);\n\t\t\t\tthis.timeUntilNextMusic = MathHelper.getRandomIntegerInRange(this.rand, 0, var1.getMinDelay() / 2);\n\t\t\t}\n\t\t\t\n\t\t\tif (!this.mc.getSoundHandler().isSoundPlaying(this.currentMusic)) {\n\t\t\t\tthis.currentMusic = null;\n\t\t\t\tthis.timeUntilNextMusic = Math.min(MathHelper.getRandomIntegerInRange(this.rand, var1.getMinDelay(), var1.getMaxDelay()), this.timeUntilNextMusic);\n\t\t\t}\n\t\t}\n\t\t\n\t\tif (this.currentMusic == null && this.timeUntilNextMusic-- <= 0) {\n\t\t\tthis.currentMusic = PositionedSoundRecord.createPositionedSoundRecord(var1.getMusicLocation());\n\t\t\tthis.mc.getSoundHandler().playSound(this.currentMusic);\n\t\t\tthis.timeUntilNextMusic = Integer.MAX_VALUE;\n\t\t}\n\t}", "public static void restartIngamemusic() {\n\t\tingamemusicPlayer.seek(Duration.ZERO);\n\t\tingamemusicPlayer.play();\n\t\tlogger.info(\"restart ingame\");\n\t}", "public boolean isAudio()\n {return false ;\n }", "public void playerUpdate(Player player, String event, Object eventData) {\n if (event.equals(PlayerListener.END_OF_MEDIA)) {\n if ((!myShouldPause) && (!myGamePause)) {\n try {\n myPlayer.start();\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }\n }\n }", "private void playAudio() {\r\n Play.au(audioFileName, false);\r\n }", "@Override\n\t\t\tpublic boolean onError(MediaPlayer mp, int what, int extra) {\n\t\t\t\tif(null != player){\n\t\t\t\t\tplayer.release();\n\t\t\t\t\tplayer = null;\n\t\t\t\t}\n\t\t\t\tMusic m = listMusic.get(currentId);\n\t\t\t\tString url = m.getUrl();\n\t\t\t\tUri mUri = Uri.parse(url);\n\t\t\t\tplayer = new MediaPlayer();\n\t\t\t\tplayer.reset();\n\t\t\t\tplayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\t\t\t\ttry {\n\t\t\t\t\tplayer.setDataSource(getApplicationContext(),mUri);\n\t\t\t\t\tplayer.prepare();\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (SecurityException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tplayer.start();\n\t\t\t\treturn false;\n\t\t\t}", "@Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n stopMusic();\n }", "@Override\n public void run() {\n // TODO Auto-generated method stub\n running = true;\n AudioFile song = musicFiles.get(currentSongIndex);\n song.play();\n while(running){\n if(!song.isPlaying()){\n currentSongIndex++;\n if(currentSongIndex >= musicFiles.size()){\n currentSongIndex = 0;\n }\n song = musicFiles.get(currentSongIndex);\n song.play();\n }\n try{\n Thread.sleep(1);\n }\n catch (InterruptedException e){\n e.printStackTrace();\n } \n }\n }", "@Before\n public void setup()\n {\n assumeFalse(\"No audio devices are available. Skipping...\",\n AudioDetector.getInstance().isNoAudio());\n MusicPlayer.init();\n }", "public void playAmbientSound() {\n if (!this.isClosed()) {\n super.playAmbientSound();\n }\n\n }", "public void stop()\n {\n if(AudioDetector.getInstance().isNoAudio() || musicPlayer == null)\n {\n return;\n }\n\n\n musicPlayer.stop();\n }", "@Override\r\n public void show()\r\n {\r\n // De inmediato, ponemos en marcha una melodia\r\n if (!juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).isPlaying())\r\n {\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).play();\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).setLooping(true);\r\n }\r\n }", "@Override\n protected void onPause()\n {\n super.onPause();\n setSound.pauseMusic();\n }", "public boolean tick() {\n\t\tfloat volume = am.getStreamVolume(AudioManager.STREAM_MUSIC);\n\t\tfloat max = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\tvolume = volume/max;\n\t\t\n\t\tif(loaded) {\n\t\t\ttickSound.play(soundId, volume, volume, 1, 0, 1f);\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public void specialSong()\n {\n if(!mute)\n {\n try {\n \n bclip.stop();\n \n // Open an audio input stream.\n //URL url = this.getClass().getClassLoader().getResource(\"Glitzville.wav\"); \n //if(lastpowerUp.equals(\"RAINBOW\"))\n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Starman.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n sclip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n sclip.open(audioIn); \n \n sclip.start();\n \n \n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } \n }\n }", "public void play() {\n\t\tint requestStatus = mAudioManager.requestAudioFocus(\n\t\t\t\tmAudioFocusListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (DEBUG)\n\t\t\tLog.d(TAG, \"Starting playback: audio focus request status = \"\n\t\t\t\t\t+ requestStatus);\n\n\t\tif (requestStatus != AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\treturn;\n\t\t}\n\n\t\tmAudioManager.registerMediaButtonEventReceiver(new ComponentName(this\n\t\t\t\t.getPackageName(), MediaButtonIntentReceiver.class.getName()));\n\n\t\tif (mPlayer.isInitialized()) {\n\t\t\t// if we are at the end of the song, go to the next song first\n\t\t\tlong duration = mPlayer.duration();\n\t\t\tif (mRepeatMode != REPEAT_CURRENT && duration > 2000\n\t\t\t\t\t&& mPlayer.position() >= duration - 2000) {\n\t\t\t\tgotoNext(true);\n\t\t\t}\n\n\t\t\tmPlayer.start();\n\t\t\t// make sure we fade in, in case a previous fadein was stopped\n\t\t\t// because\n\t\t\t// of another focus loss\n\t\t\tmMediaplayerHandler.removeMessages(FADEDOWN);\n\t\t\tmMediaplayerHandler.sendEmptyMessage(FADEUP);\n\n\t\t\tif (!mIsSupposedToBePlaying) {\n\t\t\t\tmIsSupposedToBePlaying = true;\n\t\t\t\tnotifyChange(EVENT_PLAYSTATE_CHANGED);\n\t\t\t}\n\n\t\t\tupdateNotification();\n\t\t} else if (mPlayListLen <= 0) {\n\t\t\t// This is mostly so that if you press 'play' on a bluetooth headset\n\t\t\t// without every having played anything before, it will still play\n\t\t\t// something.\n\t\t\tshuffleAll();\n\t\t}\n\t}", "public void playSong() {\n player.reset();\n Song playedSong;\n //get the right song\n if (shuffle) {\n int newSong = shuffleIndexes.get(songPosn);\n playedSong = songs1.get(newSong);\n } else {\n playedSong = songs1.get(songPosn);\n }\n songTitle = playedSong.getSongName();\n Uri uri = Uri.parse(playedSong.getSongLocation());\n try {\n player.setDataSource(getApplicationContext(), uri);\n } catch (Exception e) {\n Log.e(\"MUSIC SERVICE\", \"Error setting data source\", e);\n }\n state = PlaybackStateCompat.STATE_PLAYING;\n player.prepareAsync();\n showNotification();\n }", "public void playSoundtrack() {\n if(this.musicEnabled) {\n try {\n Clip soundtrackClip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(new BufferedInputStream(Assets.soundTrack));\n soundtrackClip.open(inputStream);\n soundtrackClip.start();\n soundtrackClip.loop(Clip.LOOP_CONTINUOUSLY);\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(e.getMessage());\n }\n }\n }", "void setAudioAllowedToPlayInBackground(boolean allowed);", "public boolean isSoundPlaying(ISound sound) {\n/* 333 */ if (!this.loaded)\n/* */ {\n/* 335 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 339 */ String s = this.invPlayingSounds.get(sound);\n/* */ \n/* 341 */ if (s == null)\n/* */ {\n/* 343 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 347 */ return !(!this.sndSystem.playing(s) && (!this.playingSoundsStopTime.containsKey(s) || ((Integer)this.playingSoundsStopTime.get(s)).intValue() > this.playTime));\n/* */ }", "private void playOrPause() {\n if (ContextCompat.checkSelfPermission(this,\n Manifest.permission.READ_EXTERNAL_STORAGE)\n != PackageManager.PERMISSION_GRANTED) {\n permissionCheck();\n } else {\n if (tracks.isEmpty()) {\n tracks.addAll(Player.getInstance().checkDirectory());\n }\n\n // Play:\n if (Player.getInstance().isPaused()) {\n if (trackTimePosition > 0) {\n Player.getInstance().toTime(trackTimePosition);\n Player.getInstance().resume();\n } else {\n try {\n Player.getInstance().play(tracks.get(position));\n\n if (!isTimeListenerSet) {\n positionListener();\n }\n } catch (IOException playerException) {\n playerException.printStackTrace();\n }\n\n setCover(Player.getInstance().getCover(tracks.get(position), this));\n\n tvTrack.setText(tracks.get(position).getName());\n sbTrackTimeline.setMax(playerUtils.toSeconds(Player.getInstance().getTrackEndTime()));\n }\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_pause_track);\n\n if (tracks.size() > 1) {\n if (tvTrackStartTime.getVisibility() == View.INVISIBLE) {\n tvTrackStartTime.setVisibility(View.VISIBLE);\n }\n\n setImageDrawable(ibSkipNextTrack, R.drawable.ic_skip_next_track_on);\n }\n\n tvTrackEndTime.setText(playerUtils.toMinutes(Player.getInstance().getTrackEndTime()));\n } else { // Pause:\n trackTimePosition = Player.getInstance().getTrackTimePosition();\n\n Player.getInstance().pause();\n\n setImageDrawable(ibPlayOrPauseTrack, R.drawable.ic_play_track);\n }\n }\n }", "public void playMedia() {\n\t\tif (MainActivity.mPlayer == null) {\n\t\t\tMainActivity.mPlayer = new MediaPlayer();\n\t\t\tMainActivity.mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t}\n\t\tif (!MainActivity.currentSong.getTitleKey().equals(song.getTitleKey())) {\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t\tMainActivity.mPlayer.reset();\n\t\t}\n\n\t\ttitle = song.getTitle();\n\t\talbumTitle = album.getAlbum();\n\t\talbumArt = album.getAlbumArt();\n\n\t\ttry {\n\t\t\tMainActivity.mPlayer.setDataSource(this, song.getUri());\n\t\t\tMainActivity.mPlayer.prepare();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalStateException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\tMainActivity.mPlayer.setOnPreparedListener(new OnPreparedListener() {\n\t\t\t@Override\n\t\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\t\tmp.start();\n\t\t\t}\n\t\t});\n\t\tMainActivity.mPlayer.setOnCompletionListener(new OnCompletionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tnext();\n\t\t\t}\n\n\t\t});\n\n\t\tnew Handler(getMainLooper()).post(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tupdateMainActivity();\n\t\t\t\tupdateNowPlaying();\n\t\t\t}\n\t\t});\n\t}", "@Override\n public void onPause() {\n super.onPause();\n MusicManager.start(this, false);\n }", "@Test\n public void testSetLooping()\n {\n MusicPlayer.getInstance().selectSong(Songs.CREDITS);\n assertEquals(MusicPlayer.getInstance().setLooping(true), false);\n }", "public void play() {\n\t\ttry {\n\t\t\taudioInput = AudioSystem.getAudioInputStream(this.music);\n\t\t\tclip.open(audioInput);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Test\n\tpublic void playMP3Test() throws IllegalArgumentException, IllegalAccessException {\n\t\t\n\t\tif (Configuration.featureamp &&\n\t\t\t\tConfiguration.playengine &&\n\t\t\t\tConfiguration.choosefile &&\n\t\t\t\tConfiguration.mp3 &&\n\t\t\t\tConfiguration.gui &&\n\t\t\t\tConfiguration.skins &&\n\t\t\t\tConfiguration.light &&\n\t\t\t\tConfiguration.filesupport &&\n\t\t\t\tConfiguration.showtime &&\n\t\t\t\tConfiguration.tracktime) {\n\t\t\tstart();\n\t\t\tdemo.menuItemWithPath(\"Datei\", \"Datei \\u00F6ffnen\").click();\n\t\t\tdemo.fileChooser().setCurrentDirectory(new File(\"media/\"));\n\t\t\tFile file = new File(\"note.mp3\");\n\t\t\tdemo.fileChooser().selectFile(file);\n\t\t\tdemo.fileChooser().approveButton().click();\n\t\t\tdemo.button(\"play\").click();\n\t\t\tJMenu menu = (JMenu) MemberModifier.field(Application.class, \"menu\").get(gui);\n\t\t\tassertEquals(menu.getName(), \"menu\");\n\t\t}\n\n\t}", "private void play() {\n /** Memanggil File MP3 \"indonesiaraya.mp3\" */\n try {\n mp.prepare();\n } catch (IllegalStateException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /** Menjalankan Audio */\n mp.start();\n\n /** Penanganan Ketika Suara Berakhir */\n mp.setOnCompletionListener(new OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n stateAwal();\n }\n });\n }", "public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}", "boolean isSoundPlaying() {\n return (audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING);\n }", "public void playDeadSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, DEAD);\n\t}", "private void playAudio(int winLose)\t\t\t\t\t\t\t\n {\n // win\n if(winLose == 1)\n {\n String path = \"src/winningSound.wav\";\n Media media = new Media(new File(path).toURI().toString());\n\n mediaPlayer = new MediaPlayer(media);\n mediaPlayer.setCycleCount(1);\n mediaPlayer.setAutoPlay(true);\n }\n // lose\n else\n {\n String path = \"src/loserSound.wav\";\n Media media = new Media(new File(path).toURI().toString());\n mediaPlayer = new MediaPlayer(media);\n mediaPlayer.setCycleCount(1);\n mediaPlayer.setAutoPlay(true);\n }\n }", "private void startMusic() {\r\n final Format input1 = new AudioFormat(AudioFormat.MPEGLAYER3);\r\n final Format input2 = new AudioFormat(AudioFormat.MPEG);\r\n final Format output = new AudioFormat(AudioFormat.LINEAR);\r\n PlugInManager.addPlugIn(\r\n \"com.sun.media.codec.audio.mp3.JavaDecoder\",\r\n new Format[]{input1, input2},\r\n new Format[]{output},\r\n PlugInManager.CODEC\r\n );\r\n try {\r\n final File f = new File(\"support_files//tetris.mp3\");\r\n myPlayer = Manager.createPlayer(new MediaLocator(f.toURI().toURL()));\r\n } catch (final NoPlayerException | IOException e) {\r\n e.printStackTrace();\r\n }\r\n if (myPlayer != null) {\r\n myPlayer.start();\r\n }\r\n }", "public boolean isValidSong() { \n\t\tString filepath = aFilePath.toString();\n\t\tFile f = new File(filepath);\n\t\treturn f.exists();\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }", "public void keepLooping() {\n\t\tif(!clip.isActive()) {\n\t\t\tstartSound();\n\t\t}\n\t}", "@Override\n\tpublic void nowPlaying() {\n\t}", "private void playHintAudio() {\n AudioManager audioManager = (AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE);\n int mode = audioManager.getRingerMode();\n Log.d(TAG,\"mode = \" + mode);\n\n if(mode != AudioManager.RINGER_MODE_SILENT && mode != AudioManager.RINGER_MODE_VIBRATE) {\n // prize modify for bug 44603 by zhaojian 20171205 start\n mMediaPlayer = MediaPlayer.create(getContext(),R.raw.hb_sound2);\n Log.d(\"debug\",\"isNotifySound = \" + getConfig().isNotifySound());\n if(getConfig().isNotifySound()) {\n mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n mp.start();\n }\n });\n mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n mp.release();\n }\n });\n mMediaPlayer.start();\n }\n // prize modify for bug 44603 by zhaojian 20171205 end\n }\n }", "public void toggleSound() { \n\t\tif (mSoundEnable) {\n\t\t\tmSoundEnable = false; \n\t\t\tif (ResourceManager.getInstance().gameMusic.isPlaying())\n\t\t\t\tResourceManager.getInstance().gameMusic.pause();\n\t\t}\n\t\telse {\n\t\t\tmSoundEnable = true;\n\t\t\tif (!ResourceManager.getInstance().gameMusic.isPlaying()) {\n\t\t\t\tResourceManager.getInstance().gameMusic.play();\n\t\t\t}\n\t\t}\n\t}", "@Test\n void invalidPLAYING() {\n getGame().start();\n getGame().start();\n verifyZeroInteractions(observer);\n assertThat(getGame().isInProgress()).isTrue();\n }", "public static void resumeMusic() {\n\t\t\n\t\tif (currentMusic == null) {\n\t\t\tplayMusic(\"mainMenuMusic\", 0.1f);\n\t\t} else {\n\t\t\tcurrentMusic.start();\n\t\t}\n\t}", "public void startPlayback() {\n Scanner userInput = new Scanner(System.in);\n while(true) {\n System.out.println(\"Please press the \\\"p\\\" key when you are ready to begin playback\");\n String input = userInput.next();\n if (input.equals(\"p\")) {\n new Thread(() -> {\n try {\n \n SequencePlayer musicPlayer = new MidiSequencePlayer(DEFAULT_BPM, DEFAULT_TPB);\n try {\n music.play(musicPlayer, 0, new ByteArrayOutputStream(), \"\");\n } catch (InterruptedException e1) {\n throw new RuntimeException(\"error\");\n }\n synchronized(this.music) {\n music.notifyAll();\n }\n Object lock = new Object();\n musicPlayer.addEvent(music.duration(), (Double beat) -> {\n synchronized (lock) {\n lock.notify();\n }\n });\n musicPlayer.play();\n synchronized (lock) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n return;\n }\n } \n } catch (MidiUnavailableException e) {\n throw new RuntimeException(\"MidiSequencePlayer could not be created\");\n } catch (InvalidMidiDataException e) {\n throw new RuntimeException(\"MidiSequencePlayer could not be created\");\n }\n \n }).start();\n } else {\n System.out.println(\"Invalid Input.\");\n }\n System.out.println(\"If you would like to play the music again, please type \\\"r\\\" followed by the Enter key. \\n Otherwise type \\\"q\\\" followed by the Enter key.\");\n input = userInput.nextLine();\n if (input.equals(\"q\")) {\n System.out.println(\"Goodbye\");\n break;\n } else if (!input.equals(\"r\")) {\n System.out.println(\"Invalid Input\");\n break;\n }\n }\n userInput.close();\n }", "@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }", "public void play() {\n\t\tint focusRequestResult = mAudioManager.requestAudioFocus(mOuterEventsListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (PrefManager.isIgnoreAudioFocus()\n\t\t\t\t|| focusRequestResult == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\tinternalPlay();\n\t\t} else {\n\t\t\terror(Error.AUDIO_FOCUS_ERROR);\n\t\t}\n\t}", "private void musicClicked() {\n MatchScreen.setMusicVolume(MatchScreen.getMusicVolume() == 0 ? 0.5f : 0);\n setSoundButtonColor(MatchScreen.getMusicVolume() == 0, music);\n }", "public static void pause() {\r\n for (int i = 0; i < players_.size(); i++) {\r\n MediaPlayer p = players_.valueAt(i);\r\n if (p != null) {\r\n if (p.isPlaying()) {\r\n p.pause();\r\n }\r\n }\r\n }\r\n currentMusic_ = INVALID_NUMBER;\r\n }", "@Override\n public boolean onError(MediaPlayer mp, int what, int extra) {\n return false;\n }", "static void testMusicOnCompletionListener()\n\t{\n\t\tif (music == null)\n\t\t{\n\t\t\tloadMusic();\n\t\t}\n\t\t\n\t\tmusicOnCompletionListener.onCompletion(null);\n\t}", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "@Override\n\tpublic void pause() {\n\t PhoneDevice.Settings.stopMusic();\n\t}", "public boolean isPlaying() {\n\t\tif(currentPlayingItem==null) return false;\n\t\treturn mediaPlayer.isPlaying();\n\t}" ]
[ "0.7342018", "0.7039007", "0.69826853", "0.67778134", "0.673778", "0.6736304", "0.6644277", "0.6629068", "0.6587703", "0.6575006", "0.6539362", "0.6527752", "0.65133", "0.65020055", "0.64887923", "0.6478843", "0.6474848", "0.6455455", "0.6454013", "0.64240366", "0.6412114", "0.64084405", "0.6373781", "0.63290995", "0.63281894", "0.6324199", "0.62957186", "0.62755245", "0.6274931", "0.6270722", "0.6250651", "0.6249082", "0.6246495", "0.6243935", "0.624357", "0.62407726", "0.6228377", "0.6224739", "0.62198985", "0.62037575", "0.61974424", "0.6196157", "0.61931807", "0.6172639", "0.6170502", "0.61692613", "0.6169181", "0.6136195", "0.6131216", "0.6126546", "0.6115312", "0.61056465", "0.610051", "0.6100114", "0.60979664", "0.6092081", "0.6090923", "0.6089534", "0.60861045", "0.60845894", "0.6078567", "0.6077443", "0.60750735", "0.6068743", "0.60639346", "0.60626936", "0.6060161", "0.6050704", "0.60391897", "0.6034928", "0.6033015", "0.602986", "0.6028383", "0.60271364", "0.60215306", "0.6016089", "0.60142624", "0.60129434", "0.60113615", "0.6009839", "0.6008367", "0.6007093", "0.60040534", "0.6000358", "0.59969074", "0.59902304", "0.59850246", "0.5983733", "0.5980286", "0.59762245", "0.5974529", "0.5964159", "0.5956193", "0.59553856", "0.5951493", "0.5947186", "0.5944735", "0.59433395", "0.5943309", "0.59402025" ]
0.71016157
1
Toggles the music on / off.
public static boolean toggleMusic() { if ( musicPlaying() ) stopMusic(); else startMusic(); Settings.setMusicOn( musicPlaying() ); return Settings.isMusicOn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }", "public void setMusicOn(boolean on){\r\n\t\tmusicOn = on;\r\n\t}", "synchronized void toggle() {\n try {\n myShouldPause = !myShouldPause;\n if (myShouldPause) {\n if (myPlayer != null) {\n myPlayer.stop();\n }\n } else if (!myGamePause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public void toggleSound() { \n\t\tif (mSoundEnable) {\n\t\t\tmSoundEnable = false; \n\t\t\tif (ResourceManager.getInstance().gameMusic.isPlaying())\n\t\t\t\tResourceManager.getInstance().gameMusic.pause();\n\t\t}\n\t\telse {\n\t\t\tmSoundEnable = true;\n\t\t\tif (!ResourceManager.getInstance().gameMusic.isPlaying()) {\n\t\t\t\tResourceManager.getInstance().gameMusic.play();\n\t\t\t}\n\t\t}\n\t}", "public static void toggleMusic( /*takes two arguments*/ ){\n\n }", "public void togglePlay() { }", "void togglePlay();", "public void toggleSound()\n\t{\n\t\tif (sound)\n\t\t\tsound = false;\n\t\telse\n\t\t\tsound = true;\n\t\tnotifyObservers();\n\t}", "public static void toggleMute()\n\t{\n\t\tmute = !mute;\n\t\tif (mute)\n\t\t{\n\t\t\t// Stop all sounds\n\t\t\tmusic.stop();\n\t\t\tlaserContinuous.stop();\n\t\t\tlaser.stop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Start sounds\n\t\t\tstartMusic();\n\t\t\tif (laserRunning)\n\t\t\t{\n\t\t\t\tlaserContinuous.loop();\n\t\t\t}\n\t\t}\n\t}", "public void enableSound() {\n soundToggle = true;\n }", "public void toggle() {\n if (volume == 1f) {\n volume = 0f;\n }\n else if (volume == 0f) {\n volume = 1f;\n }\n\n }", "public boolean musicOn ()\n\t{\n\t\tif (musicInt == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "public void toggle() {\n if (isOn()) {\n turnOff();\n } else {\n turnOn();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(bMusic){\n\t\t\t\t\tmp.start();\n\t\t\t\t\tbMusic = false;\n\t\t\t\t}else{\n\t\t\t\t\tbMusic = true;\n\t\t\t\t\tmp.pause();\n\t\t\t\t}\n\t\t\t}", "public void togglePlay() {\n\t\tif (playing)\n\t\t\tpause();\n\t\telse\n\t\t\tplay();\n\t}", "public void toggle(){\n isOn = !isOn;\n }", "public static boolean toggleSound()\r\n\t{\r\n\t\tSettings.setSoundOn( !Settings.isSoundOn() );\r\n\t\treturn Settings.isSoundOn();\r\n\t}", "public static void updateMusic()\r\n\t{\r\n\t\tif ( Settings.isMusicOn() && !musicPlaying() )\r\n\t\t\tstartMusic();\r\n\t\telse if ( !Settings.isMusicOn() && musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t}", "@Override\r\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (bt_music.isChecked()) {\r\n\t\t\t\t\t\r\n\t\t\t\t\tmusicFlag = true;\r\n\t\t\t\t\tpreferences = getSharedPreferences(\"ZKY\", Context.MODE_PRIVATE);\r\n\t\t\t\t\tEditor editor = preferences.edit();\r\n\t\t\t\t\teditor.putBoolean(\"musicFlag\", musicFlag);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t\tToast.makeText(SetActivity.this, \"音乐 开\", Toast.LENGTH_SHORT)\r\n\t\t\t\t\t\t\t.show();\r\n\t\t\t\t} else {\r\n\t\t\t\t\tmusicFlag = false;\r\n\t\t\t\t\tpreferences = getSharedPreferences(\"ZKY\", Context.MODE_PRIVATE);\r\n\t\t\t\t\tEditor editor = preferences.edit();\r\n\t\t\t\t\teditor.putBoolean(\"musicFlag\", musicFlag);\r\n\t\t\t\t\teditor.commit();\r\n\t\t\t\t\tToast.makeText(SetActivity.this, \"音乐 关\",\r\n\t\t\t\t\t\t\tToast.LENGTH_SHORT).show();\r\n\t\t\t\t}\r\n\t\t\t}", "private void musicClicked() {\n MatchScreen.setMusicVolume(MatchScreen.getMusicVolume() == 0 ? 0.5f : 0);\n setSoundButtonColor(MatchScreen.getMusicVolume() == 0, music);\n }", "public void togglePlayandPause(View view) {\n isPlaying = !isPlaying;\n playPauseTrack();\n }", "public void ChangeMusic(int musicnum, boolean looping);", "public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}", "void stopMusic();", "public boolean toggleMute() {\n SoundPlayer.toggleMusicMute();\n SoundPlayer.toggleSoundFxMute();\n muted = !muted;\n return muted;\n }", "public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}", "public void play(boolean music) {\n\t\tplay(1.0f, 1.0f, music);\n\t}", "public void setSound(Boolean sound_on){\n this.sound_on = sound_on;\n }", "public void disableSound() {\n soundToggle = false;\n }", "public void StopMusic();", "default void toggle(boolean fromUser) {\n if (isPlaying()) {\n pause(fromUser);\n } else {\n play(fromUser);\n }\n }", "private void setAudioState(boolean muted) {\n mMuted = muted;\n mRtcEngine.muteLocalAudioStream(mMuted);\n if (mMuted) {\n mMuteBtn.setImageResource(R.drawable.btn_mic_muted);\n } else {\n mMuteBtn.setImageResource(R.drawable.btn_mic_unmuted);\n }\n }", "void changeMusic(AudioTrack newSong);", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n @Override\n public void onClick(View view) {\n if(!Globals.isMusicPlaying){\n animations.playToPauseAnimation(playButton);\n Globals.isMusicPlaying = true;\n } else {\n animations.pauseToPlayAnimation(playButton);\n Globals.isMusicPlaying = false;\n }\n\n }", "public void turn_off () {\n this.on = false;\n }", "public void onLocalAudioMuteClicked(View view) {\n // Toggle audio mute.\n setAudioState(!mMuted);\n }", "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\n if(arg1){\n Log.d(TAG,\"Set audio mute ON.\");\n mAudioControl.setMute(true);\n }\n else{\n Log.d(TAG,\"set audio mute OFF.\");\n mAudioControl.setMute(false);\n }\n }", "public void toggle() { this.isOpen = !this.isOpen; }", "@Override\n\tpublic void pause() {\n\t PhoneDevice.Settings.stopMusic();\n\t}", "void toggle();", "public void setIsPlaying(boolean a) {\n\t\tthis.isPlaying = !this.isPlaying;\n\t}", "public void setMusic(boolean checked) {\n\n SharedPreferences.Editor editor = mSharedPreferences.edit();\n editor.putBoolean(mContext.getString(R.string.music_checked), checked);\n editor.commit();\n }", "public abstract void toggle();", "public boolean isSoundEnabled() {\n return soundToggle;\n }", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "public static void stopMusic() {\n\t\tcurrentMusic.stop();\n\t}", "public void turnOn() {\n\t\tisOn = true;\n\t}", "@Override\n public void onClick(View v) {\n if (v == audio) {\n playTheSound(imgPos);\n stop.setVisibility(View.VISIBLE);\n audio.setVisibility(View.INVISIBLE);\n\n //Pareil que pour le bouton audio en inversant les rôles\n }\n\n if (v == stop) {\n playTheSound(imgPos);\n stopTheSound();\n stop.setVisibility(View.INVISIBLE);\n audio.setVisibility(View.VISIBLE);\n }\n }", "@Override\n\tpublic void onClick(View v) {\n\t\tMainMusic.setVolume(0,0);\n\t\t\n\t}", "public void audioAction() {\n getSelectedCell().toggleAudio();\n }", "public void turnOff() {\n\t\tisOn = false;\n\t}", "@Override\r\n\tpublic void setMusic() {\r\n\t\tmanager.getMusicManager().setMusic((Music) Gdx.audio.newMusic(Gdx.files.internal(\"Music/Bandit Camp.mp3\")));\r\n\t}", "public void activateVolume(boolean on){\n\n\t\tif(prevPitch != cow.getPitch()) {\n\t\t\tcow.setIsPlaying(on);\n\n\t\t\t//if(sequencer.isRunning()) {\n\t\t\t\tcow.stopNote(synthesizer);\n\t\t\t//-}\n\n\t\t\tif (cow.getIsPlaying()) {\n\t\t\t\tsynthesizer = cow.playNote();\n\t\t\t}\n\n\t\t\tprevPitch = cow.getPitch();\n\t\t}\n\t\t\n\t}", "@Override\n protected void onPause()\n {\n super.onPause();\n setSound.pauseMusic();\n }", "public void toggle(){\r\n isDown = !isDown;\r\n }", "public void actionPerformed(ActionEvent e){\n\t\tSystem.out.println(\"SOUND ON/OFF\");\n\t\tgame.toggleSound();\n\t}", "private void initialMusic(){\n\n }", "public static void stopSong()\n {\n JSoundsMainWindowViewController.iAmPlaying = true;\n JSoundsMainWindowViewController.iAmPausing = false;\n JSoundsMainWindowViewController.iAmResuming = false;\n \n MusicPlayerControl.stopSong();\n }", "public void StartMusic(int music_id);", "public void turn_on () {\n this.on = true;\n }", "public void setMusic(Music music);", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(bSound){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tms.prepare();\n\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tms.start();\n\t\t\t\t\tbSound = true;\n\t\t\t\t}else{\n\t\t\t\t\tbSound = false;\n\t\t\t\t\tms.reset();\n\t\t\t\t}\n\t\t\t}", "public void toggleFavorite() {\n\t\tsynchronized (this) {\n\t\t\tif (mFavoritesCache != null) {\n\t\t\t\tmFavoritesCache.toggleSong(getAudioId(), getTrackHost(),\n\t\t\t\t\t\tgetTrackName(), getAlbumName(), getArtistName());\n\t\t\t}\n\t\t}\n\t}", "public boolean getBackgroundMusic(){\n return backgroundMusicOn;\n }", "public void toggleFavorites()\n {\n this.showFavorites = !this.showFavorites;\n this.setupMorphs(Morphing.get(this.mc.thePlayer));\n }", "private void playSound() {\n if (isFlashOn) {\n mp = MediaPlayer.create(this, R.raw.light_switch_off);\n } else {\n mp = MediaPlayer.create(this, R.raw.light_switch_on);\n }\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n @Override\n public void onCompletion(MediaPlayer mp) {\n // TODO Auto-generated method stub\n mp.release();\n }\n });\n mp.start();\n }", "public void toggle() {\n setChecked(!checked);\n }", "@Override\r\n public void show()\r\n {\r\n // De inmediato, ponemos en marcha una melodia\r\n if (!juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).isPlaying())\r\n {\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).play();\r\n juego.getAdminComponentes().get(\"Audios/bgmusic06.ogg\", Music.class).setLooping(true);\r\n }\r\n }", "@Override\n public void show() {\n MenuMusic.play();\n MenuMusic.setLooping(true);\n MenuMusic.setVolume(0.4f);\n }", "public void turnOn() {\n\t\tOn = true;\n\t}", "public void mute() {\n\t\tif (isMute) {\n\t\t\tplaybin.setVolume(0);\n\t\t\tisMute = false;\n\t\t} else {\n\t\t\tplaybin.setVolume(volume);\n\t\t\tisMute = true;\n\t\t}\n\t}", "@Override\n protected void onStop() {\n super.onStop();\n stopMusic();\n }", "public void toggle() {\n toggle(false);\n }", "void startMusic(AudioTrack newSong);", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "@Override\n public void onClick(View v) {\n if (playMode < MusicPlayer.PLAY_WITH_SONG_LIST_LOOPING) {\n playMode++;\n } else {\n playMode = MusicPlayer.PLAY_WITH_SIGNAL;\n }\n playerService.setPlayMode(playMode);\n }", "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "public void stop() {\n\t\tmusic.stop();\n\t}", "public void setMute(boolean mute);", "public void stop_Or_start(View v) {\n MyAnimation myRotateAnimation = new MyAnimation(MainActivity.this,\n R.id.main_id_img_show_is_played);\n\n if (is_played) {\n stopService(i); //stop music.\n myRotateAnimation.stopAnimation(); //stop animation.\n //Toast.makeText(MainActivity.this, \"shop music!\", Toast.LENGTH_SHORT).show();\n } else {\n startService(i); //play music.\n myRotateAnimation.startRotateAnimation(); //start animation.\n //Toast.makeText(MainActivity.this, \"start music!\", Toast.LENGTH_SHORT).show();\n }\n is_played = !is_played;\n }", "synchronized void toggle() {\n myShouldPause = !myShouldPause;\n this.notify();\n }", "private void clickSound() {// this function Plays a sound when a button is clicked.\n\t\tif (mp != null) {\n\t\t\tmp.release();\n\t\t}\n\t\tmp = MediaPlayer.create(getApplicationContext(), R.raw.music2);\n\t\tmp.start();// media player is started\n\t}", "public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\r\n this.onEnable();\r\n else\r\n this.onDisable();\r\n }", "public void toggleEnable();", "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "public void pauseToggle() {\r\n if(gameState == 1) {\r\n gameState = 0;\r\n }\r\n else gameState = 1;\r\n }", "public void Play() {\n superPlaneGodMode = false;\r\n if (!musicPlaying)\r\n backgroundMusic.pause();\r\n if (musicPlaying)\r\n backgroundMusic.start();\r\n paused = false;\r\n }", "public void StartMusic(musicenum_t music_id);", "@Override\n\t\tpublic void onCheckedChanged(CompoundButton arg0, boolean isChecked) {\n\t\t\tif(isChecked){\n\t\t\t\tSystem.out.println(\"player pause\");\n\t\t\t\tplayMedia(false);\n\t\t\t}\n\t\t\t/*play player*/\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"player play\");\n\t\t\t\tplayMedia(true);\n\t\t\t}\n\t\t}", "public void set_videotoggle_on_off(View view)\n\t{\n\t\tif(VideoModule.isVideoThreadStarted())\n\t\t{\n\t\t\tVideoModule.stopVideoServer();\n\t\t}\n\t\telse\n\t\t{\n\t\t\tVideoModule.startVideoServer();\n\t\t}\n\t\tvideo_toggle_OnOff.setChecked(VideoModule.isVideoThreadStarted());\n\t}", "void mute() {\n execute(\"player.muted = true\");\n }", "@Override\n\tpublic void show() {\n\t\tmusic.play();\n\t}", "@Override\n\tpublic void toggle() {\n\t\tsetChecked(!checked);\n\t}", "@Override\n\tpublic void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\t\tAtcSettings.Audio.SetMicMute(arg1);\n\t\tif (arg1) {\n\t\t\tm_micmute_cb.setChecked(true);\n\t\t}else{\n\t\t\tm_micmute_cb.setChecked(false);\n\t\t}\n\t}", "void setSound(boolean b){\r\n\t\tgc.setSound(b);\r\n\t}", "public boolean isMusicActive() {\n return mAudioManager.isMusicActive();\n }", "public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }" ]
[ "0.8906403", "0.7908527", "0.78104216", "0.7594626", "0.7548933", "0.7523545", "0.7475785", "0.7442795", "0.73795056", "0.7195614", "0.7188607", "0.7108621", "0.7067843", "0.7019711", "0.69715154", "0.69667983", "0.6959822", "0.6909428", "0.6877419", "0.6814214", "0.67681295", "0.6720344", "0.66897017", "0.6686338", "0.6678788", "0.66764295", "0.6608642", "0.6574739", "0.654932", "0.6536485", "0.6520577", "0.6514048", "0.6501048", "0.647455", "0.63528085", "0.63485885", "0.63470614", "0.6345248", "0.6335486", "0.6332031", "0.63287795", "0.6328717", "0.6288261", "0.6282367", "0.6278309", "0.62683946", "0.6266456", "0.62652874", "0.62581193", "0.62550783", "0.6240335", "0.62388414", "0.6230697", "0.6213372", "0.6212997", "0.6205669", "0.6191666", "0.61879504", "0.6187819", "0.61805874", "0.61713547", "0.6157853", "0.61422604", "0.61259013", "0.6112992", "0.6109551", "0.6106965", "0.6090587", "0.60873127", "0.6081615", "0.60797226", "0.60725284", "0.607036", "0.606434", "0.6042851", "0.60414773", "0.6031397", "0.6012829", "0.60034066", "0.6002271", "0.5999821", "0.59928966", "0.5992825", "0.59891236", "0.59868234", "0.59856874", "0.59715927", "0.5970474", "0.5968955", "0.5949109", "0.5946298", "0.5925669", "0.59221107", "0.59191364", "0.591435", "0.58911324", "0.5889606", "0.5889583", "0.588797", "0.58879656" ]
0.7837987
2
Toggles the internal sound on / off.
public static boolean toggleSound() { Settings.setSoundOn( !Settings.isSoundOn() ); return Settings.isSoundOn(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void toggleSound()\n\t{\n\t\tif (sound)\n\t\t\tsound = false;\n\t\telse\n\t\t\tsound = true;\n\t\tnotifyObservers();\n\t}", "public void enableSound() {\n soundToggle = true;\n }", "public void toggleSound() { \n\t\tif (mSoundEnable) {\n\t\t\tmSoundEnable = false; \n\t\t\tif (ResourceManager.getInstance().gameMusic.isPlaying())\n\t\t\t\tResourceManager.getInstance().gameMusic.pause();\n\t\t}\n\t\telse {\n\t\t\tmSoundEnable = true;\n\t\t\tif (!ResourceManager.getInstance().gameMusic.isPlaying()) {\n\t\t\t\tResourceManager.getInstance().gameMusic.play();\n\t\t\t}\n\t\t}\n\t}", "public void disableSound() {\n soundToggle = false;\n }", "public void toggleMusic() {\n this.musicEnabled = !this.musicEnabled;\n }", "public void setSound(Boolean sound_on){\n this.sound_on = sound_on;\n }", "public void togglePlay() { }", "void togglePlay();", "public static void toggleMute()\n\t{\n\t\tmute = !mute;\n\t\tif (mute)\n\t\t{\n\t\t\t// Stop all sounds\n\t\t\tmusic.stop();\n\t\t\tlaserContinuous.stop();\n\t\t\tlaser.stop();\n\t\t}\n\t\telse\n\t\t{\n\t\t\t// Start sounds\n\t\t\tstartMusic();\n\t\t\tif (laserRunning)\n\t\t\t{\n\t\t\t\tlaserContinuous.loop();\n\t\t\t}\n\t\t}\n\t}", "public void toggle() {\n if (volume == 1f) {\n volume = 0f;\n }\n else if (volume == 0f) {\n volume = 1f;\n }\n\n }", "public boolean isSoundEnabled() {\n return soundToggle;\n }", "public void actionPerformed(ActionEvent e){\n\t\tSystem.out.println(\"SOUND ON/OFF\");\n\t\tgame.toggleSound();\n\t}", "void setSound(boolean b){\r\n\t\tgc.setSound(b);\r\n\t}", "public void turnOff() {\n\t\tOn = false;\n\t\tVolume = 1;\n\t\tChannel = 1;\n\t}", "public void toggle() {\n if (isOn()) {\n turnOff();\n } else {\n turnOn();\n }\n }", "synchronized void toggle() {\n try {\n myShouldPause = !myShouldPause;\n if (myShouldPause) {\n if (myPlayer != null) {\n myPlayer.stop();\n }\n } else if (!myGamePause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public void togglePlay() {\n\t\tif (playing)\n\t\t\tpause();\n\t\telse\n\t\t\tplay();\n\t}", "public void toggle(){\n isOn = !isOn;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(bSound){\n\t\t\t\t\ttry {\n\t\t\t\t\t\tms.prepare();\n\t\t\t\t\t} catch (IllegalStateException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tms.start();\n\t\t\t\t\tbSound = true;\n\t\t\t\t}else{\n\t\t\t\t\tbSound = false;\n\t\t\t\t\tms.reset();\n\t\t\t\t}\n\t\t\t}", "public void setSoundEnabled(final boolean sEnabled) { soundEnabled = sEnabled; }", "public synchronized void stopSound() {\r\n running = false;\r\n }", "public void turn_off () {\n this.on = false;\n }", "public static void setSound(boolean tempSound) {\n sound = tempSound;\n }", "public void stopSound() {\n metaObject.stopSound();\n }", "public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}", "public void stopSound(){\n p.stop(as);\n }", "@Override\n public void onClick(View v) {\n if (v == audio) {\n playTheSound(imgPos);\n stop.setVisibility(View.VISIBLE);\n audio.setVisibility(View.INVISIBLE);\n\n //Pareil que pour le bouton audio en inversant les rôles\n }\n\n if (v == stop) {\n playTheSound(imgPos);\n stopTheSound();\n stop.setVisibility(View.INVISIBLE);\n audio.setVisibility(View.VISIBLE);\n }\n }", "public static void enableSound() {\n\t\tvelocity = 127;\n\t}", "protected void muteSounds()\n {\n if(confused.isPlaying())\n confused.stop();\n }", "private void playSound() {\n if (isFlashOn) {\n mp = MediaPlayer.create(this, R.raw.light_switch_off);\n } else {\n mp = MediaPlayer.create(this, R.raw.light_switch_on);\n }\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n @Override\n public void onCompletion(MediaPlayer mp) {\n // TODO Auto-generated method stub\n mp.release();\n }\n });\n mp.start();\n }", "public void sendAllSoundsOff()\n {\n super.sendAllSoundsOff();\n }", "protected void stopTheSound(){\n mp.stop();\n }", "private void setAudioState(boolean muted) {\n mMuted = muted;\n mRtcEngine.muteLocalAudioStream(mMuted);\n if (mMuted) {\n mMuteBtn.setImageResource(R.drawable.btn_mic_muted);\n } else {\n mMuteBtn.setImageResource(R.drawable.btn_mic_unmuted);\n }\n }", "private void soundClicked() {\n Sounds.setVolume(Sounds.getVolume() == 0 ? 1 : 0);\n setSoundButtonColor(Sounds.getVolume() == 0, sound);\n }", "public void PauseSound();", "default void toggle(boolean fromUser) {\n if (isPlaying()) {\n pause(fromUser);\n } else {\n play(fromUser);\n }\n }", "public static void stopSound() {\n if(mAudioManager != null) {\n mAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, originalVolume, 0);\n }\n if (mp != null) {\n mp.stop();\n Log.d(TAG, \"Stop Sound\");\n }\n }", "public void turnOff() {\n\t\tisOn = false;\n\t}", "public boolean getSoundEnabled() { return soundEnabled; }", "public void setMusicOn(boolean on){\r\n\t\tmusicOn = on;\r\n\t}", "public void audioAction() {\n getSelectedCell().toggleAudio();\n }", "public boolean toggleMute() {\n SoundPlayer.toggleMusicMute();\n SoundPlayer.toggleSoundFxMute();\n muted = !muted;\n return muted;\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp2.play(sound_id2, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp1.play(sound_id1, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}", "public static void toggleMusic( /*takes two arguments*/ ){\n\n }", "public void enableSystemSound() {\n if (this.mAppContext != null) {\n Log.m19d(TAG, \"enableSystemSound\");\n try {\n StatusBarProvider.getInstance().disable(this.mAppContext, 0);\n setStreamMute(false);\n if (getRecorderState() != 3 && this.mAudioManager.getRingerMode() == 2) {\n this.mAudioManager.adjustStreamVolume(2, 100, 0);\n Settings.System.putInt(this.mAppContext.getContentResolver(), \"vibrate_when_ringing\", this.mVibrateWhileRingingState);\n }\n } catch (SecurityException e) {\n Log.m32w(TAG, \"enableSystemSound : \" + e);\n }\n }\n }", "public void pauseSound() {\n\t\tclip.stop();\n\t}", "public void StopSound(ISoundOrigin origin);", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp8.play(sound_id8, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}", "public void setSoundShot(final boolean sShot) { soundShot = sShot; }", "public void mute() {\n\t\tif (isMute) {\n\t\t\tplaybin.setVolume(0);\n\t\t\tisMute = false;\n\t\t} else {\n\t\t\tplaybin.setVolume(volume);\n\t\t\tisMute = true;\n\t\t}\n\t}", "public void playAmbientSound() {\n if (!this.isClosed()) {\n super.playAmbientSound();\n }\n\n }", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public static boolean toggleMusic()\r\n\t{\r\n\t\tif ( musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t\telse\r\n\t\t\tstartMusic();\r\n\t\tSettings.setMusicOn( musicPlaying() );\r\n\t\treturn Settings.isMusicOn();\r\n\r\n\t}", "public void activateVolume(boolean on){\n\n\t\tif(prevPitch != cow.getPitch()) {\n\t\t\tcow.setIsPlaying(on);\n\n\t\t\t//if(sequencer.isRunning()) {\n\t\t\t\tcow.stopNote(synthesizer);\n\t\t\t//-}\n\n\t\t\tif (cow.getIsPlaying()) {\n\t\t\t\tsynthesizer = cow.playNote();\n\t\t\t}\n\n\t\t\tprevPitch = cow.getPitch();\n\t\t}\n\t\t\n\t}", "@Override\n public void stopSound(){\n gameMusic.stop();\n }", "void toggle();", "public void stop() {\n\t\tsound.stop();\n\t}", "public void StopSound() {\r\n\t\tif (this.mp.isPlaying()) {\r\n\t\t\tmp.pause();\r\n\t\t}\r\n\t}", "public void toggle(){\r\n isDown = !isDown;\r\n }", "public void switchOff();", "private void turnOffSpeakerPhone() {\n mAudioManager.setMode(AudioManager.MODE_NORMAL);\n mAudioManager.setSpeakerphoneOn(false);\n }", "public void turn_on () {\n this.on = true;\n }", "@Override\n public void onCheckedChanged(CompoundButton arg0, boolean arg1) {\n\n if(arg1){\n Log.d(TAG,\"Set audio mute ON.\");\n mAudioControl.setMute(true);\n }\n else{\n Log.d(TAG,\"set audio mute OFF.\");\n mAudioControl.setMute(false);\n }\n }", "public void switchLight(){\r\n _switchedOn = !_switchedOn;\r\n }", "public void enableMic(boolean enable);", "public void buttonClick() {\n if (soundToggle == true) {\n buttonClick.start();\n } // if\n }", "public void turnOn() {\n\t\tisOn = true;\n\t}", "public void toggleSignal() {\n if (green) {\n green = false;\n } else {\n green = true;\n }\n }", "public boolean isSound() {\n\t\treturn true;\n\t}", "public void onLocalAudioMuteClicked(View view) {\n // Toggle audio mute.\n setAudioState(!mMuted);\n }", "@Override\n public void makeSound() {\n\n }", "@Override\n public void makeSound() {\n\n }", "public void turnOn() {\n\t\tOn = true;\n\t}", "private void stopAudio() {\r\n // stop playback if possible here!\r\n }", "public void pauseToggle() {\r\n if(gameState == 1) {\r\n gameState = 0;\r\n }\r\n else gameState = 1;\r\n }", "public void toggle() {\n toggle(false);\n }", "public void stopSound(ISound sound) {\n/* 354 */ if (this.loaded) {\n/* */ \n/* 356 */ String s = this.invPlayingSounds.get(sound);\n/* */ \n/* 358 */ if (s != null)\n/* */ {\n/* 360 */ this.sndSystem.stop(s);\n/* */ }\n/* */ } \n/* */ }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp3.play(sound_id3, 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}", "public void toggle() { this.isOpen = !this.isOpen; }", "public void turnOff() {\n update(0,0,0);\n this.status = false;\n }", "public void togglePlayandPause(View view) {\n isPlaying = !isPlaying;\n playPauseTrack();\n }", "public void enableAudioMulticast(boolean yesno);", "public void toggleEnable();", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp12.play(sound_id12 , 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}", "public void setSoundAmbience(final boolean sAmbience) { soundAmbience = sAmbience; }", "boolean getShutterSoundPref();", "@Override\n public void playSound(int soundId) {\n\n }", "public void turnOn ()\n\t{\n\t\tthis.powerState = true;\n\t}", "public void setAudioMuteOn(int streamType) {\n mAudioManager.setStreamMute(streamType, true);\n }", "public void toggleMod(){\r\n this.enabled = !this.enabled;\r\n this.onToggle();\r\n if(this.enabled)\r\n this.onEnable();\r\n else\r\n this.onDisable();\r\n }", "public void setSoundPlaybackEnabled(boolean isSoundEnabled)\r\n {\r\n this.isSoundPlaybackEnabled = isSoundEnabled;\r\n }", "private void playAudio() {\r\n Play.au(audioFileName, false);\r\n }", "public void changeStatus()\n {\n if(this.isActivate == false)\n {\n this.isActivate = true;\n switchSound.play();\n //this.dungeon.updateSwitches(true); \n }\n else{\n this.isActivate = false;\n switchSound.play(1.75, 0, 1.5, 0, 1);\n //this.dungeon.updateSwitches(false); \n }\n notifyObservers();\n\n }", "void setValueMixerSound(int value);", "public abstract void toggle();", "private void turnOffFlash() {\n getCamera();\n Log.d(\"Flash on?\", \"============+>\" + String.valueOf(isFlashOn));\n if (isFlashOn) {\n if (camera == null || params == null) {\n isFlashOn = false;\n return;\n }\n // play sound\n playSound();\n params = camera.getParameters();\n params.setFlashMode(Camera.Parameters.FLASH_MODE_OFF);\n camera.setParameters(params);\n if (!isCameraOn) {\n mPreview = null;\n camera.stopPreview();\n }\n if (t != null) {\n sr.stopRunning = true;\n t = null;\n }\n isFlashOn = false;\n // changing button/switch image\n toggleButtonImageSwitch();\n }\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tsp10.play(sound_id10 , 1.0F, 1.0F, 0, 0, 1.0F);\n\t\t\t}", "void setShutterLEDState(boolean on);", "public void playClickSound() {\n\t\tAudioPlayer audio = AudioPlayer.getInstance();\n\t\taudio.playSound(MUSIC_FOLDER, CLICK);\n\t}" ]
[ "0.8333718", "0.8107491", "0.78946745", "0.7701819", "0.75125796", "0.7459061", "0.7371739", "0.72757566", "0.723063", "0.7146102", "0.7119545", "0.70716417", "0.7011233", "0.69494396", "0.69175524", "0.6898381", "0.67810595", "0.67643064", "0.672678", "0.66575795", "0.66423815", "0.657888", "0.6550406", "0.6531993", "0.6529701", "0.6507205", "0.6498709", "0.6486269", "0.645404", "0.64280206", "0.64190835", "0.63818395", "0.63721037", "0.63483846", "0.6332528", "0.63226354", "0.6321169", "0.63037026", "0.62728363", "0.62708163", "0.6258464", "0.62570786", "0.62281454", "0.62183225", "0.6203024", "0.61960924", "0.61952627", "0.61600715", "0.61534655", "0.6145489", "0.613771", "0.6134149", "0.6125634", "0.6116766", "0.61142635", "0.61122036", "0.6109096", "0.6108777", "0.6105586", "0.61050093", "0.6095655", "0.60909563", "0.60848737", "0.60802287", "0.6073226", "0.60654557", "0.6064482", "0.60530216", "0.60365635", "0.60307324", "0.6026195", "0.601716", "0.601716", "0.60145324", "0.59914565", "0.596985", "0.59674215", "0.5965491", "0.5959398", "0.59505975", "0.5949689", "0.5947545", "0.5942873", "0.59347415", "0.5919582", "0.5915116", "0.59121704", "0.5911964", "0.5907973", "0.5890832", "0.58868337", "0.5881324", "0.5880716", "0.587988", "0.5879328", "0.5876084", "0.5874082", "0.58694124", "0.58644736", "0.58602965" ]
0.78404164
3
Returns whether the music is playing.
public static boolean musicPlaying() { if ( musicPlayer == null ) return false; else return musicPlayer.isPlaying(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public boolean isPlaying() {\n return params.isPlay();\n }", "public boolean playing() {\n\t\treturn sound.isPlaying();\n\t}", "public boolean isPlaying() {\n\t\tif(currentPlayingItem==null) return false;\n\t\treturn mediaPlayer.isPlaying();\n\t}", "public boolean isPlaying() {\n \t\treturn isPlaying;\n \t}", "public boolean isPlaying() {\n return mPlaying || mStateManager.isPlaying();\n\t}", "public boolean isPlaying() {\n\t\treturn isPlaying;\n\t}", "@Override\n public boolean isPlaying()\n {\n final String funcName = \"isPlaying\";\n\n if (debugEnabled)\n {\n dbgTrace.traceEnter(funcName, TrcDbgTrace.TraceLevel.API);\n dbgTrace.traceExit(funcName, TrcDbgTrace.TraceLevel.API, \"=%s\", Boolean.toString(playing));\n }\n\n return playing;\n }", "Boolean isPlaying() {\n return execute(\"player.playing\");\n }", "public boolean isPlaying() {\n\t\treturn state == State.INGAME;\n\t}", "@Override\r\n\tpublic boolean isPlaying() {\n\t\treturn mediaPlayer.isPlaying();\r\n\t}", "public boolean isAudioPlaying() {\n\t\tif (android.os.Environment.getExternalStorageState().equals(android.os.Environment.MEDIA_MOUNTED)) {\n\t\t\treturn mPlayer.isPlaying();\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isPlaying() {\n\t\treturn AL10.alGetSourcei(id, AL10.AL_SOURCE_STATE) == AL10.AL_PLAYING;\n\t}", "boolean isSoundPlaying() {\n return (audioTrack.getPlayState() == AudioTrack.PLAYSTATE_PLAYING);\n }", "public boolean isPlaying() {\n return isPlaying(mController);\n }", "public boolean isPlaying() {\n return state.isActive();\n }", "public boolean isMusicActive() {\n return mAudioManager.isMusicActive();\n }", "public boolean getIsPlaying() {\n\t\treturn this.isPlaying;\n\t}", "public boolean isPlaying(MediaController mediaController) {\n boolean z = false;\n if (mediaController == null) {\n return false;\n }\n PlaybackState playbackState = mediaController.getPlaybackState();\n if (playbackState == null) {\n return false;\n }\n if (playbackState.getState() == 3) {\n z = true;\n }\n return z;\n }", "public boolean isPlayerPlaying() {\n return this.player.getMasterMediaPlayer().isPlaying();\n }", "public boolean getPlaying() {\n\t\treturn this.isPlaying;\n\t}", "public boolean musicOn ()\n\t{\n\t\tif (musicInt == 0)\n\t\t\treturn true;\n\t\telse\n\t\t\treturn false;\n\t}", "boolean isPlaying() { return playing; }", "public boolean isPlaying() {\n\t\treturn mIsSupposedToBePlaying;\n\t}", "public boolean getPlaying() {\n return this.playing;\n }", "protected boolean isPlaying(MediaController controller) {\n if (controller == null) {\n return false;\n }\n\n PlaybackState state = controller.getPlaybackState();\n if (state == null) {\n return false;\n }\n\n return (state.getState() == PlaybackState.STATE_PLAYING);\n }", "public boolean isPlaying(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn false;\r\n \t\treturn mediaplayer.isPlaying();\r\n \t}", "public boolean isPlayable() {\n return (mFlags & FLAG_PLAYABLE) != 0;\n }", "@SuppressWarnings(\"static-access\")\n\tpublic boolean isPlay(){\n\t\treturn this.isPlay;\n\t}", "public static boolean toggleMusic()\r\n\t{\r\n\t\tif ( musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t\telse\r\n\t\t\tstartMusic();\r\n\t\tSettings.setMusicOn( musicPlaying() );\r\n\t\treturn Settings.isMusicOn();\r\n\r\n\t}", "public boolean isPlaying()\n {\n return (state == AnimationState.FORWARD\n || state == AnimationState.BACKWARD);\n }", "boolean playing() {\n return _playing;\n }", "public boolean poll()\n {\n if (this.mediaPlayer == null)\n {\n return false;\n }\n\n return mediaPlayer.getStatus().equals(MediaPlayer.Status.PLAYING);\n }", "public boolean isPlaying(int sample) {\n\t\t\treturn m_soundManager.isPlaying(sample);\n\t\t}", "public boolean playsSound() {\r\n\t\treturn playsSound;\r\n\t}", "public boolean isSoundPlaying(ISound sound) {\n/* 333 */ if (!this.loaded)\n/* */ {\n/* 335 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 339 */ String s = this.invPlayingSounds.get(sound);\n/* */ \n/* 341 */ if (s == null)\n/* */ {\n/* 343 */ return false;\n/* */ }\n/* */ \n/* */ \n/* 347 */ return !(!this.sndSystem.playing(s) && (!this.playingSoundsStopTime.containsKey(s) || ((Integer)this.playingSoundsStopTime.get(s)).intValue() > this.playTime));\n/* */ }", "public boolean stillPlaying(){\r\n\t\treturn stillPlaying;\r\n\t}", "public boolean isSoundPlaybackEnabled()\r\n {\r\n return isSoundPlaybackEnabled;\r\n }", "public boolean isAudio() {\n\t\t\treturn this == AUDIO;\n\t\t}", "public static boolean isSound() {\n return sound;\n }", "boolean isPlayable();", "public boolean hasAudio() {\n\t\treturn this.recordingProperties.hasAudio();\n\t}", "public boolean isSound() {\n\t\treturn true;\n\t}", "public static boolean isPlaying(int channel) {\n\t\treturn playingChannels.containsKey(channel) && getSound(channel).isPlaying();\r\n\t}", "private boolean isInPlaybackState() {\n return (mMediaPlayer != null &&\n mStatus != STATUS_STOPPED &&\n mStatus != STATUS_IDLE &&\n mStatus != STATUS_PREPARING);\n }", "public boolean isInPlay() {\n\t\tif (getX() < LEFT_FIELD_LIMIT || getX() > RIGHT_FIELD_LIMIT || \n\t\t\t\t getY() <= MINIMUM_FOOTBALL_Y) {\n\t\t\tinPlay_ = false;\n\t\t\treturn inPlay_;\n\t\t} \n\t\treturn inPlay_;\n\t}", "boolean play();", "public boolean isPlayByPlayMenuSelected() {\n return playByPlayMenuSelected;\n }", "public boolean soundDeviceCanPlayback(String device);", "public boolean hasSong(){\n return numSongs < MAX_SONG;\n }", "public boolean hasPlayList(){\n return numPlayList < MAX_PLAYLIST;\n }", "public boolean getBackgroundMusic(){\n return backgroundMusicOn;\n }", "public boolean checkPlays(Player player){\n return true;\n }", "public boolean isSpeaking() {\n return (mSelf.mIsSpeaking && (mSpeechQueue.size() < 1));\n }", "public boolean playSong(String song)\n {\n System.out.println(\"Playing song '\" + song + \"'\");\n\n if(mPaused && null != mWaitTimer)\n {\n mWaitTimer.cancel();\n mWaitTimer.purge();\n }\n\n //mPaused = false;\n\n // Play song\n try\n {\n currentSong = song;\n\n if (null == currentSong)\n {\n preparePlayer();\n return false;\n } else\n {\n mPlayer.reset();\n mPlayer.setDataSource(currentSong);\n mPlayer.setVolume(FLOAT_VOLUME_MAX, FLOAT_VOLUME_MAX);\n mPlayer.prepare();\n mPlayer.start();\n\n mInitialized = false;\n mPaused = false;\n updateMetadata();\n return true;\n }\n\n }\n catch (IllegalArgumentException e)\n {\n e.printStackTrace();\n }\n catch (IllegalStateException e)\n {\n e.printStackTrace();\n }\n catch (IOException e)\n {\n e.printStackTrace();\n }\n\n return false;\n }", "private boolean musicChecker(String currentInput)\n\t{\n\t\tboolean hasMusic = false;\n\t\t// loop, look for music.\n\n\t\tfor (String currentPhrase : musicList)\n\t\t{\n\t\t\tif (currentPhrase.equals(currentInput))\n\t\t\t{\n\t\t\t\thasMusic = true;\n\t\t\t}\n\t\t}\n\t\treturn hasMusic;\n\t}", "@java.lang.Override\n public boolean hasPlayready() {\n return playready_ != null;\n }", "public boolean isValidSong() { \n\t\tString filepath = aFilePath.toString();\n\t\tFile f = new File(filepath);\n\t\treturn f.exists();\n\t}", "public static boolean isReceivingSong(Player player) {\n\t\treturn ((plugin.playingSongs.get(player.getUniqueId()) != null) \n\t\t\t\t&& (!plugin.playingSongs.get(player.getUniqueId()).isEmpty()));\n\t}", "public boolean getIsPlaylist() {\n\t\treturn this.isPlaylist;\n\t}", "public boolean isMediaKey() {\n switch (this) {\n case MEDIA_PLAY:\n case MEDIA_PAUSE:\n case MEDIA_PLAY_PAUSE:\n case MUTE:\n case HEADSETHOOK:\n case MEDIA_STOP:\n case MEDIA_NEXT:\n case MEDIA_PREVIOUS:\n case MEDIA_REWIND:\n case MEDIA_RECORD:\n case MEDIA_FAST_FORWARD:\n return true;\n default:\n return false;\n }\n }", "public boolean isPlayer() {\n return player != null;\n }", "public boolean hasPlaySeconds() {\n return fieldSetFlags()[3];\n }", "public boolean getAcceptsAudio() {\n\n return m_acceptsAudio;\n }", "private boolean canPauseGame() {\n\n return uiStateManager.getState().equals(GameUIState.WAVE_IN_PROGRESS)\n && gameStateManager.getState().equals(GameState.PLAY);\n }", "public boolean tick() {\n\t\tfloat volume = am.getStreamVolume(AudioManager.STREAM_MUSIC);\n\t\tfloat max = am.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\tvolume = volume/max;\n\t\t\n\t\tif(loaded) {\n\t\t\ttickSound.play(soundId, volume, volume, 1, 0, 1f);\n\t\t\treturn true;\n\t\t}\n\t\telse {\n\t\t\treturn false;\n\t\t}\n\t}", "public boolean isSoundEnabled() {\n return soundToggle;\n }", "boolean hasPlayready();", "public static void updateMusic()\r\n\t{\r\n\t\tif ( Settings.isMusicOn() && !musicPlaying() )\r\n\t\t\tstartMusic();\r\n\t\telse if ( !Settings.isMusicOn() && musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t}", "public boolean getAudioEnabled() {\n SharedPreferences prefs = PreferenceManager.getDefaultSharedPreferences(this);\n return prefs.getBoolean(\"audio_output_switch\", true);\n }", "public boolean playSound(String sound) {\r\n\r\n MediaPlayer player = sounds.get(sound);\r\n if (player == null) {\r\n return false;\r\n }\r\n\r\n player.stop();\r\n player.play();\r\n\r\n return true;\r\n }", "@Override\r\n\tpublic boolean canPlay() {\n\t\treturn false;\r\n\t}", "public static boolean toggleSound()\r\n\t{\r\n\t\tSettings.setSoundOn( !Settings.isSoundOn() );\r\n\t\treturn Settings.isSoundOn();\r\n\t}", "private boolean readyPlayer() {\n switch (this.state) {\n case MEDIA_NONE:\n if (this.player == null) {\n //TODO: Agregar buffer (this, audiobuffer, decoderbuffer).\n this.player = new MultiPlayer(this);\n this.setState(STATE.MEDIA_STARTING);\n return true;\n }\n case MEDIA_LOADING:\n //cordova js is not aware of MEDIA_LOADING, so we send MEDIA_STARTING instead\n LOG.d(LOG_TAG, \"StreamPlayer Loading: startPlaying() called during media preparation: \" + STATE.MEDIA_STARTING.ordinal());\n return false;\n case MEDIA_STARTING:\n case MEDIA_RUNNING:\n case MEDIA_PAUSED:\n case MEDIA_STOPPED:\n return true;\n default:\n LOG.d(LOG_TAG, \"StreamPlayer Error: startPlaying() called during invalid state: \" + this.state);\n sendErrorStatus(MEDIA_ERR_ABORTED);\n }\n return false;\n }", "public boolean isSetPlayer() {\n return this.player != null;\n }", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public boolean isAudio()\n {return false ;\n }", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "public void play(boolean music) {\n\t\tplay(1.0f, 1.0f, music);\n\t}", "public boolean hasTracks() {\n for (Mounted mEquip : getMisc()) {\n MiscType mtype = (MiscType) mEquip.getType();\n if (mtype.hasFlag(MiscType.F_TRACKS)) {\n // The Mek has tracks\n return true;\n }\n }\n return false;\n }", "public Boolean getInplay(){\n return inplay;\n }", "public void play() {\n\t\tif(currentPlayingItem==null) return;\n\t\tif(!mediaPlayer.isPlaying()) mediaPlayer.start();\n\t\tupdateNotification();\n\t\tsendBroadcast(new Intent(\"com.andreadec.musicplayer.playpausechanged\"));\n\t}", "public boolean isLooping(StarObjectClass self){ \r\n \t\tStarCLEMediaPlayer mediaplayer = (StarCLEMediaPlayer)WrapAndroidClass.GetAndroidObject(self,\"AndroidObject\");\r\n \t\tif( mediaplayer == null )\r\n \t\t\treturn false;\r\n \t\treturn mediaplayer.isLooping();\r\n \t}", "public boolean isSongNames() {\n return params.isSongNames();\n }", "boolean isPlayableInGame();", "public boolean isRunning(){\n return !paused;\n }", "public boolean play() {\n\t\tfor (IAItem item : objects) {\n\t\t\t// Need to create multiple thread here\n\t\t\tlogger.debug(\"play the sub item:\" + item);\n\t\t\titem.play();\n\t\t}\n\n\t\treturn true;\n\t}", "public boolean isHasPlayer() {\n\t\treturn HasPlayer;\n\t}", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "Boolean isMuted() {\n return execute(\"player.muted\");\n }", "@Override\r\n\tpublic boolean canShow() {\r\n\t\treturn super.canShow() &&\r\n\t\t\t\t(getSpeakControl().isSpeaking() || getSpeakControl().isPaused());\r\n\t}", "@Override\r\n\t\tpublic boolean isPlayer() {\n\t\t\treturn state.isPlayer();\r\n\t\t}", "public void setIsPlaying(boolean a) {\n\t\tthis.isPlaying = !this.isPlaying;\n\t}", "public boolean isFavorite() {\n\t\tsynchronized (this) {\n\t\t\tif (mFavoritesCache != null) {\n\t\t\t\treturn mFavoritesCache.isFavoriteSong(getAudioId(),\n\t\t\t\t\t\tgetTrackHost());\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public boolean isInGame() {\n return this.hasStarted;\n }", "public void play()\n\t{\n\t\tif (canPlay)\n\t\t{\n\t\t\tsong.play();\n\t\t\tsong.rewind();\n\t\t\tif (theSong == \"SG1\" || theSong == \"SG2\")\n\t\t\t\tcanPlay = false;\n\t\t}\n\t}", "public String getPlayMode()\n {\n return playMode;\n }", "private boolean canPlayNetMusicWithCache(Track mTrack){\n\t\tDocumentItem doc = mTrack.getDocument();\n\t\t\n\t\tif (doc == null) {\n\t\t\tmTrack.setType(Track.MIME_TYPE_DAT);\t\t\t\t\n\t\t\tdoc = new DocumentItem(mTrack.getCurrentStreamUrl(),\n\t\t\t\t\tmTrack.getName(), Config.mDjCachedPath,\n\t\t\t\t\tDocumentItem.TYPE_ONLINE);\n\t\t\tmTrack.setDocument(doc);\n\t\t\t//\t\t\t\tMediaDownloadManager.getInstance().addFile(doc);\n\t\t\tif (mPlayerEngineListener != null) {\n\t\t\t\t// 在这里开启下载\n\t\t\t\tmPlayerEngineListener.onTrackNetwork();\n\t\t\t\tLog.i(this.getClass().getSimpleName(), \" 下载 初开始: \"\n\t\t\t\t\t\t+ mTrack.getName());\n\t\t\t}\n\t\t\tMediaDownloadManager.getInstance().onLoadStart(doc, context);\n\t\t\tMediaView.setCachePause(true);\n\t\t\treturn false;\n\t\t}\n\n\t\tif (!doc.isFinished() && !doc.isInLoading()) {\n\t\t\tMediaDownloadManager.getInstance().onLoadStart(doc, context);\n\t\t\tLog.i(this.getClass().getSimpleName(),\n\t\t\t\t\t\"重新开始下载文件总长:\" + doc.getFileSize() + \" 当前下载长:\"\n\t\t\t\t\t\t\t+ doc.getLoadedSize());\n\t\t}\n\t\tint len = doc.getLoadedSize();\n\t\t// 当文件小于PLAY_CONTINUE时,稍后启动播放器。\n\t\tif (len < Constant.PLAY_CONTINUE) {\n\t\t\tMediaView.setCachePause(true);\n\t\t\treturn false;\n\t\t}\n\t\t\n\t\treturn canPlayLocalMusic( mTrack );\n\t}", "private boolean isMp3(File file){\n\t\tif (file.getName().endsWith(\".mp3\")){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "public boolean isMainPlayerOpen() {\n return this.mainPlayer;\n }", "public void play() {\n\t\tint requestStatus = mAudioManager.requestAudioFocus(\n\t\t\t\tmAudioFocusListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (DEBUG)\n\t\t\tLog.d(TAG, \"Starting playback: audio focus request status = \"\n\t\t\t\t\t+ requestStatus);\n\n\t\tif (requestStatus != AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\treturn;\n\t\t}\n\n\t\tmAudioManager.registerMediaButtonEventReceiver(new ComponentName(this\n\t\t\t\t.getPackageName(), MediaButtonIntentReceiver.class.getName()));\n\n\t\tif (mPlayer.isInitialized()) {\n\t\t\t// if we are at the end of the song, go to the next song first\n\t\t\tlong duration = mPlayer.duration();\n\t\t\tif (mRepeatMode != REPEAT_CURRENT && duration > 2000\n\t\t\t\t\t&& mPlayer.position() >= duration - 2000) {\n\t\t\t\tgotoNext(true);\n\t\t\t}\n\n\t\t\tmPlayer.start();\n\t\t\t// make sure we fade in, in case a previous fadein was stopped\n\t\t\t// because\n\t\t\t// of another focus loss\n\t\t\tmMediaplayerHandler.removeMessages(FADEDOWN);\n\t\t\tmMediaplayerHandler.sendEmptyMessage(FADEUP);\n\n\t\t\tif (!mIsSupposedToBePlaying) {\n\t\t\t\tmIsSupposedToBePlaying = true;\n\t\t\t\tnotifyChange(EVENT_PLAYSTATE_CHANGED);\n\t\t\t}\n\n\t\t\tupdateNotification();\n\t\t} else if (mPlayListLen <= 0) {\n\t\t\t// This is mostly so that if you press 'play' on a bluetooth headset\n\t\t\t// without every having played anything before, it will still play\n\t\t\t// something.\n\t\t\tshuffleAll();\n\t\t}\n\t}" ]
[ "0.8345955", "0.8216589", "0.8158422", "0.8135614", "0.812898", "0.80959785", "0.80838776", "0.8079377", "0.80763906", "0.80139744", "0.80017227", "0.79683024", "0.7967706", "0.793689", "0.78940004", "0.78498876", "0.7819764", "0.7739032", "0.76728743", "0.76625913", "0.7640834", "0.7616672", "0.7605841", "0.74608713", "0.74386793", "0.7377688", "0.73666817", "0.7366482", "0.72488767", "0.72114646", "0.7189264", "0.71108985", "0.7108268", "0.7075812", "0.6991334", "0.69590753", "0.6845234", "0.6781469", "0.67554796", "0.67193013", "0.66533107", "0.66218436", "0.6610316", "0.6598561", "0.6565858", "0.65234303", "0.64955294", "0.64608353", "0.6426375", "0.64232326", "0.64132035", "0.636799", "0.6294993", "0.62635297", "0.6257604", "0.6255218", "0.62363327", "0.62326044", "0.6190239", "0.61885786", "0.6181001", "0.61760426", "0.61704755", "0.61695784", "0.6135412", "0.61250466", "0.6112405", "0.61074686", "0.6097406", "0.60785854", "0.60698134", "0.60570115", "0.60509944", "0.5989985", "0.59899807", "0.598627", "0.5980378", "0.5975468", "0.59567106", "0.59319633", "0.5903467", "0.58938545", "0.58928627", "0.5887927", "0.58773714", "0.58547777", "0.5844417", "0.58330905", "0.5828636", "0.58267915", "0.581945", "0.5813044", "0.5808935", "0.57929707", "0.57768625", "0.5763007", "0.5751505", "0.5751475", "0.57355505", "0.5732665" ]
0.8803984
0
Starts or resumes the music.
public static void startMusic() { if ( musicPlayer == null ) musicPlayer = new MusicPlayer( "Music2.mid" ); else musicPlayer.play(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void playMusic() {\n\t\tthis.music.start();\n\t}", "public static void resumeMusic() {\n\t\t\n\t\tif (currentMusic == null) {\n\t\t\tplayMusic(\"mainMenuMusic\", 0.1f);\n\t\t} else {\n\t\t\tcurrentMusic.start();\n\t\t}\n\t}", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "public static void startMusic()\n\t{\n\t\tif (music == null)\n\t\t{\n\t\t\tloadMusic();\n\t\t\tif (music.size() < 2)\n\t\t\t{\n\t\t\t\tthrow new GameLogicException(\"At least two songs must be specified.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentMusicFile = 0;\n\t\tmusic.get(currentMusicFile).setVolume(musicVolume / 100.f);\n\t\tmusic.get(currentMusicFile).play();\n\t\tmusic.get(currentMusicFile).setOnCompletionListener(musicOnCompletionListener);\n\t}", "public void resume() {\n\t\t\n\t\tmusic.resume();\n\t\tsyncPosition();\n\t}", "synchronized void resumeGame() {\n try {\n myGamePause = false;\n if (!myShouldPause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "public void startSong() {\n if (trackPlaying) {\n trackPlaying = false;\n mp.finish();\n\n System.out.print(mp.isFinished() + \"+\" + mp.isPaused());\n }\n\t\n\t//The startSong overloads start and pause. If the song is pause, then resume.\n if (mp.isPaused() && !mp.isFinished()) {\n mp.resume();\n return;\n }\n\n sequence = sc.getSongSequence();\n try {\n mp.start(sequence);\n } catch (InvalidMidiDataException ex) {\n Logger.getLogger(uMusicPlayerController.class.getName()).log(Level.SEVERE, null, ex);\n } catch (MidiUnavailableException ex) {\n Logger.getLogger(uMusicPlayerController.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void play() {\n\t\tmusic.play();\n\t\tsyncPosition();\n\t}", "@Override\n\tpublic void resume() {\n\t\tPhoneDevice.Settings.playMusic(PhoneDevice.Settings.MusicEnum.psyche_up);\n\t \n\t}", "public void StartMusic(int music_id);", "@Override\n public void onResume() {\n super.onResume();\n MusicManager.start(this, prefs.getBoolean(\"bgMusic\", true));\n }", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public void play() {\n executor.submit(new Runnable() {\n public void run() {\n resume = true;\n notifyStatus();\n }\n });\n }", "@Override\n protected void onResume()\n {\n super.onResume();\n setSound.resumeMusic(this);\n }", "public void started()\n {\n if (!isPaused()) muteControl.play();\n }", "public void start() {\n setPlayerState(State.STARTED);\n mMediaPlayer.start();\n notifyPlaying();\n }", "private void start() {\n\t\t// 开启播放器\n\t\tmCurrentMediaPlayer.start();\n\t\tsetState(STARTED);\n\n\t\t// 开启计时心跳\n\t\tmHandler.postDelayed(mUpdateTimeTask, 500);\n\t\tif (mPlayerEngineListener != null) {\n\t\t\tmPlayerEngineListener.onTrackStart();\n\t\t}\n\t\t// 开启频谱\n\t\t// mHandler.postDelayed(mSetFxAndUI, 500);\n\t\t// setupVisualizerFxAndUI();\n\n\t\tLog.i(this.getClass().getSimpleName(), \" music player : started...\");\n\t}", "public void play() {\n\t\tif(currentPlayingItem==null) return;\n\t\tif(!mediaPlayer.isPlaying()) mediaPlayer.start();\n\t\tupdateNotification();\n\t\tsendBroadcast(new Intent(\"com.andreadec.musicplayer.playpausechanged\"));\n\t}", "public void start() {\n background.playMusic();\n createTimer();\n timer.start();\n }", "public void Play() {\n superPlaneGodMode = false;\r\n if (!musicPlaying)\r\n backgroundMusic.pause();\r\n if (musicPlaying)\r\n backgroundMusic.start();\r\n paused = false;\r\n }", "public void play() {\n\t\ttry {\n\t\t\taudioInput = AudioSystem.getAudioInputStream(this.music);\n\t\t\tclip.open(audioInput);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public synchronized void resume(){\r\n if(currentLoop0) backgroundMusicLoop0.unpause();\r\n else backgroundMusicLoop1.unpause();\r\n }", "public void start() {\n AudioPlayer.player.start(cas);\n playing = true;\n }", "public static void start(Context c, int music, boolean force) {\r\n if ((!force) && (currentMusic_ != INVALID_NUMBER)) {\r\n // already playing some music and not forced to change immediately\r\n if (music != INVALID_NUMBER) {\r\n nextMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp == null) {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n }\r\n MediaPlayer cp = players_.get(currentMusic_);\r\n if (cp != null) {\r\n cp.setOnCompletionListener(new OnCompletionListener() {\r\n @Override\r\n public void onCompletion(MediaPlayer p) {\r\n MusicHandler.next();\r\n }\r\n });\r\n cp.setLooping(false);\r\n }\r\n }\r\n return;\r\n }\r\n if (currentMusic_ == music) {\r\n // already playing this music\r\n return;\r\n }\r\n if (currentMusic_ != INVALID_NUMBER) {\r\n // playing some other music, pause it and change\r\n pause();\r\n }\r\n currentMusic_ = music;\r\n MediaPlayer mp = players_.get(music);\r\n if (mp != null) {\r\n if (!mp.isPlaying()) {\r\n // Note: This continues the piece where it last let off\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n return;\r\n }\r\n } else {\r\n mp = MediaPlayer.create(c, music);\r\n players_.put(music, mp);\r\n if (mp == null) {\r\n // Log an error, but don't do anthing (we do not want to risk f/c the app)\r\n Log.e(TAG, \"player was not created successfully\");\r\n } else {\r\n mp.setLooping(true);\r\n mp.setOnCompletionListener(null);\r\n mp.start();\r\n }\r\n }\r\n }", "public void StartMusic(musicenum_t music_id);", "public final void play() {\n\t\tinitialize();\n\t\tstartPlay();\n\t\tendPlay();\n\t}", "public void play() {\n\t\tint requestStatus = mAudioManager.requestAudioFocus(\n\t\t\t\tmAudioFocusListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (DEBUG)\n\t\t\tLog.d(TAG, \"Starting playback: audio focus request status = \"\n\t\t\t\t\t+ requestStatus);\n\n\t\tif (requestStatus != AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\treturn;\n\t\t}\n\n\t\tmAudioManager.registerMediaButtonEventReceiver(new ComponentName(this\n\t\t\t\t.getPackageName(), MediaButtonIntentReceiver.class.getName()));\n\n\t\tif (mPlayer.isInitialized()) {\n\t\t\t// if we are at the end of the song, go to the next song first\n\t\t\tlong duration = mPlayer.duration();\n\t\t\tif (mRepeatMode != REPEAT_CURRENT && duration > 2000\n\t\t\t\t\t&& mPlayer.position() >= duration - 2000) {\n\t\t\t\tgotoNext(true);\n\t\t\t}\n\n\t\t\tmPlayer.start();\n\t\t\t// make sure we fade in, in case a previous fadein was stopped\n\t\t\t// because\n\t\t\t// of another focus loss\n\t\t\tmMediaplayerHandler.removeMessages(FADEDOWN);\n\t\t\tmMediaplayerHandler.sendEmptyMessage(FADEUP);\n\n\t\t\tif (!mIsSupposedToBePlaying) {\n\t\t\t\tmIsSupposedToBePlaying = true;\n\t\t\t\tnotifyChange(EVENT_PLAYSTATE_CHANGED);\n\t\t\t}\n\n\t\t\tupdateNotification();\n\t\t} else if (mPlayListLen <= 0) {\n\t\t\t// This is mostly so that if you press 'play' on a bluetooth headset\n\t\t\t// without every having played anything before, it will still play\n\t\t\t// something.\n\t\t\tshuffleAll();\n\t\t}\n\t}", "public void startPlaying() {\n \t\tif (!isPlaying) {\n \t\t\tisPlaying = true;\n \t\t\tnew PlayThread().start();\n \t\t}\n \t}", "public void play() {\n\t\tint focusRequestResult = mAudioManager.requestAudioFocus(mOuterEventsListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (PrefManager.isIgnoreAudioFocus()\n\t\t\t\t|| focusRequestResult == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\tinternalPlay();\n\t\t} else {\n\t\t\terror(Error.AUDIO_FOCUS_ERROR);\n\t\t}\n\t}", "@Override\r\n\tpublic void start() {\n\t\tmediaPlayer.start();\r\n\t}", "public void play() {\n\t\t//If volume is not muted\n\t\tif (volume != Volume.MUTE) {\n\t\t\t//If the clip is running\n\t\t\tif (clip.isRunning()) {\n\t\t\t\tclip.stop(); //Stop it\n\t\t\t}\n\t\t\tclip.setFramePosition(0); //Rewind\n\t\t\tclip.start(); //Play again\n\t\t}\n\t}", "@Override\n protected void onResume() {\n super.onResume();\n if (is_resume) {\n is_resume = false;\n } else {\n Music.restart(mContext);\n }\n }", "public void play() {\n\t\ttry {\n\t\t\tthis.mMediaPlayer.start();\n\t\t\tLog.w(\"AUDIO PLAYER\", \"just started playing\");\n\t\t} catch (IllegalStateException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isPlaying = true;\n\t\tthis.incrementPlaybackTime();\n\t}", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "private void startPlaying() {\n try {\n mPlayer = new MediaPlayer();\n try {\n mPlayer.setDataSource(audioFile.getAbsolutePath());\n mPlayer.prepare();\n mPlayer.start();\n } catch (IOException e) {\n Log.e(LOG_TAG, \"prepare() failed\");\n }\n showTimer(false);\n } catch (Exception e) {\n logException(e, \"MicManualFragment_startPlaying()\");\n }\n\n }", "public void start() {\n \tif (mediaChangedListener != null) {\n \t\tmediaChangedListener.onStarted();\n \t}\n mMediaPlayer.start();\n }", "synchronized void toggle() {\n try {\n myShouldPause = !myShouldPause;\n if (myShouldPause) {\n if (myPlayer != null) {\n myPlayer.stop();\n }\n } else if (!myGamePause) {\n // if the player is null, we create a new one.\n if (myPlayer == null) {\n start();\n }\n // start the music.\n myPlayer.start();\n }\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "protected void startMediaPlayer() {\n\n Log.i(LOG_TAG, \"startMediaPlayer\");\n\n // If media player is pause or playing, just play\n if (mpState.equals(RadioPlayerService.MP_PAUSED)) {\n // Play!!!\n mediaPlayer.start();\n radioStation.setPlaying(true);\n playingTimeRunning = true;\n setMPState(RadioPlayerService.MP_PLAYING);\n sendStatus();\n\n //Retrieve meta data from server\n if (radioStation.getListenType().equals(\"0\") || radioStation.getListenType().equals(\"1\")) {\n refreshMetadata(radioStation.getListenUrl());\n }\n\n } else if (mpState.equals(RadioPlayerService.MP_PLAYING)) {\n //We are already playing, well do nothing\n\n } else if (mpState.equals(RadioPlayerService.MP_ERROR)) {\n\n //Media player should be reset\n\n } else {\n //Because prepareAsync() can take too long if radio station server isn't reachable, check for it\n setMPState(RadioPlayerService.MP_CONNECTING);\n mediaPlayer.prepareAsync();\n sendStatus();\n }\n\n }", "@Override\n\tpublic void OnGameStart() {\n\t\tsuper.OnGameStart();\n\t\tMusicManage.setLoopingMusic(tumMusic, true);\n\t\tMusicManage.playMusic(tumMusic);\n\t}", "public void play() { \r\n if (midi) \r\n sequencer.start(); \r\n else \r\n clip.start(); \r\n timer.start(); \r\n play.setText(\"Stop\"); \r\n playing = true; \r\n }", "public void play() {\n\t\tif(hasAudioLoaded()) {\n\t\t\tcurrentClip.start();\n\t\t\tisPlaying = true;\n\t\t}\n\t}", "public void start()\n\t{\n\t\tString name = getAudioFileName();\n\t\ttry\n\t\t{\t\t\t\n\t\t\tInputStream in = getAudioStream();\n\t\t\tAudioDevice dev = getAudioDevice();\n\t\t\tplay(in, dev);\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tsynchronized (System.err)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Unable to play \"+name);\n\t\t\t\tex.printStackTrace(System.err);\n\t\t\t}\n\t\t}\n\t}", "public void play()\n {\n this.mediaPlayer = new MediaPlayer(file);\n this.mediaPlayer.setVolume(volume);\n\n // Listener for end of media.\n mediaPlayer.setOnEndOfMedia(() -> {\n this.mediaPlayer.stop();\n });\n\n mediaPlayer.play();\n }", "public static void resumeCurrentSoundtrack() {\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null)\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t}", "public void play() {\n if (audio != null) {\n audio.play(sfxVolume);\n }\n }", "public void play() { player.resume();}", "public void start() {\n ToneControl control = null;\n try {\n myPlayer = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR);\n // do the preliminary set-up:\n myPlayer.realize();\n // set a listener to listen for the end of the tune:\n myPlayer.addPlayerListener(this);\n // get the ToneControl object in order to set the tune data:\n control = (ToneControl) myPlayer.getControl(\"ToneControl\");\n control.setSequence(myTune);\n // set the volume to the highest possible volume:\n VolumeControl vc = (VolumeControl) myPlayer\n .getControl(\"VolumeControl\");\n vc.setLevel(100);\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "public void playMedia() {\n\t\tif (MainActivity.mPlayer == null) {\n\t\t\tMainActivity.mPlayer = new MediaPlayer();\n\t\t\tMainActivity.mPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t}\n\t\tif (!MainActivity.currentSong.getTitleKey().equals(song.getTitleKey())) {\n\t\t\tMainActivity.currentSong = song;\n\t\t\tMainActivity.currentAlbum = album;\n\t\t\tMainActivity.mPlayer.reset();\n\t\t}\n\n\t\ttitle = song.getTitle();\n\t\talbumTitle = album.getAlbum();\n\t\talbumArt = album.getAlbumArt();\n\n\t\ttry {\n\t\t\tMainActivity.mPlayer.setDataSource(this, song.getUri());\n\t\t\tMainActivity.mPlayer.prepare();\n\t\t} catch (IllegalArgumentException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (SecurityException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IllegalStateException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\tLog.i(TAG, e.getMessage(), e);\n\t\t\te.printStackTrace();\n\t\t}\n\t\tMainActivity.mPlayer.setOnPreparedListener(new OnPreparedListener() {\n\t\t\t@Override\n\t\t\tpublic void onPrepared(MediaPlayer mp) {\n\t\t\t\tmp.start();\n\t\t\t}\n\t\t});\n\t\tMainActivity.mPlayer.setOnCompletionListener(new OnCompletionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void onCompletion(MediaPlayer mp) {\n\t\t\t\tnext();\n\t\t\t}\n\n\t\t});\n\n\t\tnew Handler(getMainLooper()).post(new Runnable() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\tupdateMainActivity();\n\t\t\t\tupdateNowPlaying();\n\t\t\t}\n\t\t});\n\t}", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tSmartPlugApplication.resetTask();\n\t\tinit();\n\n\t\t// 播放声音的初始化\n\t\tif (mp3_player == null) {\n\t\t\tmp3_player = new MediaPlayer();\n\t\t\tmp3_player = MediaPlayer.create(this, R.raw.aircondi);\n\t\t\tmp3_player.setLooping(false);\n\n\t\t}\n\t}", "public void play()\n\t{\n\t\tif (canPlay)\n\t\t{\n\t\t\tsong.play();\n\t\t\tsong.rewind();\n\t\t\tif (theSong == \"SG1\" || theSong == \"SG2\")\n\t\t\t\tcanPlay = false;\n\t\t}\n\t}", "public void play(){\n Log.d(TAG, \"startAudio: called\");\n if(mMediaPlayer!=null){\n\n mMediaPlayer.start();\n mProgressBar.setProgress(mMediaPlayer.getCurrentPosition());\n mProgressBar.setMax(mMediaPlayer.getDuration());\n\n // updating progress bar\n seekHandler.postDelayed(updateSeekBar, 5);\n }\n }", "public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }", "private void startPlaying() {\n if (null == curRecordingFileName)\n return;\n Log.e(TAG, \"Start playing file: \" + curRecordingFileName);\n mPlayer = new MediaPlayer();\n try {\n mPlayer.setDataSource(curRecordingFileName);\n mPlayer.prepare();\n mPlayer.start();\n } catch (IOException e) {\n Log.e(TAG, \"Couldn't prepare and start MediaPlayer\");\n }\n\n }", "private void initialMusic(){\n\n }", "public void play() {\n Selection selection;\n if ((selection = master.getWindowManager().getMain().getSelection()) == null) {\n startPlay();\n playShow(nextStartTime, -1 / 1000.0);\n } else {\n playSelection(selection);\n playShow(selection.start, selection.duration);\n }\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\tif (player != null) {\n\t\t\tplayer.play();\n\t\t}\n\t\tMobclickAgent.onResume(this);\n\t}", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void startPlayBack() {\n\t\tif (android.os.Environment.getExternalStorageState().equals(\n\t\t\t\tandroid.os.Environment.MEDIA_MOUNTED)) {\n\t\t\ttry {\n\t\t\t\tmPlayer.start();\n\t\t\t} catch (IllegalStateException e) {\n\t\t\t}\n\t\t} else {\n\t\t\tToast.makeText(mContext, \"sdcard not available\", Toast.LENGTH_LONG).show();\n\t\t}\n\t}", "public static void updateMusic()\r\n\t{\r\n\t\tif ( Settings.isMusicOn() && !musicPlaying() )\r\n\t\t\tstartMusic();\r\n\t\telse if ( !Settings.isMusicOn() && musicPlaying() )\r\n\t\t\tstopMusic();\r\n\t}", "public void run(){\n\t\ttry {\n\t\t\tSystem.out.println(\"Started Playing music successfully\");\n\t\t\tplay();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void start(){\n\t\tif (host.getGameSettings().isMusicOn()) {\r\n\t\t\tspr_btnMute.setFrame(0);\r\n\t\t}else{\r\n\t\t\tspr_btnMute.setFrame(1);\r\n\t\t}\r\n\t}", "public void startSound() {\n\t\ttry {\n\t\t\t// Open an audio input stream.\n\t\t\tURL url = this.getClass().getResource(\"/\"+wavMusicFile);\n\t\t\t//System.out.println(\"url: \" + url);\n\t\t\tAudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\t\t\t// Get a sound clip resource.\n\t\t\tclip = AudioSystem.getClip();\n\t\t\t// Open audio clip and load samples from the audio input stream.\n\t\t\tclip.open(audioIn);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void continueSound() {\n\t\tclip.start();\n\t}", "private void resume() { player.resume();}", "private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing) {\n music.play(nextStartTime);\n }\n }", "void startMusic(AudioTrack newSong);", "public void play(boolean music) {\n\t\tplay(1.0f, 1.0f, music);\n\t}", "public void playMusic() {\n\t\ttry {\n\t\t\tsoundManager.playMusic(\"bgroundmusic\");\n\t\t} catch (Exception e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}", "public void play() {\n\t\tfor (int i = 0; i < this.songList.size() - 1; i++) {\n\t\t\tthis.songList.get(i).play();\n\t\t}\n\t}", "public void PlaySound(Context context) {\r\n\t\tif (!this.mp.isPlaying()) {\r\n\t\t\tmp.start();\r\n\t\t}\r\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif(bMusic){\n\t\t\t\t\tmp.start();\n\t\t\t\t\tbMusic = false;\n\t\t\t\t}else{\n\t\t\t\t\tbMusic = true;\n\t\t\t\t\tmp.pause();\n\t\t\t\t}\n\t\t\t}", "private void play() {\n /** Memanggil File MP3 \"indonesiaraya.mp3\" */\n try {\n mp.prepare();\n } catch (IllegalStateException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n /** Menjalankan Audio */\n mp.start();\n\n /** Penanganan Ketika Suara Berakhir */\n mp.setOnCompletionListener(new OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n stateAwal();\n }\n });\n }", "@RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)\n private void resumeAudio(){\n mediaPlayer.start();\n playBtn.setImageDrawable(getActivity().getResources().getDrawable(R.drawable.pause, null));\n isPlaying = true;\n\n updateRunnable();\n seekBarHandler.postDelayed(updateSeekBar, 0);\n }", "protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}", "@Override\n public void onPause() {\n super.onPause();\n MusicManager.start(this, false);\n }", "private void resume()\r\n {\r\n player.resume();\r\n }", "private void onResume(){\n\t\tfj.timer.start();\n\t\tfj.audio.resumeAudio();\n\t\tthis.dispose();\n\t}", "protected static void play() {\n\t\tif (curMIDI != null && !playing){\n\t\t\tPlayer.play(curMIDI,microseconds,cleaned);\n\t\t\tplaying = true;\n\t\t}\n\t\tif (sim != null) {\n\t\t\tif(microseconds == 0){\n\t\t\t\tsim.stop();\n\t\t\t}\n\t\t\t\tsim.play();\n\t\t}\n\t}", "public static void beginCurrentSoundtrack() {\n\t\t\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null) {\n\t\t\t\n\t\t\t// In case a new game is started before the victory jingle is finished\n\t\t\t// from a previous game (rare occurrence, but possible)\n\t\t\tif (victoryFanfare.isRunning()) victoryFanfare.stop();\t\t\t\n\t\t\t\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].setFramePosition(0);\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\n\t\t}\n\t\t\n\t}", "private void startMusic() {\r\n final Format input1 = new AudioFormat(AudioFormat.MPEGLAYER3);\r\n final Format input2 = new AudioFormat(AudioFormat.MPEG);\r\n final Format output = new AudioFormat(AudioFormat.LINEAR);\r\n PlugInManager.addPlugIn(\r\n \"com.sun.media.codec.audio.mp3.JavaDecoder\",\r\n new Format[]{input1, input2},\r\n new Format[]{output},\r\n PlugInManager.CODEC\r\n );\r\n try {\r\n final File f = new File(\"support_files//tetris.mp3\");\r\n myPlayer = Manager.createPlayer(new MediaLocator(f.toURI().toURL()));\r\n } catch (final NoPlayerException | IOException e) {\r\n e.printStackTrace();\r\n }\r\n if (myPlayer != null) {\r\n myPlayer.start();\r\n }\r\n }", "protected void startRecMediaPlayer(String recFilePath) {\n\n Log.i(LOG_TAG, \"startRecMediaPlayer\");\n\n // If media player is pause or playing, just play\n if (mpState.equals(RadioPlayerService.MP_PAUSED)) {\n // Play!!!\n mediaPlayer.start();\n setMPState(RadioPlayerService.MP_PLAYING);\n sendStatus();\n\n } else if (mpState.equals(RadioPlayerService.MP_PLAYING)) {\n\n //Well, do nothing\n\n } else {\n\n mediaPlayer.reset();\n //Prepare\n mediaPlayer.setAudioStreamType(AudioManager.MODE_NORMAL);\n Log.d(LOG_TAG, \"Setting data source: \" + recFilePath);\n try {\n mediaPlayer.setDataSource(recFilePath);\n mediaPlayer.prepare();\n } catch (Exception e) {\n Log.d(LOG_TAG, e.toString());\n setMPState(RadioPlayerService.MP_ERROR);\n sendStatus();\n }\n\n mediaPlayer.start();\n playingTimeRunning = true;\n setMPState(RadioPlayerService.MP_PLAYING);\n sendStatus();\n }\n\n }", "public void resumeStreaming() {\n\t\tif (!((MPDApplication) getApplication()).getApplicationState().streamingMode)\n\t\t\treturn;\n\t\t\n\t\tneedStoppedNotification = false;\n\t\tisPaused = false;\n\t\tbuffering = true;\n\t\t// MPDApplication app = (MPDApplication) getApplication();\n\t\t// MPD mpd = app.oMPDAsyncHelper.oMPD;\n\t\tregisterMediaButtonEvent();\n\t\tregisterRemoteControlClient();\n\t\t/*\n\t\t * if (isPaused == true) { try { String state = mpd.getStatus().getState(); if (state.equals(MPDStatus.MPD_STATE_PAUSED)) {\n\t\t * mpd.pause(); } isPaused = false; } catch (MPDServerException e) {\n\t\t * \n\t\t * } }\n\t\t */\n\t\tif (mediaPlayer == null)\n\t\t\treturn;\n\t\ttry {\n\t\t\tmediaPlayer.reset();\n\t\t\tmediaPlayer.setAudioStreamType(AudioManager.STREAM_MUSIC);\n\t\t\tmediaPlayer.setDataSource(streamSource);\n\t\t\tmediaPlayer.prepareAsync();\n\t\t\tshowNotification(true);\n\t\t} catch (IOException e) {\n\t\t\t// Error ? Notify the user ! (Another day)\n\t\t\tbuffering = false; // Obviously if it failed we are not buffering.\n\t\t\tisPlaying = false;\n\t\t} catch (IllegalStateException e) {\n\t\t\t// wtf what state ?\n\t\t\t// Toast.makeText(this, \"Error IllegalStateException isPlaying : \"+mediaPlayer.isPlaying(), Toast.LENGTH_SHORT).show();\n\t\t\tisPlaying = false;\n\t\t}\n\t}", "public void launch() {\n if (volume == 0f) {\n return;\n }\n MediaPlayer launch = MediaPlayer.create(context, R.raw.fire);\n launch.setVolume(volume, volume);\n launch.start();\n launch.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mediaPlayer) {\n mediaPlayer.reset();\n mediaPlayer.release();\n }\n });\n }", "public static void start(Context c, int music) {\r\n start(c, music, false);\r\n }", "@Override\n public void playStart() {\n }", "@Override\n public int onStartCommand(Intent intent, int flags, int startid) {\n\n if(!musicPlayer.isPlaying()){\n startID = startid;\n\n if(musicPlayer.isPlaying()){\n //back to begin of song\n musicPlayer.seekTo(0);\n }else{\n musicPlayer.start();\n }\n }\n //START_STICKY is used for services that are explicitly started and stopped as needed\n //START_NOT_STICKY or START_REDELIVER_INTENT are used for services that should only remain running while processing any commands sent to them\n return START_NOT_STICKY;\n }", "@Override\n\tpublic void onStart(Intent intent, int startId) {\n\n\t\tString play = intent.getStringExtra(\"play\");\n\t\tcurrentId = intent.getIntExtra(\"id\", 1);\n\t\tif (play.equals(\"play\")) {\n\t\t\tif (null != player) {\n\t\t\t\tplayer.release();\n\t\t\t\tplayer = null;\n\t\t\t}\n\t\t\tplayMusic(currentId);\n\n\t\t} else if (play.equals(\"pause\")) {\n\t\t\tif (null != player) {\n\t\t\t\tplayer.pause();\n\t\t\t}\n\t\t} else if (play.equals(\"playing\")) {\n\t\t\tif (player != null) {\n\t\t\t\tplayer.start();\n\t\t\t} else {\n\t\t\t\tplayMusic(currentId);\n\t\t\t}\n\t\t} else if (play.equals(\"rePlaying\")) {\n\n\t\t} else if (play.equals(\"first\")) {\n\t\t\tint id = intent.getIntExtra(\"id\", 0);\n\t\t\tplayMusic(id);\n\t\t} else if (play.equals(\"rewind\")) {\n\t\t\tint id = intent.getIntExtra(\"id\", 0);\n\t\t\tplayMusic(id);\n\t\t} else if (play.equals(\"forward\")) {\n\t\t\tint id = intent.getIntExtra(\"id\", 0);\n\t\t\tplayMusic(id);\n\t\t} else if (play.equals(\"last\")) {\n\t\t\tint id = intent.getIntExtra(\"id\", 0);\n\t\t\tplayMusic(id);\n\t\t}\n\n\t}", "@Override\n\tpublic void resume() throws IOException {\n\n\t\ttry {\n\n\t\t\tstartInput(fileLocation);\n\n\t\t\t// gives us the current location\n\t\t\tint bytesToSkip = getSongTotalLenght() - pauseLocation;\n\t\t\tSystem.out.println(\"Resume button says: Num of Bytes to skip is \" + bytesToSkip);\n\t\t\tfis.skip(bytesToSkip);\n\n\t\t} catch (FileNotFoundException | JavaLayerException e) {\n\t\t}\n\n\t\t// Play every song on a new Thread\n\t\tnew Thread() {\n\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tplayer.play();\n\t\t\t\t} catch (JavaLayerException e) {\n\t\t\t\t}\n\t\t\t}\n\n\t\t}.start();\n\n\t}", "@Override\n\tpublic void onPrepared(MediaPlayer mp) {\n\t\tmp.start();\n\t}", "public void startPlaying() {\n\t\tpbrLoading.setVisibility(View.GONE);\n\t\tisPlaying = true;\n\t\tif (IjoomerApplicationConfiguration.isEnableVoiceReport && reportVoice) {\n\t\t\tlnrReportVoice.setVisibility(View.VISIBLE);\n\t\t\timgReport.setImageResource(reportImage);\n\n\t\t\tif (reportCaption != 0) {\n\t\t\t\ttxtReportCaption.setText(reportCaption);\n\t\t\t} else if (strReportCaption != null && strReportCaption.length() > 0) {\n\t\t\t\ttxtReportCaption.setText(strReportCaption);\n\t\t\t}\n\t\t} else {\n\t\t\tlnrReportVoice.setVisibility(View.GONE);\n\t\t}\n\t\tupdateView();\n\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "@Override\n public void run() {\n // TODO Auto-generated method stub\n running = true;\n AudioFile song = musicFiles.get(currentSongIndex);\n song.play();\n while(running){\n if(!song.isPlaying()){\n currentSongIndex++;\n if(currentSongIndex >= musicFiles.size()){\n currentSongIndex = 0;\n }\n song = musicFiles.get(currentSongIndex);\n song.play();\n }\n try{\n Thread.sleep(1);\n }\n catch (InterruptedException e){\n e.printStackTrace();\n } \n }\n }", "public static void next() {\r\n if (nextMusic_ == INVALID_NUMBER) {\r\n return;\r\n }\r\n currentMusic_ = nextMusic_;\r\n nextMusic_ = INVALID_NUMBER;\r\n MediaPlayer p = players_.get(currentMusic_);\r\n if (p != null) {\r\n if (!p.isPlaying()) {\r\n p.setLooping(true);\r\n p.setOnCompletionListener(null);\r\n p.start();\r\n }\r\n }\r\n }", "public void startCommand() {\r\n _playing = true;\r\n }", "private void restart()\n {\n mPlayer.stop();\n mPlayer = MediaPlayer.create(this, audioUri);\n mPlayer.start();\n }", "@Override\n\tpublic void show() {\n\t\tmusic.play();\n\t}", "public void playSoundtrack() {\n if(this.musicEnabled) {\n try {\n Clip soundtrackClip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(new BufferedInputStream(Assets.soundTrack));\n soundtrackClip.open(inputStream);\n soundtrackClip.start();\n soundtrackClip.loop(Clip.LOOP_CONTINUOUSLY);\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(e.getMessage());\n }\n }\n }", "public void playPause() {\n\t\tif(currentPlayingItem==null) return;\n\t\tif (mediaPlayer.isPlaying()) {\n\t\t\tmediaPlayer.pause();\n\t\t\twakeLockRelease();\n\t\t} else {\n\t\t\twakeLockAcquire();\n\t\t\tmediaPlayer.start();\n\t\t}\n\t\tupdateNotification();\n\t\tsendBroadcast(new Intent(\"com.andreadec.musicplayer.playpausechanged\"));\n\t}" ]
[ "0.78808486", "0.78327936", "0.7690954", "0.7686495", "0.7672669", "0.7534613", "0.75324947", "0.7425738", "0.7425016", "0.7307942", "0.72988296", "0.7237597", "0.7232273", "0.71720636", "0.7133874", "0.71328545", "0.713058", "0.70787925", "0.70734036", "0.70725566", "0.7026433", "0.69454366", "0.69268453", "0.69044966", "0.69018", "0.6897279", "0.6880887", "0.68803245", "0.6869282", "0.6860858", "0.6846317", "0.6782913", "0.67815727", "0.6768497", "0.6762305", "0.67443144", "0.67414016", "0.6720171", "0.671722", "0.6689684", "0.6687427", "0.668688", "0.667744", "0.6665226", "0.6628042", "0.66201305", "0.6615574", "0.6608982", "0.65964365", "0.65889907", "0.6588749", "0.65700257", "0.6561748", "0.6556024", "0.65486705", "0.65456045", "0.6537189", "0.65358555", "0.6508463", "0.65050215", "0.65049314", "0.6503205", "0.64807624", "0.6474343", "0.6463083", "0.646147", "0.6451984", "0.6445783", "0.64448625", "0.64377594", "0.6436814", "0.6421548", "0.641509", "0.64125115", "0.6409678", "0.6402734", "0.64023", "0.6396478", "0.6393719", "0.63850766", "0.6384905", "0.63657326", "0.6364163", "0.63553226", "0.6344631", "0.6325078", "0.6320741", "0.6310536", "0.6304784", "0.62986654", "0.6274446", "0.6245281", "0.62403536", "0.6226165", "0.6222957", "0.62203085", "0.61978054", "0.6196936", "0.6195891", "0.61937505" ]
0.7624008
5
Starts a new thread to play the given sound
public static void playInternal( LayeredSound.SoundClip s ) { if ( Settings.isSoundOn() ) new SpeakerThread( s ).start(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public synchronized void start() {\n if(!running) {\n this.soundThread = new Thread(this, \"TankGameSound\");\n this.soundThread.start();\n this.running = true;\n }\n }", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), controllerVars.getVolume(), controllerVars.getVolume(), 1, 0, 1f);\n\t\t\tcontrollerVars.COUNTER++;\n\t\t\t//Toast.makeText(act, \"Played sound\", Toast.LENGTH_SHORT).show();optional Playing message \n\t\t\tcontrollerVars.setPlays(true);\n\t\t\tonComplete(controllerVars.getMediaPlayer().getDuration());\n\t\t}\n\t\t//controllerVars.getMediaPlayer().start();\n\t\t//controllerVars.setPlays(true);\n\t}", "public static synchronized void playSound(final String url) {\n\t\t new Thread(new Runnable() {\n\t\t public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t AudioInputStream inputStream = AudioSystem.getAudioInputStream(\n\t\t Main.class.getResourceAsStream(\"/res/\" + url));\n\t\t clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }\n\t\t }).start();\n\t\t}", "@Override\r\n\tpublic void run() {\n\t\tInputStream in;\r\n\t\tAudioStream as;\r\n\r\n\t\ttry {\r\n\t\r\n\t\t\tin = new FileInputStream(new File(\"heart123.wav\"));\r\n\t\t\tas = new AudioStream(in);\r\n\r\n\t\t\t\tSystem.out.println(\"thread started\");\r\n\t\t\t\tAudioPlayer.player.start(as);\r\n\t\t\t\t\r\n\r\n\t\t\t//AudioPlayer.player.sleep(1000);\r\n\t\t\t//AudioPlayer.player.stop(as);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t}", "public void run()\n\t{\t\t\t\t\n\t\tif (player!=null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tplayer.play();\t\t\t\t\n\t\t\t}\n\t\t\tcatch (JavaLayerException ex)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Problem playing audio: \"+ex);\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public void playback() {\n\t\ttry {\n\t\t\tplaySound.load(audioFileName, currFrame);\n\t\t} catch (UnsupportedAudioFileException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (LineUnavailableException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfastForward = false;\n\t\tsoundThread = null;\n\t\tsoundThread = new Thread(new sound());\n\t\tsoundThread.start();\n\t\tvideoThread = null;\n\t\tvideoThread = new Thread(new video());\n\t\tvideoThread.start();\n\t}", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "public void startSound() {\n\t\ttry {\n\t\t\t// Open an audio input stream.\n\t\t\tURL url = this.getClass().getResource(\"/\"+wavMusicFile);\n\t\t\t//System.out.println(\"url: \" + url);\n\t\t\tAudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\t\t\t// Get a sound clip resource.\n\t\t\tclip = AudioSystem.getClip();\n\t\t\t// Open audio clip and load samples from the audio input stream.\n\t\t\tclip.open(audioIn);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "void playSound() {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n soundPlaying = true;\n audioTrack.play();\n while (soundPlaying) {\n genWhiteNoise();\n audioTrack.write(noise, 0, SAMPLE_COUNT);\n }\n\n }\n });\n thread.start();\n }", "public void run() \n {\n try\n {\n Clip clip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(getClass().getResource(sound));\n clip = AudioSystem.getClip();\n clip.open(inputStream);\n clip.start(); \n } catch (UnsupportedAudioFileException e) {\n \t\t\te.printStackTrace();\n } catch (IOException e) {\n \t\t\te.printStackTrace();\n } catch (LineUnavailableException e) {\n \t\t\te.printStackTrace();\n }\n }", "public void start()\n\t{\n\t\tString name = getAudioFileName();\n\t\ttry\n\t\t{\t\t\t\n\t\t\tInputStream in = getAudioStream();\n\t\t\tAudioDevice dev = getAudioDevice();\n\t\t\tplay(in, dev);\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tsynchronized (System.err)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Unable to play \"+name);\n\t\t\t\tex.printStackTrace(System.err);\n\t\t\t}\n\t\t}\n\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "public static void playerRun()\n {\n runSound.playLooped();\n }", "static void PlaySound(File Sound)\n {\n try{\n Clip clip = AudioSystem.getClip();\n clip.open(AudioSystem.getAudioInputStream(Sound));\n clip.start();\n //BGM = new AudioStream(new FileInputStream(\"OST.WAV\"));\n //MD = BGM.getData();\n //loop = new ContinuousAudioDataStream(MD);\n }catch(Exception e) {}\n //MGP.start(loop); \n }", "public void run(){\n\t\ttry {\n\t\t\tSystem.out.println(\"Started Playing music successfully\");\n\t\t\tplay();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void playSoundEffect(String path) {\n Thread thread = new Thread(() -> {\n Player soundEffectPlayer = new Player();\n soundEffectPlayer.setSourceLocation(path);\n soundEffectPlayer.play();\n });\n thread.setDaemon(true);\n thread.start();\n }", "public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t //AudioInputStream inputStream = AudioSystem.getAudioInputStream(\n\t\t //Main.class.getResourceAsStream(\"/path/to/sounds/\" + url));\n\t\t //clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }", "public void startSound()\n \n {try\n { \n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Start 2.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n startClip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n startClip.open(audioIn); \n \n startClip.start();\n \n \n } \n catch (UnsupportedAudioFileException e)\n {\n e.printStackTrace();\n } \n catch (IOException e) \n {\n e.printStackTrace();\n } \n catch (LineUnavailableException e) \n {\n e.printStackTrace();\n } \n \n }", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "@Override\n public void run() {\n if(musicEnabled) {\n playSoundtrack();\n while (running) {\n if(!stack.isEmpty()) {\n Sound sound = stack.pop();\n sound.play(sound.loadInputStream());\n }\n }\n }\n }", "public void startPlaying() {\n \t\tif (!isPlaying) {\n \t\t\tisPlaying = true;\n \t\t\tnew PlayThread().start();\n \t\t}\n \t}", "public void StartSound(ISoundOrigin origin, sfxenum_t sound_id);", "public static void playSound(){\r\n try{\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(AudioSystem.getAudioInputStream(new File(\"Cheering.wav\")));\r\n clip.start();\r\n }\r\n catch (Exception exc){\r\n exc.printStackTrace(System.out);\r\n } \r\n }", "public void StartSound(ISoundOrigin origin, int sound_id);", "public void run() {\n if (args.length < 2) {\n System.err.println(\"usage: java -jar PlayWaveFile.jar [filename]\");\n return;\n } else {\n System.out.println(\"the input path\");\n System.out.println(args[0]);\n System.out.println(args[1]);\n }\n String filename = args[1];\n\n // opens the inputStream\n FileInputStream inputStream;\n try {\n inputStream = new FileInputStream(filename);\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n\n // initializes the playSound Object\n PlaySound playSound = new PlaySound(inputStream, lock, controller, waveThreshold);\n\n // plays the sound\n try {\n playSound.play();\n } catch (PlayWaveException e) {\n e.printStackTrace();\n return;\n }\n\n\n System.out.println(\"waveThread killed\");\n }", "public void PlaySound(Context context) {\r\n\t\tif (!this.mp.isPlaying()) {\r\n\t\t\tmp.start();\r\n\t\t}\r\n\t}", "private static void playSound(String s) {\n try {\n Media hit = new Media(new File(s).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(hit);\n mediaPlayer.play();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public void play() { \r\n if (midi) \r\n sequencer.start(); \r\n else \r\n clip.start(); \r\n timer.start(); \r\n play.setText(\"Stop\"); \r\n playing = true; \r\n }", "private void playSound(String sound) {\r\n try {\r\n BufferedInputStream soundFileStream = new BufferedInputStream(this\r\n .getClass().getResourceAsStream(sound));\r\n AudioInputStream audioInputStream = AudioSystem\r\n .getAudioInputStream(soundFileStream);\r\n AudioFormat audioFormat = audioInputStream.getFormat();\r\n DataLine.Info dataLineInfo = new DataLine.Info(Clip.class, audioFormat);\r\n Clip clip = (Clip) AudioSystem.getLine(dataLineInfo);\r\n clip.open(audioInputStream);\r\n clip.start();\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tgenTone();\n\t\t\tplaySound();\n\t\t}", "public void play() {\n\t\tif(hasAudioLoaded()) {\n\t\t\tcurrentClip.start();\n\t\t\tisPlaying = true;\n\t\t}\n\t}", "public void play() {\n\t\tline.start();\n\t\tloop = false;\n\t\tnumLoops = 0;\n\t\tplay = true;\n\t\t// will wake up our data processing thread.\n\t\t// iothread.interrupt();\n\t}", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "private void playSound() {\n if (isFlashOn) {\n mp = MediaPlayer.create(this, R.raw.light_switch_off);\n } else {\n mp = MediaPlayer.create(this, R.raw.light_switch_on);\n }\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n @Override\n public void onCompletion(MediaPlayer mp) {\n // TODO Auto-generated method stub\n mp.release();\n }\n });\n mp.start();\n }", "public void playSound(File soundFile);", "void playTone(){\n t = new Thread() {\n public void run(){\n isRunning = true;\n setPriority(Thread.MAX_PRIORITY);\n\n\n\n audioTrack.play();\n\n for (int i = 0; i < message.length(); i++) {\n\n ASCIIBreaker breaker = new ASCIIBreaker((int)message.charAt(i));\n\n int frequencies[] = breaker.ASCIIToFrequency();\n\n //Generate waves for all different frequencies\n for(int fre : frequencies) {\n audioTrack.write(generateSineInTimeDomain(fre),0,sample_size);\n }\n\n audioTrack.write(generateSineInTimeDomain(7000),0,sample_size);\n }\n\n audioTrack.stop();\n audioTrack.release();\n }\n };\n t.start();\n }", "protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}", "protected static void play() {\n\t\tif (curMIDI != null && !playing){\n\t\t\tPlayer.play(curMIDI,microseconds,cleaned);\n\t\t\tplaying = true;\n\t\t}\n\t\tif (sim != null) {\n\t\t\tif(microseconds == 0){\n\t\t\t\tsim.stop();\n\t\t\t}\n\t\t\t\tsim.play();\n\t\t}\n\t}", "public void playSound(String filename) {\r\n\t\tif (debugLevel > 1)\r\n\t\t\tSystem.out.println(\" ... play audio file: \" + filename);\r\n\t\ttry {\r\n\t\t\tFile file = new File(filename);\r\n\t\t\tAudioInputStream in = AudioSystem.getAudioInputStream(file);\r\n\t\t\tclip = AudioSystem.getClip();\r\n\t\t\tclip.open(in);\r\n\t\t\tclip.start();\r\n\t\t} catch (Exception e) {\r\n\t\t\t\r\n\t\t}\r\n\t}", "public void play() {\n try {\n if (clip != null) {\n new Thread() {\n public void run() {\n synchronized (clip) {\n clip.stop();\n clip.setFramePosition(0);\n clip.start();\n }\n }\n }.start();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void play() {\n\t\ttry {\n\t\t\taudioInput = AudioSystem.getAudioInputStream(this.music);\n\t\t\tclip.open(audioInput);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void continueSound() {\n\t\tclip.start();\n\t}", "public void playSound(int sound) {\n \t currentstreamID=soundPool.play(soundPoolMap.get(sound), 0.5f, 0.5f, 1, -1, 1f);\n Log.e(\"MYT\",currentstreamID+\" play output\"); \n }", "protected void playTheSound(int position) {\n if (mp != null) {\n mp.reset();\n mp.release();\n }\n mp = MediaPlayer.create(this, sons[position]);\n mp.start();\n }", "public void playSound() {\n if (this.mIsSupportVibrator) {\n this.mVibratorEx.setHwVibrator(\"haptic.control.time_scroll\");\n }\n if (this.mSoundPool == null || this.mSoundId == 0 || !this.mSoundLoadFinished) {\n Log.w(TAG, \"SoundPool is not initialized properly!\");\n } else {\n this.mSoundPool.play(this.mSoundId, 1.0f, 1.0f, 0, 0, 1.0f);\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tsuper.run();\r\n\t\t\twhile(bPlayAudioQueue){\r\n\t\t\t\tplayFromAudioQueue();\r\n\t\t\t}\r\n\t\t}", "@Override\r\n\t\tpublic void run()\r\n\t\t{\r\n\t\t\tLayeredSound.getInstance().add( sound );\r\n\t\t}", "public void play() {\n\t\ttry {\n\t\t\tthis.mMediaPlayer.start();\n\t\t\tLog.w(\"AUDIO PLAYER\", \"just started playing\");\n\t\t} catch (IllegalStateException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tthis.isPlaying = true;\n\t\tthis.incrementPlaybackTime();\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "private void playSound(String soundFile){\n try {\n AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(new File(soundFile).getAbsoluteFile());\n Clip clip = AudioSystem.getClip();\n clip.open(audioInputStream);\n clip.start();\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "@Override\n\tpublic void run() \n\t{\n\t\ttry {\n\t\t\tplay();\n\t\t} catch (JavaLayerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n public void playSound(int soundId) {\n\n }", "public void play() {\n\t\tmusic.play();\n\t\tsyncPosition();\n\t}", "@Override\n public void run() {\n // TODO Auto-generated method stub\n running = true;\n AudioFile song = musicFiles.get(currentSongIndex);\n song.play();\n while(running){\n if(!song.isPlaying()){\n currentSongIndex++;\n if(currentSongIndex >= musicFiles.size()){\n currentSongIndex = 0;\n }\n song = musicFiles.get(currentSongIndex);\n song.play();\n }\n try{\n Thread.sleep(1);\n }\n catch (InterruptedException e){\n e.printStackTrace();\n } \n }\n }", "public abstract String play(SoundLibrary library, String... sound);", "public void playSoundtrack() {\n if(this.musicEnabled) {\n try {\n Clip soundtrackClip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(new BufferedInputStream(Assets.soundTrack));\n soundtrackClip.open(inputStream);\n soundtrackClip.start();\n soundtrackClip.loop(Clip.LOOP_CONTINUOUSLY);\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(e.getMessage());\n }\n }\n }", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "private void startPlaying() {\n try {\n mPlayer = new MediaPlayer();\n try {\n mPlayer.setDataSource(audioFile.getAbsolutePath());\n mPlayer.prepare();\n mPlayer.start();\n } catch (IOException e) {\n Log.e(LOG_TAG, \"prepare() failed\");\n }\n showTimer(false);\n } catch (Exception e) {\n logException(e, \"MicManualFragment_startPlaying()\");\n }\n\n }", "void play(final Context context, final int soundId, final OnCompletionPlayNextListener playNextListener);", "private void gameSound(int attack){\n switch (attack){\n case 1:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_lightattack);\n break;\n case 2:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_strongattack);\n break;\n case 3:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_brutalattack);\n break;\n }\n mediaPlayer.start();\n }", "public static void play(String filename) {\r\n javax.sound.sampled.Clip sonido;\r\n InputStream path=load(filename);\r\n \r\n try\r\n {\r\n sonido=AudioSystem.getClip();\r\n sonido.open(AudioSystem.getAudioInputStream(new BufferedInputStream(path)));\r\n sonido.start();\r\n\r\n }catch(Exception fallo)\r\n {\r\n \r\n }\r\n }", "public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}", "public void launchSound(String nomFichierAudio) {\n try {\n as = new AudioStream(new FileInputStream(nomFichierAudio));\n p.start(as);\n } catch (IOException err) {\n err.printStackTrace();\n }\n }", "public final void play() {\n\t\tinitialize();\n\t\tstartPlay();\n\t\tendPlay();\n\t}", "PlaySound getSound();", "public void playAudio() {\n\n }", "public static Action playSound(final InputStream sound) {\n return new Action() {\n @Override\n protected void perform(ActiveActor a) {\n //MP3.play(sound);\n }\n\n @Override\n public int getCost() {\n return 5;\n }\n\n @Override\n public boolean isExclusive() {\n return false;\n }\n\n @Override\n public Object getData() {\n return sound;\n }\n\n @Override\n public String toString() {\n return \"PlaySound(\" + (sound != null ? sound.toString() : \"null\") + \")\";\n }\n };\n }", "public void play() {\n if (audio != null) {\n audio.play(sfxVolume);\n }\n }", "public void playSound() {\n String path = \"Data\\\\\\\\Acceptance.wav\";\n InputStream success;\n try {\n success = new FileInputStream(new File(path));\n AudioStream audioStream = new AudioStream(success);\n AudioPlayer.player.start(audioStream);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error playing sounds\");\n }\n }", "public void playSound(String fileName){\n \n Random rand = new Random();\n if (fileName == null) {\n int nextSongNumber = rand.nextInt(soundList.size());\n while(nextSongNumber == currentSongNumber){\n nextSongNumber = rand.nextInt(soundList.size());\n }\n currentSongNumber = nextSongNumber;\n fileName = soundList.get(currentSongNumber);\n }\n \n try {\n \n \n soundSequencer = MidiSystem.getSequencer();\n soundSequencer.open();\n \n soundSequencer.setSequence(this.getClass().getResourceAsStream(fileName));\n soundSequencer.setLoopCount(Sequencer.LOOP_CONTINUOUSLY);\n soundSequencer.start();\n \n } catch (IOException | InvalidMidiDataException | MidiUnavailableException ex) {\n //Logger.getLogger(GUI.class.getName()).log(Level.SEVERE, null, ex);\n }\n }", "public void start() {\n AudioPlayer.player.start(cas);\n playing = true;\n }", "public void play() {\n\n\t\tString[] args = new String[] { recordingsPath };\n\t\tGst.init(\"AudioPlayer\", args);\n\n\t\tplaybin = new PlayBin2(\"AudioPlayer\");\n\t\tplaybin.setVideoSink(ElementFactory.make(\"fakesink\", \"videosink\"));\n\t\tplaybin.setInputFile(new File(gui.getSelectedPlayItem()));\n\n\t\tplaybin.play();\n\n\t}", "protected void startNextSound() {\n\t\tsoundIndex = (soundIndex < audioFiles.length - 1) ? soundIndex + 1 : 0;\t\n\t\tString nextSoundId = audioFiles[soundIndex];\n\t\tstartPlayer(nextSoundId);\n\t}", "public synchronized void playAbruptLoop(String path){\r\n if(currentLoop0){\r\n if(backgroundMusicLoop0!=null) backgroundMusicLoop0.stopClip();\r\n currentLoop0 = false;\r\n backgroundMusicLoop1 = new MusicThread(path, currentLoop0);\r\n backgroundMusicLoop1.start();\r\n }else{\r\n if(backgroundMusicLoop1!=null) backgroundMusicLoop1.stopClip();\r\n currentLoop0 = true;\r\n backgroundMusicLoop0 = new MusicThread(path, currentLoop0);\r\n backgroundMusicLoop0.start();\r\n }\r\n }", "public void play(String soundName)\n {\n try{\n Clip clip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(new File(soundName));\n clip.open(inputStream);\n clip.start();\n }\n catch (Exception e){\n System.out.println(\"Play sound error: \" + e.getMessage() + \" for \" + soundName);\n }\n }", "public void playSound(String soundURL){\n if (mySoundPlayer == null){\n logMessage(TAG, \"playSound() -> mSoundPlayer is null\");\n return;\n }\n mySoundPlayer.play(soundURL);\n }", "public static void play(String w) {\n\n\t\ttry {\n\t\t\t// Open an audio input stream.\n\t\t\t//URL url = this.getClass().getClassLoader().getResource(wavMusicFile);\n\t\t\tURL url = new File(w).toURI().toURL();\n\t\t\tAudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\t\t\t// Get a sound clip resource.\n\t\t\tClip c = AudioSystem.getClip();\n\t\t\t// Open audio clip and load samples from the audio input stream.\n\t\t\tc.open(audioIn);\n\t\t\tc.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void playSound(String sound) {\n\t\t \n\t\t // open the sound file as a Java input stream\n\t\tString soundFile = null;\n\t\tswitch (sound) {\n\t\tcase \"opening\":\n\t\t\tsoundFile = \"ConfigFiles\\\\opening.wav\";\n\t\t\tbreak;\n\t\tcase \"ending\":\n\t\t\tsoundFile = \"ConfigFiles\\\\ending.wav\";\n\t\t\tbreak;\n\t\tcase \"shop\":\n\t\t\tsoundFile = \"ConfigFiles\\\\shop.wav\";\n\t\t\tbreak;\n\t\tcase \"monsterbattle\":\n\t\t\tsoundFile = \"ConfigFiles\\\\monsterbattle.wav\";\n\t\t\tbreak;\n\t\tcase \"battlewin\":\n\t\t\tsoundFile = \"ConfigFiles\\\\monstervictory.wav\";\n\t\t\tbreak;\n\t\tcase \"trainerbattle\":\n\t\t\tsoundFile = \"ConfigFiles\\\\trainerBattle.wav\";\n\t\t\tbreak;\n\t\tcase \"trainerbattlewin\":\n\t\t\tsoundFile = \"ConfigFiles\\\\trainerVictory.wav\";\n\t\t\tbreak;\n\t\tcase \"map\":\n\t\t\tsoundFile = \"ConfigFiles\\\\map.wav\";\n\t\t\tbreak;\n\t\t}\n\t\t\t\n\t\t \n\t\t InputStream in = null;\n\t\t\ttry {\n\t\t\t\tin = new FileInputStream(soundFile);\n\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\n\t\t \n\t\t\tif(audioStream != null ) {\n\t\t\t\tAudioPlayer.player.stop(audioStream);\n\t\t\t}\n\t\t\t // create an audiostream from the inputstream\n\t\t\ttry {\n\t\t\t\taudioStream = new AudioStream(in);\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t\t\n\t\t // play the audio clip with the audioplayer class\n\t\t\t\n\t\t AudioPlayer.player.start(audioStream);\n\t\t \n\t}", "private void playYouWinSound()\n {\n try\n {\n java.io.File soundFile = new java.io.File(\n \"C:\\\\Windows\\\\Media\\\\tada.wav\");\n javax.sound.sampled.AudioInputStream audioIn =\n javax.sound.sampled.AudioSystem.getAudioInputStream(\n soundFile);\n javax.sound.sampled.Clip clip =\n javax.sound.sampled.AudioSystem.getClip();\n\n clip.open(audioIn);\n clip.start();\n }\n catch (Exception ex)\n {\n System.out.println(ex);\n }\n }", "public static void startMusic()\r\n\t{\r\n\t\tif ( musicPlayer == null )\r\n\t\t\tmusicPlayer = new MusicPlayer( \"Music2.mid\" );\r\n\t\telse\r\n\t\t\tmusicPlayer.play();\r\n\t}", "public void play()\n {\n this.mediaPlayer = new MediaPlayer(file);\n this.mediaPlayer.setVolume(volume);\n\n // Listener for end of media.\n mediaPlayer.setOnEndOfMedia(() -> {\n this.mediaPlayer.stop();\n });\n\n mediaPlayer.play();\n }", "public void play()\n\t{\n\t\tif (canPlay)\n\t\t{\n\t\t\tsong.play();\n\t\t\tsong.rewind();\n\t\t\tif (theSong == \"SG1\" || theSong == \"SG2\")\n\t\t\t\tcanPlay = false;\n\t\t}\n\t}", "public void run() {\n\n try {\n audioInputStream.reset();\n } catch (Exception e) {\n\n }\n\n //Open audio stream\n AudioInputStream playbackInputStream = AudioSystem.getAudioInputStream(format, audioInputStream);\n\n if (playbackInputStream == null) {\n shutDown(\"Unable to convert stream of format \" + audioInputStream + \" to format \" + format);\n return;\n }\n\n DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);\n if (!AudioSystem.isLineSupported(info)) {\n shutDown(\"Line matching \" + info + \" not supported.\");\n return;\n }\n\n try {\n line = (SourceDataLine) AudioSystem.getLine(info);\n line.open(format, 16384);\n } catch (LineUnavailableException ex) {\n shutDown(\"Unable to open the line: \" + ex);\n return;\n }\n\n //Setup buffer\n int frameSizeInBytes = format.getFrameSize();\n int bufferLengthInFrames = line.getBufferSize() / 8;\n int bufferLengthInBytes = bufferLengthInFrames * frameSizeInBytes;\n byte[] data = new byte[bufferLengthInBytes];\n int numBytesRead = 0;\n line.start();\n\n while (thread != null) {\n try {\n if ((numBytesRead = playbackInputStream.read(data)) == -1) {\n break;\n }\n int numBytesRemaining = numBytesRead;\n //Starting playing\n while (numBytesRemaining > 0) {\n numBytesRemaining -= line.write(data, 0, numBytesRemaining);\n }\n } catch (Exception e) {\n shutDown(\"Error during playback: \" + e);\n break;\n }\n }\n\n if (thread != null) {\n line.drain();\n }\n line.stop();\n line.close();\n line = null;\n\n shutDown(null);\n\n }", "public void StartPlayingSound(String _MixerName) {\n for (int cnt = 0; cnt < mixerInfo.length; cnt++) {\r\n\r\n // Mixer currentMixer = AudioSystem.getMixer(mixerInfo[cnt]);\r\n // Because this is for a recording application, we only care about audio INPUT so we just\r\n // care if TargetDataLine is supported.\r\n if (mixerInfo[cnt].getName().equals(_MixerName)) {\r\n System.out.println(\"SoundOutputDeviceControl - found target mixer: \" + _MixerName);\r\n\r\n // This may freeze the UI but oh well, we have to wait for the inner thread to stop from the\r\n // previous selection\r\n stopPlay = true;\r\n while (threadEnd == false) {\r\n try {\r\n sleep(100);\r\n } catch (InterruptedException ex) { \r\n }\r\n }\r\n\r\n Mixer currentMixer = AudioSystem.getMixer(mixerInfo[cnt]);\r\n try {\r\n \r\n //DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, af);\r\n //sourceDataLine = (SourceDataLine) currentMixer.getLine(dataLineInfo);\r\n sourceDataLine = (SourceDataLine) currentMixer.getLine(sourceDLInfo);\r\n //sourceDataLine.open(af);\r\n sourceDataLine.open(af, Ns2 * 4);\r\n sourceDataLine.start();\r\n playerThread = new Thread(new PlayThread());\r\n playerThread.setPriority(Thread.MAX_PRIORITY); \r\n playerThread.start();\r\n } catch (LineUnavailableException e) {\r\n System.out.println(\"SoundOutputDeviceControl - StartPlayingSoundOnMixer -\" + e);\r\n }\r\n }\r\n }\r\n }", "public SimpleAudioPlayer(String filePath) \r\n throws UnsupportedAudioFileException, \r\n IOException, LineUnavailableException \r\n { \r\n // create AudioInputStream object \r\n audioInputStream = \r\n AudioSystem.getAudioInputStream(new File(filePath).getAbsoluteFile()); \r\n \r\n // create clip reference \r\n clip = AudioSystem.getClip(); \r\n \r\n // open audioInputStream to the clip \r\n clip.open(audioInputStream); \r\n \r\n clip.loop(Clip.LOOP_CONTINUOUSLY); \r\n }", "public void playSound(String soundName) {\r\n try {\r\n audioInputStream = AudioSystem.getAudioInputStream(new File(soundName).getAbsoluteFile());\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(audioInputStream);\r\n clip.start();\r\n } catch (Exception ex) {\r\n System.out.println(\"Error with playing sound.\");\r\n ex.printStackTrace();\r\n }\r\n }", "@Override\r\n public void run() {\n this.running = true;\r\n\r\n // start the execution cycle\r\n while (running) {\r\n if (!eventQ.isEmpty()) {\r\n while (!eventQ.isEmpty() && running) {\r\n EnvironmentEvent envEvent = eventQ.poll();\r\n if (envEvent != null) {\r\n playSound(envEvent);\r\n }\r\n }\r\n } else {\r\n try {\r\n Thread.sleep(10);\r\n Thread.yield();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "public void play() {\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tplayer = new AdvancedPlayer(new BufferedInputStream(new FileInputStream(file)));\n\t\t\t\t\tplayer.setPlayBackListener(listener = new TanksPlaybackListener(false));\n\t\t\t\t\tplayer.play();\n\t\t\t\t} catch (JavaLayerException e) {\n\t\t\t\t\t--currentlyPlaying;\n\t\t\t\t} catch (FileNotFoundException e) {\n\t\t\t\t\t--currentlyPlaying;\n\t\t\t\t}\n\t\t\t}\n\t\t}.start();\n\t}", "private static void playAudio(String musicFile) {\n }", "public abstract void play(ChunkedByteBuffer soundData, String name);", "public static void game_sound() {\n\t\tm_player_game.start();\n\t\tm_player_game.setMediaTime(new Time(0));\n\t}", "public void playSound(int sample, boolean looped) {\n\t\t\tm_soundManager.playSound(sample, looped);\n\t\t}", "private void playSound(@NonNull final String path, @Nullable AssetFileDescriptor assetFileDescriptor) {\n\t\tif (mMode == PLAY_SINGLE) {\n\t\t\tstopAll();\n\t\t}\n\n\t\t// sound already playing\n\t\tif (mMediaMap.containsKey(path)) {\n\t\t\treturn;\n\t\t}\n\n\t\t// stop all currently playing sounds\n\t\tif (mMode == PLAY_SINGLE_CONTINUE) {\n\t\t\tstopAll();\n\t\t}\n\n\t\t// init media player\n\t\tMediaPlayer mediaPlayer;\n\t\ttry {\n\t\t\tmediaPlayer = new MediaPlayer();\n\t\t\tmMediaMap.put(path, mediaPlayer);\n\n\t\t\t// data source\n\t\t\tif (assetFileDescriptor != null) {\n\t\t\t\tmediaPlayer.setDataSource(assetFileDescriptor.getFileDescriptor(), assetFileDescriptor.getStartOffset(), assetFileDescriptor.getLength());\n\t\t\t} else {\n\t\t\t\tmediaPlayer.setDataSource(path);\n\t\t\t}\n\n\t\t\tmediaPlayer.prepareAsync();\n\t\t} catch (@NonNull IllegalArgumentException | IllegalStateException | IOException e) {\n\t\t\te.printStackTrace();\n\t\t\treturn;\n\t\t}\n\n\t\t// play sound\n\t\tmediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n\t\t\t@Override\n\t\t\tpublic void onPrepared(@NonNull MediaPlayer mediaPlayer) {\n\t\t\t\tmediaPlayer.start();\n\t\t\t}\n\t\t});\n\n\t\t// release media player\n\t\tmediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\t\t\t@Override\n\t\t\tpublic void onCompletion(@Nullable MediaPlayer mediaPlayer) {\n\t\t\t\tmMediaMap.remove(path);\n\t\t\t\tif (mediaPlayer != null) {\n\t\t\t\t\tmediaPlayer.release();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t}", "public void start() {\n background.playMusic();\n createTimer();\n timer.start();\n }", "public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }", "public void play(int soundID) {\n System.out.println(\"PlaySound: \" + soundID);\n// if (soundID == SOUND_EAT)\n// return;\n play(soundID, 1);\n }", "private void clickSound() {// this function Plays a sound when a button is clicked.\n\t\tif (mp != null) {\n\t\t\tmp.release();\n\t\t}\n\t\tmp = MediaPlayer.create(getApplicationContext(), R.raw.music2);\n\t\tmp.start();// media player is started\n\t}", "public void play(){\n Log.d(TAG, \"startAudio: called\");\n if(mMediaPlayer!=null){\n\n mMediaPlayer.start();\n mProgressBar.setProgress(mMediaPlayer.getCurrentPosition());\n mProgressBar.setMax(mMediaPlayer.getDuration());\n\n // updating progress bar\n seekHandler.postDelayed(updateSeekBar, 5);\n }\n }", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }" ]
[ "0.7900553", "0.7466587", "0.73764116", "0.7294965", "0.72875327", "0.7284169", "0.7275957", "0.727095", "0.7214081", "0.721106", "0.7137845", "0.7137735", "0.70531416", "0.7046794", "0.7034456", "0.70318073", "0.698562", "0.69837666", "0.6980943", "0.6922005", "0.68906456", "0.68764347", "0.68664795", "0.6858547", "0.6848551", "0.6817285", "0.6793682", "0.6790175", "0.6788619", "0.6780725", "0.675851", "0.67504156", "0.6734311", "0.6729647", "0.6717677", "0.66916436", "0.6684791", "0.6680175", "0.6659993", "0.6651668", "0.6648193", "0.66314983", "0.66309243", "0.6623286", "0.6590501", "0.656089", "0.65577173", "0.65520316", "0.65469754", "0.6539885", "0.653809", "0.6525396", "0.6524301", "0.65162176", "0.65114975", "0.6509878", "0.65084606", "0.6508188", "0.6507953", "0.64985067", "0.64884186", "0.6488344", "0.6478442", "0.646788", "0.6467254", "0.6460676", "0.6455089", "0.64478654", "0.6439742", "0.6439446", "0.641998", "0.6408069", "0.6404814", "0.63954127", "0.6388516", "0.63853353", "0.63850313", "0.63834316", "0.6382152", "0.63789046", "0.6374514", "0.6371245", "0.63654524", "0.63637644", "0.6358479", "0.6357899", "0.63537073", "0.6339502", "0.6335505", "0.6334633", "0.6330137", "0.6317804", "0.63133496", "0.6310433", "0.6309494", "0.629196", "0.6285952", "0.62837535", "0.6280146", "0.62629414" ]
0.7273429
7
Constructs a new SpeakerThread to ensure that a given sound is played
public SpeakerThread( LayeredSound.SoundClip s ) { super( "Speaker Thread #" + ID++ ); this.sound = new LayeredSound.SoundClip( s ); setPriority( MIN_PRIORITY ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public static void playInternal( LayeredSound.SoundClip s )\r\n\t{\r\n\t\tif ( Settings.isSoundOn() )\r\n\t\t\tnew SpeakerThread( s ).start();\r\n\t}", "protected Thread createPlayerThread()\n\t{\n\t\treturn new Thread(this, \"Audio player thread\");\t\n\t}", "public synchronized void start() {\n if(!running) {\n this.soundThread = new Thread(this, \"TankGameSound\");\n this.soundThread.start();\n this.running = true;\n }\n }", "void playTone(){\n t = new Thread() {\n public void run(){\n isRunning = true;\n setPriority(Thread.MAX_PRIORITY);\n\n\n\n audioTrack.play();\n\n for (int i = 0; i < message.length(); i++) {\n\n ASCIIBreaker breaker = new ASCIIBreaker((int)message.charAt(i));\n\n int frequencies[] = breaker.ASCIIToFrequency();\n\n //Generate waves for all different frequencies\n for(int fre : frequencies) {\n audioTrack.write(generateSineInTimeDomain(fre),0,sample_size);\n }\n\n audioTrack.write(generateSineInTimeDomain(7000),0,sample_size);\n }\n\n audioTrack.stop();\n audioTrack.release();\n }\n };\n t.start();\n }", "void playSound() {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n soundPlaying = true;\n audioTrack.play();\n while (soundPlaying) {\n genWhiteNoise();\n audioTrack.write(noise, 0, SAMPLE_COUNT);\n }\n\n }\n });\n thread.start();\n }", "public void start() {\n ToneControl control = null;\n try {\n myPlayer = Manager.createPlayer(Manager.TONE_DEVICE_LOCATOR);\n // do the preliminary set-up:\n myPlayer.realize();\n // set a listener to listen for the end of the tune:\n myPlayer.addPlayerListener(this);\n // get the ToneControl object in order to set the tune data:\n control = (ToneControl) myPlayer.getControl(\"ToneControl\");\n control.setSequence(myTune);\n // set the volume to the highest possible volume:\n VolumeControl vc = (VolumeControl) myPlayer\n .getControl(\"VolumeControl\");\n vc.setLevel(100);\n } catch (Exception e) {\n // the music isn't necessary, so we ignore exceptions.\n }\n }", "@Override\r\n\tpublic void run() {\n\t\tInputStream in;\r\n\t\tAudioStream as;\r\n\r\n\t\ttry {\r\n\t\r\n\t\t\tin = new FileInputStream(new File(\"heart123.wav\"));\r\n\t\t\tas = new AudioStream(in);\r\n\r\n\t\t\t\tSystem.out.println(\"thread started\");\r\n\t\t\t\tAudioPlayer.player.start(as);\r\n\t\t\t\t\r\n\r\n\t\t\t//AudioPlayer.player.sleep(1000);\r\n\t\t\t//AudioPlayer.player.stop(as);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t}", "public void StartSound(ISoundOrigin origin, int sound_id);", "public void StartSound(ISoundOrigin origin, sfxenum_t sound_id);", "private void playSound() {\n if (isFlashOn) {\n mp = MediaPlayer.create(this, R.raw.light_switch_off);\n } else {\n mp = MediaPlayer.create(this, R.raw.light_switch_on);\n }\n mp.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n\n @Override\n public void onCompletion(MediaPlayer mp) {\n // TODO Auto-generated method stub\n mp.release();\n }\n });\n mp.start();\n }", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), controllerVars.getVolume(), controllerVars.getVolume(), 1, 0, 1f);\n\t\t\tcontrollerVars.COUNTER++;\n\t\t\t//Toast.makeText(act, \"Played sound\", Toast.LENGTH_SHORT).show();optional Playing message \n\t\t\tcontrollerVars.setPlays(true);\n\t\t\tonComplete(controllerVars.getMediaPlayer().getDuration());\n\t\t}\n\t\t//controllerVars.getMediaPlayer().start();\n\t\t//controllerVars.setPlays(true);\n\t}", "public abstract String play(SoundLibrary library, String... sound);", "private synchronized void loadSoundSystem() {\n/* 118 */ if (!this.loaded) {\n/* */ \n/* */ try {\n/* */ \n/* 122 */ (new Thread(new Runnable()\n/* */ {\n/* */ public void run()\n/* */ {\n/* 126 */ SoundSystemConfig.setLogger(new SoundSystemLogger()\n/* */ {\n/* */ public void message(String p_message_1_, int p_message_2_)\n/* */ {\n/* 130 */ if (!p_message_1_.isEmpty())\n/* */ {\n/* 132 */ SoundManager.LOGGER.info(p_message_1_);\n/* */ }\n/* */ }\n/* */ \n/* */ public void importantMessage(String p_importantMessage_1_, int p_importantMessage_2_) {\n/* 137 */ if (!p_importantMessage_1_.isEmpty())\n/* */ {\n/* 139 */ SoundManager.LOGGER.warn(p_importantMessage_1_);\n/* */ }\n/* */ }\n/* */ \n/* */ public void errorMessage(String p_errorMessage_1_, String p_errorMessage_2_, int p_errorMessage_3_) {\n/* 144 */ if (!p_errorMessage_2_.isEmpty()) {\n/* */ \n/* 146 */ SoundManager.LOGGER.error(\"Error in class '{}'\", p_errorMessage_1_);\n/* 147 */ SoundManager.LOGGER.error(p_errorMessage_2_);\n/* */ } \n/* */ }\n/* */ });\n/* 151 */ SoundManager.this.getClass(); SoundManager.this.sndSystem = new SoundManager.SoundSystemStarterThread(null);\n/* 152 */ SoundManager.this.loaded = true;\n/* 153 */ SoundManager.this.sndSystem.setMasterVolume(SoundManager.this.options.getSoundLevel(SoundCategory.MASTER));\n/* 154 */ SoundManager.LOGGER.info(SoundManager.LOG_MARKER, \"Sound engine started\");\n/* */ }\n/* 156 */ }\"Sound Library Loader\")).start();\n/* */ }\n/* 158 */ catch (RuntimeException runtimeexception) {\n/* */ \n/* 160 */ LOGGER.error(LOG_MARKER, \"Error starting SoundSystem. Turning off sounds & music\", runtimeexception);\n/* 161 */ this.options.setSoundLevel(SoundCategory.MASTER, 0.0F);\n/* 162 */ this.options.saveOptions();\n/* */ } \n/* */ }\n/* */ }", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "@Override\n public void run() {\n AudioManager m_amAudioManager;\n m_amAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);\n m_amAudioManager.setMode(AudioManager.MODE_IN_CALL);\n m_amAudioManager.setSpeakerphoneOn(false);\n AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, BUF_SIZE, AudioTrack.MODE_STREAM);\n track.play();\n try {\n // Define a socket to receive the audio\n byte[] buf = new byte[BUF_SIZE];\n while(speakers && !UDP) {\n // Play back the audio received from packets\n int rec;\n rec = dataInputStreamInstance.read(buf);\n Log.d(\"rec123\", String.valueOf(rec));\n if (rec > 0)\n track.write(buf, 4, rec);\n }\n // Stop playing back and release resources\n track.stop();\n track.flush();\n track.release();\n speakers = false;\n return;\n }\n catch(SocketException e) {\n speakers = false;\n }\n catch(IOException e) {\n speakers = false;\n }\n }", "public Sound createSound(String file);", "public void startSpeakers() {\n if(!speakers) {\n\n speakers = true;\n Thread receiveThread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n\n // Create an instance of AudioTrack, used for playing back audio\n AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, BUF_SIZE, AudioTrack.MODE_STREAM);\n track.play();\n try {\n // Define a socket to receive the audio\n DatagramSocket socket = new DatagramSocket(5000);\n byte[] buf = new byte[BUF_SIZE];\n while(speakers && UDP) {\n // Play back the audio received from packets\n DatagramPacket packet1 = new DatagramPacket(buf, BUF_SIZE);\n socket.receive(packet1);\n Log.d(\"sent\", \"recv\");\n Object[] dataPack = packet.depacketize(packet1.getData());\n if((int) dataPack[0] == 1){\n Log.d(\"check\", \"de-packet\");\n byte[] audio = (byte[]) dataPack[1];\n track.write(audio, 0, audio.length);\n byte[] ack = (byte[]) dataPack[2];\n DatagramPacket packet_ack = new DatagramPacket(ack, ack.length, address, port);\n try {\n socket.send(packet_ack);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }\n // Stop playing back and release resources\n socket.disconnect();\n socket.close();\n track.stop();\n track.flush();\n track.release();\n speakers = false;\n return;\n }\n catch(SocketException e) {\n speakers = false;\n }\n catch(IOException e) {\n speakers = false;\n }\n }\n });\n receiveThread.start();\n }\n }", "PlaySound getSound();", "public void startSpeakersTCP() {\n if(!speakers) {\n\n speakers = true;\n Thread receiveThread = new Thread(new Runnable() {\n\n @Override\n public void run() {\n // Create an instance of AudioTrack, used for playing back audio\n AudioManager m_amAudioManager;\n m_amAudioManager = (AudioManager) mContext.getSystemService(Context.AUDIO_SERVICE);\n m_amAudioManager.setMode(AudioManager.MODE_IN_CALL);\n m_amAudioManager.setSpeakerphoneOn(false);\n AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, BUF_SIZE, AudioTrack.MODE_STREAM);\n track.play();\n try {\n // Define a socket to receive the audio\n byte[] buf = new byte[BUF_SIZE];\n while(speakers && !UDP) {\n // Play back the audio received from packets\n int rec;\n rec = dataInputStreamInstance.read(buf);\n Log.d(\"rec123\", String.valueOf(rec));\n if (rec > 0)\n track.write(buf, 4, rec);\n }\n // Stop playing back and release resources\n track.stop();\n track.flush();\n track.release();\n speakers = false;\n return;\n }\n catch(SocketException e) {\n speakers = false;\n }\n catch(IOException e) {\n speakers = false;\n }\n }\n });\n receiveThread.start();\n }\n }", "public void setUpSound() {\n try {\n generateTone();\n setFrequencyLabel();\n } catch(Exception e) {\n e.printStackTrace();\n }\n }", "public abstract void makeSound();", "private void setUpSound() {\n\t\tAssetManager am = getActivity().getAssets();\n\t\t// activity only stuff\n\t\tgetActivity().setVolumeControlStream(AudioManager.STREAM_MUSIC);\n\n\t\tAudioManager audioManager = (AudioManager) getActivity().getSystemService(Context.AUDIO_SERVICE);\n\t\tsp = new SPPlayer(am, audioManager);\n\t}", "public SoundController() {\r\n // initialize the module libraries\r\n this.initModuleLibraries();\r\n\r\n // in this moment no sonification map is defined\r\n this.sonificationMap = new HashMap<String, SonificationMap>();\r\n\r\n // in this moment we have an empty soundMap\r\n this.soundsMap = new HashMap<String, Sound>();\r\n\r\n // in this moment no type names are defined\r\n this.soundEventsTypeNameMap = new HashMap<String, String>();\r\n\r\n // create the GUI component\r\n this.tabSound = new TabSound(this);\r\n\r\n // create the sounds-events active state empty map\r\n this.soundEventActiveStateMap = new HashMap<String, Boolean>();\r\n\r\n // enable sound\r\n this.setEnabled(true);\r\n\r\n // the sound is active by default\r\n soundOn = true;\r\n\r\n // empty events queue\r\n eventQ = new ConcurrentLinkedQueue<EnvironmentEvent>();\r\n\r\n // the module thread is not running yet\r\n running = false;\r\n\r\n this.soundThread = new Thread(this);\r\n }", "public void start()\n\t{\n\t\tString name = getAudioFileName();\n\t\ttry\n\t\t{\t\t\t\n\t\t\tInputStream in = getAudioStream();\n\t\t\tAudioDevice dev = getAudioDevice();\n\t\t\tplay(in, dev);\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tsynchronized (System.err)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Unable to play \"+name);\n\t\t\t\tex.printStackTrace(System.err);\n\t\t\t}\n\t\t}\n\t}", "protected void playTheSound(int position) {\n if (mp != null) {\n mp.reset();\n mp.release();\n }\n mp = MediaPlayer.create(this, sons[position]);\n mp.start();\n }", "private void startPlaying() {\n try {\n mPlayer = new MediaPlayer();\n try {\n mPlayer.setDataSource(audioFile.getAbsolutePath());\n mPlayer.prepare();\n mPlayer.start();\n } catch (IOException e) {\n Log.e(LOG_TAG, \"prepare() failed\");\n }\n showTimer(false);\n } catch (Exception e) {\n logException(e, \"MicManualFragment_startPlaying()\");\n }\n\n }", "public static void playTone(final Context context, double Hz, double seconds, double VOLUME, int sampleRate) {\n if(sineWave == null)\n sineWave = sineWave(Hz, seconds, sampleRate);\n\n if(audioManager == null) {\n audioManager = (AudioManager) context.getSystemService(Context.AUDIO_SERVICE);\n }\n\n audioManager.setStreamVolume(AudioManager.STREAM_MUSIC,\n (int) (audioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC) * VOLUME), // Set to fractional max volume\n AudioManager.MODE_NORMAL);\n\n try {\n if(audioTrack == null) {\n audioTrack = new AudioTrack(AudioManager.STREAM_MUSIC,\n sampleRate, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, AudioTrack.getMinBufferSize(sampleRate, AudioFormat.CHANNEL_OUT_MONO, AudioFormat.ENCODING_PCM_16BIT),\n AudioTrack.MODE_STATIC);\n audioTrack.write(sineWave, 0, sineWave.length); // Load the track\n first = true;\n }\n\n audioTrack.stop();\n\n// if( first ) // Workaround for some devices (e.g. Blu) that echo sound first time played\n// first = false;\n// else\n audioTrack.reloadStaticData();\n\n audioTrack.play(); // Play the track\n }\n catch (Exception e){ }\n }", "private void playHintAudio() {\n AudioManager audioManager = (AudioManager)getContext().getSystemService(Context.AUDIO_SERVICE);\n int mode = audioManager.getRingerMode();\n Log.d(TAG,\"mode = \" + mode);\n\n if(mode != AudioManager.RINGER_MODE_SILENT && mode != AudioManager.RINGER_MODE_VIBRATE) {\n // prize modify for bug 44603 by zhaojian 20171205 start\n mMediaPlayer = MediaPlayer.create(getContext(),R.raw.hb_sound2);\n Log.d(\"debug\",\"isNotifySound = \" + getConfig().isNotifySound());\n if(getConfig().isNotifySound()) {\n mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {\n @Override\n public void onPrepared(MediaPlayer mp) {\n mp.start();\n }\n });\n mMediaPlayer.setOnCompletionListener(new MediaPlayer.OnCompletionListener() {\n @Override\n public void onCompletion(MediaPlayer mp) {\n mp.release();\n }\n });\n mMediaPlayer.start();\n }\n // prize modify for bug 44603 by zhaojian 20171205 end\n }\n }", "public void run()\n\t{\t\t\t\t\n\t\tif (player!=null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tplayer.play();\t\t\t\t\n\t\t\t}\n\t\t\tcatch (JavaLayerException ex)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Problem playing audio: \"+ex);\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public void playback() {\n\t\ttry {\n\t\t\tplaySound.load(audioFileName, currFrame);\n\t\t} catch (UnsupportedAudioFileException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (LineUnavailableException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfastForward = false;\n\t\tsoundThread = null;\n\t\tsoundThread = new Thread(new sound());\n\t\tsoundThread.start();\n\t\tvideoThread = null;\n\t\tvideoThread = new Thread(new video());\n\t\tvideoThread.start();\n\t}", "@Override\n\t\tpublic void run() {\n\t\t\tgenTone();\n\t\t\tplaySound();\n\t\t}", "@Override\n public void run() {\n while (true) {\n try {\n String text = broadcastTexts.take();\n for (int i = 0; i < 2; i++) {\n switch (text.substring(0, 1).hashCode()) {\n case 65:\n createMediaPlayForSound(R.raw.a).start();\n break;\n case 66:\n createMediaPlayForSound(R.raw.b).start();\n break;\n case 67:\n createMediaPlayForSound(R.raw.c).start();\n break;\n case 68:\n createMediaPlayForSound(R.raw.d).start();\n break;\n case 69:\n createMediaPlayForSound(R.raw.e).start();\n break;\n case 70:\n createMediaPlayForSound(R.raw.f).start();\n break;\n case 71:\n createMediaPlayForSound(R.raw.g).start();\n break;\n case 72:\n createMediaPlayForSound(R.raw.h).start();\n break;\n case 73:\n createMediaPlayForSound(R.raw.i).start();\n break;\n default:\n break;\n }\n Thread.sleep(300);\n for (char b : text.substring(1, text.length()).toCharArray()) {\n switch (b) {\n case 48:\n createMediaPlayForSound(R.raw.n0).start();\n break;\n case 49:\n createMediaPlayForSound(R.raw.n1).start();\n break;\n case 50:\n createMediaPlayForSound(R.raw.n2).start();\n break;\n case 51:\n createMediaPlayForSound(R.raw.n3).start();\n break;\n case 52:\n createMediaPlayForSound(R.raw.n4).start();\n break;\n case 53:\n createMediaPlayForSound(R.raw.n5).start();\n break;\n case 54:\n createMediaPlayForSound(R.raw.n6).start();\n break;\n case 55:\n createMediaPlayForSound(R.raw.n7).start();\n break;\n case 56:\n createMediaPlayForSound(R.raw.n8).start();\n break;\n case 57:\n createMediaPlayForSound(R.raw.n9).start();\n break;\n }\n Thread.sleep(300);\n }\n createMediaPlayForSound(R.raw.end).start();\n Thread.sleep(1000);\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "@Override\n public void makeSound() {\n\n }", "@Override\n public void makeSound() {\n\n }", "public void startPlayback() {\n Scanner userInput = new Scanner(System.in);\n while(true) {\n System.out.println(\"Please press the \\\"p\\\" key when you are ready to begin playback\");\n String input = userInput.next();\n if (input.equals(\"p\")) {\n new Thread(() -> {\n try {\n \n SequencePlayer musicPlayer = new MidiSequencePlayer(DEFAULT_BPM, DEFAULT_TPB);\n try {\n music.play(musicPlayer, 0, new ByteArrayOutputStream(), \"\");\n } catch (InterruptedException e1) {\n throw new RuntimeException(\"error\");\n }\n synchronized(this.music) {\n music.notifyAll();\n }\n Object lock = new Object();\n musicPlayer.addEvent(music.duration(), (Double beat) -> {\n synchronized (lock) {\n lock.notify();\n }\n });\n musicPlayer.play();\n synchronized (lock) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n return;\n }\n } \n } catch (MidiUnavailableException e) {\n throw new RuntimeException(\"MidiSequencePlayer could not be created\");\n } catch (InvalidMidiDataException e) {\n throw new RuntimeException(\"MidiSequencePlayer could not be created\");\n }\n \n }).start();\n } else {\n System.out.println(\"Invalid Input.\");\n }\n System.out.println(\"If you would like to play the music again, please type \\\"r\\\" followed by the Enter key. \\n Otherwise type \\\"q\\\" followed by the Enter key.\");\n input = userInput.nextLine();\n if (input.equals(\"q\")) {\n System.out.println(\"Goodbye\");\n break;\n } else if (!input.equals(\"r\")) {\n System.out.println(\"Invalid Input\");\n break;\n }\n }\n userInput.close();\n }", "public void startSound() {\n\t\ttry {\n\t\t\t// Open an audio input stream.\n\t\t\tURL url = this.getClass().getResource(\"/\"+wavMusicFile);\n\t\t\t//System.out.println(\"url: \" + url);\n\t\t\tAudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\t\t\t// Get a sound clip resource.\n\t\t\tclip = AudioSystem.getClip();\n\t\t\t// Open audio clip and load samples from the audio input stream.\n\t\t\tclip.open(audioIn);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void launchSound(String nomFichierAudio) {\n try {\n as = new AudioStream(new FileInputStream(nomFichierAudio));\n p.start(as);\n } catch (IOException err) {\n err.printStackTrace();\n }\n }", "public synchronized void playExclaimSound()\n {\n if (PLAY_EXCLAIM_SOUND_RUNNABLE == null)\n {\n PLAY_EXCLAIM_SOUND_RUNNABLE = (Runnable)Toolkit.getDefaultToolkit().getDesktopProperty(EXCLAIM_SOUND_PROPERTY_NAME);\n }\n if (PLAY_EXCLAIM_SOUND_RUNNABLE != null)\n {\n PLAY_EXCLAIM_SOUND_RUNNABLE.run();\n }\n }", "public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}", "void InitSound() {\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n //Use the newer SoundPool.Builder\n //Set the audio attributes, SONIFICATION is for interaction events\n //uses builder pattern\n AudioAttributes aa = new AudioAttributes.Builder()\n .setUsage(AudioAttributes.USAGE_ASSISTANCE_SONIFICATION)\n .setContentType(AudioAttributes.CONTENT_TYPE_SONIFICATION)\n .build();\n\n //default max streams is 1\n //also uses builder pattern\n dice_sound= new SoundPool.Builder().setAudioAttributes(aa).build();\n\n } else {\n // Running on device earlier than Lollipop\n //Use the older SoundPool constructor\n dice_sound=PreLollipopSoundPool.NewSoundPool();\n }\n //Load the dice sound\n sound_id=dice_sound.load(this,R.raw.shake_dice,1);\n alarm_sound_id=dice_sound.load(this,R.raw.on_time,1);\n }", "@Override\n\t\t\tpublic void run() {\n\t\t\t\tString aString = TestUtils.getStreamVoice(\"ToneTest\");\n\t\t\t\tint i = Integer.valueOf(aString).intValue();\n\t\t\t\tDswLog.e(TAG, \"i = \" + i);\n\t\t\t\tif (null != mAudioManager) {\n\t\t\t\t\tint maxVol = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\t\t\t\tDswLog.e(TAG, \" set stream = music \");\n\t\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, maxVol - i, 0);\n\t\t\t\t\tDswLog.e(TAG, \"maxVol = \" + maxVol + \" setStreamVolume = \" + (maxVol - i));\n\t\t\t\t}\n\t\t\t\t//Gionee <GN_BSP_AutoMMI> <chengq> <20170505> modify for ID 129027 end\n\t\t\t\tgenTone();\n\t\t\t\tplaySound();\n\t\t\t}", "public static synchronized void playSound(final String url) {\n\t\t new Thread(new Runnable() {\n\t\t public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t AudioInputStream inputStream = AudioSystem.getAudioInputStream(\n\t\t Main.class.getResourceAsStream(\"/res/\" + url));\n\t\t clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }\n\t\t }).start();\n\t\t}", "public static void playSound(){\r\n try{\r\n Clip clip = AudioSystem.getClip();\r\n clip.open(AudioSystem.getAudioInputStream(new File(\"Cheering.wav\")));\r\n clip.start();\r\n }\r\n catch (Exception exc){\r\n exc.printStackTrace(System.out);\r\n } \r\n }", "public void run() {\n \t\t\ttry {\n \t\t\t\t//Wait until the CountDownLatch has been 'lifted'\n \t\t\t\tstartLatch.await();\n \t\t\t\t\n \t\t\t\ttry {\n \t\t\t\t\t//Read the sound file\n \t\t\t\t\taudioInputStream = AudioSystem.getAudioInputStream(soundFile);\n \t\t\t\t\taudioFormat = audioInputStream.getFormat();\n \t\t\t\t\t\n \t\t\t\t\t//Decode the sound file\n \t\t\t\t\tdecodedAudioFormat = getDecodedAudioFormat(audioFormat);\n \t\t\t\t\tdecodedAudioInputStream = AudioSystem.getAudioInputStream(decodedAudioFormat, audioInputStream);\n \t\t\t\t\t\n \t\t\t\t\t//Get a source data line to put the sound file on\n \t\t\t\t\tDataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, decodedAudioFormat);\n \t\t\t\t\tsourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);\n \t\t\t\t\tsourceDataLine.open(decodedAudioFormat);\n \t\t\t\t\t\n \t\t\t\t\t//Get the controls for the stream if they are supported\n \t\t\t\t\tif (sourceDataLine.isControlSupported(FloatControl.Type.MASTER_GAIN)) {\n \t\t\t\t\t\tgainControl = (FloatControl) sourceDataLine.getControl(FloatControl.Type.MASTER_GAIN);\n \t\t\t\t\t}\n \t\t\t\t\tif (sourceDataLine.isControlSupported(BooleanControl.Type.MUTE)) {\n \t\t\t\t\t\tmuteControl = (BooleanControl) sourceDataLine.getControl(BooleanControl.Type.MUTE);\n \t\t\t\t\t}\n \t\t\t\t\tfloat[] equalizerControl = new float[32];\n \t\t\t\t\tif (decodedAudioInputStream instanceof javazoom.spi.PropertiesContainer) {\n \t\t\t\t\t\t@SuppressWarnings(\"rawtypes\")\n \t\t\t\t\t\tMap properties = ((javazoom.spi.PropertiesContainer) decodedAudioInputStream).properties();\n \t\t\t\t\t\tequalizerControl = (float[]) properties.get(\"mp3.equalizer\");\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t//Start streaming the sound file\n \t\t\t\t\tsourceDataLine.start();\n \t\n \t\t\t\t\tint count;\n \t\t\t\t\twhile ((count = decodedAudioInputStream.read(tempBuffer, 0, tempBuffer.length)) != -1 && isPlaying) {\n \t\t\t\t\t\tif (count > 0) {\n \t\t\t\t\t\t\t//Set the controls for the stream if they are supported\n \t\t\t\t\t\t\tif (sourceDataLine.isControlSupported(FloatControl.Type.MASTER_GAIN)) {\n \t\t\t\t\t\t\t\tadjustFloatControl(gainControl, gain);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tif (sourceDataLine.isControlSupported(BooleanControl.Type.MUTE)) {\n \t\t\t\t\t\t\t\tadjustBooleanControl(muteControl, mute);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tSystem.arraycopy(equalizer, 0, equalizerControl, 0, 32);\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t//Write the data line to the buffer\n \t\t\t\t\t\t\tsourceDataLine.write(tempBuffer, 0, count);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t//The sound file is finished at this point\n \t\t\t\t\t\n \t\t\t\t\t//Clean up the data line\n \t\t\t\t\tsourceDataLine.drain();\n \t\t\t\t\tsourceDataLine.close();\n \t\t\t\t\t\n \t\t\t\t\t//Close the stream\n \t\t\t\t\taudioInputStream.close();\n \t\t\t\t\tdecodedAudioInputStream.close();\n \t\t\t\t\t\n \t\t\t\t\tisPlaying = false;\n \t\t\t\t\t\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tSystem.out.println(\"IO Error opening \" + soundFile.getAbsolutePath());\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t\tSystem.exit(0);\n \t\t\t\t} catch (UnsupportedAudioFileException e) {\n \t\t\t\t\tSystem.out.println(\"Error opening \" + soundFile.getAbsolutePath());\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t\tSystem.exit(0);\n \t\t\t\t} catch (LineUnavailableException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t\tSystem.exit(0);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tSystem.out.println(\"Track play was interrupted.\");\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}", "@Override\n public void run() {\n Transmitter trans = getTransmitter();\n\n if (trans == null) {\n return;\n }\n\n\n // You get your receiver from the synthesizer, then set it in\n // your transmitter. Optionally, you can create an implementation\n // of Receiver to display the messages before they're sent.\n DisplayReceiver displayReceiver = new DisplayReceiver(receiver);\n trans.setReceiver(displayReceiver); // or just \"receiver\"\n\n // You should be able to play on your musical keyboard (transmitter)\n // and hear sounds through your PC synthesizer (receiver)\n System.out.println(\"Play on your musical keyboard...\");\n }", "static void PlaySound(File Sound)\n {\n try{\n Clip clip = AudioSystem.getClip();\n clip.open(AudioSystem.getAudioInputStream(Sound));\n clip.start();\n //BGM = new AudioStream(new FileInputStream(\"OST.WAV\"));\n //MD = BGM.getData();\n //loop = new ContinuousAudioDataStream(MD);\n }catch(Exception e) {}\n //MGP.start(loop); \n }", "private static void playSound(String s) {\n try {\n Media hit = new Media(new File(s).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(hit);\n mediaPlayer.play();\n } catch (Exception ex) {\n ex.printStackTrace();\n }\n }", "public static void playScream()\n {\n scream.play();\n }", "public void playAudio() {\n\n }", "public void undertakerSounds()\n {\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n this.setTitle(\"Test Sound Clip\");\n this.setSize(300, 200);\n this.setVisible(false);\n\n try {\n // Open an audio input stream.\n URL url= new URL(\"http://shortmp3.mobi/u/files/WAV/39633-Undertaker_(ShortMp3.com).wav\");\n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\n // Get a sound clip resource.\n Clip clip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n clip.open(audioIn);\n clip.start();\n\n } catch (UnsupportedAudioFileException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n } catch (LineUnavailableException e) {\n e.printStackTrace();\n }\n\n }", "private void gameSound(int attack){\n switch (attack){\n case 1:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_lightattack);\n break;\n case 2:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_strongattack);\n break;\n case 3:\n mediaPlayer = MediaPlayer.create(Activity_Game.this, R.raw.sound_brutalattack);\n break;\n }\n mediaPlayer.start();\n }", "private SoundUtils() {}", "public static void playPickupSound(){\n String musicFile = \"Sounds\\\\Pickup.mp3\";\n Media sound = new Media(new File(musicFile).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(sound);\n mediaPlayer.setVolume(App.getVolume());\n mediaPlayer.play();\n }", "public Sound(String theSong)\n\t{\n\t\tminim = new Minim(new PApplet());\n\t\tthis.theSong = theSong;\n\t\tcanPlay = true;\n\t\tswitch (theSong)\n\t\t{\n\t\tcase \"SG1\":\n\t\t\tsong = minim.loadFile(\"assets/shotgunCock1.wav\");\n\t\t\tbreak;\n\t\tcase \"SG2\":\n\t\t\tsong = minim.loadFile(\"assets/shotgunCock2.wav\");\n\t\t\tbreak;\n\t\tcase \"ARFire\":\n\t\t\tsong = minim.loadFile(\"assets/M4Fire.mp3\");\n\t\t\tbreak;\n\t\tcase \"click\":\n\t\t\tsong = minim.loadFile(\"assets/gunClick.mp3\");\n\t\t\tbreak;\n\t\tcase \"clipIn\":\n\t\t\tsong = minim.loadFile(\"assets/clipIn.mp3\");\n\t\t\tbreak;\n\t\tcase \"clipOut\":\n\t\t\tsong = minim.loadFile(\"assets/clipOut.mp3\");\n\t\t\tbreak;\n\t\tcase \"chamberOut\":\n\t\t\tsong = minim.loadFile(\"assets/ARChamberOut.mp3\");\n\t\t\tbreak;\n\t\tcase \"chamberIn\":\n\t\t\tsong = minim.loadFile(\"assets/ARChamberIn.mp3\");\n\t\t\tbreak;\t\t\n\t\tcase \"shell\":\n\t\t\tsong = minim.loadFile(\"assets/shellFall.mp3\");\n\t\t\tbreak;\n\t\tcase \"SGFire\":\n\t\t\tsong = minim.loadFile(\"assets/SGBlast.mp3\");\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tsong = null;\n\t\t\tbreak;\n\t\t}\n\t\t\n\t}", "@Override\n public void run() {\n MediaSingleton.INSTANCE.ensureSound();\n\n long next = AlarmUtil.millisTillNextInterval(AlarmUtil.Interval.SECOND);\n handler.postDelayed(soundCheck, next);\n }", "private void to(){\n\tmediaPlayer = new android.media.MediaPlayer();\n\ttry{\n\t mediaPlayer.setDataSource(sdPath);\n\t mediaPlayer.prepare();\n\t mediaPlayer.start();\n\t Thread.sleep(1000);\n\t}\n\tcatch(Exception e){}\n }", "public Sequencer requestPlay ( MidiSoundHolder sound ) {\n if ( this.currentMidi != null && this.currentMidi != sound )\n return null;\n this.currentMidi = sound;\n this.sequencer.addMetaEventListener ( sound );\n return this.sequencer;\n }", "void play(final Context context, final int soundId, final OnCompletionPlayNextListener playNextListener);", "protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}", "@Override\n public void playSound(int soundId) {\n\n }", "public void startRecording() {\n if (isAlreadyLaunchedRecorder) {\n return;\n } else {\n isAlreadyLaunchedRecorder = true;\n }\n\n // Try to get exclusive audio focus\n int audioFocusRequestResult = audioManager.requestAudioFocus(audioFocusChangeListener, AudioManager.STREAM_MUSIC, AudioManager.AUDIOFOCUS_GAIN_TRANSIENT_EXCLUSIVE);\n if (audioFocusRequestResult == AudioManager.AUDIOFOCUS_REQUEST_FAILED) {\n Log.d(TAG, \"Unable to get audio focus\");\n }\n\n playStartListeningSound();\n\n scheduler.schedule(new Runnable() {\n public void run() {\n try {\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n countdownTimer.setMax(progressMax);\n animation.setDuration(maxRecordingTimeInSeconds * 1000);\n animation.start();\n }\n });\n\n Future<StmAudioRecorderResult> futureRecorderResult = executor.submit(new RecordShoutCallable());\n StmAudioRecorderResult recordingResult = futureRecorderResult.get();\n final Integer shoutRecordingLengthInSeconds = recordingResult.getRecordingLengthInSeconds();\n\n if (recordingResult.isCancelled() || !recordingResult.didUserSpeak()) {\n playCancelListeningSound();\n } else {\n playFinishListeningSound();\n\n Future<Shout> futureShout = executor.submit(new SendShoutCallable(recordingResult.getAudioBuffer()));\n final Shout newShout = futureShout.get();\n newShout.setRecordingLengthInSeconds(shoutRecordingLengthInSeconds);\n\n playShoutSentSound();\n\n runOnUiThread(new Runnable() {\n @Override\n public void run() {\n StmCallback<Shout> stmCallback = stmService.getShoutCreationCallback();\n if (stmCallback != null) {\n stmCallback.onResponse(newShout);\n }\n }\n });\n }\n\n // Sleeping is necessary to prevent the onDestroy being called to early\n // which results in the sent sound not being played\n Thread.sleep(700);\n\n } catch (InterruptedException ex) {\n Log.w(TAG, \"Recording and/or sending shout was interrupted\", ex);\n } catch (ExecutionException ex) {\n Log.e(TAG, \"An error occurred during the recording or sending of a new shout\", ex);\n } finally {\n // Release the audio focus\n if (audioManager != null) {\n audioManager.abandonAudioFocus(audioFocusChangeListener);\n }\n\n // Close the overlay\n Intent intent = new Intent();\n intent.putExtra(ACTIVITY_RESULT, StmService.SUCCESS);\n setResult(RESULT_OK, intent);\n finish();\n }\n }\n }, 300, TimeUnit.MILLISECONDS);\n }", "public void play() {\n\n\t\tString[] args = new String[] { recordingsPath };\n\t\tGst.init(\"AudioPlayer\", args);\n\n\t\tplaybin = new PlayBin2(\"AudioPlayer\");\n\t\tplaybin.setVideoSink(ElementFactory.make(\"fakesink\", \"videosink\"));\n\t\tplaybin.setInputFile(new File(gui.getSelectedPlayItem()));\n\n\t\tplaybin.play();\n\n\t}", "public static void playShootingSound(){\n String musicFile = \"Sounds\\\\Shoot.mp3\";\n Media sound = new Media(new File(musicFile).toURI().toString());\n MediaPlayer mediaPlayer = new MediaPlayer(sound);\n mediaPlayer.setVolume(App.getVolume());\n mediaPlayer.play();\n }", "public void startPlaying() {\n \t\tif (!isPlaying) {\n \t\t\tisPlaying = true;\n \t\t\tnew PlayThread().start();\n \t\t}\n \t}", "@Override\n public void run() {\n AudioTrack track = new AudioTrack(AudioManager.STREAM_MUSIC, SAMPLE_RATE, AudioFormat.CHANNEL_OUT_MONO,\n AudioFormat.ENCODING_PCM_16BIT, BUF_SIZE, AudioTrack.MODE_STREAM);\n track.play();\n try {\n // Define a socket to receive the audio\n DatagramSocket socket = new DatagramSocket(5000);\n byte[] buf = new byte[BUF_SIZE];\n while(speakers && UDP) {\n // Play back the audio received from packets\n DatagramPacket packet1 = new DatagramPacket(buf, BUF_SIZE);\n socket.receive(packet1);\n Log.d(\"sent\", \"recv\");\n Object[] dataPack = packet.depacketize(packet1.getData());\n if((int) dataPack[0] == 1){\n Log.d(\"check\", \"de-packet\");\n byte[] audio = (byte[]) dataPack[1];\n track.write(audio, 0, audio.length);\n byte[] ack = (byte[]) dataPack[2];\n DatagramPacket packet_ack = new DatagramPacket(ack, ack.length, address, port);\n try {\n socket.send(packet_ack);\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n }\n // Stop playing back and release resources\n socket.disconnect();\n socket.close();\n track.stop();\n track.flush();\n track.release();\n speakers = false;\n return;\n }\n catch(SocketException e) {\n speakers = false;\n }\n catch(IOException e) {\n speakers = false;\n }\n }", "public static void playSound(Player p, Location loc, Sound sound, float pitch, float volume){\n p.playSound(loc, sound, volume, pitch);\n }", "public Playback(AudioInputStream audioStream, AudioFormat af) {\n this.format = af;\n this.audioInputStream = audioStream;\n if (thread == null && audioStream != null) {\n thread = new Thread(this, \"Playback Thread\");\n thread.start();\n }\n }", "public void startSound()\n \n {try\n { \n URL url = this.getClass().getClassLoader().getResource(\"Mario Kart Start 2.wav\");\n \n \n \n \n \n AudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n // Get a sound clip resource.\n startClip = AudioSystem.getClip();\n // Open audio clip and load samples from the audio input stream.\n startClip.open(audioIn); \n \n startClip.start();\n \n \n } \n catch (UnsupportedAudioFileException e)\n {\n e.printStackTrace();\n } \n catch (IOException e) \n {\n e.printStackTrace();\n } \n catch (LineUnavailableException e) \n {\n e.printStackTrace();\n } \n \n }", "void startMusic(AudioTrack newSong);", "private SoundPlayer(String mp3) {\n\t\tfile = new File(mp3);\n\t}", "public void playSound() {\n if (this.mIsSupportVibrator) {\n this.mVibratorEx.setHwVibrator(\"haptic.control.time_scroll\");\n }\n if (this.mSoundPool == null || this.mSoundId == 0 || !this.mSoundLoadFinished) {\n Log.w(TAG, \"SoundPool is not initialized properly!\");\n } else {\n this.mSoundPool.play(this.mSoundId, 1.0f, 1.0f, 0, 0, 1.0f);\n }\n }", "public void run() \n {\n try\n {\n Clip clip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(getClass().getResource(sound));\n clip = AudioSystem.getClip();\n clip.open(inputStream);\n clip.start(); \n } catch (UnsupportedAudioFileException e) {\n \t\t\te.printStackTrace();\n } catch (IOException e) {\n \t\t\te.printStackTrace();\n } catch (LineUnavailableException e) {\n \t\t\te.printStackTrace();\n }\n }", "public void playSound ( Location location , Sound sound , float volume , float pitch ) {\n\t\texecute ( handle -> handle.playSound ( location , sound , volume , pitch ) );\n\t}", "public Sound(Context context) {\r\n\t\tthis.mp = MediaPlayer.create(context, R.raw.baby);\r\n\t\r\n\t}", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public TestWav()\r\n {\r\n super(\"AudioPlayer\");\r\n player = new Playback();\r\n String[] audioFileNames = findFiles(AUDIO_DIR, null);\r\n makeFrame(audioFileNames);\r\n }", "@Override\r\n\t\tpublic void run()\r\n\t\t{\r\n\t\t\tLayeredSound.getInstance().add( sound );\r\n\t\t}", "protected void startResourcesThread() {\n\n\t\t// alive?\n\t\tif (resourcesThread != null && resourcesThread.isAlive())\n\t\t\treturn;\n \n \n\t\tresourcesThread = new Thread(() -> {\n\t\t\ttry {\n\n\t\t\t\t// Detect if the microphone is available\n\t\t\t\twhile (true) {\n\t\t\t\t\tif (AudioSystem.isLineSupported(Port.Info.MICROPHONE)) {\n\t\t\t\t\t\t// logger.log(Level.INFO, \"Microphone is available.\\n\")\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// logger.log(Level.INFO, \"Microphone is not\n\t\t\t\t\t\t// available.\\n\")\n\n\t\t\t\t\t}\n\n\t\t\t\t\t// Sleep some period\n\t\t\t\t\tThread.sleep(350);\n\t\t\t\t}\n\n\t\t\t} catch (InterruptedException ex) {\n\t\t\t\tlogger.log(Level.WARNING, null, ex);\n\t\t\t\tresourcesThread.interrupt();\n\t\t\t}\n\t\t});\n\n\t\t// Start\n\t\tresourcesThread.start();\n \n\t}", "public void onTick(long millisUntilFinished) {\n\n t1.speak(String.valueOf(millisUntilFinished/1000),TextToSpeech.QUEUE_ADD, null);\n while(t1.isSpeaking());\n }", "@Override\n\tprotected void onResume() {\n\t\tsuper.onResume();\n\t\t//Gionee zhangke modify 20151204 for CR01603467 start\n\t\tnew Thread() {\n\t\t\t@Override\n\t\t\tpublic void run() {\n\t\t\t\t//Gionee <GN_BSP_AutoMMI> <chengq> <20170505> modify for ID 129027 begin\n\t\t\t\tString aString = TestUtils.getStreamVoice(\"ToneTest\");\n\t\t\t\tint i = Integer.valueOf(aString).intValue();\n\t\t\t\tDswLog.e(TAG, \"i = \" + i);\n\t\t\t\tif (null != mAudioManager) {\n\t\t\t\t\tint maxVol = mAudioManager.getStreamMaxVolume(AudioManager.STREAM_MUSIC);\n\t\t\t\t\tDswLog.e(TAG, \" set stream = music \");\n\t\t\t\t\tmAudioManager.setStreamVolume(AudioManager.STREAM_MUSIC, maxVol - i, 0);\n\t\t\t\t\tDswLog.e(TAG, \"maxVol = \" + maxVol + \" setStreamVolume = \" + (maxVol - i));\n\t\t\t\t}\n\t\t\t\t//Gionee <GN_BSP_AutoMMI> <chengq> <20170505> modify for ID 129027 end\n\t\t\t\tgenTone();\n\t\t\t\tplaySound();\n\t\t\t}\t\n\t\t}.start();\n\t\t//Gionee zhangke modify 20151204 for CR01603467 end\n\n\t}", "public void startRecording() {\r\n\t\t( new Thread() {\r\n\t\t\tpublic void run() {\r\n\t\t\t\tstart(); // startAudioRecording\r\n\t\t\t}\r\n\t\t} ).start();\r\n\t}", "public void StartPlayingSound(String _MixerName) {\n for (int cnt = 0; cnt < mixerInfo.length; cnt++) {\r\n\r\n // Mixer currentMixer = AudioSystem.getMixer(mixerInfo[cnt]);\r\n // Because this is for a recording application, we only care about audio INPUT so we just\r\n // care if TargetDataLine is supported.\r\n if (mixerInfo[cnt].getName().equals(_MixerName)) {\r\n System.out.println(\"SoundOutputDeviceControl - found target mixer: \" + _MixerName);\r\n\r\n // This may freeze the UI but oh well, we have to wait for the inner thread to stop from the\r\n // previous selection\r\n stopPlay = true;\r\n while (threadEnd == false) {\r\n try {\r\n sleep(100);\r\n } catch (InterruptedException ex) { \r\n }\r\n }\r\n\r\n Mixer currentMixer = AudioSystem.getMixer(mixerInfo[cnt]);\r\n try {\r\n \r\n //DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, af);\r\n //sourceDataLine = (SourceDataLine) currentMixer.getLine(dataLineInfo);\r\n sourceDataLine = (SourceDataLine) currentMixer.getLine(sourceDLInfo);\r\n //sourceDataLine.open(af);\r\n sourceDataLine.open(af, Ns2 * 4);\r\n sourceDataLine.start();\r\n playerThread = new Thread(new PlayThread());\r\n playerThread.setPriority(Thread.MAX_PRIORITY); \r\n playerThread.start();\r\n } catch (LineUnavailableException e) {\r\n System.out.println(\"SoundOutputDeviceControl - StartPlayingSoundOnMixer -\" + e);\r\n }\r\n }\r\n }\r\n }", "public void PauseSound();", "private void playCameraShootSound()\n {\n AudioManager audioManager = (AudioManager) getSystemService(Context.AUDIO_SERVICE);\n int volume = audioManager.getStreamVolume( AudioManager.STREAM_NOTIFICATION);\n if (volume > 0) {\n if (mCameraShootPlayer == null) {\n mCameraShootPlayer = MediaPlayer.create(this, Uri.parse(CAMERA_SOUND_FILE));\n }\n if (mCameraShootPlayer != null) {\n mCameraShootPlayer.start();\n }\n }\n }", "public static void playerRun()\n {\n runSound.playLooped();\n }", "public void continueSound() {\n\t\tclip.start();\n\t}", "private void clickSound() {// this function Plays a sound when a button is clicked.\n\t\tif (mp != null) {\n\t\t\tmp.release();\n\t\t}\n\t\tmp = MediaPlayer.create(getApplicationContext(), R.raw.music2);\n\t\tmp.start();// media player is started\n\t}", "public void run(){\n\t\ttry {\n\t\t\tSystem.out.println(\"Started Playing music successfully\");\n\t\t\tplay();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void playSelectSong() {\n isStart = false;\n if (getCurrentSong() == 0) {\n audioList.get(getCurrentSong()).setSelect(true);\n playListAdapter.notifyItemChanged(getCurrentSong());\n }\n isPauseResume = false;\n if (player != null) {\n player.stopMedia();\n }\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n /*new Handler().postDelayed(new Runnable() {\n @Override\n public void run() {\n if (!isDestroyed()) {\n playAudio(audioList.get(getCurrentSong()).getData());\n }\n }\n }, DELAY_TIME);*/\n }", "public void StartMusic(int music_id);", "public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t //AudioInputStream inputStream = AudioSystem.getAudioInputStream(\n\t\t //Main.class.getResourceAsStream(\"/path/to/sounds/\" + url));\n\t\t //clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "public static void game_sound() {\n\t\tm_player_game.start();\n\t\tm_player_game.setMediaTime(new Time(0));\n\t}", "public void speak(int word) {\n \tlock.acquire();\n \tif (status != s_waitS) {\n \t\twaitingS++;\n \t\t//System.out.println(KThread.currentThread() + \" Speaker slept, state = \" + status);\n \t\tcondSpeak.sleep();\n \t\t//System.out.println(KThread.currentThread() + \" Speaker arrives\");\n \t\twaitingS--;\n \t}\n \telse ;//System.out.println(KThread.currentThread() + \" Speaker arrives without sleep\");\n \tLib.assertTrue(status == s_waitS || status == s_waitSq);\n \t\n \tmsg = word;\n \tif (waitingL > 0) {\n \t\t//System.out.println(KThread.currentThread() + \" Wake up a listener\");\n \t\tcondListen.wake();\n \t\tstatus = s_waitLq;\n \t}\n \telse\n \t\tstatus = s_waitL;\n \t\n \tcondRet.sleep();\n \tLib.assertTrue(status == s_waitR);\n \t\n \t//System.out.println(KThread.currentThread() + \" Speaker returns\");\n \t\n \tif (waitingS > 0) {\n \t//System.out.println(KThread.currentThread() + \" Wake up a speaker\");\n \t\tstatus = s_waitSq;\n \tcondSpeak.wake();\n \t}\n \telse status = s_waitS;\n \tlock.release();\n }", "public void playSound() {\n String path = \"Data\\\\\\\\Acceptance.wav\";\n InputStream success;\n try {\n success = new FileInputStream(new File(path));\n AudioStream audioStream = new AudioStream(success);\n AudioPlayer.player.start(audioStream);\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error playing sounds\");\n }\n }", "private void initiateCall(final String sipAddress, final String dst) {\n\t\ttry {\n\t\t\tSipAudioCall.Listener audioListener = new SipAudioCall.Listener() {\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallEstablished(SipAudioCall call) {\n\n\t\t\t\t\tupdateText(\"Pratar med \", dst);\n\n\t\t\t\t\tstopSounds();\n\t\t\t\t\tcall.startAudio();\n\t\t\t\t\tif (call.isMuted()) {\n\t\t\t\t\t\tcall.toggleMute();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallEnded(SipAudioCall session) {\n\t\t\t\t\tviewToast(\"Samtalet avslutades\");\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void onError(SipAudioCall call, int errorCode, String errorMessage) {\n\t\t\t\t\tviewToast(\"Samtalet bröts\");\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t\t@Override\n\t\t\t\tpublic void onCallBusy(SipAudioCall call) {\n\t\t\t\t\t/*soundPool.load(CallView.this, R.raw.busy, 1);\n\t\t\t\t\tLog.d( \"Ljuduppspelning, upptaget\", \"Ljud inladdat\");\n\t\t\t\t\tsoundPool.setOnLoadCompleteListener(new OnLoadCompleteListener(){\n\t\t\t\t\t\t@Override\n\t\t\t\t\t\tpublic void onLoadComplete(SoundPool soundPool, int soundId, int status) {\n\t\t\t\t\t\t\tif(status == 0){\n\t\t\t\t\t\t\t\tLog.d(\"onLoadComplete\", \"Ready\");\n//\t\t\t\t\t\t\t\t\tfloat volume = audioManager.getStreamVolume(AudioManager.STREAM_VOICE_CALL);\n//\t\t\t\t\t\t\t\t\tfloat maxVolume = audioManager.getStreamMaxVolume(AudioManager.STREAM_VOICE_CALL);\n//\t\t\t\t\t\t\t\t\tLog.d(\"Ringer, volume\", Float.toString(volume));\n//\t\t\t\t\t\t\t\t\tLog.d(\"Ringer, maxVolume\", Float.toString(maxVolume));\n//\t\t\t\t\t\t\t\t\tvolume = volume / maxVolume;\n//\t\t\t\t\t\t\t\t\tLog.d(\"Ringer, VOLYM\", Float.toString(volume));\n//\t\t\t\t\t\t\t\t\tsoundPool.play(soundId, volume, volume, 1, -1, 1);\n\t\t\t\t\t\t\t\tsavedVolume = audioManager.getStreamVolume(AudioManager.STREAM_RING);\n\t\t\t\t\t\t\t\tsoundPool.setVolume(soundId, (float)0.1, (float)0.1);\n\t\t\t\t\t\t\t\tsoundPool.play(soundId, (float)0.1, (float)0.1, 1, 3, (float)1);\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse{\n\t\t\t\t\t\t\t\tLog.d(\"onLoadComplete\", \"Error\");\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\tviewToast(\"Mottagaren är upptagen\");\n\t\t\t\t\tfinish();\n\t\t\t\t}\n\t\t\t};\n\n\t\t\tcall = SipController.manager.makeAudioCall(\n\t\t\t\t\tSipController.me.getUriString(), sipAddress,\n\t\t\t\t\taudioListener, 30);\n\n\t\t} catch (Exception e) {\n\t\t\tLog.i(\"WalkieTalkieActivity/InitiateCall\",\n\t\t\t\t\t\"Error when trying to close manager.\", e);\n\t\t\tif (SipController.me != null) {\n\t\t\t\ttry {\n\t\t\t\t\tSipController.manager.close(SipController.me\n\t\t\t\t\t\t\t.getUriString());\n\t\t\t\t} catch (Exception ee) {\n\t\t\t\t\tLog.i(\"WalkieTalkieActivity/InitiateCall\",\n\t\t\t\t\t\t\t\"Error when trying to close manager.\", ee);\n\t\t\t\t\tee.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (call != null) {\n\t\t\t\tcall.close();\n\t\t\t}\n\t\t}\n\t}", "private void makeNewMusic() {\n File f = music.getFile();\n boolean playing = music.isPlaying();\n music.stop();\n music = new MP3(f);\n if (playing) {\n music.play(nextStartTime);\n }\n }", "public void speak(int word) {\n\t\n\tconditionLock.acquire();\n\t \n\t\twhile(speakerReady == true){\n\t\t\tcondLock.sleep();\n\t\t}\n\t\t//~ else{\n\t\t\tspeakerReady = true;\n\t\t\tdata = word;\n\t\t\n\t\t\tif(listenerReady){\n\t\t\t\n\t\t\t\tdata = word;\n\t\t\t\t\n\t\t\t\t//~ speakerReady = false;\n\t\t\t\t\n\t\t\t\tcondLock.wakeAll();\n\t\t\t}\n\t\t\telse{\n\t\t\t\tcondLock.sleep();\n\t\t\t\t\n\t\t\t\tdata = word;\n\t\t\t\t//~ speakerReady = false;\n\t\t\t}\n\t\t//~ }\n\t\t\n\t \n\tconditionLock.release();\n\t \n\t\n }", "public void playSoundSuccess() {\n\t\tsucceededSound.play();\n\t}", "public void play() {\n\t\tint focusRequestResult = mAudioManager.requestAudioFocus(mOuterEventsListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (PrefManager.isIgnoreAudioFocus()\n\t\t\t\t|| focusRequestResult == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\tinternalPlay();\n\t\t} else {\n\t\t\terror(Error.AUDIO_FOCUS_ERROR);\n\t\t}\n\t}" ]
[ "0.6875636", "0.6501754", "0.63088095", "0.6287378", "0.6228696", "0.6060401", "0.593483", "0.59152275", "0.58953255", "0.58842176", "0.5878008", "0.5857583", "0.5824885", "0.57477325", "0.57425964", "0.5738692", "0.57234186", "0.57131875", "0.56902564", "0.56850564", "0.5672294", "0.5667708", "0.56634843", "0.5659989", "0.56524587", "0.56400436", "0.5635743", "0.5633078", "0.56199", "0.5596232", "0.5594662", "0.5588836", "0.55825704", "0.55825704", "0.55683833", "0.5542483", "0.5537079", "0.5526367", "0.5524441", "0.5520201", "0.55193734", "0.5517178", "0.5514881", "0.55113226", "0.549117", "0.5486388", "0.5485667", "0.5479437", "0.5478904", "0.54730624", "0.5471741", "0.54702234", "0.54625946", "0.54616576", "0.5459872", "0.5459629", "0.54427177", "0.54361904", "0.5426232", "0.5415429", "0.5412233", "0.54120713", "0.54054046", "0.54053676", "0.5404949", "0.53987586", "0.53979003", "0.5394343", "0.538982", "0.53877324", "0.53868854", "0.53850275", "0.53773993", "0.53674483", "0.536555", "0.5346191", "0.53438264", "0.53430605", "0.5337487", "0.53374827", "0.5335489", "0.5330975", "0.53268534", "0.5316563", "0.530766", "0.5300123", "0.52990717", "0.52969116", "0.52932435", "0.5289367", "0.5288484", "0.5281596", "0.5281244", "0.5280968", "0.5277526", "0.52765006", "0.5272138", "0.52665704", "0.5264399", "0.52595854" ]
0.70075786
0
Starts this Thread and either exits quickly (if there are already sounds playing), or lasts indefinitely, playing each sound passed to it until no other sound is left to play, at which point it terminates normally.
@Override public void run() { LayeredSound.getInstance().add( sound ); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void run() {\n if(musicEnabled) {\n playSoundtrack();\n while (running) {\n if(!stack.isEmpty()) {\n Sound sound = stack.pop();\n sound.play(sound.loadInputStream());\n }\n }\n }\n }", "@Override\r\n\t\tpublic void run() {\n\t\t\tsuper.run();\r\n\t\t\twhile(bPlayAudioQueue){\r\n\t\t\t\tplayFromAudioQueue();\r\n\t\t\t}\r\n\t\t}", "public synchronized void start() {\n if(!running) {\n this.soundThread = new Thread(this, \"TankGameSound\");\n this.soundThread.start();\n this.running = true;\n }\n }", "@Override\r\n public void run() {\n this.running = true;\r\n\r\n // start the execution cycle\r\n while (running) {\r\n if (!eventQ.isEmpty()) {\r\n while (!eventQ.isEmpty() && running) {\r\n EnvironmentEvent envEvent = eventQ.poll();\r\n if (envEvent != null) {\r\n playSound(envEvent);\r\n }\r\n }\r\n } else {\r\n try {\r\n Thread.sleep(10);\r\n Thread.yield();\r\n } catch (InterruptedException e) {\r\n e.printStackTrace();\r\n }\r\n }\r\n }\r\n }", "@Override\n public void run() {\n // TODO Auto-generated method stub\n running = true;\n AudioFile song = musicFiles.get(currentSongIndex);\n song.play();\n while(running){\n if(!song.isPlaying()){\n currentSongIndex++;\n if(currentSongIndex >= musicFiles.size()){\n currentSongIndex = 0;\n }\n song = musicFiles.get(currentSongIndex);\n song.play();\n }\n try{\n Thread.sleep(1);\n }\n catch (InterruptedException e){\n e.printStackTrace();\n } \n }\n }", "public static void playerRun()\n {\n runSound.playLooped();\n }", "public void keepLooping() {\n\t\tif(!clip.isActive()) {\n\t\t\tstartSound();\n\t\t}\n\t}", "protected void startNextSound() {\n\t\tsoundIndex = (soundIndex < audioFiles.length - 1) ? soundIndex + 1 : 0;\t\n\t\tString nextSoundId = audioFiles[soundIndex];\n\t\tstartPlayer(nextSoundId);\n\t}", "public void continueSound() {\n\t\tclip.start();\n\t}", "@Override\n public void run() {\n while (true) {\n try {\n String text = broadcastTexts.take();\n for (int i = 0; i < 2; i++) {\n switch (text.substring(0, 1).hashCode()) {\n case 65:\n createMediaPlayForSound(R.raw.a).start();\n break;\n case 66:\n createMediaPlayForSound(R.raw.b).start();\n break;\n case 67:\n createMediaPlayForSound(R.raw.c).start();\n break;\n case 68:\n createMediaPlayForSound(R.raw.d).start();\n break;\n case 69:\n createMediaPlayForSound(R.raw.e).start();\n break;\n case 70:\n createMediaPlayForSound(R.raw.f).start();\n break;\n case 71:\n createMediaPlayForSound(R.raw.g).start();\n break;\n case 72:\n createMediaPlayForSound(R.raw.h).start();\n break;\n case 73:\n createMediaPlayForSound(R.raw.i).start();\n break;\n default:\n break;\n }\n Thread.sleep(300);\n for (char b : text.substring(1, text.length()).toCharArray()) {\n switch (b) {\n case 48:\n createMediaPlayForSound(R.raw.n0).start();\n break;\n case 49:\n createMediaPlayForSound(R.raw.n1).start();\n break;\n case 50:\n createMediaPlayForSound(R.raw.n2).start();\n break;\n case 51:\n createMediaPlayForSound(R.raw.n3).start();\n break;\n case 52:\n createMediaPlayForSound(R.raw.n4).start();\n break;\n case 53:\n createMediaPlayForSound(R.raw.n5).start();\n break;\n case 54:\n createMediaPlayForSound(R.raw.n6).start();\n break;\n case 55:\n createMediaPlayForSound(R.raw.n7).start();\n break;\n case 56:\n createMediaPlayForSound(R.raw.n8).start();\n break;\n case 57:\n createMediaPlayForSound(R.raw.n9).start();\n break;\n }\n Thread.sleep(300);\n }\n createMediaPlayForSound(R.raw.end).start();\n Thread.sleep(1000);\n }\n } catch (Exception e) {\n // TODO Auto-generated catch block\n e.printStackTrace();\n }\n }\n }", "void playSound() {\n Thread thread = new Thread(new Runnable() {\n @Override\n public void run() {\n soundPlaying = true;\n audioTrack.play();\n while (soundPlaying) {\n genWhiteNoise();\n audioTrack.write(noise, 0, SAMPLE_COUNT);\n }\n\n }\n });\n thread.start();\n }", "public void playOnce() {\n mStopAtLoopEnd = true;\n mStartTimeMillis = 0;\n mCurrentLoopNumber = 0;\n cancelCallback();\n postCallback();\n }", "public void play() {\n\t\tline.start();\n\t\tloop = false;\n\t\tnumLoops = 0;\n\t\tplay = true;\n\t\t// will wake up our data processing thread.\n\t\t// iothread.interrupt();\n\t}", "public void resumeAllSounds() {\n/* 490 */ for (String s : this.pausedChannels) {\n/* */ \n/* 492 */ LOGGER.debug(LOG_MARKER, \"Resuming channel {}\", s);\n/* 493 */ this.sndSystem.play(s);\n/* */ } \n/* */ \n/* 496 */ this.pausedChannels.clear();\n/* */ }", "@Override\r\n\tpublic void run() {\n\t\tInputStream in;\r\n\t\tAudioStream as;\r\n\r\n\t\ttry {\r\n\t\r\n\t\t\tin = new FileInputStream(new File(\"heart123.wav\"));\r\n\t\t\tas = new AudioStream(in);\r\n\r\n\t\t\t\tSystem.out.println(\"thread started\");\r\n\t\t\t\tAudioPlayer.player.start(as);\r\n\t\t\t\t\r\n\r\n\t\t\t//AudioPlayer.player.sleep(1000);\r\n\t\t\t//AudioPlayer.player.stop(as);\r\n\r\n\t\t} catch (Exception e) {\r\n\t\t\t// TODO Auto-generated catch block\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\t\r\n\t}", "private void play() {\n\t\tlog.finest(\"Playing sound\");\n\t\ttone.trigger();\n\t}", "protected void playSounds()\n\t{\n\t\tint x;\n\t\ttry\n\t\t{\n\t\t\tswitch(MySurfaceView.vicCount)\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\tmBackgroundSound.execute();\n\t\t\t\tmBackgroundSound5.foo();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\tif(mega==false)\n\t\t\t\t{\n\t\t\t\t\tmega=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levemega);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound.getTime();\n\t\t\t\tmBackgroundSound.foo();\n\t\t\t\tmBackgroundSound2.execute();\n\t\t\t\tmBackgroundSound2.fastF(x);\n\t\t\t\tbreak;\n\t\t\tcase 2:\n\t\t\t\tif(superr==false)\n\t\t\t\t{\n\t\t\t\t\tsuperr=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelsuper);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound2.getTime();\n\t\t\t\tmBackgroundSound2.foo();\n\t\t\t\tmBackgroundSound3.execute();\n\t\t\t\tmBackgroundSound3.fastF(x);\n\t\t\t\tbreak;\n\t\t\tcase 3:\n\t\t\t\tif(ultra==false)\n\t\t\t\t{\n\t\t\t\t\tultra=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelultra);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound3.getTime();\n\t\t\t\tmBackgroundSound3.foo();\n\t\t\t\tmBackgroundSound4.execute();\n\t\t\t\tmBackgroundSound4.fastF(x);\n\t\t\t\tbreak;\n\t\t\tcase 4:\n\t\t\t\tif(extra==false)\n\t\t\t\t{\n\t\t\t\t\textra=true;\n\t\t\t\t\tlevelplayer = MediaPlayer.create(MainActivity.this, R.raw.levelextra);\n\t\t\t\t\tlevelplayer.setLooping(false);\n\t\t\t\t\tlevelplayer.start();\n\t\t\t\t}\n\t\t\t\tx = mBackgroundSound4.getTime();\n\t\t\t\tmBackgroundSound4.foo();\n\t\t\t\tmBackgroundSound5.execute();\n\t\t\t\tmBackgroundSound5.fastF(x);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tcatch (IllegalStateException ise)\n\t\t{\n\n\t\t}\n\t}", "public void run()\n\t{\t\t\t\t\n\t\tif (player!=null)\n\t\t{\n\t\t\ttry\n\t\t\t{\n\t\t\t\tplayer.play();\t\t\t\t\n\t\t\t}\n\t\t\tcatch (JavaLayerException ex)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Problem playing audio: \"+ex);\n\t\t\t}\t\t\t\n\t\t}\n\t}", "public void StartPlayingSound(String _MixerName) {\n for (int cnt = 0; cnt < mixerInfo.length; cnt++) {\r\n\r\n // Mixer currentMixer = AudioSystem.getMixer(mixerInfo[cnt]);\r\n // Because this is for a recording application, we only care about audio INPUT so we just\r\n // care if TargetDataLine is supported.\r\n if (mixerInfo[cnt].getName().equals(_MixerName)) {\r\n System.out.println(\"SoundOutputDeviceControl - found target mixer: \" + _MixerName);\r\n\r\n // This may freeze the UI but oh well, we have to wait for the inner thread to stop from the\r\n // previous selection\r\n stopPlay = true;\r\n while (threadEnd == false) {\r\n try {\r\n sleep(100);\r\n } catch (InterruptedException ex) { \r\n }\r\n }\r\n\r\n Mixer currentMixer = AudioSystem.getMixer(mixerInfo[cnt]);\r\n try {\r\n \r\n //DataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, af);\r\n //sourceDataLine = (SourceDataLine) currentMixer.getLine(dataLineInfo);\r\n sourceDataLine = (SourceDataLine) currentMixer.getLine(sourceDLInfo);\r\n //sourceDataLine.open(af);\r\n sourceDataLine.open(af, Ns2 * 4);\r\n sourceDataLine.start();\r\n playerThread = new Thread(new PlayThread());\r\n playerThread.setPriority(Thread.MAX_PRIORITY); \r\n playerThread.start();\r\n } catch (LineUnavailableException e) {\r\n System.out.println(\"SoundOutputDeviceControl - StartPlayingSoundOnMixer -\" + e);\r\n }\r\n }\r\n }\r\n }", "@Override\n\t\tpublic void run() {\n\t\t\tgenTone();\n\t\t\tplaySound();\n\t\t}", "public void run() \n {\n try\n {\n Clip clip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(getClass().getResource(sound));\n clip = AudioSystem.getClip();\n clip.open(inputStream);\n clip.start(); \n } catch (UnsupportedAudioFileException e) {\n \t\t\te.printStackTrace();\n } catch (IOException e) {\n \t\t\te.printStackTrace();\n } catch (LineUnavailableException e) {\n \t\t\te.printStackTrace();\n }\n }", "public void run() {\n\t\t try {\n\t\t Clip clip = AudioSystem.getClip();\n\t\t //AudioInputStream inputStream = AudioSystem.getAudioInputStream(\n\t\t //Main.class.getResourceAsStream(\"/path/to/sounds/\" + url));\n\t\t //clip.open(inputStream);\n\t\t clip.start(); \n\t\t } catch (Exception e) {\n\t\t System.err.println(e.getMessage());\n\t\t }\n\t\t }", "public void run(){\n\t\ttry {\n\t\t\tSystem.out.println(\"Started Playing music successfully\");\n\t\t\tplay();\n\t\t} catch (InterruptedException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "protected static void play() {\n\t\tif (curMIDI != null && !playing){\n\t\t\tPlayer.play(curMIDI,microseconds,cleaned);\n\t\t\tplaying = true;\n\t\t}\n\t\tif (sim != null) {\n\t\t\tif(microseconds == 0){\n\t\t\t\tsim.stop();\n\t\t\t}\n\t\t\t\tsim.play();\n\t\t}\n\t}", "public static void playInternal( LayeredSound.SoundClip s )\r\n\t{\r\n\t\tif ( Settings.isSoundOn() )\r\n\t\t\tnew SpeakerThread( s ).start();\r\n\t}", "public void run() {\n\t\tint bytesRead, bytesWritten;\n\t\twhile (true) {\n\t\t\ttry {\n\t\t\t\tif ((currentFile == null) || stopRequested || !playing) {\n\t\t\t\t\tsynchronized(this) {\n\t\t\t\t\t\tplaying = false;\n\t\t\t\t\t\twait();\n\t\t\t\t\t\tplaying = true;\n\t\t\t\t\t\tstopRequested = false;\n\t\t\t\t\t}\n\t\t\t\t\tif (currentFile == null)\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\tif (currentPosition == currentFile.length)\t// necessary???\n\t\t\t\t\t\tsetPosition(0);\n\t\t\t\t}\n\t\t\t\tif (audioOut != null) {\n\t\t\t\t\taudioOut.stop();\n\t\t\t\t\taudioOut.flush();\n\t\t\t\t}\n\t\t\t\tif ((audioOut == null) ||\n\t\t\t\t\t\t\t!currentFile.format.matches(audioOut.getFormat())) {\n\t\t\t\t\taudioOut= AudioSystem.getSourceDataLine(currentFile.format);\n\t\t\t\t\taudioOut.open(currentFile.format, defaultOutputBufferSize);\n\t\t\t\t\toutputBufferSize = audioOut.getBufferSize();\n\t\t\t\t}\n\t\t\t\tinitBeats();\n\t\t\t\tboolean doDrain = false;\n\t\t\t\tstartNanoTime = System.nanoTime();\n\t\t\t\tstartTime = currentPosition / currentFile.frameRate / currentFile.frameSize;\n\t\t\t\taudioOut.start();\n\t\t\t\tif (debug)\n\t\t\t\t\tSystem.err.println(\"Entering play() loop\");\n\t\t\t\twhile (true) {\t\t\t// PLAY loop\n\t\t\t\t\tsynchronized(this) {\n\t\t\t\t\t\tif ((requestedPosition < 0) && !stopRequested)\n\t\t\t\t\t\t\tbytesRead = currentFile.audioIn.read(readBuffer);\n\t\t\t\t\t\telse if (stopRequested ||\n\t\t\t\t\t\t\t\t\t((requestedPosition >= 0) &&\n\t\t\t\t\t\t\t\t\t\t(requestedFile != null) &&\n\t\t\t\t\t\t\t\t\t\t!currentFile.format.matches(\n\t\t\t\t\t\t\t\t\t\t\trequestedFile.format))) {\n\t\t\t\t\t\t\tif (doDrain)\n\t\t\t\t\t\t\t\taudioOut.drain();\n\t\t\t\t\t\t\taudioOut.stop();\n\t\t\t\t\t\t\tif (requestedPosition >= 0) {\n\t\t\t\t\t\t\t\tsetPosition(requestedPosition);\n\t\t\t\t\t\t\t\trequestedPosition = -1;\n\t\t\t\t\t\t\t} else if (!doDrain)\n\t\t\t\t\t\t\t\tsetPosition((int)(getCurrentTime() * currentFile.frameRate) *\n\t\t\t\t\t\t\t\t\t\t\tcurrentFile.frameSize);\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t\tsetPosition(currentPosition);\t// for scrollTo()\n\t\t\t\t\t\t\taudioOut.flush();\n\t\t\t\t\t\t\tdoDrain = false;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t} else {\t// requestedPosition >= 0 && format matches\n\t\t\t\t\t\t\tbytesRead = currentFile.audioIn.read(readBuffer);\n\t\t\t\t\t\t\tsetPosition(requestedPosition);\n\t\t\t\t\t\t\trequestedPosition = -1;\n\t\t\t\t\t\t\tif (bytesRead == readBuffer.length) {\n\t\t\t\t\t\t\t\tint read = currentFile.audioIn.read(readBuffer2);\n\t\t\t\t\t\t\t\tif (read == bytesRead) {\t// linear crossfade\n\t\t\t\t\t\t\t\t\tint sample, sample2;\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < read; i += 2) {\n\t\t\t\t\t\t\t\t\t\tif (currentFile.format.isBigEndian()) {\n\t\t\t\t\t\t\t\t\t\t\tsample = (readBuffer[i+1] & 0xff) |\n\t\t\t\t\t\t\t\t\t\t\t\t\t (readBuffer[i] << 8);\n\t\t\t\t\t\t\t\t\t\t\tsample2= (readBuffer2[i+1] & 0xff) |\n\t\t\t\t\t\t\t\t\t\t\t\t\t (readBuffer2[i] << 8);\n\t\t\t\t\t\t\t\t\t\t\tsample = ((read-i) * sample +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti * sample2) / read;\n\t\t\t\t\t\t\t\t\t\t\treadBuffer[i] = (byte)(sample >> 8);\n\t\t\t\t\t\t\t\t\t\t\treadBuffer[i+1] = (byte)sample;\n\t\t\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\t\t\tsample = (readBuffer[i] & 0xff) |\n\t\t\t\t\t\t\t\t\t\t\t\t\t (readBuffer[i+1] << 8);\n\t\t\t\t\t\t\t\t\t\t\tsample2 = (readBuffer2[i] & 0xff) |\n\t\t\t\t\t\t\t\t\t\t\t\t\t (readBuffer2[i+1] << 8);\n\t\t\t\t\t\t\t\t\t\t\tsample = ((read-i) * sample +\n\t\t\t\t\t\t\t\t\t\t\t\t\t\ti * sample2) / read;\n\t\t\t\t\t\t\t\t\t\t\treadBuffer[i+1] = (byte)(sample>>8);\n\t\t\t\t\t\t\t\t\t\t\treadBuffer[i] = (byte)sample;\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tbytesRead = read;\n\t\t\t\t\t\t\t\t\tfor (int i = 0; i < read; i++)\n\t\t\t\t\t\t\t\t\t\treadBuffer[i] = readBuffer2[i];\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t} else\n\t\t\t\t\t\t\t\tbytesRead = currentFile.audioIn.read(readBuffer);\n\t\t\t\t\t\t}\n\t\t\t\t\t} // synchronized\n\t\t\t\t\tif ((endPosition >= 0) && (currentPosition + bytesRead > endPosition))\n\t\t\t\t\t\tbytesRead = (int) (endPosition - currentPosition);\n\t\t\t\t\tif (!playAudio)\n\t\t\t\t\t\tfor (int i = 0; i < bytesRead; i++)\n\t\t\t\t\t\t\treadBuffer[i] = 0;\n\t\t\t\t\tif (playBeats)\n\t\t\t\t\t\taddBeats(readBuffer, bytesRead);\n\t\t\t\t\tbytesWritten = 0;\n\t\t\t\t\tif (bytesRead > 0)\n\t\t\t\t\t\tbytesWritten = audioOut.write(readBuffer, 0,bytesRead);\n\t\t\t\t\tif (bytesWritten > 0) {\n\t\t\t\t\t\tcurrentPosition += bytesWritten;\n\t\t\t\t\t\tgui.displayPanel.scrollTo(getCurrentTime(), true);\n\t\t\t\t\t}\n\t\t\t\t\tif ((endPosition >= 0) && (currentPosition >= endPosition)) {\n\t\t\t\t\t\tstopRequested = true;\n\t\t\t\t\t\tdoDrain = true;\n\t\t\t\t\t} else if (bytesWritten < readBufferSize) {\n\t\t\t\t\t\tif (currentPosition != currentFile.length)\n\t\t\t\t\t\t\tSystem.err.println(\"read error: unexpected EOF\");\n\t\t\t\t\t\tstopRequested = true;\n\t\t\t\t\t\tdoDrain = true;\n\t\t\t\t\t}\n\t\t\t\t} // play loop\n\t\t\t} catch (InterruptedException e) {\n\t\t\t\tplaying = false;\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (LineUnavailableException e) {\n\t\t\t\tplaying = false;\n\t\t\t\taudioOut = null;\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IOException e) {\n\t\t\t\tplaying = false;\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (Exception e) {\t\t// catchall e.g. for changing instr during playing etc.\n\t\t\t\tplaying = false;\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} // process request loop\n\t}", "private void play()\n {\n if(AudioDetector.getInstance().isNoAudio())\n {\n return;\n }\n\n stop();\n musicPlayer.play();\n }", "public void startPlaying() {\n \t\tif (!isPlaying) {\n \t\t\tisPlaying = true;\n \t\t\tnew PlayThread().start();\n \t\t}\n \t}", "public void playback() {\n\t\ttry {\n\t\t\tplaySound.load(audioFileName, currFrame);\n\t\t} catch (UnsupportedAudioFileException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (IOException e1) {\n\t\t\te1.printStackTrace();\n\t\t} catch (LineUnavailableException e1) {\n\t\t\te1.printStackTrace();\n\t\t}\n\t\tfastForward = false;\n\t\tsoundThread = null;\n\t\tsoundThread = new Thread(new sound());\n\t\tsoundThread.start();\n\t\tvideoThread = null;\n\t\tvideoThread = new Thread(new video());\n\t\tvideoThread.start();\n\t}", "public void loop(){\n\t\t\n\t\tclip.loop(Clip.LOOP_CONTINUOUSLY);\n\t\tplay();\n\t}", "public synchronized void playAbruptLoop(String path){\r\n if(currentLoop0){\r\n if(backgroundMusicLoop0!=null) backgroundMusicLoop0.stopClip();\r\n currentLoop0 = false;\r\n backgroundMusicLoop1 = new MusicThread(path, currentLoop0);\r\n backgroundMusicLoop1.start();\r\n }else{\r\n if(backgroundMusicLoop1!=null) backgroundMusicLoop1.stopClip();\r\n currentLoop0 = true;\r\n backgroundMusicLoop0 = new MusicThread(path, currentLoop0);\r\n backgroundMusicLoop0.start();\r\n }\r\n }", "public static void startMusic()\n\t{\n\t\tmusic.loop();\n\t}", "protected void playS()\n\t\t{\n\t\t\tplayer.start();\n\t\t}", "private void playSound() {\n\t\tif (controllerVars.isLoaded() && !controllerVars.isPlays()) {\n\t\t\tcontrollerVars.getSoundPool().play(controllerVars.getSoundID(), controllerVars.getVolume(), controllerVars.getVolume(), 1, 0, 1f);\n\t\t\tcontrollerVars.COUNTER++;\n\t\t\t//Toast.makeText(act, \"Played sound\", Toast.LENGTH_SHORT).show();optional Playing message \n\t\t\tcontrollerVars.setPlays(true);\n\t\t\tonComplete(controllerVars.getMediaPlayer().getDuration());\n\t\t}\n\t\t//controllerVars.getMediaPlayer().start();\n\t\t//controllerVars.setPlays(true);\n\t}", "public void play() {\n\t\tplay(true, true);\n\t}", "public void play() {\n\t\tif(hasAudioLoaded()) {\n\t\t\tcurrentClip.start();\n\t\t\tisPlaying = true;\n\t\t}\n\t}", "public final void play() {\n\t\tinitialize();\n\t\tstartPlay();\n\t\tendPlay();\n\t}", "public void run()\r\n\t{\r\n\t\t// Audio Loop\r\n\t\ttry \r\n\t\t{\r\n\t\t\tp.realize();\r\n\t \r\n\t \t// Create record control for player\r\n\t \tRecordControl rc = (RecordControl)p.getControl(\"RecordControl\");\r\n\t \t\r\n\t \t// Create file to write to\r\n\t \tByteArrayOutputStream output = new ByteArrayOutputStream();\r\n\r\n\t \t// Configure record stream destination\r\n\t \trc.setRecordStream(output);\r\n\t \tp.start();\r\n\t \t\r\n\t \twhile(!doStop)\r\n\t \t{\r\n\t\t \trc.setRecordStream(output);\r\n\t\t \trc.startRecord();\r\n\t\t \t\r\n\t\t \t// sleep 1 milisecond\r\n\t \t\tThread.sleep(1);\r\n\t \t\t\r\n\t \t\t// commit file\r\n\t\t \t\trc.commit();\r\n\t\t \t \trc.stopRecord();\r\n\t\t \t \t\r\n\t\t \t \t\r\n\t\t \t \t\r\n\t\t \t \t\r\n\t\t \t\tbyte[] recordedSoundArray = output.toByteArray();\r\n\t\t \t\tif(recordedSoundArray.length>44){\r\n\t\t\t \t\r\n\t\t\t\t // temporary array for stripped sound bytes\r\n\t\t\t\t byte soundonly[] = new byte[recordedSoundArray.length-44];\r\n\t\t\t\t \r\n\t\t\t\t // strip file header\r\n\t\t\t\t for(int i =0; i<soundonly.length; i++){\r\n\t\t\t\t \tsoundonly[i]=(byte)(recordedSoundArray[i+44]-floor.getLevel());\r\n\t\t\t\t }\r\n \r\n\t\t\t\t // update stream array in graph\r\n\t\t\t \tg.updateStreamData(soundonly);\r\n\t\t\t \t\r\n\t\t\t \t// set current display on graph\r\n\t\t\t \t//display.setCurrent(this);\r\n\t\t\t \t\r\n\t\t\t \t// update graph plot\r\n\t\t\t\t g.update();\r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t \r\n\t\t\t\t // warn if threshold reached\r\n\t\t\t \tif(AAnalyzer.samplesAboveThreshold(soundonly, m_alertThreshold)>(soundonly.length-50)/2*1/10){\r\n\t\t\t \t\t\r\n\t\t\t \t\tdouble loudestFrequency = g.getLoudestFrequency();\r\n\t\t\t \t\r\n\t\t\t \t\t// Scan through the match candidates and alert on a match\r\n\t\t\t \t\tboolean foundSpecificMatch = false;\r\n\t\t\t \t\tfor(int j = 0; j < m_sounds.length; j++)\r\n\t\t\t \t\t{\r\n\t\t\t \t\t\tif(m_sounds[j].checkMatch(loudestFrequency))\r\n\t\t\t \t\t\t{\r\n\t\t\t \t\t\t\tfoundSpecificMatch = true;\r\n\t\t\t \t\t\t}\r\n\t\t\t \t\t}\r\n\t\t\t \t\t\r\n\t\t\t \t\tif(!foundSpecificMatch && loudestFrequency>100){\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\td.vibrate(2000);\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\t// Do a popup\r\n\t\t\t \t\t\tAlert curAlert = new Alert(\"Sound detected\", \"Unknown sound - \" + Double.toString(loudestFrequency), null, AlertType.ALARM);\r\n\t\t\t \t\t\tcurAlert.setTimeout(3000);\r\n\t\t\t \t\t\td.setCurrent(curAlert, d.getCurrent());\r\n\t\t\t \t\t\t\r\n\t\t\t \t\t\tThread.sleep(curAlert.getTimeout()+200);\r\n\t\t\t \t\t\tSystem.out.println(\"frequency hit: \"+ loudestFrequency);\r\n\t\t\t \t\t}\r\n\t\t\t \t}\r\n\t\t\t }\r\n\t\t \t\telse{\r\n\t\t \t\t}\r\n\t\t \toutput.reset();\r\n\t \t}\r\n\t \t\r\n\t \t// close streams\r\n\t \trc.stopRecord();\r\n\t \t\tp.stop();\r\n\t \t\tp.close();\r\n\t\t}\r\n\t\tcatch(Exception e)\r\n\t\t{\r\n\t\t\tSystem.out.println(e.toString());\r\n\t\t}\r\n\t}", "public void startSound() {\n\t\ttry {\n\t\t\t// Open an audio input stream.\n\t\t\tURL url = this.getClass().getResource(\"/\"+wavMusicFile);\n\t\t\t//System.out.println(\"url: \" + url);\n\t\t\tAudioInputStream audioIn = AudioSystem.getAudioInputStream(url);\n\t\t\t// Get a sound clip resource.\n\t\t\tclip = AudioSystem.getClip();\n\t\t\t// Open audio clip and load samples from the audio input stream.\n\t\t\tclip.open(audioIn);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void playLooped()\n {\n audioClip.loop(Clip.LOOP_CONTINUOUSLY);\n play();\n }", "public void start()\n\t{\n\t\tString name = getAudioFileName();\n\t\ttry\n\t\t{\t\t\t\n\t\t\tInputStream in = getAudioStream();\n\t\t\tAudioDevice dev = getAudioDevice();\n\t\t\tplay(in, dev);\n\t\t}\n\t\tcatch (JavaLayerException ex)\n\t\t{\n\t\t\tsynchronized (System.err)\n\t\t\t{\n\t\t\t\tSystem.err.println(\"Unable to play \"+name);\n\t\t\t\tex.printStackTrace(System.err);\n\t\t\t}\n\t\t}\n\t}", "public void play() {\n\t\tfor (int i = 0; i < this.songList.size() - 1; i++) {\n\t\t\tthis.songList.get(i).play();\n\t\t}\n\t}", "public void playMusic() {\n\t\tthis.music.start();\n\t}", "public static void startMusic()\n\t{\n\t\tif (music == null)\n\t\t{\n\t\t\tloadMusic();\n\t\t\tif (music.size() < 2)\n\t\t\t{\n\t\t\t\tthrow new GameLogicException(\"At least two songs must be specified.\");\n\t\t\t}\n\t\t}\n\t\t\n\t\tcurrentMusicFile = 0;\n\t\tmusic.get(currentMusicFile).setVolume(musicVolume / 100.f);\n\t\tmusic.get(currentMusicFile).play();\n\t\tmusic.get(currentMusicFile).setOnCompletionListener(musicOnCompletionListener);\n\t}", "public void initializeSounds() {\r\n\t\ttry {\r\n\t\t\tsound a = new sound();\r\n\r\n\t\t\t// Fire sound effect\r\n\t\t\tclipFire = a.getSound();\r\n\t\t\tstreamFire = a.getStream();\r\n\r\n\t\t\t// Shooting sound effect\r\n\t\t\tclipShoot = a.getSound2();\r\n\t\t\tstreamShoot = a.getStream2();\r\n\r\n\t\t\t// Sound when an alien is destroyed\r\n\t\t\tclipAlienDestroyed = a.getSoundAlienDestroyed();\r\n\t\t\tstreamAlienDestroyed = a.getStreamAlienDestroyed();\r\n\r\n\t\t\t// Sound when a ship has been destroyed\r\n\t\t\tclipShip = a.getSoundShip();\r\n\t\t\tstreamShip = a.getStreamShip();\r\n\r\n\t\t\t// Sound when an asteroid has been destroyed\r\n\t\t\tclipAsteroid = a.getSoundAsteroid();\r\n\t\t\tstreamAsteroid = a.getStreamAsteroid();\r\n\r\n\t\t\t// Sound when AlienShip appears\r\n\t\t\tclipAlienShip = a.getClipAlienShip();\r\n\t\t\tstreamAlienShip = a.getStreamAlienShip();\r\n\r\n\t\t\t// Open the sound clips\r\n\t\t\tclipFire.open(streamFire);\r\n\t\t\tclipShoot.open(streamShoot);\r\n\t\t\tclipAlienDestroyed.open(streamAlienDestroyed);\r\n\t\t\tclipShip.open(streamShip);\r\n\t\t\tclipAsteroid.open(streamAsteroid);\r\n\t\t\tclipAlienShip.open(streamAlienShip);\r\n\t\t} catch (NullPointerException e) {\r\n\t\t} catch (LineUnavailableException f) {\r\n\t\t} catch (UnsupportedAudioFileException f) {\r\n\t\t} catch (IOException f) {\r\n\t\t}\r\n\r\n\t}", "public void loopSound(boolean commence) {\n if ( commence ) {\n clip.setFramePosition(0);\n clip.loop( Clip.LOOP_CONTINUOUSLY );\n } else {\n clip.stop();\n }\n }", "public void play() { \r\n if (midi) \r\n sequencer.start(); \r\n else \r\n clip.start(); \r\n timer.start(); \r\n play.setText(\"Stop\"); \r\n playing = true; \r\n }", "@Override\n public synchronized void start() {\n pauseLoop = false;\n if (running) {\n synchronized (unchecked) {\n unchecked.notify();\n }\n } else {\n running = true;\n super.start();\n }\n }", "private void initSounds() {\n\n\n\t}", "public void loop() {\n\t\tmusic.loop();\n\t\tsyncPosition();\n\t}", "public void playAudio() {\n\t\tmusic[currentSong].stop();\n\t\tcurrentSong++;\n\t\tcurrentSong %= music.length;\n\t\tmusic[currentSong].play();\n\t}", "public void play() {\n\t\ttry {\n\t\t\taudioInput = AudioSystem.getAudioInputStream(this.music);\n\t\t\tclip.open(audioInput);\n\t\t\tclip.start();\n\t\t} catch (UnsupportedAudioFileException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (LineUnavailableException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public void play() {\n\t\tint requestStatus = mAudioManager.requestAudioFocus(\n\t\t\t\tmAudioFocusListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (DEBUG)\n\t\t\tLog.d(TAG, \"Starting playback: audio focus request status = \"\n\t\t\t\t\t+ requestStatus);\n\n\t\tif (requestStatus != AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\treturn;\n\t\t}\n\n\t\tmAudioManager.registerMediaButtonEventReceiver(new ComponentName(this\n\t\t\t\t.getPackageName(), MediaButtonIntentReceiver.class.getName()));\n\n\t\tif (mPlayer.isInitialized()) {\n\t\t\t// if we are at the end of the song, go to the next song first\n\t\t\tlong duration = mPlayer.duration();\n\t\t\tif (mRepeatMode != REPEAT_CURRENT && duration > 2000\n\t\t\t\t\t&& mPlayer.position() >= duration - 2000) {\n\t\t\t\tgotoNext(true);\n\t\t\t}\n\n\t\t\tmPlayer.start();\n\t\t\t// make sure we fade in, in case a previous fadein was stopped\n\t\t\t// because\n\t\t\t// of another focus loss\n\t\t\tmMediaplayerHandler.removeMessages(FADEDOWN);\n\t\t\tmMediaplayerHandler.sendEmptyMessage(FADEUP);\n\n\t\t\tif (!mIsSupposedToBePlaying) {\n\t\t\t\tmIsSupposedToBePlaying = true;\n\t\t\t\tnotifyChange(EVENT_PLAYSTATE_CHANGED);\n\t\t\t}\n\n\t\t\tupdateNotification();\n\t\t} else if (mPlayListLen <= 0) {\n\t\t\t// This is mostly so that if you press 'play' on a bluetooth headset\n\t\t\t// without every having played anything before, it will still play\n\t\t\t// something.\n\t\t\tshuffleAll();\n\t\t}\n\t}", "void playTone(){\n t = new Thread() {\n public void run(){\n isRunning = true;\n setPriority(Thread.MAX_PRIORITY);\n\n\n\n audioTrack.play();\n\n for (int i = 0; i < message.length(); i++) {\n\n ASCIIBreaker breaker = new ASCIIBreaker((int)message.charAt(i));\n\n int frequencies[] = breaker.ASCIIToFrequency();\n\n //Generate waves for all different frequencies\n for(int fre : frequencies) {\n audioTrack.write(generateSineInTimeDomain(fre),0,sample_size);\n }\n\n audioTrack.write(generateSineInTimeDomain(7000),0,sample_size);\n }\n\n audioTrack.stop();\n audioTrack.release();\n }\n };\n t.start();\n }", "public void stopAllSounds() {\n/* 218 */ if (this.loaded) {\n/* */ \n/* 220 */ for (String s : this.playingSounds.keySet())\n/* */ {\n/* 222 */ this.sndSystem.stop(s);\n/* */ }\n/* */ \n/* 225 */ this.playingSounds.clear();\n/* 226 */ this.delayedSounds.clear();\n/* 227 */ this.tickableSounds.clear();\n/* 228 */ this.categorySounds.clear();\n/* 229 */ this.playingSoundsStopTime.clear();\n/* */ } \n/* */ }", "@Override\n public void run() {\n ObjectInputStream objIn = null;\n try {\n objIn = new ObjectInputStream(socket.getInputStream());\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n Object sound;\n try {\n while((sound = objIn.readObject()) != null){\n playSound((Storage) sound);\n }\n }catch(SocketException s){\n close();\n System.out.println(\"You lost connection\");\n System.exit(1);\n }catch (IOException e) {\n System.out.println(\"IO exception: \" + e.getMessage());\n e.printStackTrace();\n } catch (ClassNotFoundException e) {\n System.out.println(e.getMessage());\n e.printStackTrace();\n }\n close();\n }", "public void play() {\n if (audio != null) {\n audio.play(sfxVolume);\n }\n }", "private synchronized void loadSoundSystem() {\n/* 118 */ if (!this.loaded) {\n/* */ \n/* */ try {\n/* */ \n/* 122 */ (new Thread(new Runnable()\n/* */ {\n/* */ public void run()\n/* */ {\n/* 126 */ SoundSystemConfig.setLogger(new SoundSystemLogger()\n/* */ {\n/* */ public void message(String p_message_1_, int p_message_2_)\n/* */ {\n/* 130 */ if (!p_message_1_.isEmpty())\n/* */ {\n/* 132 */ SoundManager.LOGGER.info(p_message_1_);\n/* */ }\n/* */ }\n/* */ \n/* */ public void importantMessage(String p_importantMessage_1_, int p_importantMessage_2_) {\n/* 137 */ if (!p_importantMessage_1_.isEmpty())\n/* */ {\n/* 139 */ SoundManager.LOGGER.warn(p_importantMessage_1_);\n/* */ }\n/* */ }\n/* */ \n/* */ public void errorMessage(String p_errorMessage_1_, String p_errorMessage_2_, int p_errorMessage_3_) {\n/* 144 */ if (!p_errorMessage_2_.isEmpty()) {\n/* */ \n/* 146 */ SoundManager.LOGGER.error(\"Error in class '{}'\", p_errorMessage_1_);\n/* 147 */ SoundManager.LOGGER.error(p_errorMessage_2_);\n/* */ } \n/* */ }\n/* */ });\n/* 151 */ SoundManager.this.getClass(); SoundManager.this.sndSystem = new SoundManager.SoundSystemStarterThread(null);\n/* 152 */ SoundManager.this.loaded = true;\n/* 153 */ SoundManager.this.sndSystem.setMasterVolume(SoundManager.this.options.getSoundLevel(SoundCategory.MASTER));\n/* 154 */ SoundManager.LOGGER.info(SoundManager.LOG_MARKER, \"Sound engine started\");\n/* */ }\n/* 156 */ }\"Sound Library Loader\")).start();\n/* */ }\n/* 158 */ catch (RuntimeException runtimeexception) {\n/* */ \n/* 160 */ LOGGER.error(LOG_MARKER, \"Error starting SoundSystem. Turning off sounds & music\", runtimeexception);\n/* 161 */ this.options.setSoundLevel(SoundCategory.MASTER, 0.0F);\n/* 162 */ this.options.saveOptions();\n/* */ } \n/* */ }\n/* */ }", "public void StartSound(ISoundOrigin origin, sfxenum_t sound_id);", "public static void game_sound() {\n\t\tm_player_game.start();\n\t\tm_player_game.setMediaTime(new Time(0));\n\t}", "@Override\n\tpublic void loadSounds() {\n\t\ttry {\n\t\t\tSoundPlayer.load(\"bounce.wav\");\n\t\t\tSoundPlayer.load(\"laser1.wav\");\n\t\t\tSoundPlayer.load(\"hit1.wav\");\n\t\t\tSoundPlayer.load(\"speedup.wav\");\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "@Override\n\tpublic void run() \n\t{\n\t\ttry {\n\t\t\tplay();\n\t\t} catch (JavaLayerException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public synchronized void stopSound() {\r\n running = false;\r\n }", "@Override\n\tpublic void run() {\n\t\t\n\t\t\n\t\ttry {\n\t\t\tMusiikki.rajahdysaani = new Sound(\"res/shell1.ogg\");\n\t\t\tMusiikki.tykkiaani = new Sound(\"res/gun.ogg\");\n\t\t\tMusiikki.musiikki = new Music(\"res/sendme.ogg\");\n\t\t} catch (SlickException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\t\n\t\tMusiikki.musiikki.setVolume(1/2);\n\t\tMusiikki.musiikki.loop();\n\t\t\n\t}", "private void startPlay() {\n isPlaying = true;\n isPaused = false;\n playMusic();\n }", "public void run() {\n \t\t\ttry {\n \t\t\t\t//Wait until the CountDownLatch has been 'lifted'\n \t\t\t\tstartLatch.await();\n \t\t\t\t\n \t\t\t\ttry {\n \t\t\t\t\t//Read the sound file\n \t\t\t\t\taudioInputStream = AudioSystem.getAudioInputStream(soundFile);\n \t\t\t\t\taudioFormat = audioInputStream.getFormat();\n \t\t\t\t\t\n \t\t\t\t\t//Decode the sound file\n \t\t\t\t\tdecodedAudioFormat = getDecodedAudioFormat(audioFormat);\n \t\t\t\t\tdecodedAudioInputStream = AudioSystem.getAudioInputStream(decodedAudioFormat, audioInputStream);\n \t\t\t\t\t\n \t\t\t\t\t//Get a source data line to put the sound file on\n \t\t\t\t\tDataLine.Info dataLineInfo = new DataLine.Info(SourceDataLine.class, decodedAudioFormat);\n \t\t\t\t\tsourceDataLine = (SourceDataLine) AudioSystem.getLine(dataLineInfo);\n \t\t\t\t\tsourceDataLine.open(decodedAudioFormat);\n \t\t\t\t\t\n \t\t\t\t\t//Get the controls for the stream if they are supported\n \t\t\t\t\tif (sourceDataLine.isControlSupported(FloatControl.Type.MASTER_GAIN)) {\n \t\t\t\t\t\tgainControl = (FloatControl) sourceDataLine.getControl(FloatControl.Type.MASTER_GAIN);\n \t\t\t\t\t}\n \t\t\t\t\tif (sourceDataLine.isControlSupported(BooleanControl.Type.MUTE)) {\n \t\t\t\t\t\tmuteControl = (BooleanControl) sourceDataLine.getControl(BooleanControl.Type.MUTE);\n \t\t\t\t\t}\n \t\t\t\t\tfloat[] equalizerControl = new float[32];\n \t\t\t\t\tif (decodedAudioInputStream instanceof javazoom.spi.PropertiesContainer) {\n \t\t\t\t\t\t@SuppressWarnings(\"rawtypes\")\n \t\t\t\t\t\tMap properties = ((javazoom.spi.PropertiesContainer) decodedAudioInputStream).properties();\n \t\t\t\t\t\tequalizerControl = (float[]) properties.get(\"mp3.equalizer\");\n \t\t\t\t\t}\n \t\t\t\t\t\n \t\t\t\t\t//Start streaming the sound file\n \t\t\t\t\tsourceDataLine.start();\n \t\n \t\t\t\t\tint count;\n \t\t\t\t\twhile ((count = decodedAudioInputStream.read(tempBuffer, 0, tempBuffer.length)) != -1 && isPlaying) {\n \t\t\t\t\t\tif (count > 0) {\n \t\t\t\t\t\t\t//Set the controls for the stream if they are supported\n \t\t\t\t\t\t\tif (sourceDataLine.isControlSupported(FloatControl.Type.MASTER_GAIN)) {\n \t\t\t\t\t\t\t\tadjustFloatControl(gainControl, gain);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tif (sourceDataLine.isControlSupported(BooleanControl.Type.MUTE)) {\n \t\t\t\t\t\t\t\tadjustBooleanControl(muteControl, mute);\n \t\t\t\t\t\t\t}\n \t\t\t\t\t\t\tSystem.arraycopy(equalizer, 0, equalizerControl, 0, 32);\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\t//Write the data line to the buffer\n \t\t\t\t\t\t\tsourceDataLine.write(tempBuffer, 0, count);\n \t\t\t\t\t\t}\n \t\t\t\t\t}\n \t\t\t\t\t//The sound file is finished at this point\n \t\t\t\t\t\n \t\t\t\t\t//Clean up the data line\n \t\t\t\t\tsourceDataLine.drain();\n \t\t\t\t\tsourceDataLine.close();\n \t\t\t\t\t\n \t\t\t\t\t//Close the stream\n \t\t\t\t\taudioInputStream.close();\n \t\t\t\t\tdecodedAudioInputStream.close();\n \t\t\t\t\t\n \t\t\t\t\tisPlaying = false;\n \t\t\t\t\t\n \t\t\t\t} catch (IOException e) {\n \t\t\t\t\tSystem.out.println(\"IO Error opening \" + soundFile.getAbsolutePath());\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t\tSystem.exit(0);\n \t\t\t\t} catch (UnsupportedAudioFileException e) {\n \t\t\t\t\tSystem.out.println(\"Error opening \" + soundFile.getAbsolutePath());\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t\tSystem.exit(0);\n \t\t\t\t} catch (LineUnavailableException e) {\n \t\t\t\t\te.printStackTrace();\n \t\t\t\t\tSystem.exit(0);\n \t\t\t\t}\n \t\t\t\t\n \t\t\t} catch (InterruptedException e) {\n \t\t\t\tSystem.out.println(\"Track play was interrupted.\");\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\t}", "public void run() {\n if (args.length < 2) {\n System.err.println(\"usage: java -jar PlayWaveFile.jar [filename]\");\n return;\n } else {\n System.out.println(\"the input path\");\n System.out.println(args[0]);\n System.out.println(args[1]);\n }\n String filename = args[1];\n\n // opens the inputStream\n FileInputStream inputStream;\n try {\n inputStream = new FileInputStream(filename);\n\n } catch (FileNotFoundException e) {\n e.printStackTrace();\n return;\n }\n\n // initializes the playSound Object\n PlaySound playSound = new PlaySound(inputStream, lock, controller, waveThreshold);\n\n // plays the sound\n try {\n playSound.play();\n } catch (PlayWaveException e) {\n e.printStackTrace();\n return;\n }\n\n\n System.out.println(\"waveThread killed\");\n }", "public void PlaySound(Context context) {\r\n\t\tif (!this.mp.isPlaying()) {\r\n\t\t\tmp.start();\r\n\t\t}\r\n\t}", "public synchronized void stop() {\n if(running) {\n this.running = false;\n try {\n this.soundThread.join();\n } catch (InterruptedException e) {\n e.printStackTrace();\n }\n }\n }", "public void run() {\n\n try {\n audioInputStream.reset();\n } catch (Exception e) {\n\n }\n\n //Open audio stream\n AudioInputStream playbackInputStream = AudioSystem.getAudioInputStream(format, audioInputStream);\n\n if (playbackInputStream == null) {\n shutDown(\"Unable to convert stream of format \" + audioInputStream + \" to format \" + format);\n return;\n }\n\n DataLine.Info info = new DataLine.Info(SourceDataLine.class, format);\n if (!AudioSystem.isLineSupported(info)) {\n shutDown(\"Line matching \" + info + \" not supported.\");\n return;\n }\n\n try {\n line = (SourceDataLine) AudioSystem.getLine(info);\n line.open(format, 16384);\n } catch (LineUnavailableException ex) {\n shutDown(\"Unable to open the line: \" + ex);\n return;\n }\n\n //Setup buffer\n int frameSizeInBytes = format.getFrameSize();\n int bufferLengthInFrames = line.getBufferSize() / 8;\n int bufferLengthInBytes = bufferLengthInFrames * frameSizeInBytes;\n byte[] data = new byte[bufferLengthInBytes];\n int numBytesRead = 0;\n line.start();\n\n while (thread != null) {\n try {\n if ((numBytesRead = playbackInputStream.read(data)) == -1) {\n break;\n }\n int numBytesRemaining = numBytesRead;\n //Starting playing\n while (numBytesRemaining > 0) {\n numBytesRemaining -= line.write(data, 0, numBytesRemaining);\n }\n } catch (Exception e) {\n shutDown(\"Error during playback: \" + e);\n break;\n }\n }\n\n if (thread != null) {\n line.drain();\n }\n line.stop();\n line.close();\n line = null;\n\n shutDown(null);\n\n }", "public void pauseAllSounds() {\n/* 471 */ for (Map.Entry<String, ISound> entry : this.playingSounds.entrySet()) {\n/* */ \n/* 473 */ String s = entry.getKey();\n/* 474 */ boolean flag = isSoundPlaying(entry.getValue());\n/* */ \n/* 476 */ if (flag) {\n/* */ \n/* 478 */ LOGGER.debug(LOG_MARKER, \"Pausing channel {}\", s);\n/* 479 */ this.sndSystem.pause(s);\n/* 480 */ this.pausedChannels.add(s);\n/* */ } \n/* */ } \n/* */ }", "protected void sync() {\n System.out.println(\"Starting playback thread with \" + terms);\n startThread();\n }", "public void run() \n {\n //Runs the countdown before the game starts\n \n if(!mute)\n try{startSound();}catch(Exception e){}\n for(int i = 3; i > 0; i--)\n {\n text = \"Game will start in: \" +i;\n repaint();\n try{Thread.sleep(1000);}catch(InterruptedException e){}\n } \n text =\"\";\n start = true;\n \n soundClipTest();\n \n while(running)\n {\n tick();\n timer(); \n \n try\n {\n if(modeT)\n Thread.sleep(25);\n else if(difficult.equals(\"EASY\"))\n {\n if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer >0)\n Thread.sleep(45);\n else\n Thread.sleep(67);\n }\n else if(difficult.equals(\"MEDIUM\")||difficult.equals(\"GHOST\")|| difficult.equals(\"TROLL\"))\n Thread.sleep(45);\n else if(difficult.equals(\"HARD\"))\n Thread.sleep(30);\n else if(difficult.equals(\"YOU WILL NOT SURVIVE\"))\n Thread.sleep(10);\n } \n catch(InterruptedException e) {}\n \n if(pause)\n {\n pauseSong();\n }\n \n if(powerupTimer>.1 && powerupTimer<.21)\n {\n endSound();\n }\n\n \n if(dot.isEqual(head) || (lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0 && wideSnakeOnDot() && !modeT) ||(lastpowerUp.equals(\"TROLL\") && powerupTimer > 0 && wideSnakeOnDot() && modeT))\n {\n coinSound();\n \n for(int k = 0; k<1 ; k++)\n {\n addSegment();\n }\n \n if(!dotColor.equals(\"RED\"))\n {\n if(dotColor.equals(\"BLUE\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"BLUE\";\n }\n else if(dotColor.equals(\"PURPLE\"))\n {\n powerupTimer = 15.0;\n lastpowerUp = \"PURPLE\";\n }\n else if(dotColor.equals(\"RAINBOW\"))\n {\n if(!modeT)\n powerupTimer = 10.0 + (int)(Math.random()*10);\n else\n powerupTimer = 5.0 + (int)(Math.random()*5);\n //powerupTimer = 10.0;\n lastpowerUp = \"RAINBOW\";\n \n specialSong();\n }\n else if(dotColor.equals(\"YELLOW\"))\n {\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"YELLOW\"; \n }\n else if(dotColor.equals(\"BLACK\"))\n {\n powerupTimer = 10.0; \n lastpowerUp = \"BLACK\";\n }\n else if(dotColor.equals(\"WHITE\"))\n {\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n lastpowerUp = \"WHITE\";\n \n //specialSong();\n }\n else if(dotColor.equals(\"DOUBLE\"))\n {\n lastpowerUp = \"DOUBLE\";\n if(!modeT)\n powerupTimer = 20.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"TROLL\"))\n {\n lastpowerUp = \"TROLL\";\n if(!modeT)\n powerupTimer = 15.0;\n else\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"CRYSTAL\"))\n {\n lastpowerUp = \"CRYSTAL\";\n powerupTimer = 10.0;\n }\n else if(dotColor.equals(\"RED SHELL\"))\n {\n lastpowerUp = \"RED SHELL\";\n hasItem = true;\n }\n }\n \n\n \n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n boolean go = true;\n while(go)\n {\n if(snakeOnDot())\n {\n //dots.remove(0);\n \n randomize();\n dot.setA(a);\n dot.setB(b); \n \n //dots.add(dot);\n }\n else\n go = false;\n }\n \n //dots.add(dot);\n \n \n //Calculates the score based on the dots collected and the time taken to get them\n if(!modeT)\n {\n if(lastpowerUp.equals(\"DOUBLE\") && powerupTimer > 0)\n totalScore += 2*(100-5*timer2);\n else if(timer2<18)\n totalScore += 100 - 5*timer2;\n else\n totalScore += 10;\n if(!difficult.equalsIgnoreCase(\"YOU WILL NOT SURVIVE\"))\n {\n if(lastpowerUp.equals(\"BLACK\") && powerupTimer > 0)\n totalScore += 1000;\n else if(lastpowerUp.equals(\"RAINBOW\") && powerupTimer > 0)\n totalScore += 100;\n }\n }\n \n \n scoreCount += 1;\n if(modeT)\n {\n if(lastpowerUp.equals(\"YELLOW\") && powerupTimer > 0)\n timer2 +=6;\n else \n timer2+=3;\n }\n else\n timer2 = 0;\n \n } \n if(!modeT) \n text2 = \"Total Score: \" + totalScore;\n else\n text2 = \"Total Score: \" + (int)(timer3);\n text3 = \"Dots Collected: \" + scoreCount; \n \n if(!modeT)\n {\n if(timer2 == 1)\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Elapsed: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n else\n {\n if(timer2 == 1)\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" second\"; \n else\n text4 = \"Time Remaining: \" + ((int)(timer2*10))/10.0 + \" seconds\";\n }\n if(outOfBounds() || crash())\n { \n if(totalScore > lowestHighscore() || (int)timer3 > lowestHighscore())\n {\n highscorenoise();\n //PLAY OTHER SOUND CLIP HERE\n //My suggestion: https://www.youtube.com/watch?v=G2vA6Dngzhs because this music is awesome and deserves to be somewhere\n }\n else \n loseNoise();\n \n running = false;\n bclip.stop();\n if(powerupTimer > 0 && (lastpowerUp.equals(\"RAINBOW\")))\n sclip.stop();\n \n \n reset(); \n }\n } \n }", "public static void beginCurrentSoundtrack() {\n\t\t\n\t\tif (GameFrame.settingsPanel.musicOn() && soundtrack[GameBoardModel.getLevel()-1] != null) {\n\t\t\t\n\t\t\t// In case a new game is started before the victory jingle is finished\n\t\t\t// from a previous game (rare occurrence, but possible)\n\t\t\tif (victoryFanfare.isRunning()) victoryFanfare.stop();\t\t\t\n\t\t\t\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].setFramePosition(0);\n\t\t\tsoundtrack[GameBoardModel.getLevel()-1].loop(Clip.LOOP_CONTINUOUSLY);\n\t\t\t\n\t\t}\n\t\t\n\t}", "public void start() {\n AudioPlayer.player.start(cas);\n playing = true;\n }", "public void playSound() {\n if (this.mIsSupportVibrator) {\n this.mVibratorEx.setHwVibrator(\"haptic.control.time_scroll\");\n }\n if (this.mSoundPool == null || this.mSoundId == 0 || !this.mSoundLoadFinished) {\n Log.w(TAG, \"SoundPool is not initialized properly!\");\n } else {\n this.mSoundPool.play(this.mSoundId, 1.0f, 1.0f, 0, 0, 1.0f);\n }\n }", "public void startPlayback() {\n Scanner userInput = new Scanner(System.in);\n while(true) {\n System.out.println(\"Please press the \\\"p\\\" key when you are ready to begin playback\");\n String input = userInput.next();\n if (input.equals(\"p\")) {\n new Thread(() -> {\n try {\n \n SequencePlayer musicPlayer = new MidiSequencePlayer(DEFAULT_BPM, DEFAULT_TPB);\n try {\n music.play(musicPlayer, 0, new ByteArrayOutputStream(), \"\");\n } catch (InterruptedException e1) {\n throw new RuntimeException(\"error\");\n }\n synchronized(this.music) {\n music.notifyAll();\n }\n Object lock = new Object();\n musicPlayer.addEvent(music.duration(), (Double beat) -> {\n synchronized (lock) {\n lock.notify();\n }\n });\n musicPlayer.play();\n synchronized (lock) {\n try {\n lock.wait();\n } catch (InterruptedException e) {\n return;\n }\n } \n } catch (MidiUnavailableException e) {\n throw new RuntimeException(\"MidiSequencePlayer could not be created\");\n } catch (InvalidMidiDataException e) {\n throw new RuntimeException(\"MidiSequencePlayer could not be created\");\n }\n \n }).start();\n } else {\n System.out.println(\"Invalid Input.\");\n }\n System.out.println(\"If you would like to play the music again, please type \\\"r\\\" followed by the Enter key. \\n Otherwise type \\\"q\\\" followed by the Enter key.\");\n input = userInput.nextLine();\n if (input.equals(\"q\")) {\n System.out.println(\"Goodbye\");\n break;\n } else if (!input.equals(\"r\")) {\n System.out.println(\"Invalid Input\");\n break;\n }\n }\n userInput.close();\n }", "public void run() {\r\n\t\tboolean doorgaan = true;\r\n\t\twhile (doorgaan) {\r\n\t\t\tplay();\r\n\t\t\tdoorgaan = readBoolean(\"\\n> Play another time? (y/n)?\", \"y\", \"n\");\r\n\t\t}\r\n\t}", "public void play() {\n\t\tmusic.play();\n\t\tsyncPosition();\n\t}", "public void foodSound(){\n if (enableSound){\r\n\t clip.play();\r\n }\r\n\t\t\r\n\t}", "public static void playerWalk()\n {\n walkSound.playLooped();\n }", "private void stopSounds(){\n\t\tsoundPool.autoPause();\n\t\tsoundPool.release();\n\t}", "@Override\n public void run() {\n MediaSingleton.INSTANCE.ensureSound();\n\n long next = AlarmUtil.millisTillNextInterval(AlarmUtil.Interval.SECOND);\n handler.postDelayed(soundCheck, next);\n }", "@Override\n\t\tpublic void run() {\n\t\t\tshort samples[] = new short[Player.BUFFER_SIZE];\n\t\t\tshort silenceSamples[] = new short[Player.BUFFER_SIZE];\n\t\t\t\n\t\t\twhile (!this.stopped) {\n\t\t\t\t\t\t\n\t\t\t\tif (this.paused == false) {\n\t\t\t\t\t\n\t\t\t\t\tthis.currentModule.advanceByOneTick();\n\t\t\t\t\tswitch(this.interpolationMode) {\n\t\t\t\t\tcase Player.INTERPOLATION_MODE_LINEAR:\n\t\t\t\t\t\tthis.tickSamples = this.tickMixer.renderTickLinearInterpolation(this.currentModule);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase Player.INTERPOLATION_MODE_CUBIC:\n\t\t\t\t\t\tthis.tickSamples = this.tickMixer.renderTickCubicInterpolation(this.currentModule);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthis.tickSamples = this.tickMixer.renderTickNoInterpolation(this.currentModule);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tthis.bufferPosition = 0;\n\t\t\t\t\t\n\t\t\t\t\tif (this.fading == false) { \n\t\t\t\t\t\tfor (int s=0;s<this.tickSamples;s++) {\n\t\t\t\t\t\t\t//floating point version\n\t\t\t\t\t\t\t//samples[this.samplesPosition++] = FixedPoint.FP_TO_FLOAT(this.tickMixer.leftSamples[this.bufferPosition]);\n\t\t\t\t\t\t\t//samples[this.samplesPosition++] = FixedPoint.FP_TO_FLOAT(this.tickMixer.rightSamples[this.bufferPosition]);\n\t\t\t\t\t\t\tsamples[this.samplesPosition++] = (short)(this.tickMixer.leftSamples[this.bufferPosition] << 1);\n\t\t\t\t\t\t\tsamples[this.samplesPosition++] = (short)(this.tickMixer.rightSamples[this.bufferPosition] << 1);\n\t\t\t\t\t\t\tthis.bufferPosition++;\n\t\t\t\t\t\t\tif (this.samplesPosition >= Player.BUFFER_SIZE) {\n\t\t\t\t\t\t\t\t// write to device\n\t\t\t\t\t\t\t\tdevice.writeSamples(samples, 0, samples.length);\n\t\t\t\t\t\t\t\tthis.samplesPosition = 0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int s=0;s<this.tickSamples;s++) {\n\t\t\t\t\t\t\tif (this.fadeSamples <= 0) {\n\t\t\t\t\t\t\t\tif (this.fadeStatus == ModulePlayer.FADE_STATUS_FADE_OUT) {\n\t\t\t\t\t\t\t\t\t// start fade in\n\t\t\t\t\t\t\t\t\tthis.currentModule = this.nextModule;\n\t\t\t\t\t\t\t\t\tthis.fadeStatus = ModulePlayer.FADE_STATUS_FADE_IN;\n\t\t\t\t\t\t\t\t\tthis.fadeSamples = this.fadeInSamples;\n\t\t\t\t\t\t\t\t\tthis.fadeFactorDelta = (1.0f - this.fadeFactor) / (float)this.fadeSamples;\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tif (this.fadeStatus == ModulePlayer.FADE_STATUS_FADE_IN) {\n\t\t\t\t\t\t\t\t\t// stop fading\n\t\t\t\t\t\t\t\t\tthis.fading = false;\n\t\t\t\t\t\t\t\t\tthis.fadeStatus = ModulePlayer.FADE_STATUS_FADE_DONE;\n\t\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//floating point version\n\t\t\t\t\t\t\t//samples[this.samplesPosition++] = FixedPoint.FP_TO_FLOAT(this.tickMixer.leftSamples[this.bufferPosition]) * this.fadeFactor;\n\t\t\t\t\t\t\t//samples[this.samplesPosition++] = FixedPoint.FP_TO_FLOAT(this.tickMixer.rightSamples[this.bufferPosition]) * this.fadeFactor;\n\t\t\t\t\t\t\tsamples[this.samplesPosition++] = (short)(((this.tickMixer.leftSamples[this.bufferPosition] * this.fadeFactorFP) >> FixedPoint.FP_SHIFT) << 1);\n\t\t\t\t\t\t\tsamples[this.samplesPosition++] = (short)(((this.tickMixer.rightSamples[this.bufferPosition] * this.fadeFactorFP) >> FixedPoint.FP_SHIFT) << 1);\n\t\t\t\t\t\t\tthis.fadeFactor += this.fadeFactorDelta;\n\t\t\t\t\t\t\tthis.fadeFactorFP = FixedPoint.FLOAT_TO_FP(this.fadeFactor);\n\t\t\t\t\t\t\tthis.fadeSamples--;\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tthis.bufferPosition++;\n\t\t\t\t\t\t\tif (this.samplesPosition >= Player.BUFFER_SIZE) {\n\t\t\t\t\t\t\t\t// write to device\n\t\t\t\t\t\t\t\tdevice.writeSamples(samples, 0, samples.length);\n\t\t\t\t\t\t\t\tthis.samplesPosition = 0;\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\t\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// write silence to device\n\t\t\t\t\tdevice.writeSamples(silenceSamples, 0, samples.length);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tdevice.dispose();\n\t\t}", "public void playSound() {\n\t\tmediaPlayer.play();\n\t}", "public void play() {\n\t\tint focusRequestResult = mAudioManager.requestAudioFocus(mOuterEventsListener, AudioManager.STREAM_MUSIC,\n\t\t\t\tAudioManager.AUDIOFOCUS_GAIN);\n\n\t\tif (PrefManager.isIgnoreAudioFocus()\n\t\t\t\t|| focusRequestResult == AudioManager.AUDIOFOCUS_REQUEST_GRANTED) {\n\t\t\tinternalPlay();\n\t\t} else {\n\t\t\terror(Error.AUDIO_FOCUS_ERROR);\n\t\t}\n\t}", "public static void next() {\r\n if (nextMusic_ == INVALID_NUMBER) {\r\n return;\r\n }\r\n currentMusic_ = nextMusic_;\r\n nextMusic_ = INVALID_NUMBER;\r\n MediaPlayer p = players_.get(currentMusic_);\r\n if (p != null) {\r\n if (!p.isPlaying()) {\r\n p.setLooping(true);\r\n p.setOnCompletionListener(null);\r\n p.start();\r\n }\r\n }\r\n }", "public void play() {\n try {\n if (clip != null) {\n new Thread() {\n public void run() {\n synchronized (clip) {\n clip.stop();\n clip.setFramePosition(0);\n clip.start();\n }\n }\n }.start();\n }\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "public void start() throws InterruptedException {\n for (int i = 0; i < seconds; i--) {\n\t System.out.println(\"\" +seconds ); \n\t \n }\n\t/*\n\t * 3. When the timer is finished, use the playSound method to play a moo\n\t * sound. You can download one from freesound.org, then drag it into\n\t * your default package. Tell the students (by speaking) it's time to walk.\n\t */\n\n}", "public static boolean processSounds() {\r\n\t\t//Save the sounds selected.\r\n\t\tsaveSoundSelections();\r\n\t\t\r\n\t\t//Create the sounds array list.\r\n\t\tcreateSoundsArrList();\r\n\r\n\t\treturn true;\r\n\t}", "public void playSoundtrack() {\n if(this.musicEnabled) {\n try {\n Clip soundtrackClip = AudioSystem.getClip();\n AudioInputStream inputStream = AudioSystem.getAudioInputStream(new BufferedInputStream(Assets.soundTrack));\n soundtrackClip.open(inputStream);\n soundtrackClip.start();\n soundtrackClip.loop(Clip.LOOP_CONTINUOUSLY);\n } catch (Exception e) {\n e.printStackTrace();\n System.err.println(e.getMessage());\n }\n }\n }", "public void play()\n\t{\n\t\tif (canPlay)\n\t\t{\n\t\t\tsong.play();\n\t\t\tsong.rewind();\n\t\t\tif (theSong == \"SG1\" || theSong == \"SG2\")\n\t\t\t\tcanPlay = false;\n\t\t}\n\t}", "static void PlaySound(File Sound)\n {\n try{\n Clip clip = AudioSystem.getClip();\n clip.open(AudioSystem.getAudioInputStream(Sound));\n clip.start();\n //BGM = new AudioStream(new FileInputStream(\"OST.WAV\"));\n //MD = BGM.getData();\n //loop = new ContinuousAudioDataStream(MD);\n }catch(Exception e) {}\n //MGP.start(loop); \n }", "public void start() {\n background.playMusic();\n createTimer();\n timer.start();\n }", "public void play() {\n Selection selection;\n if ((selection = master.getWindowManager().getMain().getSelection()) == null) {\n startPlay();\n playShow(nextStartTime, -1 / 1000.0);\n } else {\n playSelection(selection);\n playShow(selection.start, selection.duration);\n }\n }", "@Override\n\tpublic void OnGameStart() {\n\t\tsuper.OnGameStart();\n\t\tMusicManage.setLoopingMusic(tumMusic, true);\n\t\tMusicManage.playMusic(tumMusic);\n\t}", "private void playSounds(BlockPos pos) {\n float aggroPercent = getAggroProgress();\n if (soundTime <= 0) {\n playSound(ModSounds.MONK, 1F, 1F);\n soundTime = 100;\n }\n if (aggroPercent > 0.70 && soundTime < 100) {\n world.playSound(null, pos, ModSounds.TEARING, SoundCategory.HOSTILE, 1F, (float) (1 + rand.nextGaussian()));\n soundTime = 100 + rand.nextInt(75);\n }\n if (aggroPercent > 0.80 && soundTime < MAX_SOUND_COOLDOWN) {\n world.playSound(null, pos, ModSounds.TEARING, SoundCategory.HOSTILE, 7, 1F);\n soundTime = 250;\n }\n soundTime--;\n }", "public static void hit_sound() {\n\t\tif (!hit1) {\n\t\t\thit1 = true;\n\t\t\tm_player_hit.setMediaTime(new Time(0));\n\t\t\tm_player_hit.start();\n\t\t} else if (!hit2) {\n\t\t\thit2 = true;\n\t\t\tm_player_hit2.setMediaTime(new Time(0));\n\t\t\tm_player_hit2.start();\n\t\t} else if (!hit3) {\n\t\t\thit3 = true;\n\t\t\tm_player_hit3.setMediaTime(new Time(0));\n\t\t\tm_player_hit3.start();\n\t\t} else if (!hit4) {\n\t\t\thit4 = true;\n\t\t\tm_player_hit4.setMediaTime(new Time(0));\n\t\t\tm_player_hit4.start();\n\t\t} else if (!hit5) {\n\t\t\thit5 = true;\n\t\t\tm_player_hit5.setMediaTime(new Time(0));\n\t\t\tm_player_hit5.start();\n\t\t} else {\n\t\t\thit1 = hit2 = hit3 = hit4 = hit5 = false;\n\t\t\tm_player_hit6.setMediaTime(new Time(0));\n\t\t\tm_player_hit6.start();\n\t\t}\n\n\t}", "@Override\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tThread.sleep(3000);\n\t\t\t\t\tdetachChild(anim);\n\n\t\t\t\t\tanim = null;\n\n\t\t\t\t\ttry {\n\t\t\t\t\t\tcache.get(position).getSound().play();\n\t\t\t\t\t\t// disable clicks on these first\n\t\t\t\t\t\tdetachChild(greenTick);\t\n\t\t\t\t\t\tdetachChild(redx);\n\t\t\t\t\t\tif(sprite1 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite1);\n\t\t\t\t\t\tif(sprite2 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite2);\n\t\t\t\t\t\tif(sprite3 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite3);\n\t\t\t\t\t\tif(sprite4 != null)\n\t\t\t\t\t\t\tregisterTouchArea(sprite4);\n\t\t\t\t\t} catch (IndexOutOfBoundsException e) {\n\t\t\t\t\t\tshowToast(\"Line 277\");\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t}", "public void playAudio() {\n if (done==false)\n {\n file.play();\n }\n}" ]
[ "0.71018046", "0.70418864", "0.6886401", "0.68499357", "0.67208844", "0.66929597", "0.667888", "0.6581282", "0.65723264", "0.65196705", "0.651624", "0.6482192", "0.6477256", "0.647041", "0.64431", "0.6439301", "0.6436899", "0.6430234", "0.6422066", "0.6420121", "0.6417879", "0.6375322", "0.6368697", "0.6350477", "0.6342105", "0.63173074", "0.63028383", "0.6300804", "0.62602925", "0.6257429", "0.6251511", "0.62437516", "0.623847", "0.6232617", "0.62299806", "0.6224781", "0.62219876", "0.6221798", "0.62137234", "0.6209725", "0.6170721", "0.6164383", "0.61408", "0.6135571", "0.61299473", "0.61085093", "0.6096631", "0.60922325", "0.60911125", "0.60529256", "0.60276663", "0.60247535", "0.60216904", "0.600596", "0.5977017", "0.5957677", "0.5954002", "0.59468055", "0.5945194", "0.59401244", "0.59375894", "0.5933853", "0.5919697", "0.59195745", "0.59142715", "0.5909905", "0.590829", "0.59045106", "0.5894591", "0.58787125", "0.58770454", "0.58766335", "0.5876235", "0.5859111", "0.5856973", "0.5851055", "0.58484316", "0.5848397", "0.5842736", "0.5834601", "0.5819978", "0.58148426", "0.58083767", "0.57998145", "0.57973856", "0.5796777", "0.5788884", "0.5776001", "0.5768667", "0.5759612", "0.5750878", "0.5744135", "0.5740372", "0.57387084", "0.5728625", "0.5727979", "0.5723873", "0.57171947", "0.57159984", "0.5710982" ]
0.65829253
7
Calculate the cost of a bus ride
public static String busFare(int age, Scanner console){ String charlie; if(18 < age && age < 65){ // if the rider is aged 19-64, ask for a charlie card System.out.print("Is the rider using a Charlie Card?(y/n): "); charlie = console.next(); console.nextLine(); // Consume rest of line } else { charlie = "n"; } String fare; if (age <= 11){ fare = "free"; } else if (age >= 12 && age <= 18){ fare = "$0.60"; } else if (age >= 65){ fare = "$0.40"; } else{ if(charlie.equalsIgnoreCase("y")){ // If they are using a charlie card fare = "$1.25"; } else{ fare = "$1.50"; } } return fare; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double calculateDeliveryCost(Cart cart);", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "double getCost();", "double getCost();", "double getTotalCost();", "public double calculateCost(Purchase purchase);", "public void calculateCost() {\n\t\tthis.cost = 0.0;\n\t\t\n\t\tint i, count = this.cities.size()-1;\n\t\tfor (i = 0; i < count; i++)\n\t\t\tthis.cost += this.cities.get(i).distances[this.cities.get(i+1).index];\n\n\t\tthis.cost += this.cities.get(count).distances[this.cities.get(0).index];\n\t}", "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "public abstract double getCost();", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}", "int getCost();", "int getCost();", "int getCost();", "@Pure\n\tdouble getCost();", "public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}", "public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }", "public double usageCost() {\r\n double totalCost = 0;\r\n for (Booking aBooking: getBookings()) {\r\n long diff = (aBooking.getDateTo().getTime() \r\n - aBooking.getDateFrom().getTime());\r\n int noOfDays = (int) ((diff / (1000 * 60 * 60 * 24)) + 1);\r\n totalCost += noOfDays * 50;\r\n }\r\n return totalCost;\r\n }", "public float getBusC() {\r\n return costs.get(Transports.BUS);\r\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }", "public double getCost() {\n\t\tif (this.accommodationType.equals(TYPEsingle)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 50.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else {\n\t\t\t\treturn 110.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEdouble)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 98.0;\n\t\t\t} else {\n\t\t\t\treturn 154.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEfamily)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 86.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 180.6;\n\t\t\t\t} else {\n\t\t\t\t\treturn 120.4;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 283.8;\n\t\t\t\t} else {\n\t\t\t\t\treturn 189.2;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEpresidential)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 200.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 420.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 280.0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 660.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 440.0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}", "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "@Override\n protected double calcTotalCost() {\n \n double totalCost, templateBasicRate = DEFAULT_BASIC_RATE;\n double extraBedrooms = 0, extraBathrooms = 0;\n\n // if there are extra beds/baths\n if (this.getNumBedrooms() > DEFAULT_NUM_BEDROOMS)\n extraBedrooms = this.getNumBedrooms() - DEFAULT_NUM_BEDROOMS;\n\n if (this.getNumBathrooms() > DEFAULT_NUM_BATHROOMS)\n extraBathrooms = this.getNumBathrooms() - DEFAULT_NUM_BATHROOMS;\n\n // multiply basic rate by 1.5 if the total area is >= 3,000 sq ft\n if (this.getTotalArea() >= 3000)\n templateBasicRate *= 1.5;\n\n // calculate total cost\n totalCost = (templateBasicRate + ((800 * extraBedrooms) + (500 * extraBathrooms)));\n\n // add tax\n totalCost += (TAX * totalCost);\n\n return totalCost;\n }", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "public double cost() {\n return roomType.cost() + COST;\n }", "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "public float calculatePrice(Airline flight, String type, int baggage);", "public void calculateCost(){\n if(this.isChair){\n for(int i = 0; i < this.chairs.length; i++){\n this.cost += this.chairs[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isDesk){\n for(int i = 0; i < this.desks.length; i++){\n this.cost += this.desks[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isFiling){\n for(int i = 0; i < this.filingCabinets.length; i++){\n this.cost += this.filingCabinets[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isLamp){\n for(int i = 0; i < this.lamps.length; i++){\n this.cost += this.lamps[i].getPrice();\n }\n }\n }", "@Override\n\tpublic double[] getVehicleCost() {\n\t\t\n\t\t\n\t\tdouble[] temp = {constantPO.getVanCost(),constantPO.getRailwayCost(),constantPO.getAirplaneCost()};\n\t\t\n\t\treturn temp;\n\t}", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }", "public double getCost() {\r\n return cost;\r\n }", "public static double computeAccidentCosts(double demand, Link link, ArrayList<Integer> roadType){\n\n\t\t// in EUR per 1000 vehicle-km\n\t\tdouble costRateTable[][][] = {\n\t\t\t\t\n\t\t\t/*\tposition 1\n\t\t\t * \t\tcolumn 0: 'Außerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 1: 'Innerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 2: 'Außerhalb von bebauten Gebiet'\n\t\t\t * \t\tcolumn 3: 'Innerhalb von bebauten Gebiet'\n\t\t\t * \n\t\t\t * \tposition 2: number of lanes\n\t\t\t */\n\t\t\t\n\t\t\t// 'planfrei': positon 0 --> 0\n\t\t\t{\n\t\t\t\t{ 0 , 0 , 0 , 0 }, // 1 lane\n\t\t\t\t{ 23.165 , 23.165 , 0 , 0 }, // 2 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 }, // 3 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 } // 4 lane\n\t\t\t},\n\t\t\t// 'plangleich': positon 0 --> 1\n\t\t\t{\n\t\t\t\t{ 61.785 , 101.2 , 61.785 , 101.2 }, // 1 lane\n\t\t\t\t{ 31.63 , 101.53 , 31.63 , 101.53 }, // 2 lane\n\t\t\t\t{ 37.84 , 82.62 , 34.735 , 101.53 }, // 3 lane\n\t\t\t\t{ 0 , 0 , 0 , 101.53 } // 4 lane\n\t\t\t},\n\t\t\t// tunnel: positon 0 --> 2\n\t\t\t{\n\t\t\t\t{ 9.56 , 15.09 , 9.56 , 15.09 }, // 1 lane\n\t\t\t\t{ 11.735 , 14.67425 , 0 , 17.57 }, // 2 lane\n\t\t\t\t{ 11.735 , 11.735 , 0 , 17.57 }, // 3 lane\n\t\t\t\t{ 9.11 , 9.11 , 0 , 17.57 } // 4 lane\n\t\t\t}\t\t\n\t\t};\n\t\t\n\t\tdouble costRate = costRateTable[roadType.get(0)][roadType.get(2)-1][roadType.get(1)]; \n\t\tif (costRate == 0) {\n\t\t\tlog.warn(\"Accident cost rate for link \" + link.getId().toString() + \" is 0. (roadtype: \" + roadType.toString() + \")\" );\n\t\t}\n\t\t\n\t\tdouble vehicleKm = demand * (link.getLength() / 1000.);\n\t\t\n\t\tdouble accidentCosts = costRate * (vehicleKm / 1000.);\n\t\t\n\t\treturn accidentCosts;\t\t\n\t}", "public double getCost() {\n return cost;\n }", "public double getCost() {\n return cost;\n }", "public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }", "@Override\n public double getCost() {\n return cost;\n }", "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "@Override\n\tpublic double calcSpendFuel() {\n\t\tdouble result = distance / (literFuel - fuelStart);\n\t\treturn result;\n\t}", "private void getCostAndEta() {\n\n GetVehiclesData vehiclesData = RetrofitClientInstance.getRetrofitInstance().create(GetVehiclesData.class);\n getVehicles.getVehiclesData(vehiclesData);\n setCostToLabel(getVehicles.getCost());\n setETAToLabel(getVehicles.getETA());\n\n }", "public double findCostForGivenDistance(Date tripStartTime, City city, CarType type, double distance){\n LocalTime after = LocalTime.parse(\"22:00:00\");\n LocalTime before = LocalTime.parse(\"05:00:00\");\n LocalTime now = LocalTime.of(tripStartTime.getHours(), tripStartTime.getMinutes());\n double charges = 0;\n double luxTax = 0;\n if(now.isAfter(after) && now.isBefore(before)){\n charges = city.getNight_charge();\n }\n else {\n charges = city.getDay_charge();\n }\n if(type == CarType.LUX){\n luxTax = city.getLux_tax();\n }\n double cost = distance * charges;\n return cost + (cost * luxTax/100);\n }", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "public double calculatingCostO(int quantity)\n { \n cost = 750 + (0.25 * quantity);\n return cost;\n \n }", "public BigDecimal getCost() {\r\n return cost;\r\n }", "public double getTotalCost() {\r\n return totalCost;\r\n }", "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "@Pure\n\tdouble getEstimatedCost();", "@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "public double getCost()\n\t{\n\t\treturn 0.9;\n\t}", "public double getCost() {\n\t\treturn cost;\n\t}", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "public double getCost(){\n return cost;\n }", "@Override\n public double getCost() {\n\t return 13;\n }", "public float getCost(int weight, int volume) {\r\n\t\t//System.out.println(\"getCost method in Journey called. should have been a delivery.\");\r\n\t\ttimesUsed++;\r\n\t\tfloat total = 0;\r\n\t\tfor(Path p: usedPaths){\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttotal += p.calcCost(weight, volume);\r\n\t\t\t\t} catch (OverweightException 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 (ExceededVolumeException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\ttotalCost += total;\r\n\t\treturn total;\r\n\t}", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public double getCost()\r\n\t{\treturn this.cost;\t}", "public int getCost() {\n \t\treturn cost;\n \t}", "protected double evaluateFuelCost(SpatialPoint start, SpatialPoint end, double speed) {\n return start.distance(end) * ((Math.abs(speed - optSpeed) / optSpeed) * NONOPTIMAL_SPEED_PENALTY_COEF + 1.0);\n }", "public double getCost() {\n\n\t\treturn cost;\n\t}", "double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }", "@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public double getTotal() {\n return totalCost;\n }", "public double getCosts();", "private double calcuFcost() {\n\t\treturn num * configMap.get('r') + (num-1) * configMap.get('l') + num * configMap.get('f') + configMap.get('t');\n\t}", "public double getCost() {\n\t\treturn 1.25;\n\t}", "public BigDecimal getCost() {\n return this.cost;\n }", "public float getWalkC() {\r\n return costs.get(Transports.WALK);\r\n }", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "double getRouteCost(Graph g){\n double totalCost = 0;\n double matrixWeights[][] = g.getMatrixOfWeights(); //get the matrix of weights from the class Graph\n for(int i=0;i<cityIndex.size()-1;i++){\n //the cost is calculated by computing the route from one index to the next since the representation is\n // a permutation\n totalCost = totalCost + matrixWeights[cityIndex.get(i)][cityIndex.get(i+1)];\n }\n totalCost = totalCost+matrixWeights[cityIndex.get(cityIndex.size()-1)][cityIndex.get(0)]; //To Return back from the\n // last to the first city\n return totalCost;\n }", "float calFuelConsumption(float distance, float numLiters);", "public double getCost() {\n return quantity*ppu;\n\n }", "public int getCost() {\n return cost;\n }", "@PatchMapping(\"/payment/paymentId/{paymentId}/distance/{distance}/vehicle\")\n\tpublic ResponseEntity<Booking> calculateTotalBookingCost(@PathVariable(\"paymentId\") int paymentId,\n\t\t\t@PathVariable(\"distance\") double distance, Vehicle vehicle) {\n\t\tlogger.info(\"Calculate Total Booking Cost\");\n\t\tif (payService.calculateTotalBookingCost(paymentId, distance, vehicle) == null) {\n\t\t\tthrow new PaymentNotFoundException(\"Payment not found with this paymentId: \" + paymentId);\n\t\t}\n\t\treturn ResponseEntity.ok().body(payService.calculateTotalBookingCost(paymentId, distance, vehicle));\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public double calcular_costo() {\n\t\t return 1.3*peso+30 ;\n\t}", "public int getCost() {\n return cost;\n }", "public int getCost() {\n return cost;\n }", "@Override\n public int getCost() {\n int price = (int) Math.round(this.weight * this.pricePerLbs); //get the price of the cookies in the form of an int\n return price; //return the price\n\n }", "public double getCost() {\n double price = 0;\n price += this.numPizzas * this.pizzaType.getCost();\n if(this.numPizzas >= 20) // Discount if >=20 pizzas\n return price * 0.9;\n else if(this.numPizzas >= 10) // Discount if between 10 and 20 pizzas\n return price * 0.95;\n return price; // No discount\n }", "@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}", "public int getCost()\n {\n return cost;\n }", "@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }", "public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}", "public int getCost(){\r\n\t\treturn this.cost;\r\n\t}" ]
[ "0.684374", "0.6730172", "0.66665715", "0.66665715", "0.6586421", "0.6465254", "0.6460963", "0.6334676", "0.62738997", "0.6273126", "0.6269933", "0.6262697", "0.6262697", "0.6262697", "0.62572014", "0.6232598", "0.6209569", "0.62000674", "0.61682814", "0.6158821", "0.6153496", "0.6136405", "0.6134428", "0.61282295", "0.6125212", "0.6125016", "0.61076766", "0.60839987", "0.6076662", "0.60580033", "0.60513043", "0.6033445", "0.6021719", "0.6011633", "0.6011534", "0.60096306", "0.6000649", "0.6000389", "0.59845746", "0.59845746", "0.59717405", "0.5965015", "0.59582096", "0.59403473", "0.5931675", "0.59203684", "0.59155566", "0.59155566", "0.59155566", "0.5907842", "0.590613", "0.59010875", "0.5900131", "0.5898912", "0.58955157", "0.5893838", "0.5893105", "0.5888799", "0.5886273", "0.58797276", "0.587759", "0.5877255", "0.5874256", "0.58603585", "0.58570427", "0.5855262", "0.5854395", "0.584876", "0.58426934", "0.5835456", "0.58294046", "0.5824314", "0.5817126", "0.5812165", "0.58084714", "0.58032405", "0.5802492", "0.57942104", "0.57894224", "0.57875264", "0.5785931", "0.5783174", "0.57803506", "0.5771909", "0.5770494", "0.5765134", "0.576011", "0.5756103", "0.5749144", "0.57463014", "0.57463014", "0.5745947", "0.57450134", "0.57450134", "0.5743878", "0.57336956", "0.5723972", "0.5717399", "0.57081026", "0.5703499", "0.5702493" ]
0.0
-1
Calculate the cost of a subway ride
public static String subwayFare(int age, Scanner console){ String charlie; if(18 < age && age < 65){ // if the rider is aged 19-64, ask for a charlie card System.out.print("Is the rider using a Charlie Card?(y/n): "); charlie = console.next(); console.nextLine(); // Consume rest of line } else { charlie = "n"; } String fare; if (age <= 11){ fare = "free"; } else if (age >= 12 && age <= 18){ fare = "$0.85"; } else if (age >= 65){ fare = "$0.60"; } else{ if(charlie.equalsIgnoreCase("y")){ //if a charlie card is used fare = "$1.70"; } else{ fare = "$2.00"; } } return fare; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public float getSubWC() {\r\n return costs.get(Transports.SUBWAY);\r\n }", "double getCost();", "double getCost();", "double calculateDeliveryCost(Cart cart);", "double getTotalCost();", "public void calculateCost() {\n\t\tthis.cost = 0.0;\n\t\t\n\t\tint i, count = this.cities.size()-1;\n\t\tfor (i = 0; i < count; i++)\n\t\t\tthis.cost += this.cities.get(i).distances[this.cities.get(i+1).index];\n\n\t\tthis.cost += this.cities.get(count).distances[this.cities.get(0).index];\n\t}", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }", "public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}", "public double calculateSubTotal() {\n return candy.getPrice() * quantity;\n\n }", "public abstract double getCost();", "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "@Override\n protected double calcTotalCost() {\n \n double totalCost, templateBasicRate = DEFAULT_BASIC_RATE;\n double extraBedrooms = 0, extraBathrooms = 0;\n\n // if there are extra beds/baths\n if (this.getNumBedrooms() > DEFAULT_NUM_BEDROOMS)\n extraBedrooms = this.getNumBedrooms() - DEFAULT_NUM_BEDROOMS;\n\n if (this.getNumBathrooms() > DEFAULT_NUM_BATHROOMS)\n extraBathrooms = this.getNumBathrooms() - DEFAULT_NUM_BATHROOMS;\n\n // multiply basic rate by 1.5 if the total area is >= 3,000 sq ft\n if (this.getTotalArea() >= 3000)\n templateBasicRate *= 1.5;\n\n // calculate total cost\n totalCost = (templateBasicRate + ((800 * extraBedrooms) + (500 * extraBathrooms)));\n\n // add tax\n totalCost += (TAX * totalCost);\n\n return totalCost;\n }", "public double calculateCost(Purchase purchase);", "@Pure\n\tdouble getCost();", "double getSolutionCost();", "int getCost();", "int getCost();", "int getCost();", "public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}", "public double cost() {\n return roomType.cost() + COST;\n }", "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "public static double computeAccidentCosts(double demand, Link link, ArrayList<Integer> roadType){\n\n\t\t// in EUR per 1000 vehicle-km\n\t\tdouble costRateTable[][][] = {\n\t\t\t\t\n\t\t\t/*\tposition 1\n\t\t\t * \t\tcolumn 0: 'Außerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 1: 'Innerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 2: 'Außerhalb von bebauten Gebiet'\n\t\t\t * \t\tcolumn 3: 'Innerhalb von bebauten Gebiet'\n\t\t\t * \n\t\t\t * \tposition 2: number of lanes\n\t\t\t */\n\t\t\t\n\t\t\t// 'planfrei': positon 0 --> 0\n\t\t\t{\n\t\t\t\t{ 0 , 0 , 0 , 0 }, // 1 lane\n\t\t\t\t{ 23.165 , 23.165 , 0 , 0 }, // 2 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 }, // 3 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 } // 4 lane\n\t\t\t},\n\t\t\t// 'plangleich': positon 0 --> 1\n\t\t\t{\n\t\t\t\t{ 61.785 , 101.2 , 61.785 , 101.2 }, // 1 lane\n\t\t\t\t{ 31.63 , 101.53 , 31.63 , 101.53 }, // 2 lane\n\t\t\t\t{ 37.84 , 82.62 , 34.735 , 101.53 }, // 3 lane\n\t\t\t\t{ 0 , 0 , 0 , 101.53 } // 4 lane\n\t\t\t},\n\t\t\t// tunnel: positon 0 --> 2\n\t\t\t{\n\t\t\t\t{ 9.56 , 15.09 , 9.56 , 15.09 }, // 1 lane\n\t\t\t\t{ 11.735 , 14.67425 , 0 , 17.57 }, // 2 lane\n\t\t\t\t{ 11.735 , 11.735 , 0 , 17.57 }, // 3 lane\n\t\t\t\t{ 9.11 , 9.11 , 0 , 17.57 } // 4 lane\n\t\t\t}\t\t\n\t\t};\n\t\t\n\t\tdouble costRate = costRateTable[roadType.get(0)][roadType.get(2)-1][roadType.get(1)]; \n\t\tif (costRate == 0) {\n\t\t\tlog.warn(\"Accident cost rate for link \" + link.getId().toString() + \" is 0. (roadtype: \" + roadType.toString() + \")\" );\n\t\t}\n\t\t\n\t\tdouble vehicleKm = demand * (link.getLength() / 1000.);\n\t\t\n\t\tdouble accidentCosts = costRate * (vehicleKm / 1000.);\n\t\t\n\t\treturn accidentCosts;\t\t\n\t}", "public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }", "@Override\n public double getCost(int hours) {\n\n if (hours < 2) {\n\n return 30;\n } else if (hours < 4) {\n\n return 70;\n } else if (hours < 24) {\n\n return 100;\n } else {\n\n int days = hours / 24;\n return days * 100;\n }\n }", "@Override\n\tpublic double[] getVehicleCost() {\n\t\t\n\t\t\n\t\tdouble[] temp = {constantPO.getVanCost(),constantPO.getRailwayCost(),constantPO.getAirplaneCost()};\n\t\t\n\t\treturn temp;\n\t}", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "@Override\n\tprotected void computeWithoutTime() {\n\t\tinitShortestPaths();\n\n\t\t// Then we sort for each node v the list of terminals by the distance from v\n\t\tsortedRequiredVertices = new HashMap<Integer, TreeSet<Integer>>();\n\t\tsortRequiredVertices();\n\t\t\n\t\t// Copy of the terminals\n\t\tHashSet<Integer> req = new HashSet<Integer>(\n\t\t\t\tinstance.getRequiredVertices());\n\n\t\t// Union of all the solutions returned by the subalgorithm CH2\n\t\tHashSet<Arc> currentSol = new HashSet<Arc>();\n\n\t\t// Until all terminals are reached\n\t\twhile (req.size() > 0) {\n\n\t\t\t// We apply CH2 to reach some of the non reached terminals\n\t\t\tCouple<HashSet<Arc>, HashSet<Integer>> tree = applyCH2(req);\n\n\t\t\t// tree.first the tree returned by CH2\n\t\t\t// tree.second is the terminals of that tree\n\n\t\t\tcurrentSol.addAll(tree.first);\n\t\t\tfor (Arc a : tree.first)\n\t\t\t\tcosts.put(a, 0); // Set the cost of the arc to 0, as this arc is already used in the solution, it does not cost anything to use it again.\n\t\t\treq.removeAll(tree.second);\n\t\t}\n\n\t\t// Compute the returned solution and its cost.\n\t\tarborescence = new HashSet<Arc>();\n\t\tint c = 0;\n\t\tfor (Arc a : currentSol) {\n\t\t\tList<Arc> l = shortestPaths.get(a);\n\t\t\tif (a.getInput().equals(a.getOutput()))\n\t\t\t\tl = new ArrayList<Arc>();\n\t\t\tfor (Arc b : l) {\n\t\t\t\tarborescence.add(b);\n\t\t\t\tc += instance.getCost(b);\n\t\t\t}\n\t\t}\n\t\tcost = c;\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}", "Integer cost(PathFindingNode node, PathFindingNode neighbour);", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "public double getCosts();", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "@Override\n public double getCost() {\n\t return 13;\n }", "double getRouteCost(Graph g){\n double totalCost = 0;\n double matrixWeights[][] = g.getMatrixOfWeights(); //get the matrix of weights from the class Graph\n for(int i=0;i<cityIndex.size()-1;i++){\n //the cost is calculated by computing the route from one index to the next since the representation is\n // a permutation\n totalCost = totalCost + matrixWeights[cityIndex.get(i)][cityIndex.get(i+1)];\n }\n totalCost = totalCost+matrixWeights[cityIndex.get(cityIndex.size()-1)][cityIndex.get(0)]; //To Return back from the\n // last to the first city\n return totalCost;\n }", "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "@Override\n public double getCost() {\n return cost;\n }", "public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }", "public double getCost() \n { \n return super.getCost() +22;\n }", "public void calculateCost(){\n if(this.isChair){\n for(int i = 0; i < this.chairs.length; i++){\n this.cost += this.chairs[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isDesk){\n for(int i = 0; i < this.desks.length; i++){\n this.cost += this.desks[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isFiling){\n for(int i = 0; i < this.filingCabinets.length; i++){\n this.cost += this.filingCabinets[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isLamp){\n for(int i = 0; i < this.lamps.length; i++){\n this.cost += this.lamps[i].getPrice();\n }\n }\n }", "public int getSolutionCost(){\r\n if (this.path_solution.size()==0)\r\n return 0;\r\n return this.path_solution.get(this.path_solution.size()-1).getCost();\r\n }", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }", "@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "public void setSubWC(float c) {\r\n costs.put(Transports.SUBWAY, c);\r\n }", "public float getCost(int weight, int volume) {\r\n\t\t//System.out.println(\"getCost method in Journey called. should have been a delivery.\");\r\n\t\ttimesUsed++;\r\n\t\tfloat total = 0;\r\n\t\tfor(Path p: usedPaths){\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttotal += p.calcCost(weight, volume);\r\n\t\t\t\t} catch (OverweightException 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 (ExceededVolumeException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\ttotalCost += total;\r\n\t\treturn total;\r\n\t}", "private void getCostAndEta() {\n\n GetVehiclesData vehiclesData = RetrofitClientInstance.getRetrofitInstance().create(GetVehiclesData.class);\n getVehicles.getVehiclesData(vehiclesData);\n setCostToLabel(getVehicles.getCost());\n setETAToLabel(getVehicles.getETA());\n\n }", "public double getCost()\n\t{\n\t\treturn 0.9;\n\t}", "@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}", "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "public double getTotalCost() {\r\n return totalCost;\r\n }", "public double calculatingCostO(int quantity)\n { \n cost = 750 + (0.25 * quantity);\n return cost;\n \n }", "public double getCost() {\r\n return cost;\r\n }", "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }", "public double getCost(int miles, int time) {\n\t\treturn 1.00 + (time / 30 ); \n\t}", "public double calculateCostExclusive() {\n\t\tdouble accumulatedCost = 0;\n\t\tfor(int i = 0; i < solutionLength - 1; i++) {\n\t\t\taccumulatedCost += calculateEuclideanDistance(solutionRepresentation.get(i), solutionRepresentation.get(i + 1));\n\t\t}\n\t\t\n\t\treturn accumulatedCost;\n\t}", "public void calculateRoute() {\n SKRouteSettings route = new SKRouteSettings();\n route.setStartCoordinate(start);\n route.setDestinationCoordinate(end);\n route.setNoOfRoutes(1);\n switch (routingType) {\n case SHORTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_SHORTEST);\n break;\n case FASTEST:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_FASTEST);\n break;\n case QUIET:\n route.setRouteMode(SKRouteSettings.SKRouteMode.BICYCLE_QUIETEST);\n break;\n }\n route.setRouteExposed(true);\n SKRouteManager.getInstance().calculateRoute(route);\n }", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "@Override\n public double cost(){\n return 2 + super.cake.cost();\n }", "public double getCost() {\n return cost;\n }", "public double getCost() {\n return cost;\n }", "public double findCostForGivenDistance(Date tripStartTime, City city, CarType type, double distance){\n LocalTime after = LocalTime.parse(\"22:00:00\");\n LocalTime before = LocalTime.parse(\"05:00:00\");\n LocalTime now = LocalTime.of(tripStartTime.getHours(), tripStartTime.getMinutes());\n double charges = 0;\n double luxTax = 0;\n if(now.isAfter(after) && now.isBefore(before)){\n charges = city.getNight_charge();\n }\n else {\n charges = city.getDay_charge();\n }\n if(type == CarType.LUX){\n luxTax = city.getLux_tax();\n }\n double cost = distance * charges;\n return cost + (cost * luxTax/100);\n }", "double calculatePrice(VehicleType vehicleType, Date entryTime, Date exitTime);", "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "public double getCost() {\n\t\tif (this.accommodationType.equals(TYPEsingle)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 50.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else {\n\t\t\t\treturn 110.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEdouble)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 98.0;\n\t\t\t} else {\n\t\t\t\treturn 154.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEfamily)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 86.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 180.6;\n\t\t\t\t} else {\n\t\t\t\t\treturn 120.4;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 283.8;\n\t\t\t\t} else {\n\t\t\t\t\treturn 189.2;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEpresidential)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 200.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 420.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 280.0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 660.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 440.0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "public double getCost()\r\n\t{\treturn this.cost;\t}", "public static double calculateCost(String type, int dist) {\n\t\t// HINT: This function always returns 0 but that's not right. \n\t\t// Use the helper functions getZoneDistance() and getMailType()\n\t\t// and use those return values to compute the cost according to\n\t\t// the specifications in the comments.\n\t\treturn 0; \n\t}", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "public double getCost() {\n\t\treturn cost;\n\t}", "public int getAdditionalStopCost() {\n return additionalStopCost;\n }", "@Pure\n\tdouble getEstimatedCost();", "public void calculateSubprojects() {\n totalWorkHours = 0;\n estTotalCost = 0;\n\n for (int i = 0; i < subprojects.size(); i++) {\n int[] taskData = subprojects.get(i).calculateSubproject(baselineHoursPrWorkday);\n totalWorkHours += taskData[0];\n estTotalCost += taskData[1];\n estTotalCost += taskData[2];\n }\n }", "public double cost()\n\t{\n\t\treturn _dblCost;\n\t}", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public int getCost() {\n \t\treturn cost;\n \t}", "public double getCost() {\n\t\treturn 1.25;\n\t}", "public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}", "public double getCost() {\n\n\t\treturn cost;\n\t}", "public double getCost(){\n return cost;\n }", "public int getWorkCredCost();", "public int getCost(Tile<T> n1, Tile<T> n2);", "public BigDecimal getCost() {\r\n return cost;\r\n }", "public double getArcCost(AsNode child) {\n\t\treturn this.state.getG() + childCost.get(child);\n\t}", "public double GetCost() {\n if( LotSize != CurLotSize ) {\n double CostPerShot = Cost / (double) LotSize;\n return CommonTools.RoundFractionalTons( CostPerShot * (double) CurLotSize );\n }\n return Cost;\n }", "@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }" ]
[ "0.64820683", "0.6385431", "0.6385431", "0.6366386", "0.63556385", "0.6324461", "0.62243754", "0.6173856", "0.6124399", "0.61119616", "0.60989714", "0.60782033", "0.60509735", "0.60484946", "0.6018586", "0.6016952", "0.6001784", "0.5995073", "0.5989384", "0.5989384", "0.5989384", "0.5986607", "0.5985484", "0.5972263", "0.5921667", "0.5915699", "0.59124064", "0.59119487", "0.5909792", "0.5909127", "0.58947945", "0.58900833", "0.5874443", "0.5851006", "0.5850839", "0.58398336", "0.5833996", "0.58144724", "0.5791582", "0.57861257", "0.57764494", "0.57757914", "0.57543343", "0.5752872", "0.5750987", "0.5742371", "0.5736092", "0.5732959", "0.57259697", "0.57164675", "0.5716325", "0.57126206", "0.5711668", "0.5710284", "0.56994075", "0.5695675", "0.5695675", "0.5695675", "0.5694118", "0.5690951", "0.56761605", "0.5672413", "0.56717527", "0.56653625", "0.5662539", "0.56598073", "0.5654727", "0.56540716", "0.56528336", "0.5647916", "0.5645813", "0.56411254", "0.56386113", "0.56351477", "0.56309164", "0.56309164", "0.5628539", "0.5625583", "0.56203693", "0.5615936", "0.56108546", "0.5610675", "0.560385", "0.55996543", "0.5594237", "0.5588174", "0.5572983", "0.5562759", "0.5562129", "0.5560179", "0.55563945", "0.5550736", "0.55500233", "0.55498624", "0.5543847", "0.55373657", "0.5531649", "0.5528557", "0.5525981", "0.55224174", "0.5519787" ]
0.0
-1
Calculate the cost of a train ride
public static int railFare(int age, Scanner console){ int zoneNum; int cents; System.out.print("What zone (use 0 for zone 1A)?: "); zoneNum = console.nextInt(); console.nextLine(); // Consume rest of line if(zoneNum == 0){ cents = 170; //cost is $1.70 for zone 1 } else{ cents = 425 + (50 * (zoneNum - 1)); // All other zones cost $4.25 + $0.50 for each zone after 1 } if ((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off cents = (cents / 2); } return cents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "double getTotalCost();", "double getCost();", "double getCost();", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}", "public void calculateCost() {\n\t\tthis.cost = 0.0;\n\t\t\n\t\tint i, count = this.cities.size()-1;\n\t\tfor (i = 0; i < count; i++)\n\t\t\tthis.cost += this.cities.get(i).distances[this.cities.get(i+1).index];\n\n\t\tthis.cost += this.cities.get(count).distances[this.cities.get(0).index];\n\t}", "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }", "int getCost();", "int getCost();", "int getCost();", "public abstract double getCost();", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "@Pure\n\tdouble getCost();", "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "@Pure\n\tdouble getEstimatedCost();", "@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }", "double calculateDeliveryCost(Cart cart);", "public double getCost() {\r\n return cost;\r\n }", "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }", "public double getTotalCost() {\r\n return totalCost;\r\n }", "@Override\n public double calcCost() {\n return calcSalesFee()+calcTaxes();\n }", "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "public static double computeAccidentCosts(double demand, Link link, ArrayList<Integer> roadType){\n\n\t\t// in EUR per 1000 vehicle-km\n\t\tdouble costRateTable[][][] = {\n\t\t\t\t\n\t\t\t/*\tposition 1\n\t\t\t * \t\tcolumn 0: 'Außerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 1: 'Innerhalb von bebauten Gebiet, Kfz-Straße'\n\t\t\t * \t\tcolumn 2: 'Außerhalb von bebauten Gebiet'\n\t\t\t * \t\tcolumn 3: 'Innerhalb von bebauten Gebiet'\n\t\t\t * \n\t\t\t * \tposition 2: number of lanes\n\t\t\t */\n\t\t\t\n\t\t\t// 'planfrei': positon 0 --> 0\n\t\t\t{\n\t\t\t\t{ 0 , 0 , 0 , 0 }, // 1 lane\n\t\t\t\t{ 23.165 , 23.165 , 0 , 0 }, // 2 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 }, // 3 lane\n\t\t\t\t{ 23.79 , 23.79 , 0 , 0 } // 4 lane\n\t\t\t},\n\t\t\t// 'plangleich': positon 0 --> 1\n\t\t\t{\n\t\t\t\t{ 61.785 , 101.2 , 61.785 , 101.2 }, // 1 lane\n\t\t\t\t{ 31.63 , 101.53 , 31.63 , 101.53 }, // 2 lane\n\t\t\t\t{ 37.84 , 82.62 , 34.735 , 101.53 }, // 3 lane\n\t\t\t\t{ 0 , 0 , 0 , 101.53 } // 4 lane\n\t\t\t},\n\t\t\t// tunnel: positon 0 --> 2\n\t\t\t{\n\t\t\t\t{ 9.56 , 15.09 , 9.56 , 15.09 }, // 1 lane\n\t\t\t\t{ 11.735 , 14.67425 , 0 , 17.57 }, // 2 lane\n\t\t\t\t{ 11.735 , 11.735 , 0 , 17.57 }, // 3 lane\n\t\t\t\t{ 9.11 , 9.11 , 0 , 17.57 } // 4 lane\n\t\t\t}\t\t\n\t\t};\n\t\t\n\t\tdouble costRate = costRateTable[roadType.get(0)][roadType.get(2)-1][roadType.get(1)]; \n\t\tif (costRate == 0) {\n\t\t\tlog.warn(\"Accident cost rate for link \" + link.getId().toString() + \" is 0. (roadtype: \" + roadType.toString() + \")\" );\n\t\t}\n\t\t\n\t\tdouble vehicleKm = demand * (link.getLength() / 1000.);\n\t\t\n\t\tdouble accidentCosts = costRate * (vehicleKm / 1000.);\n\t\t\n\t\treturn accidentCosts;\t\t\n\t}", "@Override\n public double getCost() {\n return cost;\n }", "public double cost() {\n return roomType.cost() + COST;\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public double getCost() {\n return cost;\n }", "public double getCost() {\n return cost;\n }", "@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}", "@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}", "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public double calculateCost(Purchase purchase);", "public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}", "public double getCosts();", "@Override\n public double getCost() {\n\t return 13;\n }", "private void getCostAndEta() {\n\n GetVehiclesData vehiclesData = RetrofitClientInstance.getRetrofitInstance().create(GetVehiclesData.class);\n getVehicles.getVehiclesData(vehiclesData);\n setCostToLabel(getVehicles.getCost());\n setETAToLabel(getVehicles.getETA());\n\n }", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "public double getCost() {\n\t\treturn cost;\n\t}", "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public void calculateCost(){\n if(this.isChair){\n for(int i = 0; i < this.chairs.length; i++){\n this.cost += this.chairs[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isDesk){\n for(int i = 0; i < this.desks.length; i++){\n this.cost += this.desks[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isFiling){\n for(int i = 0; i < this.filingCabinets.length; i++){\n this.cost += this.filingCabinets[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isLamp){\n for(int i = 0; i < this.lamps.length; i++){\n this.cost += this.lamps[i].getPrice();\n }\n }\n }", "public double getCost()\n\t{\n\t\treturn 0.9;\n\t}", "public double getCost(){\n return cost;\n }", "public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "@Override\n\tpublic double cost() {\n\t\treturn 10000;\n\t}", "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "public double getCost()\r\n\t{\treturn this.cost;\t}", "double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }", "public double getCost() {\n\n\t\treturn cost;\n\t}", "public double findCostForGivenDistance(Date tripStartTime, City city, CarType type, double distance){\n LocalTime after = LocalTime.parse(\"22:00:00\");\n LocalTime before = LocalTime.parse(\"05:00:00\");\n LocalTime now = LocalTime.of(tripStartTime.getHours(), tripStartTime.getMinutes());\n double charges = 0;\n double luxTax = 0;\n if(now.isAfter(after) && now.isBefore(before)){\n charges = city.getNight_charge();\n }\n else {\n charges = city.getDay_charge();\n }\n if(type == CarType.LUX){\n luxTax = city.getLux_tax();\n }\n double cost = distance * charges;\n return cost + (cost * luxTax/100);\n }", "public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "public int getCost() {\n \t\treturn cost;\n \t}", "public double getTotal() {\n return totalCost;\n }", "public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}", "public double cost()\n\t{\n\t\treturn _dblCost;\n\t}", "public double getCost() {\n\t\treturn 1.25;\n\t}", "float getCostReduction();", "double getSolutionCost();", "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "public double cost()\n\t{\n\t\treturn (price * weight);\n\t}", "public float getWalkC() {\r\n return costs.get(Transports.WALK);\r\n }", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public double getCost() {\n\t\treturn this.cost;\n\t}", "public int getCost() {\n return cost;\n }", "@Override\n\tpublic double calcSpendFuel() {\n\t\tdouble result = distance / (literFuel - fuelStart);\n\t\treturn result;\n\t}", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "public double getCost() \n { \n return super.getCost() +22;\n }", "@Override\n\tpublic int calculateCost() \n\t{\n\t\treturn (this.modernCenterpieceCost*this.centerpieceCount);\n\t}", "public int getCost() {\n return cost;\n }", "public int getCost() {\n return cost;\n }", "public void calcularCost() {\r\n cost = 0;\r\n int a = 0;\r\n try {\r\n String r = DataR.toString()+ \" \" + horaR;\r\n String d = DataD.toString()+ \" \" + horaD;\r\n SimpleDateFormat simpleDateFormat = new SimpleDateFormat(\"dd/MM/yyyy HH:mm:ss\");\r\n Date dateR = simpleDateFormat.parse(r);\r\n Date dateD = simpleDateFormat.parse(d);\r\n a = (int) ((dateD.getTime() - dateR.getTime())/(1000*3600));\r\n \r\n \r\n } catch (ParseException ex) {\r\n Logger.getLogger(Reserva.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n if(a > 24) {\r\n cost += 15*(a/(24));\r\n a -= (((int)(a/24))*24);\r\n }\r\n if(a%3600 == 0) {\r\n cost += 1;\r\n }\r\n if(a%3600 > 0) {\r\n cost += 1;\r\n }\r\n \r\n }", "public float getCost(int weight, int volume) {\r\n\t\t//System.out.println(\"getCost method in Journey called. should have been a delivery.\");\r\n\t\ttimesUsed++;\r\n\t\tfloat total = 0;\r\n\t\tfor(Path p: usedPaths){\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttotal += p.calcCost(weight, volume);\r\n\t\t\t\t} catch (OverweightException 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 (ExceededVolumeException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\ttotalCost += total;\r\n\t\treturn total;\r\n\t}", "@Override\n public int computeProfit() {\n return getVehiclePerformance() / getVehiclePrice();\n }", "public double GetCost() {\n if( LotSize != CurLotSize ) {\n double CostPerShot = Cost / (double) LotSize;\n return CommonTools.RoundFractionalTons( CostPerShot * (double) CurLotSize );\n }\n return Cost;\n }", "public TrainRoute calculateShortestRoute(Train train) {\n\t\tSet<Integer> allVertices = layout.vertexSet();\n\t\tHashSet<Integer> visitedNodes = new HashSet<Integer>(layout.vertexSet().size());\n\t\tdouble totalWeight = ((DefaultBlock)blockData.get(train.currentBlock)).blockLength - train.distanceTraveledOnBlock;\n\t\tInteger currentBlock = null;\n\t\tInteger destinationBlock = null;\n\t\tLinkedList<Integer> path = new LinkedList<Integer>();\n\t\tHashMap<LinkedList<Integer>, Double> allSimplePaths = new HashMap<LinkedList<Integer>, Double>();\n\t\tfor (Integer i : allVertices) {\n\t\t\tif (i.equals(train.currentBlock)) {\n\t\t\t\tcurrentBlock = i;\n\t\t\t}\n\t\t\tif (i.equals(train.destination)) {\n\t\t\t\tdestinationBlock = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfindSimplePaths(currentBlock, destinationBlock, totalWeight, path, allVertices, visitedNodes, allSimplePaths);\n\t\t// Create a route object for all of the paths\n\t\tLinkedList<TrainRoute> allTrainRoutes = new LinkedList<TrainRoute>();\n\t\tfor (LinkedList<Integer> p : allSimplePaths.keySet()) {\n\t\t\tDouble pathDistance = allSimplePaths.get(p);\n\t\t\tp.add(0, currentBlock);\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(currentBlock)).blockLength;\n\t\t\tpathDistance += ((DefaultBlock)blockData.get(p.get(p.size()-1))).blockLength/2;\n\t\t\t// create the TrainRoute Object\n\t\t\tdouble trainSpeed = ((DefaultBlock)blockData.get(train.currentBlock)).speedLimit;\n\t\t\tif (train.maxSpeed < trainSpeed) {\n\t\t\t\ttrainSpeed = train.maxSpeed;\n\t\t\t}\n\t\t\tdouble authority = train.authority;\n\t\t\tif (authority > pathDistance) {\n\t\t\t\tauthority = pathDistance;\n\t\t\t}\n\n\t\t\tallTrainRoutes.add(new TrainRoute(lineName, train.currentBlock, p, trainSpeed, authority, pathDistance));\n\t\t}\n\t\tCollections.sort(allTrainRoutes);\n\t\tblockToControllerMap.get(currentBlock).addRoute(allTrainRoutes.get(0));\n\t\treturn allTrainRoutes.get(0);\n\t}", "double getRouteCost(Graph g){\n double totalCost = 0;\n double matrixWeights[][] = g.getMatrixOfWeights(); //get the matrix of weights from the class Graph\n for(int i=0;i<cityIndex.size()-1;i++){\n //the cost is calculated by computing the route from one index to the next since the representation is\n // a permutation\n totalCost = totalCost + matrixWeights[cityIndex.get(i)][cityIndex.get(i+1)];\n }\n totalCost = totalCost+matrixWeights[cityIndex.get(cityIndex.size()-1)][cityIndex.get(0)]; //To Return back from the\n // last to the first city\n return totalCost;\n }", "public int getCost()\n {\n return cost;\n }", "@Override\n public int getCost() {\n return iceCreamPrice + topPrice;\n }", "@Override\n protected double calcTotalCost() {\n \n double totalCost, templateBasicRate = DEFAULT_BASIC_RATE;\n double extraBedrooms = 0, extraBathrooms = 0;\n\n // if there are extra beds/baths\n if (this.getNumBedrooms() > DEFAULT_NUM_BEDROOMS)\n extraBedrooms = this.getNumBedrooms() - DEFAULT_NUM_BEDROOMS;\n\n if (this.getNumBathrooms() > DEFAULT_NUM_BATHROOMS)\n extraBathrooms = this.getNumBathrooms() - DEFAULT_NUM_BATHROOMS;\n\n // multiply basic rate by 1.5 if the total area is >= 3,000 sq ft\n if (this.getTotalArea() >= 3000)\n templateBasicRate *= 1.5;\n\n // calculate total cost\n totalCost = (templateBasicRate + ((800 * extraBedrooms) + (500 * extraBathrooms)));\n\n // add tax\n totalCost += (TAX * totalCost);\n\n return totalCost;\n }", "double setEstimatedCost(double cost);", "public int getCost(){\r\n\t\treturn this.cost;\r\n\t}", "public double calculateCostInclusive() {\n\t\tdouble accumulatedCost = 0;\n\t\taccumulatedCost += calculateEuclideanDistance(host.grid.getLocation(host), solutionRepresentation.get(0));\n\t\taccumulatedCost += calculateCostExclusive();\n\t\t\n\t\treturn accumulatedCost;\n\t}", "@Override\n public int getCost() {\n int price = (int) Math.round(this.weight * this.pricePerLbs); //get the price of the cookies in the form of an int\n return price; //return the price\n\n }", "public int getCost()\r\n\t{\n\t\treturn 70000;\r\n\t}", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }", "public float getTotalCost() {\n return this.totalCost;\n }", "public void caltotaltraveltime()\n {\n \t\n \t switch(this.mLegs.size())\n \t {\n \t case 0:\n \t {\n \t\t this.mTravelTime=0;\n \t\t break;\n \t }\n \t case 1:\n \t { \n \t\t this.mTravelTime=this.mLegs.get(0).flighttime();\n \t\t break;\n \t }\n \t case 2:\n \t {\n \t\t Date arrivalt = this.mLegs.get(1).arrivaldate();\n \t\t Date departt = this.mLegs.get(0).departuredate();\n \t\t long diff = (arrivalt.getTime() - departt.getTime())/60000;\n \t\t this.mTravelTime=diff;\n \t\t break;\n \t }\n \t case 3:\n \t {\n \t Date arrivalt = this.mLegs.get(2).arrivaldate();\n \t Date departt = this.mLegs.get(0).departuredate();\n \t long diff = (arrivalt.getTime() - departt.getTime())/60000;\n \t this.mTravelTime=diff;\n \t break;\n \t }\n \t }\n }" ]
[ "0.676092", "0.6735939", "0.6735939", "0.6601205", "0.65614915", "0.6557486", "0.6495048", "0.6436094", "0.63827753", "0.6266983", "0.6266983", "0.6266983", "0.6248103", "0.6244854", "0.6231843", "0.62204266", "0.6153766", "0.6148142", "0.61464214", "0.6135057", "0.61296606", "0.61278063", "0.61272645", "0.61200684", "0.611485", "0.6108642", "0.6104361", "0.61032706", "0.60975254", "0.60899246", "0.6081844", "0.6081726", "0.6078176", "0.6075061", "0.6075061", "0.60557675", "0.60409975", "0.6038809", "0.60325575", "0.6028198", "0.60164714", "0.60156065", "0.60127085", "0.60100925", "0.60083896", "0.59984416", "0.59830743", "0.5981143", "0.59741586", "0.59693503", "0.5963091", "0.5961795", "0.5957053", "0.5953356", "0.59522855", "0.5947151", "0.59453225", "0.59444857", "0.5930877", "0.5919493", "0.59166247", "0.5893575", "0.58786595", "0.58765084", "0.5868719", "0.58594364", "0.5854037", "0.58474517", "0.58465284", "0.5833392", "0.5828339", "0.5826609", "0.5806683", "0.5806683", "0.5803297", "0.578789", "0.5787295", "0.5787295", "0.5787295", "0.57865345", "0.57828504", "0.5779946", "0.5779946", "0.57759637", "0.57749873", "0.5774719", "0.5773102", "0.5770868", "0.5761758", "0.5760529", "0.5749565", "0.5743594", "0.57429653", "0.57390136", "0.5734272", "0.57270837", "0.5722608", "0.5710495", "0.5706969", "0.5706385", "0.5706079" ]
0.0
-1
Calculate cost of a boat ride
public static int boatFare(int age, Scanner console){ int cents=0; String boatType; System.out.print("Enter the type of boat (I for Inner Harbor, B for Boston, L for Logan): "); boatType = console.next(); console.nextLine(); // Consume the rest of the line if (boatType.equalsIgnoreCase("i")){ cents = 170; if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off cents = cents / 2; } } else if (boatType.equalsIgnoreCase("b")){ cents = 600; if((age >= 12 && age <= 18) ||(age >= 65)){ // Students and seniors get 50% off cents = cents / 2; } } else if (boatType.equalsIgnoreCase("l")){ cents = 1200; if(age >= 12 && age <= 18){ // Students get 50% off cents = cents / 2; } else if(age >= 65){ cents = cents - 1000; // Seniors get $10 off } } return cents; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public double calcCost(){\n double cost = 0;\n cost += pMap.get(size);\n cost += cMap.get(crust);\n //Toppings are priced at 3.00 for 3-4 topppings, and 4.0 for 5+ toppings\n \n if(toppings !=null)\n {\n if((toppings.length == 3) || (toppings.length == 4)){\n cost += 3.0;\n }\n if (toppings.length > 4){\n cost += 4.0;\n }\n }\n \n return cost;\n }", "double getCost();", "double getCost();", "public void calculateOrderCost(){\n int tmpCost=0;\n for (Vehicle v : vehicleList){\n tmpCost+=v.getCost();\n }\n totalCost=tmpCost;\n }", "double getTotalCost();", "public double calcCost() {\n // $2 per topping.\n double cost = 2 * (this.cheese + this.pepperoni + this.ham);\n // size cost\n switch (this.size) {\n case \"small\":\n cost += 10;\n break;\n case \"medium\":\n cost += 12;\n break;\n case \"large\":\n cost += 14;\n break;\n default:\n }\n return cost;\n }", "public void calculateCost() {\n\t\tthis.cost = 0.0;\n\t\t\n\t\tint i, count = this.cities.size()-1;\n\t\tfor (i = 0; i < count; i++)\n\t\t\tthis.cost += this.cities.get(i).distances[this.cities.get(i+1).index];\n\n\t\tthis.cost += this.cities.get(count).distances[this.cities.get(0).index];\n\t}", "public double calcCost() {\n if (pizzaSize.equals(\"small\")) {\n return 10.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n\n }\n else if (pizzaSize.equals(\"medium\")) {\n return 12.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n else {\n return 14.0 + ((cheeseToppings + pepperoniToppings + veggieToppings) * 2);\n }\n }", "public int calculateCost() {\n int premium = surety.calculatePremium(insuredValue);\n SuretyType suretyType = surety.getSuretyType();\n int commission = (int) Math.round(premium * vehicle.getCommission(suretyType));\n return premium + commission;\n }", "@Override\n\tpublic double getCost() {\n\t\treturn price * weight; // cost = price of the candy * weight of candies\n\t}", "double calculateDeliveryCost(Cart cart);", "@Override\n\tpublic double cost() {\n\t\tdouble price = good.cost();\n\t\treturn price+price/2;\n\t}", "public double getcost() {\r\n\t\t// TODO Auto-generated method stub\r\n\t\treturn room.getcost() + cost;\r\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn water.cost()+10;\n\t}", "double ComputeCost(double order, double tipPercent, double serviceRating, double foodRating)\r\n {\r\n // kazda gwiazdka to 2 procent od sumy zamówienia\r\n return order + order * (tipPercent/100) + (serviceRating * 0.02) * order + (foodRating * 0.02) * order;\r\n }", "int getCost();", "int getCost();", "int getCost();", "@Override\n protected double calcTotalCost() {\n \n double totalCost, templateBasicRate = DEFAULT_BASIC_RATE;\n double extraBedrooms = 0, extraBathrooms = 0;\n\n // if there are extra beds/baths\n if (this.getNumBedrooms() > DEFAULT_NUM_BEDROOMS)\n extraBedrooms = this.getNumBedrooms() - DEFAULT_NUM_BEDROOMS;\n\n if (this.getNumBathrooms() > DEFAULT_NUM_BATHROOMS)\n extraBathrooms = this.getNumBathrooms() - DEFAULT_NUM_BATHROOMS;\n\n // multiply basic rate by 1.5 if the total area is >= 3,000 sq ft\n if (this.getTotalArea() >= 3000)\n templateBasicRate *= 1.5;\n\n // calculate total cost\n totalCost = (templateBasicRate + ((800 * extraBedrooms) + (500 * extraBathrooms)));\n\n // add tax\n totalCost += (TAX * totalCost);\n\n return totalCost;\n }", "public abstract double getCost();", "@Override\n public double getCost() {\n if (lunch != null && dinner != null) {\n return lunch.getCost() + dinner.getCost();\n }\n return 0;\n }", "public void caltotalprice(){\n \tthis.mTotalPrice = 0;\n \tif (this.isCoachSeat) {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.coachprice();\n \t\t}\n \t}else {\n \t\tfor (Flight f: this.mLegs) {\n \t\t\tthis.mTotalPrice += f.firstclassprice();\n \t\t}\n \t}\n }", "public double usageCost() {\r\n double totalCost = 0;\r\n for (Booking aBooking: getBookings()) {\r\n long diff = (aBooking.getDateTo().getTime() \r\n - aBooking.getDateFrom().getTime());\r\n int noOfDays = (int) ((diff / (1000 * 60 * 60 * 24)) + 1);\r\n totalCost += noOfDays * 50;\r\n }\r\n return totalCost;\r\n }", "public void compute(){\r\n\r\n\t\ttotalCost=(capAmount*CAPCOST)+(hoodyAmount*HOODYCOST)+(shirtAmount*SHIRTCOST);\r\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn 2.19;\n\t}", "public double cost() {\n return roomType.cost() + COST;\n }", "public float getCost()\r\n/* 13: */ {\r\n/* 14:10 */ return this.costFromStart + this.estimatedCostToGoal;\r\n/* 15: */ }", "public int getCost() {\n\t\treturn (int) Math.round(weight*price_per_pound);\n\t\t\n\t}", "public double getCost() {\n\t\tif (this.accommodationType.equals(TYPEsingle)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 50.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else {\n\t\t\t\treturn 110.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEdouble)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 70.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\treturn 98.0;\n\t\t\t} else {\n\t\t\t\treturn 154.0;\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEfamily)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 86.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 180.6;\n\t\t\t\t} else {\n\t\t\t\t\treturn 120.4;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 283.8;\n\t\t\t\t} else {\n\t\t\t\t\treturn 189.2;\n\t\t\t\t}\n\t\t\t}\n\t\t} else if (this.accommodationType.equals(TYPEpresidential)) {\n\t\t\tif (this.getRoomView().equals(\"street view\")) {\n\t\t\t\treturn 200.0;\n\t\t\t} else if (this.getRoomView().equals(\"garden view\")) {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 420.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 280.0;\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (getInfoJacuzzi() == true) {\n\t\t\t\t\treturn 660.0;\n\t\t\t\t} else {\n\t\t\t\t\treturn 440.0;\n\t\t\t\t}\n\t\t\t}\n\t\t} else {\n\t\t\treturn 0.0;\n\t\t}\n\t}", "public void calculateCost(){\n if(this.isChair){\n for(int i = 0; i < this.chairs.length; i++){\n this.cost += this.chairs[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isDesk){\n for(int i = 0; i < this.desks.length; i++){\n this.cost += this.desks[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isFiling){\n for(int i = 0; i < this.filingCabinets.length; i++){\n this.cost += this.filingCabinets[i].getPrice();\n }\n }\n //if furniture type is chair, add up cost of all items in list\n if(this.isLamp){\n for(int i = 0; i < this.lamps.length; i++){\n this.cost += this.lamps[i].getPrice();\n }\n }\n }", "public double getCost(int miles, int time) {\n\t\treturn 1.00 + (time / 30 ); \n\t}", "@Pure\n\tdouble getCost();", "public void calculateCost()\n\t{\n\t\tLogManager lgmngr = LogManager.getLogManager(); \n\t\tLogger log = lgmngr.getLogger(Logger.GLOBAL_LOGGER_NAME);\n\t\tString s = \"\";\n\t\tint costperfeet = 0;\n\t\tif (this.materialStandard.equals(\"standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1200;\n\t\telse if (this.materialStandard.equals(\"above standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1500;\n\t\telse if(this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == false)\n\t\t\tcostperfeet = 1800;\n\t\telse if (this.materialStandard.equals(\"high standard materials\") && this.fullyAutomated == true)\n\t\t\tcostperfeet = 2500;\n\t\t\n\t\tint totalCost = costperfeet * this.totalArea;\n\t\t/*s = \"Total Cost of Construction is :- \";\n\t\twriter.printf(\"%s\" + totalCost, s);\n\t\twriter.flush();*/\n\t\tlog.log(Level.INFO, \"Total Cost of Construction is :- \" + totalCost);\n\t}", "public double GetCost() {\n if( LotSize != CurLotSize ) {\n double CostPerShot = Cost / (double) LotSize;\n return CommonTools.RoundFractionalTons( CostPerShot * (double) CurLotSize );\n }\n return Cost;\n }", "public double calculateCost(Purchase purchase);", "public double calculateCost() {\n double output = price * (1 + taxRate);\n return output;\n }", "public double getCost() {\n\t\t\n\t\tdouble cost = 0;\n\t\t\n\t\tif (Objects.equals(Size, \"small\"))\n\t\t\tcost = 7.00;\n\t\telse if (Objects.equals(Size, \"medium\"))\n\t\t\tcost = 9.00;\n\t\telse if (Objects.equals(Size, \"large\"))\n\t\t\tcost = 11.00;\n\t\t\n\t\tcost += (Cheese - 1)*1.50;\n\t\tcost += Ham*1.50;\n\t\tcost += Pepperoni*1.50;\n\t\t\n\t\treturn cost;\t\t\n\t}", "public double cost() {\n\t\t\n\t\treturn 150.00;\n\t}", "@Override\n\tpublic double cost() {\n\t\treturn Double.parseDouble(rateOfLatte);\n\t}", "@Override\n\tpublic double calcSpendFuel() {\n\t\tdouble result = distance / (literFuel - fuelStart);\n\t\treturn result;\n\t}", "public int getCost()\n\t{\n\t\treturn m_nTravelCost;\n\t}", "@Override\n public int getCost() {\n return iceCreamPrice + topPrice;\n }", "public double getCost() {\n double price = 0;\n price += this.numPizzas * this.pizzaType.getCost();\n if(this.numPizzas >= 20) // Discount if >=20 pizzas\n return price * 0.9;\n else if(this.numPizzas >= 10) // Discount if between 10 and 20 pizzas\n return price * 0.95;\n return price; // No discount\n }", "public double getTotalCost(){\r\n\t\t//return the totalCost to the App\r\n\t\treturn totalCost;\r\n\t}", "public double getTotalCost() {\r\n\t\treturn cost;\r\n\t}", "public double getCost() {\r\n\t \treturn(cost);\r\n\t}", "public double calculatingCostO(int quantity)\n { \n cost = 750 + (0.25 * quantity);\n return cost;\n \n }", "public abstract int getCost();", "public abstract int getCost();", "public abstract int getCost();", "@Override\n public int getCost() {\n int price = (int) Math.round(this.weight * this.pricePerLbs); //get the price of the cookies in the form of an int\n return price; //return the price\n\n }", "public double getCost() {\n\t\treturn 1.25;\n\t}", "public double getCost() {\t\t \n\t\treturn cost;\n\t}", "public BigDecimal getCost() {\r\n return cost;\r\n }", "double calculateCost() {\n double cost = 0;\n InspectionDTO[] DTOArray = this.currentInspectionChecklist.inspectionDTOArray;\n for (int i = 0; i <= DTOArray.length - 1; i++) {\n cost += DTOArray[i].getCost();\n }\n return cost;\n }", "@Override\n public double getCost() {\n\t return 13;\n }", "@Override\n\tvoid get_cost_per_sqarefeet() {\n\t\tcost=1800;\n\t}", "public double getCost() {\r\n return cost;\r\n }", "@Override\r\n\tpublic int cost() {\n\t\treturn b1.cost() + 1;\r\n\t}", "@Pure\n\tdouble getEstimatedCost();", "public int getCost() { return hki.getBound(); }", "public double getCost() {\n return cost;\n }", "public double getCost() {\n return cost;\n }", "public double getTotalCost() {\r\n return totalCost;\r\n }", "private void getCostAndEta() {\n\n GetVehiclesData vehiclesData = RetrofitClientInstance.getRetrofitInstance().create(GetVehiclesData.class);\n getVehicles.getVehiclesData(vehiclesData);\n setCostToLabel(getVehicles.getCost());\n setETAToLabel(getVehicles.getETA());\n\n }", "@Override\n public double getCost() {\n return cost;\n }", "public double calculateTotalCost() {\n finalTotal = (saleAmount + taxSubtotal + SHIPPINGCOST);\n\n return finalTotal;\n }", "public double cost()\n\t{\n\t\treturn (price * weight);\n\t}", "public double getCost()\n\t{\n\t\treturn 0.9;\n\t}", "@Override\r\n\tpublic double cost() {\n\t\treturn this.cost;\r\n\t}", "public double getTotalCost() {\n cost = spr.calculateCost();\n return cost;\n }", "@Override\r\n\tpublic double getCost() {\r\n\t\tdouble total = 0;\r\n\t\t\r\n\t\tfor(Product p: parts) {\r\n\t\t\ttotal += p.getCost();\r\n\t\t}\r\n\t\t\r\n\t\treturn total;\r\n\t}", "public void calculateCost() {\n \tdouble costToShipPack;\n \tint numOfPacks = 1;\n \t\n \tfor(Package p: this.packages) {\n \t\tcostToShipPack = 3 + (p.calcVolume() - 1);\n \t\tthis.totalAmounts.put(\"Package \"+numOfPacks, costToShipPack);\n \t\tnumOfPacks++;\n \t}\n \t\n }", "public double getCost(StringBuffer detail, boolean ignoreAmmo) {\n double[] costs = new double[15];\n int i = 0;\n\n double cockpitCost = 0;\n if (getCockpitType() == Mech.COCKPIT_TORSO_MOUNTED) {\n cockpitCost = 750000;\n } else if (getCockpitType() == Mech.COCKPIT_DUAL) {\n // FIXME\n cockpitCost = 0;\n } else if (getCockpitType() == Mech.COCKPIT_COMMAND_CONSOLE) {\n // Command Consoles are listed as a cost of 500,000.\n // That appears to be in addition to the primary cockpit.\n cockpitCost = 700000;\n } else if (getCockpitType() == Mech.COCKPIT_SMALL) {\n cockpitCost = 175000;\n } else if (getCockpitType() == Mech.COCKPIT_INDUSTRIAL) {\n cockpitCost = 100000;\n } else {\n cockpitCost = 200000;\n }\n if (hasEiCockpit() && getCrew().getOptions().booleanOption(\"ei_implant\")) {\n cockpitCost = 400000;\n }\n costs[i++] = cockpitCost;\n costs[i++] = 50000;// life support\n costs[i++] = weight * 2000;// sensors\n int muscCost = hasTSM() ? 16000 : 2000;\n costs[i++] = muscCost * weight;// musculature\n costs[i++] = EquipmentType.getStructureCost(structureType) * weight;// IS\n costs[i++] = getActuatorCost();// arm and/or leg actuators\n Engine engine = getEngine();\n costs[i++] = engine.getBaseCost() * engine.getRating() * weight / 75.0;\n if (getGyroType() == Mech.GYRO_XL) {\n costs[i++] = 750000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f) * 0.5;\n } else if (getGyroType() == Mech.GYRO_COMPACT) {\n costs[i++] = 400000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f) * 1.5;\n } else if (getGyroType() == Mech.GYRO_HEAVY_DUTY) {\n costs[i++] = 500000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f) * 2;\n } else {\n costs[i++] = 300000 * (int) Math.ceil(getOriginalWalkMP() * weight / 100f);\n }\n double jumpBaseCost = 200;\n // You cannot have JJ's and UMU's on the same unit.\n if (hasUMU()) {\n costs[i++] = Math.pow(getAllUMUCount(), 2.0) * weight * jumpBaseCost;\n } else {\n if (getJumpType() == Mech.JUMP_BOOSTER) {\n jumpBaseCost = 150;\n } else if (getJumpType() == Mech.JUMP_IMPROVED) {\n jumpBaseCost = 500;\n }\n costs[i++] = Math.pow(getOriginalJumpMP(), 2.0) * weight * jumpBaseCost;\n }\n // num of sinks we don't pay for\n int freeSinks = hasDoubleHeatSinks() ? 0 : 10;\n int sinkCost = hasDoubleHeatSinks() ? 6000 : 2000;\n // cost of sinks\n costs[i++] = sinkCost * (heatSinks() - freeSinks);\n costs[i++] = hasFullHeadEject()?1725000:0;\n costs[i++] = getArmorWeight() * EquipmentType.getArmorCost(armorType);\n costs[i++] = getWeaponsAndEquipmentCost(ignoreAmmo);\n\n double cost = 0; // calculate the total\n for (int x = 0; x < i; x++) {\n cost += costs[x];\n }\n\n double omniMultiplier = 0;\n if (isOmni()) {\n omniMultiplier = 1.25f;\n cost *= omniMultiplier;\n }\n costs[i++] = -omniMultiplier; // negative just marks it as multiplier\n\n double weightMultiplier = 1 + (weight / 100f);\n costs[i++] = -weightMultiplier; // negative just marks it as multiplier\n cost = Math.round(cost * weightMultiplier);\n if (detail != null) {\n addCostDetails(cost, detail, costs);\n }\n return cost;\n }", "public double getCost() {\r\n\t\treturn cost;\r\n\t}", "@Override\n public double cost(){\n return 2 + super.cake.cost();\n }", "public int calculateBill() {\n\t\treturn chargeVehicle(); \n\t}", "public double getCost()\r\n\t{\treturn this.cost;\t}", "public double getCosts();", "public BigDecimal getCost() {\n return this.cost;\n }", "public float getWalkC() {\r\n return costs.get(Transports.WALK);\r\n }", "public int getCost() {\n \t\treturn cost;\n \t}", "public abstract double cost(List<Drink> drinks, Double originalPrice, String pattern);", "@Override\r\n public int getCost() {\r\n return cost;\r\n }", "@Override public double getCosto(){\n double d = 190.00;\n return d;\n }", "public double getCost(){\n return cost;\n }", "public double getCost() {\n\t\treturn cost;\n\t}", "double getRouteCost(Graph g){\n double totalCost = 0;\n double matrixWeights[][] = g.getMatrixOfWeights(); //get the matrix of weights from the class Graph\n for(int i=0;i<cityIndex.size()-1;i++){\n //the cost is calculated by computing the route from one index to the next since the representation is\n // a permutation\n totalCost = totalCost + matrixWeights[cityIndex.get(i)][cityIndex.get(i+1)];\n }\n totalCost = totalCost+matrixWeights[cityIndex.get(cityIndex.size()-1)][cityIndex.get(0)]; //To Return back from the\n // last to the first city\n return totalCost;\n }", "@Override\n public double cost()\n {\n return this.price * this.number;\n }", "public float getCost(int weight, int volume) {\r\n\t\t//System.out.println(\"getCost method in Journey called. should have been a delivery.\");\r\n\t\ttimesUsed++;\r\n\t\tfloat total = 0;\r\n\t\tfor(Path p: usedPaths){\r\n\t\t\t\ttry {\r\n\t\t\t\t\ttotal += p.calcCost(weight, volume);\r\n\t\t\t\t} catch (OverweightException 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 (ExceededVolumeException e) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te.printStackTrace();\r\n\t\t\t\t}\r\n\t\t}\r\n\t\ttotalCost += total;\r\n\t\treturn total;\r\n\t}", "@Override\n\tpublic double[] getVehicleCost() {\n\t\t\n\t\t\n\t\tdouble[] temp = {constantPO.getVanCost(),constantPO.getRailwayCost(),constantPO.getAirplaneCost()};\n\t\t\n\t\treturn temp;\n\t}", "@Override\n public double cost(){\n return 1 + super.sandwich.cost();\n }", "public int getTotalRouteCost() {\n return totalRouteCost;\n }", "public double getCost() \n { \n return super.getCost() +22;\n }", "public float calculatePrice(Airline flight, String type, int baggage);", "public double getCost() {\n\n\t\treturn cost;\n\t}", "@Override\r\n\tpublic double getCost() {\n\t\treturn this.cost_of_icecream;\r\n\t}", "float calFuelConsumption(float distance, float numLiters);", "public void calculatePaintAndLabor(){\n this.numGallons = squareFeet/115;\n System.out.println(\"Number of Gallons: \" + numGallons);\n this.laborHours = numGallons * 8;\n System.out.println(\"Number of Hours: \" + laborHours);\n this.paintCost = numGallons * pricePerGallon;\n System.out.println(\"Price of Paint: $\" + paintCost);\n this.laborCost = laborHours * 20.00;\n System.out.println(\"Price of Labor: $\" + laborCost);\n this.totalCost = paintCost + laborCost;\n System.out.println(\"Total Cost: $\" + totalCost);\n\n }", "public int getCost(){\r\n\t\treturn this.cost;\r\n\t}", "public int calcTotalPrice(){\r\n\t\tint flightPrice = flight.getFlightPrice();\r\n\t\tint bagPrice = nrBag*LUGGAGE_PRICE;\r\n\t\tthis.totalPrice = bagPrice + nrAdult*flightPrice + nrChildren*1/2*flightPrice;\r\n\t\treturn this.totalPrice;\r\n\t}" ]
[ "0.6774573", "0.66803765", "0.66803765", "0.6661701", "0.66370887", "0.66186345", "0.65824354", "0.6575794", "0.6513894", "0.64397097", "0.64214194", "0.64008194", "0.63710284", "0.6364995", "0.6361303", "0.6359698", "0.6359698", "0.6359698", "0.6330206", "0.6321706", "0.631257", "0.63087136", "0.6290666", "0.6270945", "0.6265596", "0.6265532", "0.6263484", "0.6209751", "0.62056077", "0.61921334", "0.6180495", "0.6151656", "0.61414766", "0.6122563", "0.61126995", "0.61103797", "0.6074014", "0.6051675", "0.6042672", "0.60417014", "0.6040743", "0.60405576", "0.6038425", "0.60354555", "0.6033946", "0.6027302", "0.6015105", "0.6013172", "0.6013172", "0.6013172", "0.60020614", "0.60017335", "0.59918725", "0.59722567", "0.5966222", "0.59551924", "0.59538376", "0.59489805", "0.59423995", "0.593856", "0.59350336", "0.59316784", "0.59316784", "0.5930072", "0.5920504", "0.59188974", "0.5913537", "0.5908715", "0.5903696", "0.59036463", "0.5902873", "0.5898228", "0.5893624", "0.589329", "0.5890444", "0.5889357", "0.588686", "0.5886057", "0.58821994", "0.5882093", "0.58810323", "0.5868965", "0.586624", "0.58622414", "0.58565474", "0.5850218", "0.5845022", "0.58429205", "0.58427", "0.58417034", "0.58406055", "0.5831743", "0.58300865", "0.58237696", "0.581812", "0.58123", "0.5802022", "0.5798538", "0.5797969", "0.57920706", "0.5782704" ]
0.0
-1
create object of Thepound class
public static void main(String[] args) { ThePound object1 = new ThePound(3); //set array elements object1.setArrayElement(0, "spot"); object1.setArrayElement(1, "rover"); object1.setArrayElement(2, "rufus"); //call method and print to screen object1.printElement(0); object1.printElement(1); object1.printElement(2); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "Instance createInstance();", "OBJECT createOBJECT();", "Oracion createOracion();", "private Instantiation(){}", "Simple createSimple();", "public Playground() {\n }", "public TTau() {}", "Dog(){\n\t\t\n\t\t//I want to create a chemicals object. Inorder to do this, I have to first create a Cardiac obj, then a Cells obj, then a Chemicals object.\n\t\t//I have to create a Chemicals object, to get a chemicals constructor \n\t\tnew Cardiac().new Cells().new Chemicals();\n\t\t\n\t}", "public Purp() {\n }", "public Puppy() {\n\t\t//TODO\n\t}", "public OrchardGame() {\n\t\t\n\t}", "public Chick() {\n\t}", "public CMObject newInstance();", "public RubyObject createObject() {\n\t\treturn (RubyObject) RGSSProjectHelper.getInterpreter(project).runScriptlet(\"return RPG::Troop::Page.new\");\n\t}", "Reproducible newInstance();", "private ACARSSoundingTools() {\n\n }", "private SingleObject()\r\n {\r\n }", "public Program7()\n { \n _tc = new TravelingCreature( 200, 200 );\n }", "public Phl() {\n }", "public Husdjurshotell(){}", "public void create(){}", "public Glow() {}", "public ObjectFactory() {\n super(grammarInfo);\n }", "public Pond(){}", "private TMCourse() {\n\t}", "public BubbleFactory() {\n // TODO Auto-generated constructor stub\n }", "public CyanSus() {\n\n }", "private SingleObject(){}", "public Generateur() {\n }", "public void create() {\n\t\t\n\t}", "public Trening() {\n }", "P createP();", "public Sandwich()\n\t{super();\n \n\t\t\n\t}", "public YellowTea() {\n super();\n this.setName(\"Yellow Tea\");\n this.setPrice(3.50);\n\n this.brewFirstLiquid = new BrewHotWater();\n this.brewSecondLiquid = new BrewNoLiquid();\n this.brewThirdLiquid = new BrewNoLiquid();\n\n System.out.println(\"Brewing Yellow Tea...\");\n }", "private TweetRiver() { }", "public Rook()\n {\n super();\n }", "@Override\r\n public void instantiate() {\r\n }", "public Spell() {}", "public God() {}", "Constructor() {\r\n\t\t \r\n\t }", "private ChessPieceGUIFactory() {\r\n\r\n\t}", "T create();", "T create();", "protected abstract void construct();", "private SingleObject(){\n }", "public Poem(){}", "private StickFactory() {\n\t}", "Thing createThing();", "public Cohete() {\n\n\t}", "public FruitStand() {}", "public Watermelon saySomething() {\n return new Watermelon(\"Japanese\" , \"Square\");//it return an object of watermelon\n }", "public Lanceur() {\n\t}", "public static Flipkart createFlipkart()throws Exception {\r\n\t\t //create target class obj\r\n\t\t Flipkart fpkt=new Flipkart();\r\n\t\t \r\n\t\t // Load Dependent class \r\n\t\t Class c=Class.forName(props.getProperty(\"dependent.comp\"));\r\n\t\t //create object using refflection object\r\n\t\t Constructor cons[]=c.getDeclaredConstructors();\r\n\t\t //create object\r\n\t\t Courier courier=(Courier) cons[0].newInstance();\r\n\t\t //set Dependent class object to target class obj\r\n\t\t fpkt.setCourier(courier);\r\n\t return fpkt;\r\n }", "@Override\n\tpublic void create() {\n\t\t\n\t}", "Petunia() {\r\n\t\t}", "Notentyp createNotentyp();", "@Override\n\tpublic void create () {\n\n\t}", "public Troop() //make a overloaded constructor \n\t{\n\t\ttroopType = \"light\"; \n\t\tname = \"Default\";\n\t\thp = 50;\n\t\tatt = 20;\n\t}", "public RngObject() {\n\t\t\n\t}", "public Bike(){\n\t}", "public static void main(String args[]){\n SingleTonClass myobject= SingleTonClass.objectCreationMethod();\r\n SingleTonClass myobject1= SingleTonClass.objectCreationMethod();\r\n myobject.display();\r\n myobject.b = 600;\r\n myobject1.display();\r\n myobject1.b = 800;\r\n SingleTonClass myobject2 = new SingleTonClass();\r\n myobject2.display();\r\n }", "public MyPod()\n {\n color = \"black\";\n memory = 4;\n \n songLibrary[0] = new Song();\n songLibrary[1] = new Song();\n songLibrary[2] = new Song();\n \n \n \n }", "public EspressoDrink(){\t\n\t}", "public Good() {\n }", "BoundObject(){}", "@Override\r\n\tpublic void create() {\n\t\t\r\n\t}", "public Lotto2(){\n\t\t\n\t}", "public Rol() {}", "public Magazzino() {\r\n }", "public Tigre() {\r\n }", "public ObjectFactory() {\n\t}", "RentalObject createRentalObject();", "public void createAuctionTest(){\n\t\tAuction auc = new Auction(new User(),\"Test Auction Description\",1000l);\n\n\t}", "public Gasto() {\r\n\t}", "TT createTT();", "public Song() {}", "public Pencil() {\n\n }", "private Object createInstance() throws InstantiationException, IllegalAccessException {\n\t\treturn classType.newInstance();\n\t}", "public Bike createCityBike() {\n Wheels cityWheels = new Wheels(559,50f,10000); //Räder des Stadtrads erstellen\n Gears cityGears = new Gears(3,1,5000); //Gangschaltung des Stadtrads erstellen\n Bike newCityBike = new Bike(cityGears, cityWheels, \"Stahl\", \"CB105\", true, true, 30000); //Stadtrad erstellen\n return newCityBike; //Stadtrad zurückgeben\n}", "public PertFactory() {\n for (Object[] o : classTagArray) {\n addStorableClass((String) o[1], (Class) o[0]);\n }\n }", "@Override\n\tpublic LightTank create() {\n\t\treturn new LightTank(GameContext.getGameContext());\n\t}", "public Plato(){\n\t\t\n\t}", "public OVChipkaart() {\n\n }", "TesttrackFactory getTesttrackFactory();", "public Greetings() {\n }", "public _355() {\n\n }", "Schueler createSchueler();", "BOp createBOp();", "public Construct() {\n\tprefixes = new StringBuilder();\n\tvariables = new StringBuilder();\n\twheres = new StringBuilder();\n }", "public Curso() {\r\n }", "Traditional createTraditional();", "public Chauffeur() {\r\n\t}", "public Instance() {\n }", "public ObjectFactory() {}", "public ObjectFactory() {}", "public ObjectFactory() {}", "@Override\n\tpublic void create() {\n\n\t}", "public Cheese() {\n\n }", "public Household() {\n }", "public MonHoc() {\n }", "public ObjectFactory() {\r\n\t}" ]
[ "0.6583627", "0.6377286", "0.6260925", "0.62603086", "0.6224311", "0.6212988", "0.6178679", "0.61560935", "0.61379826", "0.6109769", "0.61064833", "0.61023796", "0.61022705", "0.6091225", "0.60884315", "0.60649186", "0.60610396", "0.6053074", "0.6051234", "0.6025307", "0.6014125", "0.6012597", "0.6010172", "0.6006566", "0.60043186", "0.60023135", "0.59977657", "0.5997376", "0.5983532", "0.59827954", "0.59682226", "0.59652513", "0.5958854", "0.5954415", "0.5953209", "0.59502673", "0.5945451", "0.5937596", "0.5934986", "0.592738", "0.5922272", "0.5907414", "0.5907414", "0.5900678", "0.59006673", "0.58957416", "0.5894064", "0.5885219", "0.5884949", "0.5884535", "0.5877879", "0.58742994", "0.5873146", "0.5864387", "0.5862344", "0.58594555", "0.5853408", "0.58466667", "0.5845651", "0.5842284", "0.5841581", "0.5836084", "0.5835787", "0.5835082", "0.58342236", "0.58288044", "0.582609", "0.5813407", "0.58107746", "0.58049417", "0.5792863", "0.57903576", "0.57902706", "0.57856375", "0.578378", "0.5779741", "0.5779486", "0.5775206", "0.5774888", "0.5768536", "0.57655233", "0.57649064", "0.5760277", "0.57589656", "0.5758436", "0.57583296", "0.5756949", "0.5752843", "0.5751305", "0.5748035", "0.5746746", "0.57449853", "0.5744386", "0.57419026", "0.57419026", "0.57419026", "0.5739527", "0.5737794", "0.5732354", "0.57322437", "0.57266396" ]
0.0
-1
TODO Autogenerated method stub
public static void main(String[] args) { System.setProperty("webdriver.chrome.driver","chromedriver.exe"); WebDriver driver=new ChromeDriver(); driver.get("https://www.facebook.com/"); driver.manage().window().maximize(); driver.findElement(By.name("email")).sendKeys("nikhilakamalk@gmail.com"); //driver.findElement(By.name("email")).submit(); driver.findElement(By.name("pass")).sendKeys("nikhila@1994"); //driver.findElement(By.id("u_0_b")).submit(); Select day=new Select(driver.findElement(By.id("day"))); day.selectByVisibleText("28"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
Created by shanhuang on 9/13/18.
public interface HiveMetaDao { String getLocationByDbAndTable(Map<String, String> map); List<String> getDbsByUser(String userName); List<Map<String, Object>> getTablesByDbNameAndUser(Map<String, String> map); Long getPartitionSize(Map<String, String> map); List<String> getPartitions(Map<String, String> map); List<Map<String, Object>> getColumns(Map<String, String> map); List<Map<String, Object>> getPartitionKeys(Map<String, String> map); String getTableComment(@Param("DbName") String DbName, @Param("tableName") String tableName); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n public void func_104112_b() {\n \n }", "private static void cajas() {\n\t\t\n\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void anular() {\n\n\t}", "private void poetries() {\n\n\t}", "private void strin() {\n\n\t}", "public final void mo51373a() {\n }", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "private void init() {\n\n\t}", "@Override\n public void init() {\n\n }", "private void kk12() {\n\n\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "public void mo38117a() {\n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "public void mo4359a() {\n }", "@Override\n protected void initialize() {\n\n \n }", "@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}", "private void m50366E() {\n }", "@Override\n public void init() {\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void ligar() {\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}", "protected boolean func_70814_o() { return true; }", "@Override\n void init() {\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void jugar() {\n\t\t\n\t}", "private void init() {\n\n\n\n }", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void init() {\n }", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "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{\n\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\r\n\tpublic void init() {}", "@Override\n public void init() {}", "@Override\n protected void initialize() \n {\n \n }", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n 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 }", "public void mo6081a() {\n }", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tprotected void doF4() {\n\t\t\r\n\t}", "private Rekenhulp()\n\t{\n\t}", "@Override\r\n\tprotected void doF8() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "public abstract void mo70713b();", "public void mo21877s() {\n }", "@Override\n public void memoria() {\n \n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "public void mo55254a() {\n }", "@Override\n protected void getExras() {\n }", "private void initialize() {\n\t\t\n\t}", "static void feladat9() {\n\t}", "@Override\r\n\tprotected void func03() {\n\t\t\r\n\t}", "Constructor() {\r\n\t\t \r\n\t }" ]
[ "0.6139158", "0.6095572", "0.6036657", "0.6030939", "0.59052587", "0.5893215", "0.5893215", "0.58598953", "0.58516794", "0.5848503", "0.5837134", "0.58153045", "0.58070856", "0.5795991", "0.5788124", "0.57834876", "0.5780513", "0.57798064", "0.57798064", "0.57798064", "0.57798064", "0.57798064", "0.5773071", "0.5760188", "0.57584697", "0.5757518", "0.57541114", "0.5751258", "0.57493967", "0.57279533", "0.5726058", "0.5720291", "0.568777", "0.56776685", "0.56724155", "0.5669778", "0.5664191", "0.5651695", "0.5651695", "0.5651695", "0.5648461", "0.5632366", "0.561896", "0.561896", "0.5615179", "0.5615179", "0.5615179", "0.56142735", "0.5611398", "0.5611398", "0.5608927", "0.56018627", "0.5600788", "0.5600788", "0.56001395", "0.56001395", "0.56001395", "0.5586301", "0.5584507", "0.5577542", "0.55669934", "0.55608207", "0.5560026", "0.55486774", "0.55486774", "0.55486774", "0.55486774", "0.55486774", "0.55486774", "0.55486774", "0.55462706", "0.5545094", "0.5538794", "0.55359364", "0.5533342", "0.55291855", "0.5523265", "0.5523075", "0.551148", "0.551148", "0.551148", "0.551148", "0.551148", "0.551148", "0.55023575", "0.5500087", "0.54951394", "0.5489517", "0.5477124", "0.5475668", "0.54753256", "0.5464407", "0.5453716", "0.54503155", "0.5448326", "0.54468566", "0.54462254", "0.54444855", "0.5443008", "0.54335177", "0.5424047" ]
0.0
-1
Will be called when an item has been clicked from the list of items.
@Override public void onClick(Product product) { Log.i("MainActivity", product.toString()); Intent detailIntent = new Intent(this, DetailActivity.class); detailIntent.putExtra(Constants.Keys.PRODUCT_DETAIL.toString(), product); startActivity(detailIntent); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void itemClick(int pos) {\n }", "@Override\n public void OnItemClick(int position) {\n }", "@Override\n public void onClick(View view) {\n itemInterface.OnItemClickedListener(tracks, getAdapterPosition());\n }", "@Override\n public void onItemClicked(int itemPosition, Object dataObject) {\n }", "@Override\n public void onClick(View view) { listener.onItemClick(view, getPosition()); }", "void clickItem(int uid);", "void issuedClick(String item);", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Log.w(TAG , \"POSITION : \" + position);\n\n itemClick(position);\n }", "@Override\n public void onItemClick(int pos) {\n }", "@Override\n public void onClick(View view) {\n clickListener.onItemClicked(getBindingAdapterPosition());\n }", "@Override\n public void onItemClick(View view, ListItem obj, int position) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t\t\t}", "abstract public void onSingleItemClick(View view);", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\tif (itemClicked != null)\n\t\t\t\t\titemClicked.OnItemClicked((BusinessType)item.getTag(), item);\n\t\t\t}", "@Override\r\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\r\n\t}", "@Override\n public void onClick(View v) {\n listener.onItemClick(v, position);\n }", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\titemClickListener.Callback(itemInfo);\n\t\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\n\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t}", "@Override\n\t\t\t\t\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\t\t\t\t\t\tint position, long id) {\n\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\n\t\t\t}", "@Override\n public void onListItemClicked(int position) {\n\n }", "@Override\n public void onClick(View v) {\n itemClickListener.itemClicked(movieId, v);\n }", "@Override\n public void onClick(View v) {\n this.itemClickListener.onItemClick(v, getLayoutPosition());\n }", "@Override\n public void onClick(View v) {\n if (listener != null)\n listener.onItemClick(itemView, getPosition());\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view,\n int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n }", "@Override\r\n\t\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\r\n\t\t\t\t\t\tint position, long id) {\n\t\t\t\t}", "void onItemClick(int position);", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\r\n\t\t\t\t\tlong arg3) {\n\r\n\t\t\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View view,\n\t\t\t\t\tint position, long id) {\n\t\t\t\thandleClick(position);\n\t\t\t}", "@Override\n\tpublic void onItemClick(Object o, int position) {\n\n\t}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position,\n long id) {\n\n\n }", "public interface ItemClickListener {\n void itemClicked(long feedItemId, View view);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onClick(View v) {\n if (mListener != null){\n mListener.onItemClick(itemView, getLayoutPosition());\n }\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\t\n\t}", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tpresenter.onItemClicked(position);\n\t}", "@Override\r\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\r\n\t\t\tlong id) {\n\r\n\t}", "@Override\r\n\t\t\tpublic void onItemClick(AdapterView<?> adapter, View view, int position,\r\n\t\t\t\t\tlong arg3) {\n\t\t\t\t\r\n\t\t\t}", "public void onItemClick(View view, int position);", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> parent, View v, int pos, long id) {\n\t\t\t\tSystem.out.println(\"Selected \" + pos);\n\t\t\t}", "public interface ItemClickListener {\n void onItemClick(View view, int position, ArrayList<MakalaModel> list);\n }", "void onChamaItemClicked(int position);", "public interface ClickListener {\n void onCLickItem(int position);\n }", "@Override\n public void onItemClick(Nson parent, View view, int position) {\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\n\t}", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2, long arg3) {\n\t\t\t\tif (null != mListOnItemClickListener) {\n\t\t\t\t\tmListOnItemClickListener.onItemClick(list.get(arg2), type);\n\t\t\t\t\tpopup.dismiss();\n\t\t\t\t}\n\t\t\t}", "void onItemClick(View view, int position);", "void onItemClick(Note note);", "@Override\n\t\t\t\t\t\t\t\tpublic void onClick(View arg0) {\n\t\t\t\t\t\t\t\t\tMainActivity sct = (MainActivity) act;\n\t\t\t\t\t\t\t\t\tsct.onItemClick(posit2, 11);\n\t\t\t\t\t\t\t\t}", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onItemClick(View view, int position) {\n }", "@Override\n public void onClick(View v) {\n\n listener.onItemClick(getAdapterPosition(),v);\n }", "@Override\n\tpublic void onItemClick(AdapterView<?> parent, View view, int position,\n\t\t\tlong id) {\n\t\tlogic_clickItem(position);\n\t}", "@Override\n\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\tlong arg3) {\n\t\t\t\t\n\t\t\tToast.makeText(getBaseContext(), list.get(arg2),\n\t\t\t\tToast.LENGTH_SHORT).show();\n\t\t}", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onItemClick(AdapterView<?> adapterView, View view, int i, long l) {\n }", "@Override\n public void onClick(View v) {\n //getAdapterPosition() get's an Integer based on which the position of the current\n //ViewHolder (this) in the Adapter. This is how we get the correct Data.\n ListItem listItem = listOfData.get(\n this.getAdapterPosition()\n );\n\n controller.onListItemClick(\n listItem,\n v\n );\n\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(int position) {\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n if (position >= 0) {\n Drawing drawing = mItems.get(position);\n Log.d(TAG, \"onItemClick with drawing id \" + drawing.getId());\n mCallBacks.onDrawingSelected(drawing.getId());\n }\n }", "@Override\n public void onClick(View view) {\n coinPositionListener.coinItemClick(view, getAdapterPosition());\n }", "@Override\n public void OnitemClick(int position) {\n Nowplaying.ResultsBean popularresults = popularList.get(position);\n interfacecallback.onpopularmovieClick(popularresults);\n\n }", "@Override\n public void onClick(View v) {\n if(listener!=null & getLayoutPosition()!=0)\n listener.onItemClick(itemView, getLayoutPosition());\n }", "@Override\n public void onClick(View view) {\n int position = getAdapterPosition();\n\n // Check if listener!=null bcz it is not guarantee that we'll call setOnItemClickListener\n // RecyclerView.NO_POSITION - Constant for -1, so that we don't click item at Invalid position (safety measure)\n if (listener != null && position != RecyclerView.NO_POSITION) {\n //listener.onItemClick(notes.get(position)); - used in RecyclerView.Adapter\n listener.onItemClick(getItem(position)); // getting data from superclass\n }\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface OnItemClickedListener {\n\n\tvoid onItemClicked(Integer itemId);\n}", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n String name = navDrawerItems.get(position).getListItemName();\n // call a helper method to perform a corresponding action\n performActionOnNavDrawerItem(name);\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n Toast.makeText(this, \"ITEM CLICKED\", Toast.LENGTH_SHORT).show();\n }", "public interface ItemClickListener {\n void onMyTourItemClick(View view, String tourId, String tourStartId);\n }", "@Override\n public void onClick(View v) {\n if (this.itemClickListener != null) {\n this.itemClickListener.OnItemClick(v, index, this);\n }\n }", "public void onItemClick(View view, int position) {\n\n }", "@Override\n public void onItemClick(View view, int position) {\n\n }", "@Override\n public void onItemClick(AdapterView<?> parent, View view, int position, long id) {\n selectItem(position);\n }", "@SuppressWarnings(\"ConstantConditions\")\n public void onItemClicked(@NonNull Item item) {\n getView().openDetail(item);\n }", "@Override\n public void onItemClicked(RecyclerView recyclerView, int position, View v) {\n }", "@Override\n\t\t\tpublic void onItemClick(AdapterView<?> arg0, View arg1, int arg2,\n\t\t\t\t\tlong arg3) {\n\t\t\t\tstartTalkActivity();\n\t\t\t}", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }", "public interface ItemClickListener {\n void onItemClick(View view, int position);\n }" ]
[ "0.7903223", "0.7835653", "0.78165007", "0.7801231", "0.7766777", "0.7690195", "0.76623285", "0.7566199", "0.7557516", "0.7537199", "0.75076103", "0.7485216", "0.7459619", "0.74537635", "0.7448285", "0.7445074", "0.74341536", "0.74302465", "0.7430194", "0.742161", "0.7418831", "0.7412036", "0.74083817", "0.7397995", "0.7374625", "0.7374625", "0.7373931", "0.7373931", "0.7352709", "0.73493993", "0.73325735", "0.73318905", "0.73278946", "0.7312465", "0.7312465", "0.7311965", "0.7311965", "0.7311965", "0.7311965", "0.7311965", "0.73068315", "0.73068315", "0.7285365", "0.7285365", "0.7284371", "0.7276687", "0.7276598", "0.72676873", "0.7252757", "0.72451204", "0.7242599", "0.724135", "0.72342813", "0.72342813", "0.72342813", "0.72315866", "0.72207457", "0.7220024", "0.721463", "0.72126174", "0.72082543", "0.72070754", "0.71981347", "0.71869135", "0.7176617", "0.7174786", "0.7161801", "0.71584535", "0.7157246", "0.71556866", "0.71526146", "0.7136705", "0.7132349", "0.7132349", "0.7123389", "0.711419", "0.71133196", "0.71114624", "0.71114624", "0.707146", "0.70687675", "0.70687675", "0.7064722", "0.7053986", "0.7050902", "0.70475984", "0.70429325", "0.7041625", "0.7040486", "0.70381033", "0.7036073", "0.7023441", "0.70224077", "0.70200294", "0.7019924", "0.7015802", "0.7013381", "0.70111394", "0.7003151", "0.70022386", "0.70022386" ]
0.0
-1
Constructs a DemoFrame, configures the UI, and builds the content.
protected Main(Settings settings) { this.settings = settings; configureUI(); build(); setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 void buildFrame();", "@Override\n protected JXFrame createXFrame() {\n return new JXDemoFrame();\n }", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public FrameDesign() {\n initComponents();\n }", "private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "private void buildAndDisplayFrame() {\n\n\t\tframe.add(panelForIncomingCall, BorderLayout.NORTH);\n\t\tpanelForIncomingCall.add(welcomeThenDisplayCallInfo);\n\n\t\tframe.add(backgroundPanel, BorderLayout.CENTER);\n\t\tbackgroundPanel.add(userInstructions);\n\t\tbackgroundPanel.add(startButton);\n\t\tbackgroundPanel.add(declineDisplay);\n\n\t\tframe.add(acceptDeclineBlockBottomPanel, BorderLayout.SOUTH);\n\t\tacceptDeclineBlockBottomPanel.add(acceptButton);\n\t\tacceptDeclineBlockBottomPanel.add(declineButton);\n\t\tacceptDeclineBlockBottomPanel.add(blockButton);\n\n\t\tframe.setSize(650, 700); // sizes frame to whatever we want\n\t\tframe.setLocationRelativeTo(null); // puts at center of screen\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "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}", "public void initializePanelToFrame() {\n\t\tnew ColorResources();\n\t\tnew TextResources().changeLanguage();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setPreferredSize(new Dimension(375, 812));\n\n\t\tconfigureLabels();\n\t\tconfigureButtons();\n\t\taddListeners();\n\t\taddComponentsToPanel();\n\n\t\tthis.setContentPane(panel);\n\t\tthis.pack();\n\t}", "private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\n\t}", "public ExamplePanel (){\n initWidget(uiBinder.createAndBindUi(this));\n setWidgetToMaxWidthAndHeight();\n Window.addResizeHandler(resizeHandler);\n introPanel = new IntroPanel();\n setWidgetAsExample(introPanel);\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 }", "public MainFrame() {\n \n initComponents();\n \n this.initNetwork();\n \n this.render();\n \n }", "public DashboardFrame() {\n WebLookAndFeel.install ();\n Controller = new Controller();\n initComponents();\n }", "public ExamplePanel() {\n\t\tinitWidget(uiBinder.createAndBindUi(this));\n\t\tsetWidgetToMaxWidthAndHeight();\n\t\tWindow.addResizeHandler(resizeHandler);\n\t\tintroPanel = new IntroPanel();\n\t\tsetWidgetAsExample(introPanel);\n\t}", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\n }", "@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}", "Frame createFrame();", "public launchFrame() {\n \n initComponents();\n \n }", "public ModuleFrame() {\n javafxPanel = new JFXPanel();\n initComponents();\n this.webViewParent.setLayout(new BorderLayout());\n this.webViewParent.add(javafxPanel, BorderLayout.CENTER);\n this.webViewParent.add(javafxPanel);\n \n this.setDefaultCloseOperation(HIDE_ON_CLOSE);\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 }", "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 }", "void frameSetUp() {\r\n\t\tJFrame testFrame = new JFrame();\r\n\t\ttestFrame.setSize(700, 400);\r\n\t\ttestFrame.setResizable(false);\r\n\t\ttestFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\ttestFrame.setLayout(new GridLayout(0, 2));\r\n\t\tmainFrame = testFrame;\r\n\t}", "public void setFrameContent() {\n\t\tbigPanel.add(panelA);\n\t\tbigPanel.add(panelB);\n\t\tframe.add(bigPanel);\n\t\t//frame.add(panel);\n\t frame.setVisible(true);\n\t}", "public MainFrame() {\n initComponents();\n \n }", "@Override\r\n\tpublic void build(final Component root, final Component currentComponent) {\n\t\tframe = new JFrame(ctx.getString(TITLE.getStr()));\r\n\t\tframe.getContentPane().setBackground(Color.decode(ctx.getString(BG_COLOR.getStr())));\r\n\t\tframe.setPreferredSize(new Dimension(ctx.getInt(WIDTH.getStr()), ctx.getInt(HEIGHT.getStr())));\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Spy framework's status bar.\r\n\t\tstatusBar = new SpyStatusBar(ctx);\r\n\t\tframe.getContentPane().add(statusBar.getStatusBarPanel(), BorderLayout.SOUTH);\r\n\r\n\t\t// Spy framework's menu.\r\n\t\tSpyMenu spyMenu = new SpyMenu(statusBar);\r\n\t\tframe.setJMenuBar(spyMenu.getMenuBar());\r\n\r\n\t\t// Spy framework's toolbar.\r\n\t\tSpyToolBar toolBar = new SpyToolBar(statusBar);\r\n\t\tframe.getContentPane().add(toolBar.getToolBar(), BorderLayout.NORTH);\r\n\r\n\t\t// Spy framework's tree panel.\r\n\t\tSpyTreePanel treePanel = new SpyTreePanel();\r\n\t\tframe.getContentPane().add(treePanel.getTreePanel(), BorderLayout.WEST);\r\n\r\n\t\t// Spy framework's properties panel.\r\n\t\tSpyPropertiesPanel propertiesPanel = new SpyPropertiesPanel();\r\n\t\tframe.getContentPane().add(propertiesPanel.getPropertiesPanel(), BorderLayout.CENTER);\r\n\r\n\t\tJPanel fut = new JPanel();\r\n\t\tfut.setBackground(Color.decode(\"#CCE0FF\"));\r\n\t\tframe.getContentPane().add(fut, BorderLayout.EAST);\r\n\r\n\t\t// Spy framework's settings for display.\r\n\t\tframe.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\r\n\t}", "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}", "private void initializeFrame() {\n add(container);\n setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n pack();\n }", "public Jframe() {\n initComponents();\n setIndice();\n loadTextBoxs();\n }", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "private HelloPanel() {\n\n\t\tHTML w = new HTML(BalasResources.INSTANCE.helloPane().getText());\n\t\tinitWidget(w);\n\t}", "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 Mainframe() {\n initComponents();\n }", "public FrameManageTests() {\n initComponents();\n }", "private void setUpFrame() {\n rootPanel = new JPanel();\n rootPanel.setLayout(new BorderLayout());\n rootPanel.setBackground(Color.darkGray);\n }", "public static void prepareGUI() {\n\t\tframe = new JFrame(\"Solid Adventure : Catch All Virtumon\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n //Create and set up the content pane.\n Driver demo = new Driver();\n demo.addComponentToPane(frame.getContentPane());\n\n //Display the window.\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\t}", "private void makeContent(JFrame frame){\n Container content = frame.getContentPane();\n content.setSize(700,700);\n\n makeButtons();\n makeRooms();\n makeLabels();\n\n content.add(inputPanel,BorderLayout.SOUTH);\n content.add(roomPanel, BorderLayout.CENTER);\n content.add(infoPanel, BorderLayout.EAST);\n\n }", "public MainFrame() {\n\t\tsuper();\n\t\tinitialize();\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 800, 800);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\tJPanel browserPanel = new JPanel();\n\t\tframe.getContentPane().add(browserPanel, BorderLayout.CENTER);\n\t\t\n\t\t// create javafx panel for browser\n browserFxPanel = new JFXPanel();\n browserPanel.add(browserFxPanel);\n \n // create JavaFX scene\n Platform.runLater(new Runnable() {\n public void run() {\n createScene();\n }\n });\n\t}", "private void initUI() {\n\t\tthis.horizontalLayout = new XdevHorizontalLayout();\n\t\tthis.gridLayout = new XdevGridLayout();\n\t\tthis.button = new XdevButton();\n\t\tthis.button2 = new XdevButton();\n\t\tthis.label = new XdevLabel();\n\n\t\tthis.button.setCaption(\"go to HashdemoView\");\n\t\tthis.button2.setCaption(\"go to CommonView\");\n\t\tthis.label.setValue(\"Go into code tab to view comments\");\n\n\t\tthis.gridLayout.setColumns(2);\n\t\tthis.gridLayout.setRows(2);\n\t\tthis.button.setWidth(200, Unit.PIXELS);\n\t\tthis.button.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button, 0, 0);\n\t\tthis.button2.setWidth(200, Unit.PIXELS);\n\t\tthis.button2.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.button2, 1, 0);\n\t\tthis.label.setWidth(100, Unit.PERCENTAGE);\n\t\tthis.label.setHeight(-1, Unit.PIXELS);\n\t\tthis.gridLayout.addComponent(this.label, 0, 1, 1, 1);\n\t\tthis.gridLayout.setComponentAlignment(this.label, Alignment.TOP_CENTER);\n\t\tthis.gridLayout.setSizeUndefined();\n\t\tthis.horizontalLayout.addComponent(this.gridLayout);\n\t\tthis.horizontalLayout.setComponentAlignment(this.gridLayout, Alignment.MIDDLE_CENTER);\n\t\tthis.horizontalLayout.setExpandRatio(this.gridLayout, 10.0F);\n\t\tthis.horizontalLayout.setSizeFull();\n\t\tthis.setContent(this.horizontalLayout);\n\t\tthis.setSizeFull();\n\n\t\tthis.button.addClickListener(event -> this.button_buttonClick(event));\n\t\tthis.button2.addClickListener(event -> this.button2_buttonClick(event));\n\t}", "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 }", "public void initializeFrame() {\n frame.getContentPane().removeAll();\n createComponents(frame.getContentPane());\n// frame.setSize(new Dimension(1000, 600));\n }", "public UserInterfaceJFrame() {\n initComponents();\n jPanel1.add(new FeatureViewPanel());\n jPanel2.add(new DataVisualizationPanel());\n jPanel3.add(new DataParserPanel());\n }", "public FrameControl() {\n initComponents();\n }", "public void init()\n {\n buildUI(getContentPane());\n }", "private static JFrame createFrame(){\n\t\t// Create the frame of the demonstration.\n\t\tJFrame demoFrame = new JFrame(\"Dock effect demonstration frame.\");\n\t\tdemoFrame.setSize(new Dimension(800, 600));\n\t\tdemoFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\t\t// Create the content pane of the frame.\n\t\tJPanel contentPane = new JPanel();\n\t\tdemoFrame.setContentPane(contentPane);\n\t\t\n\t\t// Create and add the docking area of the demonstration.\n\t\tDockEffectPanel<JPanel> dockEffectPanel = createDockEffectPanel();\n\t\tdockEffectPanel.setBorder(BorderFactory.createEtchedBorder()); // Put a border on the dock effect panel\n\t\t\n\t\t// Create the layout of the docking area.\n\t\tGroupLayout layout = new GroupLayout(contentPane);\n\t\tcontentPane.setLayout(layout);\n\t\tlayout.setHorizontalGroup(layout.createSequentialGroup()\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t\t.addComponent(dockEffectPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t);\n\t\tlayout.setVerticalGroup(layout.createSequentialGroup()\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t\t.addComponent(dockEffectPanel, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE, GroupLayout.PREFERRED_SIZE)\n\t\t\t.addGap(0, 0, Short.MAX_VALUE)\n\t\t);\n\t\t\n\t\treturn demoFrame;\n\t}", "public MainFrame() {\n\t\tsuper(\"Contry Detail\");\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tsetPreferredSize(new Dimension(450, 300));\n\t\tsetResizable(false);\n\t\t\n\t\tinitComponents();\n\t\t\n\t\tcontroller = new Service(this);\n\t}", "public Frame() {\n initComponents();\n }", "public Frame() {\n initComponents();\n }", "public MainFrame() {\n try {\n initComponents();\n initElements();\n } catch (Exception e) {\n JOptionPane.showMessageDialog(null, \"Error \" + e.getMessage());\n }\n }", "private void 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 void setupUI() {\r\n\t\t\r\n\t\tvPanel = new VerticalPanel();\r\n\t\thPanel = new HorizontalPanel();\r\n\t\t\r\n\t\titemName = new Label();\r\n\t\titemName.addStyleName(Styles.page_title);\r\n\t\titemDesc = new Label();\r\n\t\titemDesc.addStyleName(Styles.quest_desc);\r\n\t\titemType = new Label();\r\n\t\titemType.addStyleName(Styles.quest_lvl);\r\n\t\t\r\n\t\tVerticalPanel img = new VerticalPanel();\r\n\t\timg.add(new Image(imgDir));\r\n\t\t\r\n\t\tvPanel.add(itemName);\r\n\t\tvPanel.add(itemDesc);\r\n\t\tvPanel.add(img);\r\n\t\tvPanel.add(hPanel);\r\n\t\t\r\n\t\tVerticalPanel mainPanel = new VerticalPanel();\r\n\t\tmainPanel.setWidth(\"100%\");\r\n\t\tvPanel.addStyleName(NAME);\r\n\t\t\r\n\t\tmainPanel.add(vPanel);\r\n \tinitWidget(mainPanel);\r\n }", "public MainFrame(){\n super(\"Across Madrid\");\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n setBounds(100,100,700,500);\n\n contentPane = new JPanel(new CardLayout());\n setContentPane(contentPane);\n \n fillContentPane();\n }", "public mainframe() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "public MainFrame() {\n initComponents();\n }", "private void setupUI() {\r\n\t\tWindow.setTitle(\"Battle\");\r\n\r\n\t\tVerticalPanel panel = new VerticalPanel();\r\n\t\tpanel.addStyleName(NAME);\r\n\t\tinitWidget(panel);\r\n\t\t\r\n\t\tlabelTitle = new Label(\"Battle\");\r\n\t\tlabelTitle.addStyleName(Styles.page_title);\r\n\t\tpanel.add(labelTitle);\r\n\t\t\r\n\t\tLabel instructions = new Label(\"Click to go!\");\r\n\t\tpanel.add(instructions);\r\n\r\n\t\tHorizontalPanel hPanel = new HorizontalPanel();\r\n\t\tpanel.add(hPanel);\r\n\t\t\r\n\t\tCanvas canvas = Canvas.createIfSupported();\r\n\t\thPanel.add(canvas);\r\n\r\n\t\tVerticalPanel vPanelInfo = new VerticalPanel();\r\n\t\thPanel.add(vPanelInfo);\r\n\t\t\r\n\t\tlabelInfo = new Label();\r\n\t\tlabelInfo.addStyleName(Styles.battle_info);\r\n\t\tvPanelInfo.add(labelInfo);\r\n\t\t\r\n\t\tvPanelInfoHistory = new VerticalPanel();\r\n\t\tvPanelInfoHistory.addStyleName(Styles.battle_info_history);\r\n\t\tvPanelInfo.add(vPanelInfoHistory);\r\n\r\n\t\t\r\n\t\tcanvas.setWidth(width + \"px\");\r\n\t\tcanvas.setHeight(height + \"px\");\r\n\t\tcanvas.setCoordinateSpaceWidth(width);\r\n\t\tcanvas.setCoordinateSpaceHeight(height);\r\n\r\n\t\t//Adding handlers seems to create a performance issue in Java\r\n\t\t//mode, but likely not in javascript\r\n\t\tcanvas.addMouseDownHandler(this);\r\n//\t\tcanvas.addMouseUpHandler(this);\r\n//\t\tcanvas.addMouseMoveHandler(this);\r\n\r\n\t\tcontext2d = canvas.getContext2d();\r\n\r\n\t\tlastUpdate = System.currentTimeMillis();\r\n\t\ttimer = new Timer() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tlong now = System.currentTimeMillis();\r\n\t\t\t\tupdate(now - lastUpdate);\r\n\t\t\t\tlastUpdate = now;\r\n\r\n\t\t\t\tdraw();\r\n\t\t\t}\r\n\t\t};\r\n\t\ttimer.scheduleRepeating(1000 / 60);\r\n\t}", "public MainFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "private void createContent(final Container container) {\n this.mainPanel = new MainPanel();\n this.mainPanel.setName(\"mainPanel\"); // Fest\n\n if (container != null) {\n // adds the main panel\n container.add(this.mainPanel, BorderLayout.CENTER);\n\n // Handle status bar\n container.add(StatusBar.getInstance(), BorderLayout.SOUTH);\n }\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(\"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 MenuFrame() {\n initComponents();\n }", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "private void prepareFrame() {\n logger.debug(\"prepareFrame : enter\");\n\n // initialize the actions :\n registerActions();\n final Container container;\n\n if (Bootstrapper.isHeadless()) {\n container = null;\n } else {\n final JFrame frame = new JFrame(ApplicationDescription.getInstance().getProgramName());\n\n // handle frame icon\n final Image jmmcFavImage = ResourceImage.JMMC_FAVICON.icon().getImage();\n frame.setIconImage(jmmcFavImage);\n\n // get screen size to adjust minimum window size :\n final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n logger.info(\"screen size = {} x {}\", screenSize.getWidth(), screenSize.getHeight());\n // hack for screens smaller than 1024x768 screens:\n final int appWidth = 950;\n final int appHeightMin = (screenSize.getHeight() >= 850) ? 800 : 700;\n\n final Dimension dim = new Dimension(appWidth, appHeightMin);\n frame.setMinimumSize(dim);\n frame.addComponentListener(new ComponentResizeAdapter(dim));\n frame.setPreferredSize(INITIAL_DIMENSION);\n\n App.setFrame(frame);\n\n container = frame.getContentPane();\n }\n // init the main panel:\n createContent(container);\n\n StatusBar.show(\"application started.\");\n\n logger.debug(\"prepareFrame : exit\");\n }", "public DemoPanel() {\n }", "public void createAndShowGUI(JFrame frame) {\n providerSideBar(frame.getContentPane(), pat);\n topBarPatientInformation(frame.getContentPane(), pat);\n patientReferralPanel(frame.getContentPane());\n\n }", "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 }", "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 }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.getContentPane().setBackground(Color.BLACK);\n\t\tframe.getContentPane().setLayout(null);\n\t\tframe.setExtendedState(JFrame.MAXIMIZED_BOTH);\n\t\t\n\t\tJLabel lblDesignCopyrights = new JLabel(\"design copyrights \\u00A9 chinmaya\");\n\t\tlblDesignCopyrights.setFont(new Font(\"Times New Roman\", Font.PLAIN, 14));\n\t\tlblDesignCopyrights.setForeground(new Color(255, 255, 224));\n\t\tlblDesignCopyrights.setBounds(1711, 1018, 183, 23);\n\t\tframe.getContentPane().add(lblDesignCopyrights);\n\t\t\n\t\tJPanel background = new JPanel();\n\t\tbackground.setLayout(null);\n\t\tbackground.setBackground(Color.DARK_GRAY);\n\t\tbackground.setBounds(14, 200, 1880, 809);\n\t\tframe.getContentPane().add(background);\n\t\t\n\t\t\n\t\tJLabel lblTypesOfMachine = new JLabel(\"MACHINE NAME\");\n\t\tlblTypesOfMachine.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblTypesOfMachine.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblTypesOfMachine.setForeground(Color.WHITE);\n\t\tlblTypesOfMachine.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblTypesOfMachine.setBounds(69, 378, 178, 30);\n\t\tbackground.add(lblTypesOfMachine);\n\t\t\n\t\t\n\t\tJLabel lblAppointment = new JLabel(\"LIST TO DO\");\n\t\tlblAppointment.setForeground(Color.WHITE);\n\t\tlblAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblAppointment.setBounds(69, 117, 319, 48);\n\t\tbackground.add(lblAppointment);\n\t\t\n\t\tJLabel lblQuantity = new JLabel(\"QUANTITY\");\n\t\tlblQuantity.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblQuantity.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblQuantity.setForeground(Color.WHITE);\n\t\tlblQuantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblQuantity.setBounds(69, 428, 178, 30);\n\t\tbackground.add(lblQuantity);\n\t\t\n\t\tPanel panel = new Panel();\n\t\tpanel.setLayout(null);\n\t\tpanel.setBackground(Color.BLACK);\n\t\tpanel.setBounds(0, 30, 1880, 67);\n\t\tbackground.add(panel);\n\t\t\n\t\tJButton cusbtn = new JButton(\"CUSTOMER\");\n\t\tcusbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\t customer cr = new customer();\n\t\t cr.csStart();\n\t\t frame.dispose();\n\t\t\t}\n\t\t});\n\t\tcusbtn.setForeground(Color.WHITE);\n\t\tcusbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcusbtn.setBackground(Color.BLACK);\n\t\tcusbtn.setBounds(1257, 11, 613, 44);\n\t\tpanel.add(cusbtn);\n\t\t\n\t\tJButton bilbtn = new JButton(\"INVOICE\");\n\t\tbilbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tadminInvoice inv= new adminInvoice();\n\t\t\t\tinv. adminInvoiceStart();\n\t\t\t\tframe.dispose();\n\n\t\t\t}\n\t\t});\n\t\tbilbtn.setForeground(Color.WHITE);\n\t\tbilbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbilbtn.setBackground(Color.BLACK);\n\t\tbilbtn.setBounds(633, 11, 613, 44);\n\t\tpanel.add(bilbtn);\n\t\t\n\t\tJButton prdbtn = new JButton(\"PRODUCTS\");\n\t\tprdbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tadminproducts prd = new adminproducts();\n\t\t\t\tprd.adminPrd();\n\t\t\t\tframe.dispose();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprdbtn.setForeground(Color.WHITE);\n\t\tprdbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tprdbtn.setBackground(Color.BLACK);\n\t\tprdbtn.setBounds(10, 11, 613, 44);\n\t\tpanel.add(prdbtn);\n\t\t\n\t\tJLabel lblCustomerName = new JLabel(\"CUSTOMER NAME\");\n\t\tlblCustomerName.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblCustomerName.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblCustomerName.setForeground(Color.WHITE);\n\t\tlblCustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblCustomerName.setBounds(69, 278, 178, 30);\n\t\tbackground.add(lblCustomerName);\n\t\t\n\t\tJLabel lblMachineType = new JLabel(\"MACHINE TYPE\");\n\t\tlblMachineType.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblMachineType.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblMachineType.setForeground(Color.WHITE);\n\t\tlblMachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblMachineType.setBounds(69, 328, 178, 30);\n\t\tbackground.add(lblMachineType);\n\t\t\n\t\t\n\t\tJButton btnStore = new JButton(\"STORE\");\n\t\tbtnStore.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tString dateEntry=date.getText();\n\t\t\t\tString cusname= customerName.getText();\t\n\t\t\t\tString machType=machineType.getText();\n\t\t\t\tString machName=machineName.getText();\n\t\t\t\tString quan=quantity.getText();\n\t\t\t\tString dl= deadline.getText();\n\t\t\t\tConnection con;\n\t\t\t\tPreparedStatement insert;\n\t\t\t\t\n\t\t\t\tif(dateEntry.isEmpty()||cusname.isEmpty()||machName.isEmpty()||machType.isEmpty()||quan.isEmpty()||dl.isEmpty()) \n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"no field must be left empty\",\"registration error\", JOptionPane.ERROR_MESSAGE);\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\t\n\t\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \" Appointment added!!\");\n\t\t\t\t}\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t\t\t\tinsert = con.prepareStatement(\"insert into appointment (date,cusname,machType,machName,quan,deadline) values (?,?,?,?,?,?)\");\n\t\t insert.setString(1, dateEntry);\n\t\t insert.setString(2, cusname);\n\t\t insert.setString(3, machType);\n\t\t insert.setString(4, machName);\n\t\t insert.setString(5, quan);\n\t\t insert.setString(6, dl);\n\t\t insert.executeUpdate();\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tbtnStore.setForeground(Color.WHITE);\n\t\tbtnStore.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnStore.setBackground(Color.BLACK);\n\t\tbtnStore.setBounds(580, 578, 116, 44);\n\t\tbackground.add(btnStore);\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane();\n\t\tscrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\tscrollPane.setBounds(1000, 230, 613, 267);\n\t\tbackground.add(scrollPane);\n\t\t\n\t\tinvoice = new JTable();\n\t\tscrollPane.setViewportView(invoice);\n\t\t\n\t\tJLabel lblInvoice = new JLabel(\"VIEW TO-DO LIST\");\n\t\tlblInvoice.setForeground(Color.WHITE);\n\t\tlblInvoice.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblInvoice.setBounds(1010, 117, 387, 48);\n\t\tbackground.add(lblInvoice);\n\t\t\n\t\tquantity = new JTextField();\n\t\tquantity.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tquantity.setColumns(10);\n\t\tquantity.setBounds(279, 428, 289, 30);\n\t\tbackground.add(quantity);\n\t\t\n\t\tmachineName = new JTextField();\n\t\tmachineName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineName.setColumns(10);\n\t\tmachineName.setBounds(279, 328, 289, 30);\n\t\tbackground.add(machineName);\n\t\t\n\t\tmachineType = new JTextField();\n\t\tmachineType.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tmachineType.setColumns(10);\n\t\tmachineType.setBounds(279, 378, 289, 30);\n\t\tbackground.add(machineType);\n\t\t\n\t\tcustomerName = new JTextField();\n\t\tcustomerName.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tcustomerName.setColumns(10);\n\t\tcustomerName.setBounds(279, 278, 289, 30);\n\t\tbackground.add(customerName);\n\t\t\n\t\tJLabel deadlineLbl = new JLabel(\"DEADLINE\");\n\t\tdeadlineLbl.setVerticalAlignment(SwingConstants.TOP);\n\t\tdeadlineLbl.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tdeadlineLbl.setForeground(Color.WHITE);\n\t\tdeadlineLbl.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tdeadlineLbl.setBounds(69, 481, 178, 30);\n\t\tbackground.add(deadlineLbl);\n\t\t\n\t\tJLabel lblDate = new JLabel(\"DATE\");\n\t\tlblDate.setVerticalAlignment(SwingConstants.TOP);\n\t\tlblDate.setHorizontalAlignment(SwingConstants.LEFT);\n\t\tlblDate.setForeground(Color.WHITE);\n\t\tlblDate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 19));\n\t\tlblDate.setBounds(69, 228, 178, 30);\n\t\tbackground.add(lblDate);\n\t\t\n\t\tdate = new JTextField();\n\t\tdate.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdate.setColumns(10);\n\t\tdate.setBounds(279, 228, 289, 30);\n\t\tbackground.add(date);\n\t\t\n\t\tJButton btnView = new JButton(\"VIEW\");\n\t\tbtnView.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tConnection con = null;\n\t\t\t\t\tClass.forName(\"com.mysql.jdbc.Driver\");\n\t\t\t\t\tcon = DriverManager.getConnection(\"jdbc:mysql://localhost:3306/machine_works\", \"root\", \"\");\n\t\t String query=\"select * from appointment \";\n\t\t\t\t\tPreparedStatement pst = con.prepareStatement(query);\n\t\t\t\t\tResultSet rs = pst.executeQuery();\n\t\t\t\t\t\n\t\t\t\t\tinvoice.setModel(DbUtils.resultSetToTableModel(rs));\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\tcatch(Exception E)\n\t\t\t\t{\n\t\t\t\t\tE.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tbtnView.setForeground(Color.WHITE);\n\t\tbtnView.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnView.setBackground(Color.BLACK);\n\t\tbtnView.setBounds(1584, 578, 116, 44);\n\t\tbackground.add(btnView);\n\t\t\n\t\tdeadline = new JTextField();\n\t\tdeadline.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tdeadline.setColumns(10);\n\t\tdeadline.setBounds(279, 481, 289, 30);\n\t\tbackground.add(deadline);\n\t\t\n\t\tJPanel header = new JPanel();\n\t\theader.setLayout(null);\n\t\theader.setBackground(Color.DARK_GRAY);\n\t\theader.setBounds(14, 23, 1880, 163);\n\t\tframe.getContentPane().add(header);\n\t\t\n\t\tJPanel mwtitle = new JPanel();\n\t\tmwtitle.setLayout(null);\n\t\tmwtitle.setForeground(Color.WHITE);\n\t\tmwtitle.setBackground(Color.BLACK);\n\t\tmwtitle.setBounds(209, 7, 649, 151);\n\t\theader.add(mwtitle);\n\t\t\n\t\tJLabel label = new JLabel(\"MACHINE WORKS\");\n\t\tlabel.setForeground(Color.WHITE);\n\t\tlabel.setFont(new Font(\"Times New Roman\", Font.PLAIN, 69));\n\t\tlabel.setBounds(20, 11, 605, 72);\n\t\tmwtitle.add(label);\n\t\t\n\t\tJLabel lblWhereAllThe = new JLabel(\"Where all the WORK is done by MACHINE\");\n\t\tlblWhereAllThe.setForeground(Color.ORANGE);\n\t\tlblWhereAllThe.setFont(new Font(\"Times New Roman\", Font.PLAIN, 30));\n\t\tlblWhereAllThe.setBounds(38, 94, 581, 48);\n\t\tmwtitle.add(lblWhereAllThe);\n\t\t\n\t\tJLabel logolbl = new JLabel(\"\");\n\t\tlogolbl.setIcon(new ImageIcon(\"C:\\\\Users\\\\CHINMAYA SH\\\\Pictures\\\\download.png\"));\n\t\tlogolbl.setBounds(58, 7, 151, 151);\n\t\theader.add(logolbl);\n\t\t\n\t\tJButton lgbtn = new JButton(\"LOGOUT\");\n\t\tlgbtn.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Logged out Successfull !!\");\n\t\t\t\tindex ind = new index();\n\t\t\t\tind.indexStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tlgbtn.setForeground(Color.WHITE);\n\t\tlgbtn.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tlgbtn.setBackground(Color.BLACK);\n\t\tlgbtn.setBounds(1674, 60, 116, 44);\n\t\theader.add(lgbtn);\n\t\t\n\t\tJButton button_1 = new JButton(\"SIGN UP\");\n\t\tbutton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tsignup sg = new signup();\n\t\t\t\tsg.signupStart();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbutton_1.setForeground(Color.WHITE);\n\t\tbutton_1.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbutton_1.setBackground(Color.BLACK);\n\t\tbutton_1.setBounds(1488, 60, 116, 44);\n\t\theader.add(button_1);\n\t\t\n\t\tJButton btnAppointment = new JButton(\"TO-DO\");\n\t\tbtnAppointment.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) \n\t\t\t{\n\t\t\t\tappointments ap = new appointments();\n\t\t\t\tap.appointmentList();\n\t\t\t\tframe.dispose();\n\t\t\t}\n\t\t});\n\t\tbtnAppointment.setForeground(Color.WHITE);\n\t\tbtnAppointment.setFont(new Font(\"Times New Roman\", Font.PLAIN, 15));\n\t\tbtnAppointment.setBackground(Color.BLACK);\n\t\tbtnAppointment.setBounds(1309, 60, 125, 44);\n\t\theader.add(btnAppointment);\n\t\tframe.setBackground(Color.BLACK);\n\t\tframe.setBounds(100, 100, 1920\t, 1080);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\n\n\t}", "private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}", "public ProviderFrame() {\n this.setTitle(FACE_DETECTION_APPLICATION_TITLE);\n this.setSize(FRAME_WIDTH, FRAME_HEIGHT);\n this.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);\n\n this.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent event) {\n System.exit(0);\n }\n });\n\n buildElements();\n\n centerFrame();\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 EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "private void initialize() {\r\n\t\t// Initialize main frame\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(Constants.C_MAIN_PREFERED_POSITION_X_AT_START, Constants.C_MAIN_PREFERED_POSITION_Y_AT_START, \r\n\t\t\t\tConstants.C_MAIN_PREFERED_SIZE_X, Constants.C_MAIN_PREFERED_SIZE_Y);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\tframe.setTitle(Constants.C_MAIN_WINDOW_TITLE);\r\n\t\t\r\n\t\t// Tab panel and their panels\r\n\t\tmainTabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tframe.getContentPane().add(mainTabbedPane, BorderLayout.CENTER);\r\n\t\t\r\n\t\tpanelDecision = new DecisionPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_DECISION_TITLE, null, panelDecision, null);\r\n\t\t\r\n\t\tpanelCalculation = new CalculationPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_CALCULATION_TITLE, null, panelCalculation, null);\r\n\t\t\r\n\t\tpanelLibrary = new LibraryPanel();\r\n\t\tmainTabbedPane.addTab(Constants.C_TAB_LIBRARY_TITLE, null, panelLibrary, null);\r\n\t\t\r\n\t\t// Menu bar\r\n\t\tmenuBar = new JMenuBar();\r\n\t\tframe.setJMenuBar(menuBar);\r\n\t\tcreateMenus();\r\n\t}", "protected void createContents() {\r\n\t\tsetText(\"SWT Application\");\r\n\t\tsetSize(450, 300);\r\n\r\n\t}", "public ExampleJFrame() {\n initComponents();\n setLocationRelativeTo(null);\n }", "public DisplayStaffMemberFrame() {\n initComponents();\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 }", "public MyFrame() {\n\t\tinitializeGui();\n\t\taddMouseListener(this);\n\t\taddComponentListener(this);\n\t}", "public void start() {\r\n\t\tfinal Element frame = this.createFrame();\r\n\t\tthis.setFrame(frame);\r\n\r\n\t\tthis.getSupport().start(this, frame);\r\n\r\n\t\t// the reason for the query string is to avoid caching problems...the\r\n\t\t// src attribute is set before the frame is attached this also\r\n\t\t// avoids the nasty clicking noises in ie.\r\n\t\tDOM.setElementProperty(frame, \"src\", this.getServiceEntryPoint() + \"?serializationEngine=Gwt&\" + System.currentTimeMillis());\r\n\r\n\t\tfinal Element body = RootPanel.getBodyElement();\r\n\t\tDOM.appendChild(body, frame);\r\n\t}", "public GuiMainFrame() {\n this(new ArrayBlockingQueue<String>(100), new OBORunnerConfiguration());\n }", "private Frame buildFrame() {\n return new Frame(command, headers, body);\n }", "final void initViewer()\n {\n if (viewer.getViewContext().getStartInStandaloneWindow() == true)\n {\n \n JFrame frame=null; \n // JFrame\n {\n frame = new JFrame();\n frame.setSize(new Dimension(800, 600));\n GuiSettings.placeToCenter(frame);\n }\n\n if (viewer.haveOwnScrollPane() == false)\n {\n // embed viewer in scrollPane \n JScrollPane scrollPane = new JScrollPane();\n scrollPane.setViewportView(viewer.getViewComponent());\n frame.add(scrollPane);\n }\n else\n {\n frame.add(viewer.getViewComponent());\n }\n \n // Viewer\n // viewer.setFrame(frame); \n viewer.initViewer();\n \n ViewerFrameListener listener = new ViewerFrameListener(frame,this);\n frame.addWindowListener(listener);\n frame.addComponentListener(listener); \n \n frame.pack();\n\n frame.setVisible(true);\n // viewer.setFrame(frame); \n }\n else\n {\n viewer.initViewer();\n }\n }", "public BaseFrame() {\n initComponents();\n }", "public RunFrame(MainFrame mainFrame) {\n\tthis.mainFrame = mainFrame;\n\tmainFrame.addScriptEventListener(scrEvtLis);\n\tsetAlwaysOnTop(true);\n setFocusable(false);\n setLocationByPlatform(true);\n\tsetLayout(new GridBagLayout());\n\tsetUndecorated(true);\n\tsetTitle(\"JUltima Toolbar\");\n\n\taddMouseListener(this);\n\taddMouseMotionListener(this);\n }", "public MainDemo() {\n initComponents(); // Init Components from de Matisse form's design\n initBaseIcons(); // Init base icons\n initBusyIcons(); // Init busy icons\n\n /** Complete specific initialization of each tabs\n */\n initJBusyComponentTab();\n initBusyIconTab();\n initHubTab();\n initWorkerTab();\n\n updateBusyIconModel();\n }", "public internalFrame() {\r\n initComponents();\r\n }", "public HomeFrame() {\n super();\n\n this.setSize(400, 80);\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n this.setTitle(\"Reed-Muller code sending simulator\");\n JPanel panel = new JPanel();\n\n JButton sendVector = new JButton();\n sendVector.setText(\"Vector\");\n sendVector.addActionListener(e -> new VectorFrame());\n\n JButton sendText = new JButton();\n sendText.setText(\"Text\");\n sendText.addActionListener(e -> new TextFrame());\n\n panel.add(sendVector);\n panel.add(sendText);\n\n panel.setVisible(true);\n this.add(panel);\n this.setVisible(true);\n }", "private void $$$setupUI$$$() {\n createUIComponents();\n content.setLayout(new BorderLayout(0, 0));\n content.setMinimumSize(new Dimension(1024, 576));\n content.setPreferredSize(new Dimension(1024, 576));\n panel1.setLayout(new BorderLayout(0, 0));\n content.add(panel1, BorderLayout.SOUTH);\n panel1.setBorder(BorderFactory.createTitledBorder(null, \"\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n dwadawdTextField = new JTextField();\n dwadawdTextField.setText(\"dwadawd\");\n panel1.add(dwadawdTextField, BorderLayout.CENTER);\n button1 = new JButton();\n button1.setText(\"Button\");\n panel1.add(button1, BorderLayout.EAST);\n panel2 = new JPanel();\n panel2.setLayout(new BorderLayout(0, 0));\n content.add(panel2, BorderLayout.CENTER);\n final JScrollPane scrollPane1 = new JScrollPane();\n panel2.add(scrollPane1, BorderLayout.CENTER);\n textPane1 = new JTextPane();\n scrollPane1.setViewportView(textPane1);\n }", "public PreviewPanel() {\n initComponents();\n\n }", "protected void createContents() {\n\t\tsetText(\"SWT Application\");\n\t\tsetSize(656, 296);\n\n\t}" ]
[ "0.68860817", "0.6759921", "0.6749737", "0.6735444", "0.65946585", "0.65546304", "0.65094566", "0.65056753", "0.6501428", "0.64995223", "0.6491803", "0.64771867", "0.64741826", "0.6443037", "0.6435832", "0.6428431", "0.6375732", "0.6372552", "0.6346758", "0.6310557", "0.6304558", "0.62856215", "0.6282219", "0.62653023", "0.62537146", "0.62478673", "0.6236521", "0.62202346", "0.62181485", "0.62141436", "0.62141424", "0.6205891", "0.6202179", "0.6200189", "0.6187689", "0.6183236", "0.61731005", "0.6172955", "0.61663455", "0.6160197", "0.61567986", "0.6155026", "0.6147213", "0.6142861", "0.61391884", "0.61385596", "0.6136593", "0.6131434", "0.6130645", "0.6130645", "0.6060352", "0.60592896", "0.60547006", "0.6051679", "0.60507107", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60499984", "0.60292536", "0.60219926", "0.60199887", "0.60183096", "0.60126585", "0.60019773", "0.600115", "0.59998804", "0.5993494", "0.5986808", "0.59810174", "0.5956265", "0.5954971", "0.5952329", "0.59523165", "0.5951583", "0.5950835", "0.5950478", "0.5945986", "0.59378725", "0.5925116", "0.5923766", "0.59183073", "0.59110546", "0.5898855", "0.58849216", "0.5883768", "0.5882845", "0.58782554", "0.58745325", "0.5864788", "0.5864543", "0.5856705", "0.5852958" ]
0.0
-1
Configures the user interface; requests Swing settings and JGoodies Looks options from the launcher.
private void configureUI() { // UIManager.put("ToolTip.hideAccelerator", Boolean.FALSE); Options.setDefaultIconSize(new Dimension(18, 18)); Options.setUseNarrowButtons(settings.isUseNarrowButtons()); // Global options Options.setTabIconsEnabled(settings.isTabIconsEnabled()); UIManager.put(Options.POPUP_DROP_SHADOW_ENABLED_KEY, settings.isPopupDropShadowEnabled()); // Swing Settings LookAndFeel selectedLaf = settings.getSelectedLookAndFeel(); if (selectedLaf instanceof PlasticLookAndFeel) { PlasticLookAndFeel.setPlasticTheme(settings.getSelectedTheme()); PlasticLookAndFeel.setTabStyle(settings.getPlasticTabStyle()); PlasticLookAndFeel.setHighContrastFocusColorsEnabled( settings.isPlasticHighContrastFocusEnabled()); } else if (selectedLaf.getClass() == MetalLookAndFeel.class) { MetalLookAndFeel.setCurrentTheme(new DefaultMetalTheme()); } // Work around caching in MetalRadioButtonUI JRadioButton radio = new JRadioButton(); radio.getUI().uninstallUI(radio); JCheckBox checkBox = new JCheckBox(); checkBox.getUI().uninstallUI(checkBox); try { UIManager.setLookAndFeel(selectedLaf); } catch (Exception e) { System.out.println("Can't change L&F: " + e); } }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupGUI() {\r\n\t\tPaperToolkit.initializeLookAndFeel();\r\n\t\tgetMainFrame();\r\n\t}", "protected void setupUI() {\n\n }", "private void settings() {\n\n\t\tthis.addWindowListener(controller);\n\t\tthis.setVisible(true);\n\t\tthis.setSize(1000, 660);\n\t\tthis.validate();\n\t\tthis.repaint();\n\n\t}", "private void initUI () {\n\t\t\t\n\t\t\tJFrame error = new JFrame();\n\t\t\tJFrame tmp = new JFrame();\n\t\t\ttmp.setSize(50, 50);\n\t\t\tString select = \"cheese\";\n\t\t\tboolean boolTemp = false;\n\t\t\tif(new File(\"prefFile.txt\").exists() == false){ //if this is the first run\n\t\t\t\twhile(select.equals(\"cheese\")){\n\t\t\t\t\tselect = JOptionPane.showInputDialog(tmp, \"It appears this is your first run. \"\n\t\t\t\t\t\t\t+ \"Enter the city name of your current location:\"); //prompts user for their current location\n\t\t\t\t\tif(select != null){\n\t\t\t\t\t\tboolTemp = searchBoxUsedTwo(select); //used the search function\n\t\t\t\t\t}\n\t\t\t\t\tif(boolTemp == false){\n\t\t\t\t\t\tselect = \"cheese\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tapp.setCurrentLocation(app.getVisibleLocation()); //sets the current location\n\t\t\t}\n\t\t\telse{ //if it's been run before\n\t\t\t\tlocation tmpLoc = new location();\n\t\t\t\ttry {\n\t\t\t\t\ttmpLoc = app.loadPref(); //load the location from memory\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\tJOptionPane.showMessageDialog(error, \"An error occured\");\n\t\t\t\t}\n\t\t\t\tapp.setCurrentLocation(tmpLoc); //and set it as the current location\n\t\t\t\tapp.setVisibleLocation(tmpLoc);\n\t\t\t\t\n\t\t\t}\n\t\t\tthis.setTitle(\"Weather Application\"); //sets title of frame \n\t\t\tthis.setSize(1300, 600); //sets size of frame\n\t\t\tthis.setLocationRelativeTo(null);\n\t\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE); //initiates exit on close command\n\t\t\tthis.setJMenuBar(this.createMenubar()); \n\t\t\t\n\t\t\tcreateFormCalls();\n\t\t\t\n\t\t\ttabbedPane.addTab(\"Current\", null, currentPanel); //fills a tab window with current data\n\t\t\ttabbedPane.addTab(\"Short Term\", null, shortPanel); //fills a tab window with short term data\n\t\t\ttabbedPane.addTab(\"Long Term\", null, longPanel); //fills a tab window with short term data\n\t\t\ttabbedPane.addTab(\"Mars Weather\", null, marsPanel); //fills a tab window with short term data\n\t\t\t\n\t\t\tGroupLayout layout = new GroupLayout(this.getContentPane());\n\t\t\tlayout.setAutoCreateGaps(true);\n\t\t\tlayout.setAutoCreateContainerGaps(true);\n\t\t\tlayout.setHorizontalGroup( layout.createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t\n\t\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.LEADING) \n\t\t\t\t\t\t\t\t.addComponent(tabbedPane)\n\t\t\t\t\t\t\t\t.addComponent(refreshLabel)\n\t\t\t\t\t\t)\n\n\t\t\t);\n\t\t\tlayout.setVerticalGroup( layout.createSequentialGroup() //sets the vertical groups\n\t\t\t\t\t\n\t\t\t\t\t.addGroup(layout.createParallelGroup(GroupLayout.Alignment.BASELINE) \n\t\t\t\t\t\t\t.addComponent(tabbedPane)\n\t\t\t\t\t)\n\t\t\t\t\t.addComponent(refreshLabel)\n\n\t\t\t);\n\t\t\t\n\t\t\tthis.getContentPane().setLayout(layout);\n\t\t}", "protected void initializeGUI() {\n\n\t}", "protected void initConfiguration() {\r\n\t\tthis.updateDynamicWelcomeText(\"Initializing configuration...\");\r\n\r\n\t\t// set default locale to English just for debug\r\n\t\t// standard dialogs are set in the system's default language\r\n\t\tLocale.setDefault(Locale.ENGLISH);\r\n\r\n\t\t// assign the look and feel to the current swing UI manager\r\n\t\ttry {\r\n\t\t\t// for all messages initially set the default look and feel from the\r\n\t\t\t// system\r\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n\r\n\t\t\t// initialize the configuration manager\r\n\t\t\ttry {\r\n\t\t\t\tthis.configManager = ConfigManager.getCurrentInstance();\r\n\r\n\t\t\t\tthis.configManager.validateAndSetConfiguration();\r\n\r\n\t\t\t\t// get the file path of the temporary directory\r\n\t\t\t\tFile userTempDir = ConfigManager.getCurrentInstance()\r\n\t\t\t\t\t\t.getTempPath();\r\n\r\n\t\t\t\t// Delete all temporary files/dirs in user temp directory\r\n\t\t\t\t// therefore, use the public method from the deletion task,\r\n\t\t\t\t// without executing a new thread\r\n\t\t\t\tnew DeleteFilesTask().deleteTemporaryUserData(userTempDir);\r\n\r\n\t\t\t} catch (Exception e) {\r\n\t\t\t\te.printStackTrace();\r\n\t\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\t\tDialogUtil.getInstance().showErrorMessage(\r\n\t\t\t\t\t\tI18N.getMessage(\"application.exception.config.invalid\",\r\n\t\t\t\t\t\t\t\tSystem.getProperty(\"user.home\")\r\n\t\t\t\t\t\t\t\t\t\t+ IQMConstants.FILE_SEPARATOR + \"IQM\"\r\n\t\t\t\t\t\t\t\t\t\t+ IQMConstants.FILE_SEPARATOR + \"logs\"\r\n\t\t\t\t\t\t\t\t\t\t+ IQMConstants.FILE_SEPARATOR\r\n\t\t\t\t\t\t\t\t\t\t+ \"iqm.log\"), e, true);\r\n\t\t\t\t// exiting\r\n\t\t\t\tSystem.exit(-1);\r\n\t\t\t}\r\n\r\n\t\t\t// get the system's look and feel, if default or none is specified\r\n\t\t\t// in config file\r\n\t\t\tString laf = configManager.getIQMConfig().getApplication().getGui()\r\n\t\t\t\t\t.getLookAndFeel();\r\n\r\n\t\t\tif (OperatingSystem.isUnix() && !laf.toLowerCase().equals(\"system\")) {\r\n\t\t\t\tUIManager\r\n\t\t\t\t\t\t.setLookAndFeel(\"javax.swing.plaf.metal.MetalLookAndFeel\");\r\n\t\t\t} else {\r\n\t\t\t\tif (laf != null\r\n\t\t\t\t\t\t&& (laf.toLowerCase().equals(\"default\") || laf\r\n\t\t\t\t\t\t\t\t.toLowerCase().equals(\"system\"))) {\r\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager\r\n\t\t\t\t\t\t\t.getSystemLookAndFeelClassName());\r\n\t\t\t\t} else if (laf != null\r\n\t\t\t\t\t\t&& (laf.toLowerCase().contains(\"nimbus\"))) {\r\n\t\t\t\t\tUIManager\r\n\t\t\t\t\t\t\t.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\r\n\t\t\t\t} else if (laf == null) {\r\n\t\t\t\t\tUIManager.setLookAndFeel(UIManager\r\n\t\t\t\t\t\t\t.getCrossPlatformLookAndFeelClassName());\r\n\t\t\t\t} else {\r\n\t\t\t\t\tUIManager.setLookAndFeel(laf);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t\tthis.updateDynamicWelcomeText(\"Done.\");\r\n\t\t} catch (ClassNotFoundException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (InstantiationException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (IllegalAccessException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t} catch (UnsupportedLookAndFeelException e) {\r\n\t\t\t// log the error message\r\n\t\t\tDialogUtil.getInstance().showErrorMessage(null, e, true);\r\n\t\t\tSystem.out.println(\"IQM Error: An error occurred: \" + e);\r\n\t\t\te.printStackTrace();\r\n\t\t\tSystem.exit(-1);\r\n\t\t}\r\n\t}", "private void $$$setupUI$$$()\n {\n panel = new JPanel();\n panel.setLayout(new GridLayoutManager(6, 1, new Insets(20, 20, 20, 20), -1, -1));\n panel.setAutoscrolls(true);\n buttonSettings = new JButton();\n buttonSettings.setEnabled(true);\n buttonSettings.setText(\"Open Application Settings\");\n panel.add(buttonSettings,\n new GridConstraints(2, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonStartGit = new JButton();\n buttonStartGit.setEnabled(true);\n buttonStartGit.setText(\"Start Git Management\");\n panel.add(buttonStartGit,\n new GridConstraints(3, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JScrollPane scrollPane1 = new JScrollPane();\n panel.add(scrollPane1, new GridConstraints(1, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_WANT_GROW,\n null, new Dimension(500, 500), null, 0, false));\n textPaneConsole = new JTextPane();\n textPaneConsole.setEditable(false);\n scrollPane1.setViewportView(textPaneConsole);\n buttonOpenBenchmarkDialog = new JButton();\n buttonOpenBenchmarkDialog.setText(\"Open YCSB Benchmark Dialog\");\n panel.add(buttonOpenBenchmarkDialog,\n new GridConstraints(5, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n buttonShowGitSettings = new JButton();\n buttonShowGitSettings.setEnabled(true);\n buttonShowGitSettings.setText(\"Open Git Management\");\n panel.add(buttonShowGitSettings,\n new GridConstraints(4, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL,\n GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW,\n GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final JLabel label1 = new JLabel();\n label1.setText(\"Console Output\");\n panel.add(label1, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE,\n GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null,\n null, null, 0, false));\n }", "private void setupSwing() {\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n \r\n try {\r\n for (LookAndFeelInfo info: UIManager.getInstalledLookAndFeels()) {\r\n if (info.getName().equals(\"Windows\")) {\r\n UIManager.setLookAndFeel(info.getClassName());\r\n }\r\n }\r\n } catch (ClassNotFoundException \r\n | InstantiationException\r\n | IllegalAccessException \r\n | UnsupportedLookAndFeelException e) {\r\n e.printStackTrace(System.err);\r\n }\r\n \r\n window = new ManagerWindow(MetagridManager.this);\r\n window.pack();\r\n window.setVisible(true);\r\n }\r\n });\r\n }", "private static void initAndShowGUI() {\n }", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "void setGuiSettings(GuiSettings guiSettings);", "private void settings() {\n mainTitle = makeLabel(\"Settings\", true);\n add(mainTitle);\n add(content);\n add(diffSlider);\n add(colourChooser);\n add(mainB);//button to main menu\n diffSlider.requestFocus();\n }", "private void initialize() {\n\t\tfrmSettings = new JFrame();\n\t\tfrmSettings.setTitle(\"Settings\");\n\t\tfrmSettings.setBounds(100, 100, 594, 420);\n\t\tfrmSettings.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tfrmSettings.getContentPane().setLayout(null);\n\n\t\tJLabel lblSettings = new JLabel(\"Check the appropriate checkbox to change the values\");\n\t\tlblSettings.setBounds(10, 8, 558, 14);\n\t\tfrmSettings.getContentPane().add(lblSettings);\n\n\t\tstorage_panel = new JPanel();\n\t\tstorage_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Storage\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tstorage_panel.setBounds(20, 33, 548, 65);\n\t\tfrmSettings.getContentPane().add(storage_panel);\n\t\tstorage_panel.setLayout(null);\n\n\t\tJLabel lblDefaultPathfor = new JLabel(\"Default path (for reports):\");\n\t\tlblDefaultPathfor.setBounds(10, 27, 149, 14);\n\t\tstorage_panel.add(lblDefaultPathfor);\n\n\t\treport_path = new JTextField();\n\t\treport_path.setText(AppConfigInfo.getDefaultStorage());\n\t\treport_path.setBounds(171, 23, 367, 20);\n\t\tstorage_panel.add(report_path);\n\t\treport_path.setColumns(10);\n\n\t\twork_hours_panel = new JPanel();\n\t\twork_hours_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Work-hours\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\twork_hours_panel.setBounds(20, 112, 548, 90);\n\t\tfrmSettings.getContentPane().add(work_hours_panel);\n\t\twork_hours_panel.setLayout(null);\n\n\t\tJLabel lblNewLabel = new JLabel(\"Full-day hours (hh:mm:ss):\");\n\t\tlblNewLabel.setBounds(10, 26, 161, 14);\n\t\twork_hours_panel.add(lblNewLabel);\n\n\t\tJLabel lblHalfdayHours = new JLabel(\"Half-day hours (hh:mm:ss):\");\n\t\tlblHalfdayHours.setBounds(10, 54, 161, 14);\n\t\twork_hours_panel.add(lblHalfdayHours);\n\n\t\tSimpleDateFormat sdf = new SimpleDateFormat(\"HH:mm:ss\");\n\t\tDate df = new Date(), dh = new Date();\n\t\ttry {\n\t\t\tdf = sdf.parse(AppConfigInfo.getFullWorkingHours());\n\t\t\tdh = sdf.parse(AppConfigInfo.getHalfWorkingHours());\n\t\t} catch (Exception ex) {\n\n\t\t}\n\t\tfull_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\tfull_day_spinner.setEditor(new JSpinner.DateEditor(full_day_spinner, sdf.toPattern()));\n\t\tfull_day_spinner.setValue(df);\n\t\tfull_day_spinner.setBounds(171, 23, 122, 20);\n\t\twork_hours_panel.add(full_day_spinner);\n\n\t\thalf_day_spinner = new JSpinner(new SpinnerDateModel());\n\t\thalf_day_spinner.setEditor(new JSpinner.DateEditor(half_day_spinner, sdf.toPattern()));\n\t\thalf_day_spinner.setValue(dh);\n\t\thalf_day_spinner.setBounds(171, 51, 122, 20);\n\t\twork_hours_panel.add(half_day_spinner);\n\n\t\tadmin_profile_panel = new JPanel();\n\t\tadmin_profile_panel.setBorder(new TitledBorder(UIManager.getBorder(\"TitledBorder.border\"), \"Admin profile\",\n\t\t\t\tTitledBorder.LEADING, TitledBorder.TOP, null, new Color(0, 0, 0)));\n\t\tadmin_profile_panel.setBounds(20, 211, 548, 123);\n\t\tfrmSettings.getContentPane().add(admin_profile_panel);\n\t\tadmin_profile_panel.setLayout(null);\n\n\t\tlblNewLabel_1 = new JLabel(\"Existing password:\");\n\t\tlblNewLabel_1.setBounds(10, 28, 151, 14);\n\t\tadmin_profile_panel.add(lblNewLabel_1);\n\n\t\tlblNewPassword = new JLabel(\"New password:\");\n\t\tlblNewPassword.setBounds(10, 54, 151, 14);\n\t\tadmin_profile_panel.add(lblNewPassword);\n\n\t\tlblReenterPassword = new JLabel(\"Re-enter password:\");\n\t\tlblReenterPassword.setBounds(10, 79, 151, 14);\n\t\tadmin_profile_panel.add(lblReenterPassword);\n\n\t\texisting_password = new JPasswordField();\n\t\texisting_password.setBounds(171, 25, 159, 20);\n\t\tadmin_profile_panel.add(existing_password);\n\n\t\tnew_password = new JPasswordField();\n\t\tnew_password.setBounds(171, 51, 159, 20);\n\t\tadmin_profile_panel.add(new_password);\n\n\t\tre_entered_password = new JPasswordField();\n\t\tre_entered_password.addKeyListener(new KeyAdapter() {\n\t\t\t@Override\n\t\t\tpublic void keyReleased(KeyEvent e) {\n\t\t\t\tif (!re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"Password does not match.\");\n\t\t\t\t} else if (re_entered_password.getText().equals(new_password.getText())) {\n\t\t\t\t\tpassword_status_label.setText(\"\");\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tre_entered_password.setBounds(171, 76, 159, 20);\n\t\tadmin_profile_panel.add(re_entered_password);\n\n\t\tpassword_status_label = new JLabel(\"\");\n\t\tpassword_status_label.setBounds(340, 79, 198, 14);\n\t\tadmin_profile_panel.add(password_status_label);\n\n\t\tstorage_check = new JCheckBox(\"\");\n\t\tstorage_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tstorage_panel.setEnabled(true);\n\t\t\t\t\tenableReportPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tstorage_panel.setEnabled(false);\n\t\t\t\t\tdisableReportPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tstorage_check.setBounds(0, 56, 21, 23);\n\t\tfrmSettings.getContentPane().add(storage_check);\n\n\t\twork_hours_check = new JCheckBox(\"\");\n\t\twork_hours_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\twork_hours_panel.setEnabled(true);\n\t\t\t\t\tenableWorkHourPanelFields();\n\t\t\t\t} else {\n\t\t\t\t\twork_hours_panel.setEnabled(false);\n\t\t\t\t\tdisableWorkHourPanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\twork_hours_check.setBounds(0, 149, 21, 23);\n\t\tfrmSettings.getContentPane().add(work_hours_check);\n\n\t\tadmin_profile_check = new JCheckBox(\"\");\n\t\tadmin_profile_check.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent e) {\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tadmin_profile_panel.setEnabled(true);\n\t\t\t\t\tenableAdminProfilePanelFields();\n\t\t\t\t} else {\n\t\t\t\t\tadmin_profile_panel.setEnabled(false);\n\t\t\t\t\tdisableAdminProfilePanelFields();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tadmin_profile_check.setBounds(0, 263, 21, 23);\n\t\tfrmSettings.getContentPane().add(admin_profile_check);\n\n\t\tapply_button = new JButton(\"Apply\");\n\t\tapply_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tif (storage_check.isSelected()) {\n\t\t\t\t\tif (report_path.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the storage path.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\treport_status = UpdateAppSettings.updateStoragePath(report_path.getText());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (work_hours_check.isSelected()) {\n\t\t\t\t\tif (full_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the full day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (half_day_spinner.getValue().toString().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter the half day hours.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\twork_hours_status = UpdateAppSettings.updateWorkigHours((Date) full_day_spinner.getValue(),\n\t\t\t\t\t\t\t\t(Date) half_day_spinner.getValue());\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (admin_profile_check.isSelected()) {\n\t\t\t\t\tif (existing_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter your existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (new_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(\"\")) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Please re-enter new password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (!new_password.getText().equals(re_entered_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Re-entered password does not match.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else if (re_entered_password.getText().equals(existing_password.getText())) {\n\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings,\n\t\t\t\t\t\t\t\t\"New password cannot be same as the existing password.\", \"Error\",\n\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t} else {\n\t\t\t\t\t\tadmin_password_status = UpdateAppSettings.updateAdminPassword(existing_password.getText(),\n\t\t\t\t\t\t\t\tre_entered_password.getText());\n\t\t\t\t\t\tif (!admin_password_status) {\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Wrong password entered.\", \"Error\",\n\t\t\t\t\t\t\t\t\tJOptionPane.ERROR_MESSAGE);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (report_status || work_hours_status || admin_password_status) {\n\t\t\t\t\tJOptionPane.showMessageDialog(frmSettings, \"Settings applied successfully.\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tapply_button.setBounds(239, 348, 89, 23);\n\t\tfrmSettings.getContentPane().add(apply_button);\n\n\t\tlabel = new JLabel(\"\\u00A9 Copyright 2017. Saraswat Infotech Ltd\");\n\t\tlabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel.setFont(new Font(\"Tahoma\", Font.PLAIN, 9));\n\t\tlabel.setBounds(363, 368, 205, 14);\n\t\tfrmSettings.getContentPane().add(label);\n\t}", "@Override\n public void initGui()\n {\n super.initGui();\n }", "private void settings() {\n\t\tthis.setVisible(true);\n\t\tthis.setSize(800,200);\n\t}", "public MainGui() {\n initComponents();\n this.setVisible(true);\n configuracoesSalvas();\n }", "private void configuraInterface() {\n\t\tJFrame.setDefaultLookAndFeelDecorated(true);\n\t\ttry\t{\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\n\t\t}\n\t\tcatch (Exception ex) {\n\t\t\tSystem.out.println(\"Falhou o carregamento do L&F: \");\n\t\t\tSystem.out.println(ex);\n\t\t}\n\t}", "public DriftSwing() {\n initComponents();\n \n // Create an invisible options dialog to initialize options\n options = new OptionsDialog(this);\n }", "private void initGUI(User user) {\n\t\ttry {\n\t\t\tthis.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);\n\t\t\tthis.setTitle(\"Warehouse Application\");\n\t\t\tthis.setIconImage(new ImageIcon(getClass().getClassLoader().getResource(ApplicationConstants.WAREHOUSE_LOGO)).getImage());\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setFocusTraversalKeysEnabled(false);\n\t\t\tthis.setLocation(new java.awt.Point(100, 100));\n\t\t\t{\n\t\t\t\tChangeScreen.setBlankScreen(user);\n\t\t\t}\n\t\t\t{\n\t\t\t\tmnuMain = new WarehouseMenuBar(user, this);\n\t\t\t\tsetJMenuBar(mnuMain);\n\t\t\t}\n\t\t\tpack();\n\t\t\tthis.setSize(809, 577);\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) throws ClassNotFoundException, InstantiationException, IllegalAccessException,\n\t\t\tUnsupportedLookAndFeelException {\n\t\tdetermineOS();\n\t\tif (currentOs == MAC_OS) {\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.apple.menu.about.name\", \"UP-Admin\");\n\t\t\tSystem.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n\t\t\tSystem.setProperty(\"com.apple.mrj.application.live-resize\", \"true\");\n\n\t\t\ttry {\n\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t} catch (ClassNotFoundException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (InstantiationException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (IllegalAccessException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t} catch (UnsupportedLookAndFeelException e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t} else if ((currentOs == WIN_OS) || (currentOs == null)) {\n\n\t\t\tUIManager.put(\"nimbusBase\", new Color(0x525252));\n\t\t\tUIManager.put(\"control\", new Color(0x949494));\n\t\t\tUIManager.put(\"nimbusSelectionBackground\", new Color(0x171717));\n\t\t\tUIManager.put(\"Menu.background\", new Color(0x2B2B2B));\n\t\t\tUIManager.put(\"background\", new Color(0x171717));\n\t\t\tUIManager.put(\"DesktopIcon.background\", new Color(0x171717));\n\t\t\tUIManager.put(\"nimbusLightBackground\", new Color(0xE3E3E3));\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel\");\n\t\t\t\n\t\t}\n\n\t\tEventQueue.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\ttry {\n\t\t\t\t\tFrame frame = new Frame();\n\t\t\t\t\tframe.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}", "private void setUpGui() {\n \n // make sure that the scroll panes are see-through\n qualityFiltersTableScrollPane.getViewport().setOpaque(false);\n\n // disable column reordering\n qualityFiltersTable.getTableHeader().setReorderingAllowed(false);\n\n // set the validation combo box\n validationLevelJComboBox.setRenderer(new AlignedListCellRenderer(SwingConstants.CENTER));\n validationLevelJComboBox.setEditable(false);\n\n // set up the table header tooltips\n validationTableToolTips = new ArrayList<>(3);\n validationTableToolTips.add(null);\n validationTableToolTips.add(\"Quality Test\");\n validationTableToolTips.add(\"Passed\");\n }", "protected void init(){\n\t\n\t\tsetBounds(getControllerScreenPosition());\n\t\taddComponentListener(new ComponentListener(){\n\n\t\t\tpublic void componentResized(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint w = arg0.getComponent().getWidth();\n\t\t\t\tint h = arg0.getComponent().getHeight();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_W, String.valueOf(w));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_H, String.valueOf(h));\t \t\t\t\t\t\t\n\t\t\t}\n\n\t\t\tpublic void componentMoved(ComponentEvent arg0) {\n\t\t\t\t//AppLogger.debug2(arg0.toString());\t\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t\tint x = arg0.getComponent().getX();\n\t\t\t\tint y = arg0.getComponent().getY();\t\t\t\t\t\t\t\t\t\t\t\n\t\t\t \tProperties props = getAppSettings();\t\t\t\t \t\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_X, String.valueOf(x));\n\t\t\t \tprops.setProperty(PREFIX+DSC_WIN_Y, String.valueOf(y));\t \t\t\n\t\t\t}\n\n\t\t\tpublic void componentShown(ComponentEvent arg0) {}\n\t\t\tpublic void componentHidden(ComponentEvent arg0) {}\n\t\t\t\n\t\t});\n\t\t\n\t\tthis.addWindowListener(new WindowAdapter(){\n\t\t\n\t\t\tpublic void windowClosing(WindowEvent evt){\n\t\t\t\tstoreAppSettings();\n\t\t\t}\n\t\t});\n\t\t\n\t}", "public void initGui()\n {\n StringTranslate var1 = StringTranslate.getInstance();\n int var2 = this.func_73907_g();\n\n for (int var3 = 0; var3 < this.options.keyBindings.length; ++var3)\n {\n this.controlList.add(new GuiSmallButton(var3, var2 + var3 % 2 * 160, this.height / 6 + 24 * (var3 >> 1), 70, 20, this.options.getOptionDisplayString(var3)));\n }\n\n this.controlList.add(new GuiButton(200, this.width / 2 - 100, this.height / 6 + 168, var1.translateKey(\"gui.done\")));\n this.screenTitle = var1.translateKey(\"controls.minimap.title\");\n }", "private void changeUIdefaults() {\n\t\tUIManager.put(\"TaskPaneContainer.useGradient\", Boolean.FALSE);\n\t\tUIManager.put(\"TaskPaneContainer.background\",\n\t\t\t\tColors.LightGray.color(0.5f));\n\n\t\t// setting taskpane defaults\n\t\tUIManager.put(\"TaskPane.font\", new FontUIResource(new Font(\"Verdana\",\n\t\t\t\tFont.BOLD, 16)));\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientStart\",\n\t\t\t\tColors.White.color());\n\t\tUIManager.put(\"TaskPane.titleBackgroundGradientEnd\",\n\t\t\t\tColors.LightBlue.color());\n\t}", "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}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\n\t\tint width = gd.getDisplayMode().getWidth();\n\t\tint height = gd.getDisplayMode().getHeight();\n\t\tframe.setBounds(width / 3, height / 3, 461, 321);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\ttextField = new JTextField();\n\t\ttextField.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = textField.getText();\n\t\t\t\ttextField.setText(\"\");\n\t\t\t\tif (text.trim().equalsIgnoreCase(\"devwindow\")) {\n\n\t\t\t\t\tDevWindow window = new DevWindow();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttextField.setBounds(10, 240, 430, 31);\n\t\tframe.getContentPane().add(textField);\n\n\t\tJLabel label = new JLabel();\n\t\tlabel.setText(\"Command Line (Dev Use Only)\");\n\t\tlabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel.setBounds(10, 220, 204, 17);\n\t\tframe.getContentPane().add(label);\n\n\t\tOptionsController oc = new OptionsController();\n\n\t\tJSlider slider = new JSlider();\n\t\tslider.setBounds(10, 113, 430, 31);\n\t\tslider.setPaintTicks(true);\n\t\tslider.setMaximum(600);\n\t\tslider.setMinimum(1);\n\t\tslider.setValue(Integer.parseInt(oc.getProp().getProperty(\"refreshRate\")));\n\t\tframe.getContentPane().add(slider);\n\n\t\tJLabel lblBackgroundRefreshRate = new JLabel();\n\t\tlblBackgroundRefreshRate.setText(\"Background Refresh Rate\");\n\t\tlblBackgroundRefreshRate.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblBackgroundRefreshRate.setBounds(10, 91, 158, 17);\n\t\tframe.getContentPane().add(lblBackgroundRefreshRate);\n\n\t\tJSlider slider_1 = new JSlider();\n\t\tslider_1.setToolTipText(\"\");\n\t\tslider_1.setBounds(10, 30, 430, 33);\n\t\tslider_1.setMaximum(300);\n\t\tslider_1.setMinimum(1);\n\t\tslider_1.setValue(Integer.parseInt(oc.getProp().getProperty(\"messageFrequency\")));\n\t\tframe.getContentPane().add(slider_1);\n\n\t\tJLabel label_2 = new JLabel();\n\t\tlabel_2.setText(\"New Message Frequency\");\n\t\tlabel_2.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_2.setBounds(10, 11, 158, 17);\n\t\tframe.getContentPane().add(label_2);\n\n\t\tJLabel lblNewLabel = new JLabel(\"New label\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNewLabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblNewLabel.setBounds(317, 54, 123, 25);\n\t\tlblNewLabel.setText(oc.getProp().getProperty(\"messageFrequency\") + \" minute(s)\");\n\n\t\tlblNewLabel.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\n\t\t\t\toc.getProp().setProperty(\"messageFrequency\", lblNewLabel.getText().substring(0, 3).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(lblNewLabel);\n\n\t\tJLabel label_3 = new JLabel(\"115 second(s) or 1.92 minute(s)\");\n\t\tlabel_3.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_3.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_3.setBounds(291, 155, 149, 25);\n\t\tframe.getContentPane().add(label_3);\n\n\t\tJLabel label_1 = new JLabel(oc.getProp().getProperty(\"refreshRate\"));\n\t\tlabel_1.setHorizontalAlignment(SwingConstants.RIGHT);\n\n\t\tlabel_1.setFont(new Font(\"Microsoft Yi Baiti\", Font.BOLD, 17));\n\t\tlabel_1.setBounds(291, 135, 149, 25);\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tlabel_1.setText(oc.getProp().getProperty(\"refreshRate\") + \" second(s)\");\n\t\tlabel_3.setText(\n\t\t\t\tdf.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0) + \" minute(s)\");\n\n\t\tlabel_1.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\n\t\t\t\toc.getProp().setProperty(\"refreshRate\", label_1.getText().substring(0, 4).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(label_1);\n\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Start On Start Up\");\n\t\tchckbxNewCheckBox.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tboolean selected = chckbxNewCheckBox.isSelected();\n\n\t\t\t\toc.getProp().setProperty(\"startOnStartUp\", Boolean.toString(selected));\n\t\t\t\toc.saveProperties();\n\n\t\t\t\tif (selected) {\n\n\t\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\t\tStartUp.create();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\tStartUp.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tchckbxNewCheckBox.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tchckbxNewCheckBox.setBounds(317, 186, 123, 23);\n\t\tchckbxNewCheckBox.setSelected(Boolean.valueOf(oc.getProp().getProperty(\"startOnStartUp\")));\n\t\tframe.getContentPane().add(chckbxNewCheckBox);\n\n\t\tJButton btnNewButton = new JButton(\"Exit Without Refresh\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbtnNewButton.setBounds(10, 156, 143, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tJButton btnNewButton_1 = new JButton(\"Help\");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tInstructionWindow iWindow = new InstructionWindow();\n\t\t\t\tiWindow.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(201, 186, 65, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\n\t\tJButton button = new JButton(\"Refresh Offline MBank\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tConnection conn = null;\n\t\t\t\tDatabaseController dbc = DatabaseController.getDBController();\n\t\t\t\tString connectString = dbc.buildConnectionString();\n\n\t\t\t\ttry {\n\t\t\t\t\tconn = DriverManager.getConnection(connectString);\n\t\t\t\t\toc.getProp().setProperty(\"offlineMode\", \"false\");\n\t\t\t\t\toc.saveProperties();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\t\tbuf.append(\"There was a problem with the following connection string: \");\n\t\t\t\t\tbuf.append(connectString);\n\t\t\t\t\tbuf.append(\"\\n\\nHere is the exceptio:\\n\");\n\t\t\t\t\tbuf.append(e.toString());\n\t\t\t\t\tSystem.out.println(buf.toString());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime()\n\t\t\t\t\t\t\t\t.exec(\"javaw -jar \\\"\" + System.getProperty(\"user.home\") + File.separator + \"Documents\"\n\t\t\t\t\t\t\t\t\t\t+ File.separator + \"SevMessageConfig\" + File.separator\n\t\t\t\t\t\t\t\t\t\t+ \"NowOfflineWindow.jar\\\"\");\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep((long) 3000.0);\n\t\t\t\t\t} catch (InterruptedException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tFile file = new File(System.getProperty(\"user.home\") + File.separator + \"Documents\" + File.separator\n\t\t\t\t\t\t+ \"SevMessageConfig\" + File.separator + \"offlineMessageBank.txt\");\n\t\t\t\tfile.delete();\n\n\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\tStartUp.create();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tbutton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbutton.setBounds(10, 186, 165, 23);\n\t\tframe.getContentPane().add(button);\n\n\t\tslider_1.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\n\t\t\t\tlblNewLabel.setText(Integer.toString(slider_1.getValue()) + \" minute(s)\");\n\t\t\t}\n\t\t});\n\n\t\tslider.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\t\tlabel_1.setText(Integer.toString(slider.getValue()) + \" second(s)\");\n\t\t\t\tlabel_3.setText(df.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0)\n\t\t\t\t\t\t+ \" minute(s)\");\n\t\t\t}\n\t\t});\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jLabel1 = new javax.swing.JLabel();\n Yes = new javax.swing.JButton();\n No = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jLabel1.setText(\"Would you like to run start-up settings\");\n\n Yes.setText(\"Yes\");\n Yes.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n YesActionPerformed(evt);\n }\n });\n\n No.setText(\"No\");\n No.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n NoActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Close\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(jLabel1)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(No)\n .addGap(47, 47, 47)\n .addComponent(jButton1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 49, Short.MAX_VALUE)\n .addComponent(Yes)\n .addGap(47, 47, 47))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(Yes)\n .addComponent(No)\n .addComponent(jButton1))\n .addContainerGap())\n );\n\n pack();\n }", "public static void main(String[] args){\n ConfigurationAppGUI gui = new ConfigurationAppGUI();\n }", "void open() throws FileNotFoundException, IOException{\r\n \r\n //Call setup to get global settings and check if this is the first run. \r\n File settings = new File(settingsPath);\r\n if (!settings.isDirectory()){\r\n //then this is the first run...call setup\r\n Setup firstrun = new Setup(this, ax);\r\n }else{\r\n //Get the settings from the file, if the file has dissappeared since\r\n //first setup, recreate.\r\n InputStream in = null;\r\n try {\r\n \r\n File sFile = new File(\"c:\\\\AE\\\\settings\\\\setting.txt\");\r\n if (!sFile.exists()){\r\n System.out.println(\"Creating Settings File with defaults.\");\r\n sFile.createNewFile();\r\n Writer w = new FileWriter(sFile);\r\n w.append(\"Password:password:Homepage:www.google.com:Runs:1\\n\");\r\n w.close();\r\n \r\n }\r\n in = new FileInputStream(\"c:/ae/settings/setting.txt\");\r\n } catch (FileNotFoundException fileNotFoundException) {\r\n System.out.println(\"File Not Found!\");\r\n }\r\n \r\n Scanner scanner = new Scanner(in);\r\n \r\n while (scanner.hasNext()){ \r\n \r\n String[] Settings = scanner.nextLine().split(\":\");\r\n password = Settings[1];\r\n setPassword(password);\r\n \r\n String homepage = Settings[3];\r\n System.out.println(homepage);\r\n setHome(homepage);\r\n \r\n in.close();\r\n \r\n }\r\n }\r\n //Ask for password until the correct password is entered.\r\n \r\n Password pw = new Password();\r\n \r\n do {pw.showDialog();}\r\n while (!(pw.pass.getText() == null ? password == null : pw.pass.getText().equals(password)));\r\n \r\n \r\n //Add the browser into the browser Pane\r\n \r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n\r\n @Override\r\n public void run() {\r\n \r\n ax.browserPane.add(\"Browser\", ax.browser.getComponent());\r\n \r\n \r\n }\r\n }); \r\n \r\n ///////////////////////////////////\r\n //Action listeners start here. //\r\n ///////////////////////////////////\r\n \r\n /**\r\n * Get the current page status and display in the statusLabel\r\n */\r\n ax.browser.addStatusListener(new StatusListener() {\r\n \r\n @Override\r\n public void statusChanged(final StatusChangedEvent event) {\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.statusLabel.setText(event.getStatusText());\r\n }\r\n });\r\n \r\n }\r\n });\r\n \r\n //Action Listener for homeButton\r\n ax.homeButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n try {\r\n ax.browser.navigate(getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.browser.waitReady();\r\n try {\r\n tokenString = (\"<Action Home>::\" + getHome() + delim);\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n } });\r\n \r\n //Action Listener Go to a new http web address\r\n ax.goButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }});\r\n \r\n\r\n \r\n \r\n //Browser tab and enter listener\r\n \r\n ax.browser.getComponent().addKeyListener(new KeyListener() {\r\n \r\n @Override\r\n public void keyTyped(KeyEvent ke) {\r\n \r\n }\r\n @Override\r\n public void keyPressed(KeyEvent ke) {\r\n }\r\n\r\n @Override\r\n public void keyReleased(KeyEvent ke) {{\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Enter\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n } {\r\n if(ke.getKeyCode() == java.awt.event.KeyEvent.VK_TAB){ \r\n \r\n tokenString = (\"<Action Key>::\" + \"Tab\" + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n }\r\n }\r\n \r\n }}\r\n });\r\n\r\n \r\n //Address Bar Enter Key listener, same as above but with Enter Key\r\n ax.addressBar.addKeyListener(new java.awt.event.KeyAdapter() {\r\n \r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){ \r\n \r\n ax.browser.navigate( ax.addressBar.getText());\r\n ax.browser.waitReady(); \r\n \r\n tokenString = (\"<Action Navigate>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n }\r\n }});\r\n \r\n //Search Bar Enter Key listener\r\n ax.searchField.addKeyListener(new java.awt.event.KeyAdapter() {\r\n @Override\r\n public void keyPressed(java.awt.event.KeyEvent evt) {\r\n if(evt.getKeyCode() == java.awt.event.KeyEvent.VK_ENTER){\r\n \r\n ax.browser.navigate(\"http://www.google.com/search?q=\" + ax.searchField.getText());\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Google_Search>::\" +ax.browser.getCurrentLocation() + delim);\r\n \r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n }\r\n }});\r\n \r\n //Action Listener Go Back\r\n ax.backButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goBack();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Back>::\" +ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n });\r\n \r\n \r\n \r\n \r\n \r\n \r\n }});\r\n \r\n //Action go forward\r\n ax.forwardButton.addActionListener(new ActionListener(){\r\n\r\n @Override\r\n public void actionPerformed(ActionEvent ae) {\r\n \r\n ax.browser.goForward();\r\n ax.browser.waitReady();\r\n tokenString = (\"<Action Forward>::\" + ax.browser.getCurrentLocation() + delim);\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.consoleTextArea.setText(tokenString);\r\n }\r\n }); \r\n \r\n }});\r\n \r\n /*Now we need to update the address bar when we go to a new page\r\n * \r\n * Change the navigation text, and most importantly, process clicks \r\n */\r\n \r\n ax.browser.addNavigationListener(new NavigationListener() {\r\n @Override\r\n public void navigationStarted(final NavigationEvent event) {\r\n documentElement.removeEventListener(\"click\", clickEventListener, false); \r\n documentElement.removeEventListener(\"change\", changeEventListener, false); \r\n documentElement.removeEventListener(\"focusin\", inEventListener, false); \r\n documentElement.removeEventListener(\"focusout\", outEventListener, false); \r\n \r\n }\r\n\r\n @Override\r\n public void navigationFinished(NavigationFinishedEvent event) {\r\n \r\n \r\n ax.addressBar.setText(event.getUrl());\r\n \r\n //set the webpage title on the tab\r\n //set the title in its own swing thread\r\n String checkTitle =ax.browser.getTitle();\r\n if (checkTitle.length() > 40){\r\n for (int i = 0; i<=checkTitle.length(); ++i){\r\n checkTitle = checkTitle.substring(0, 30);\r\n }\r\n \r\n \r\n }\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n }\r\n });\r\n \r\n \r\n \r\n document = ax.browser.getDocument();\r\n documentElement = (DOMElement) document.getDocumentElement();\r\n EventListener init = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n \r\n \r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n \r\n \r\n \r\n \r\n }\r\n };\r\n \r\n documentElement.addEventListener(\"load\",init,false);\r\n \r\n ((EventTarget) documentElement).addEventListener(\"click\", new EventListener() {\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n if (\"textarea\".equals(t.getNodeName().toLowerCase())){\r\n documentElement.addEventListener(\"change\", changeEventListener, captureInput);\r\n }\r\n \r\n }\r\n}, false);\r\n \r\n //Listener for element clicks\r\n \r\n clickEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n \r\n org.w3c.dom.events.MouseEvent event = (org.w3c.dom.events.MouseEvent) evt;\r\n \r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n \r\n String tagName = target.getNodeName().toLowerCase();\r\n \r\n if (tagName.equals(\"input\")){\r\n documentElement.addEventListener(\"keyup\", keyEventListener, false);\r\n \r\n }\r\n \r\n else {\r\n htmlEvent.processThis(ax, target, documentElement);\r\n }\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n \r\n //Looks for changes in text. \r\n keyEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n org.w3c.dom.events.Event event = (org.w3c.dom.events.Event) evt;\r\n HTMLElement target = (HTMLElement) event.getTarget();\r\n System.out.println(\"target value: \"+ event.getType()); \r\n \r\n htmlEvent.processThis(ax, target, documentElement);\r\n \r\n \r\n }\r\n };\r\n changeEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n HTMLElement t = (HTMLElement) evt.getTarget();\r\n System.out.println(\"Type = \" + t.getNodeName());\r\n \r\n htmlEvent.processThis(ax, t, documentElement);\r\n \r\n \r\n \r\n }\r\n };\r\n \r\n inEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n documentElement.addEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusin\", inEventListener, false);\r\n\r\n \r\n \r\n outEventListener = new EventListener() {\r\n\r\n @Override\r\n public void handleEvent(Event evt) {\r\n \r\n //Remove Listeners on focus out.\r\n System.out.println(\"Focused out, removing click and change listeners\");\r\n documentElement.removeEventListener(\"change\", changeEventListener, false);\r\n documentElement.removeEventListener(\"click\", clickEventListener, false);\r\n \r\n }\r\n };\r\n\r\n documentElement.addEventListener(\"focusout\", outEventListener, false);\r\n\r\n\r\n \r\n \r\n }\r\n });\r\n \r\n //Navigate to our home screen and wait for it to be ready.\r\n ax.browser.navigate(getHome());\r\n ax.browser.waitReady();\r\n ax.conscriptPane.setVisible(false);\r\n \r\n //Get the history.\r\n /*\r\n HistoryListModel hlm = new HistoryListModel(ax);\r\n ax.HistoryCombo.setModel(hlm);\r\n */\r\n //Change the tab text to current page\r\n SwingUtilities.invokeLater(new Runnable() {\r\n \r\n @Override\r\n public void run() {\r\n \r\n //Setup the ax.browser tab, html tab and addressbar\r\n ax.browserPane.setTitleAt(0,ax.browser.getTitle());\r\n String stringToken1 = null; \r\n try {\r\n stringToken1 = (\"<Navigate Home>::\" + getHome());\r\n } catch (IOException ex) {\r\n Logger.getLogger(AxBrowser.class.getName()).log(Level.SEVERE, null, ex);\r\n }\r\n ax.consoleTextArea.setText(stringToken1);\r\n //Put the current html address in the addressbar\r\n ax.addressBar.setText(ax.browser.getCurrentLocation());\r\n \r\n }\r\n });\r\n \r\n }", "public ConfigureUpdatesDialog() {\n super(StrangeEons.getWindow(), ModalityType.TOOLKIT_MODAL);\n initComponents();\n AbstractGameComponentEditor.localizeComboBoxLabels(frequencyCombo, null);\n AbstractGameComponentEditor.localizeComboBoxLabels(actionCombo, null);\n banner.setIcon(new ImageIcon(\n ResourceKit.createBleedBanner(((ImageIcon) banner.getIcon()).getImage())\n ));\n setLocationRelativeTo(getParent());\n\n Settings s = Settings.getUser();\n s.set(\"core-dialog-shown\", \"yes\");\n //doNotShowCheck.setSelected( s.getYesNo( \"core-dialog-autoinstall\" ) );\n\n frequencyCombo.setSelectedIndex(AutomaticUpdater.getUpdateFrequency());\n actionCombo.setSelectedIndex(AutomaticUpdater.getUpdateAction() == 0 ? 0 : 1);\n newPluginsCheck.setSelected(AutomaticUpdater.isShowingNewPlugins());\n appUpdateCheck.setSelected(AutomaticUpdater.isShowingAppUpdates());\n doneInit = true;\n }", "void initUI();", "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}", "private void setupUI(){\n this.setupTimerSchedule(controller, 0, 500);\n this.setupFocusable(); \n this.setupSensSlider();\n this.setupInitEnable();\n this.setupDebugger();\n }", "public void initialize(){\n\n //load Settings\n settings = new Settings(settingsFile);\n if (settings.isExcludeCupboard()){\n cupboardCheckBox.setSelected(true);\n }\n\n //The first pane to see when the program starts is the meals Browse pane\n mealsBtnClicked();\n\n //set up focus and out of focus styling for all the Panes\n styleIngredientBrowsePane();\n styleIngredientAddPane();\n styleMealAddPane();\n styleMealBrowsePane();\n stylePlanShoppingListPane();\n stylePlanWeeklyPlanner();\n stylePlanCupboard();\n\n //setup the Ingredients Browse Pane\n setupBrowseIngredientsPane();\n\n //setup up the main menu hoover button effects\n setupHoverMainMenuButtons();\n\n //setup the meal Add Pane\n MealAddPaneSetUp();\n\n //setup the meal Browse Pane\n mealBrowsePaneSetup();\n\n //setup up the meal planner weekly pane\n weeklyPlannerSetup();\n\n //setup the planner shopping list pane\n plannerShoppingListSetup();\n\n //setup the planner cupboard pane\n plannerCupboardSetup();\n\n //Load the meals from the database\n loadMeals();\n\n //set up the focus styling for the minimise and exit buttons\n setupWindowButtons();\n\n //when the program loads, load the shopping list and meal planner from previous usage\n loadShoppingList();\n loadMealPlanner();\n\n //Set up the information boxes instance for ingredient pane, meal pane and planner pane\n plannerBox = new InformationBox(PlannerPlanPane, plannerColor, plannerColorDark,\n \"images/icons8_planner_96px_Black.png\");\n mealBox = new InformationBox(MealsBrowsePane, mealColor, mealColorDark,\n \"images/icons8_cutlery_96px_Black.png\");\n ingredientBox = new InformationBox(IngredientsBrowsePane, ingredientColor, ingredientColorDark,\n \"images/icons8_apple_96px_Black.png\");\n\n }", "public mainGUI() {\n initComponents();\n setSize(Toolkit.getDefaultToolkit().getScreenSize());\n }", "public static void main(String ags[]) {\r\n try {\r\n for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {\r\n if (\"Windows\".equals(info.getName())) {\r\n javax.swing.UIManager.setLookAndFeel(info.getClassName());\r\n break;\r\n }\r\n }\r\n } catch (UnsupportedLookAndFeelException e) {\r\n // handle exception\r\n } catch (ClassNotFoundException e) {\r\n // handle exception\r\n } catch (InstantiationException e) {\r\n // handle exception\r\n } catch (IllegalAccessException e) {\r\n // handle exception\r\n }//Create and show the GUI.\r\n\r\n /*Setting Icon*/\r\n //</editor-fold>\r\n SwingUtilities.invokeLater(new Runnable() {\r\n @Override\r\n public void run() {\r\n SetUp sp = new SetUp();\r\n if (sp.hasCredentials()) { \r\n /**\r\n * credentials.txt is first checked if it exists, the database is connected to\r\n * using data from credentials.txt, if credentials.txt does not exist the Set Up\r\n * Window pops up to allow the user to specify the details\r\n * \r\n * The login is the normal user authentication that uses the login\r\n * \r\n * TODO\r\n * get the mysql user and password from the setup class and use the data to connect\r\n * to the database and authenticate the user like previously\r\n */\r\n Login login = new Login();\r\n MainView mv = new MainView(); \r\n Database db = new Database();\r\n System.out.println(\"Sucessfuly Created and Executed Password? \"+db.createInitialPassword()); \r\n LoginController lgc = new LoginController(login,mv,db);\r\n \r\n \r\n }\r\n\r\n }\r\n });\r\n }", "private void initialize() {\r\n\t\tthis.setResizable(false);\r\n\t\tthis.setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\r\n\t\tthis.setTitle(\"Extremum Values\");\r\n\t\tthis.setSize(300,180);\r\n\t\tthis.setLocation(300, 100);\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.getRootPane().setDefaultButton(getOkButton());\r\n\t\tthis.setVisible(true);\r\n\t}", "private void initialize() {\n\t\n\tsetName(\"jgridstart-main-window\");\n\t\n\tstore = new CertificateStoreWithDefault();\n\tselection = new CertificateSelection(store);\n\tPasswordCache.getInstance().setParent(this);\n\tURLLauncherCertificate.setSelectionSource(selection);\n\t\n\t// setup gui\n\tthis.setMinimumSize(new Dimension(400, 150));\n\tthis.setPreferredSize(new Dimension(650, 350));\n\tthis.setContentPane(getJContentPane());\n\tthis.setTitle(\"jGridstart \"+System.getProperty(\"jgridstart.version\"));\n\n\t// create actions; they register themselves\n\tnew ActionRequest(this, store, selection);\n\tnew ActionViewRequest(this, selection);\n\tnew ActionViewVerificationForm(this, selection);\n\tnew ActionImport(this, store, selection);\n\tnew ActionInstall(this, selection);\n\t//new ActionRevoke(this, selection);\n\tnew ActionRenew(this, store, selection);\n\tnew ActionExport(this, selection);\n\tnew ActionMakeDefault(this, store, selection);\n\tnew ActionShowDetails(this, selection) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionViewLog(this);\n\tnew ActionViewCertificateList(this, certList, false);\n\tnew ActionChangeBrowser(this, selection);\n\tnew ActionRefresh(this, store) {\n\t @Override\n\t public void actionPerformed(ActionEvent e) {\n\t\tsuper.actionPerformed(e);\n\t\t// update info pane as well; TODO move into ActionRefresh itself\n\t\tupdateSelection();\n\t\tcertInfoPane.refresh();\n\t }\n\t};\n\tnew ActionAbout(this);\n\t// now that the actions are available, the menu can be created\n\tthis.setJMenuBar(getJMenuBar());\n\t\n\t// create buttons for template panel from actions\n\tString[] actions = {\n\t\t\"import\", \"request\",\n\t\t\"viewrequest\", /*\"revoke\",*/ \"install\",\n\t\t\"renew\"\n\t};\n\tcertInfoButtons = new HashMap<String, JButton>();\n\tfor (int i=0; i<actions.length; i++) {\n\t JButton btn = new JButton(getAction(actions[i]));\n\t certInfoButtons.put(actions[i], btn);\n\t certInfoPane.addButton(btn, false, false);\n\t}\n\t \n\t// load certificates from default location\n\tstore.load();\n\n\t// Setup the identity menu and add the change listeners\n\tsetupIdentityMenu();\n\n\t// select default certificate if present, otherwise use first one\n\tif (store.size() > 0)\t{\n\t try {\n\t\tselection.setSelection(store.getDefault());\n\t } catch (IOException e) {\n\t\t/* Cannot get default, leave it */\n\t\tselection.setSelection(0);\n\t }\n\t}\n\t// show certificate list only if multiple certificates present\n\tsetViewCertificateList(store.size() > 1);\n\t// make sure ui is up-to-date\n\tupdateSelection();\n }", "private void configuracoes() {\n setLocationRelativeTo(null);\n this.setIconImage(new ImageIcon(getClass().getResource(SystemMessage.IMAGE_URL)).getImage());\n this.setTitle(SystemMessage.SYSTEM_NAME + \" -\");\n }", "public static void initSettings () {\r\n waitBoolean = false;\r\n configValue = new String[] \r\n {\"5\", \"10\", \"1000\", \"1\", \"10\", \"120\", \"0\", \"5\", \"2\"};\r\n String [] configTitle = \r\n { \"Number of elevators \",\r\n \"Number of floors \",\r\n \"Number of Passengers\",\r\n \"Riding frequency for one hour \", \r\n \"Elevator capacity \", \r\n \"Simulation Duration in minute\", \r\n \"Elevator call algorithm [0~2]\", \r\n \"Passenger patience \", \r\n \"Resolution: [1-normal, 2-high]\"\r\n };\r\n\r\n // Frame init\r\n JFrame initFrame = new JFrame();\r\n initFrame.setLayout(new BorderLayout());\r\n initFrame.setSize(1000, 800);\r\n\r\n // title area\r\n JLabel title = new JLabel (\"Configure your simulation !\"); \r\n title.setFont(new Font(\"Times\", Font.BOLD, 50));\r\n title.setBackground(Color.CYAN);\r\n JPanel titlePanel = new JPanel(); \r\n titlePanel.setLayout(new GridLayout(1,1));\r\n titlePanel.add(title);\r\n\r\n // config area\r\n JPanel initConfig = new JPanel();\r\n initConfig.setLayout(new GridLayout(configTitle.length,1));\r\n Font f = new Font (\"Times\", Font.BOLD, 30); \r\n\r\n for (int i=0; i < configTitle.length; i++) {\r\n JLabel label = new JLabel(configTitle[i]+\": \");\r\n label.setFont(f);\r\n configTextField[i] = new JTextField (configValue[i]); \r\n configTextField[i].setFont(f);\r\n initConfig.add(label); \r\n initConfig.add(configTextField[i]);\r\n }\r\n\r\n // command\r\n doIt = new JButton (\"Do It!\");\r\n doIt.setFont(new Font(\"Times\", Font.BOLD, 30));\r\n doIt.setActionCommand(\"DO\");\r\n doIt.addActionListener (new ButtonClickListener());\r\n\r\n JPanel doItPanel = new JPanel();\r\n doItPanel.setLayout(new FlowLayout(FlowLayout.LEFT));\r\n doItPanel.add(doIt);\r\n\r\n initFrame.add(titlePanel, BorderLayout.NORTH);\r\n initFrame.add(initConfig, BorderLayout.CENTER);\r\n initFrame.add(doItPanel, BorderLayout.SOUTH);\r\n initFrame.setVisible(true);\r\n \r\n while (waitBoolean == false ) {\r\n try {\r\n Thread.sleep(200);\r\n } catch (Exception e) {}\r\n }\r\n initFrame.setVisible(false);\r\n }", "private void setUpGUI() {\n \n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n enzymeTypeCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useFlankingCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removePrecursorPeakCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n monoPrecursorCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n peptideListCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n decoyFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n keepTerminalAaCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeMethionineCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n exactPvalueCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n spScoreCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n chargesCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n useNeutralLossCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n outputFormatCombo.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n removeTempFoldersCmb.setRenderer(new com.compomics.util.gui.renderers.AlignedListCellRenderer(SwingConstants.CENTER));\n \n minPepLengthTxt.setEditable(editable);\n minPepLengthTxt.setEnabled(editable);\n maxPepLengthTxt.setEditable(editable);\n maxPepLengthTxt.setEnabled(editable);\n minPrecursorMassTxt.setEditable(editable);\n minPrecursorMassTxt.setEnabled(editable);\n maxPrecursorMassTxt.setEditable(editable);\n maxPrecursorMassTxt.setEnabled(editable);\n monoPrecursorCmb.setEnabled(editable);\n removeMethionineCmb.setEnabled(editable);\n //minPtmsPerPeptideTxt.setEditable(editable);\n //minPtmsPerPeptideTxt.setEnabled(editable);\n maxPtmsPerPeptideTxt.setEditable(editable);\n maxPtmsPerPeptideTxt.setEnabled(editable);\n maxVariablePtmsPerTypeTxt.setEditable(editable);\n maxVariablePtmsPerTypeTxt.setEnabled(editable);\n enzymeTypeCmb.setEnabled(editable);\n peptideListCmb.setEnabled(editable);\n decoyFormatCombo.setEnabled(editable);\n keepTerminalAaCombo.setEnabled(editable);\n decoySeedTxt.setEditable(editable);\n decoySeedTxt.setEnabled(editable);\n removeTempFoldersCmb.setEnabled(editable);\n exactPvalueCombo.setEnabled(editable);\n spScoreCombo.setEnabled(editable);\n minSpectrumMzTxt.setEditable(editable);\n minSpectrumMzTxt.setEnabled(editable);\n maxSpectrumMzTxt.setEditable(editable);\n maxSpectrumMzTxt.setEnabled(editable);\n minPeaksTxt.setEditable(editable);\n minPeaksTxt.setEnabled(editable);\n chargesCombo.setEnabled(editable);\n removePrecursorPeakCombo.setEnabled(editable);\n removePrecursorPeakToleranceTxt.setEditable(editable);\n removePrecursorPeakToleranceTxt.setEnabled(editable);\n useFlankingCmb.setEnabled(editable);\n useNeutralLossCmb.setEnabled(editable);\n mzBinWidthTxt.setEditable(editable);\n mzBinWidthTxt.setEnabled(editable);\n mzBinOffsetTxt.setEditable(editable);\n mzBinOffsetTxt.setEnabled(editable);\n numberMatchesTxt.setEditable(editable);\n numberMatchesTxt.setEnabled(editable);\n outputFormatCombo.setEnabled(editable);\n \n }", "private void initUI() {\n }", "protected void configure() {\n\t \n\t Configuration.BASE=true;\n\t Configuration.BASEMENUBAR=true;\n\t Configuration.BASETOOLBAR=true;\n\t Configuration.EDITMENUBAR=true;\n\t Configuration.EDITTOOLBAR=true;\n\t Configuration.FORMATMENUBAR=true;\n\t Configuration.FORMATTOOLBAR=true;\n\t Configuration.PERSISTENCEMENUBAR=true;\n\t Configuration.PERSISTENCETOOLBAR=true;\n\t Configuration.PRINTMENUBAR=true;\n\t Configuration.PRINTTOOLBAR=true;\n\t Configuration.SEARCHMENUBAR=true;\n\t Configuration.SEARCHTOOLBAR=true;\n\t Configuration.UNDOREDOMENUBAR=true;\n\t \t Configuration.UNDOREDOTOOLBAR=true;\n\t //\n\t Configuration.WORDCOUNTMENUBAR=true;\n\t Configuration.WORDCOUNTTOOLBAR=true;\n }", "public orgGui() {\n initComponents();\n }", "private void initComponents() {\n\t\tthis.setTitle(\"Boggle\");\n\t\tthis.setDefaultCloseOperation(EXIT_ON_CLOSE);\n\t\tthis.setMinimumSize(new Dimension(600, 575));\n\t\t\n\t\tinitMenuBar();\n\t\tinitDiceGridPanel();\n\t\tinitInputPanel();\n\t\tinitInfoPanel();\n\t\taddPanels();\n\t\t\n\t\tthis.setVisible(true);\n\t}", "public Mainwindow(){\n \n try \n {\n //LookAndFeel asd = new SyntheticaAluOxideLookAndFeel();\n //UIManager.setLookAndFeel(asd);\n } \n catch (Exception e) \n {\n e.printStackTrace();\n }\n initComponents();\n \n \n userinitComponents();\n \n \n }", "public LauncherPanel(String conffile) {\n initComponents();\n \n Properties props = new Properties();\n try {\n FileInputStream in = new FileInputStream( conffile );\n props.load(in);\n } catch (FileNotFoundException fe) {\n System.err.println(\"Missing \" + conffile + \" -file!\");\n System.exit(-1);\n } catch (IOException ie) {\n System.err.println(\"Reading \" + conffile + \" failed!\");\n System.exit(-1); \n } catch (Exception e) {\n System.err.println(\"Reading properties failed \\n\" + e);\n System.exit(-1);\n }\n \n timeout = Integer.parseInt(props.getProperty(\"timeout\", \"10000\"));\n jLabel1.setText(props.getProperty(\"title\", \"Application launcher\"));\n jLabel2.setText(props.getProperty(\"launch\", \"Launch applications\"));\n jLabel3.setText(props.getProperty(\"leagues\", \"Leagues\")); \n \n workingDir = new File(props.getProperty(\"workingdir\"));\n separator = props.getProperty(\"separator\");\n extension = props.getProperty(\"extension\");\n app1 = props.getProperty(\"app1\");\n app2 = props.getProperty(\"app2\");\n app3 = props.getProperty(\"app3\");\n app4 = props.getProperty(\"app4\");\n \n String app1name = props.getProperty(\"app1name\");\n String app2name = props.getProperty(\"app2name\");\n String app3name = props.getProperty(\"app3name\");\n String app4name = props.getProperty(\"app4name\");\n \n if(app1name != null) {\n jCheckBox1.setText(app1name);\n jCheckBox1.setSelected(true);\n }\n if(app2name != null) {\n jCheckBox2.setText(app2name);\n jCheckBox2.setSelected(true);\n }\n if(app3name != null) {\n jCheckBox3.setText(app3name);\n jCheckBox3.setSelected(true);\n }\n if(app4name != null) {\n jCheckBox4.setText(app4name);\n jCheckBox4.setSelected(true);\n }\n \n String league1 = props.getProperty(\"league1\");\n String league2 = props.getProperty(\"league2\");\n String league3 = props.getProperty(\"league3\");\n String league4 = props.getProperty(\"league4\");\n String league5 = props.getProperty(\"league5\");\n \n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { league1, league2, league3, league4, league5 }));\n jLabel4.setText(props.getProperty(\"startall\"));\n jButton1.setText(props.getProperty(\"confirm\"));\n }", "public void start() {\n SetupGUI setup = new SetupGUI();\n }", "private void initGui(){\n // TODO: add code for GUI initialization for a given auction\n }", "private static void setLook() {\r\n try {\r\n UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\r\n } catch (IllegalAccessException ex) {\r\n ex.printStackTrace();\r\n } catch (UnsupportedLookAndFeelException ex) {\r\n ex.printStackTrace();\r\n } catch (ClassNotFoundException ex) {\r\n ex.printStackTrace();\r\n } catch (InstantiationException ex) {\r\n ex.printStackTrace();\r\n }\r\n }", "public void windowsConfiguration() {\n\t\tthis.setTitle(\"Segaleo\");\n\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tthis.setResizable(false);\n\t\tthis.setLocationRelativeTo(null);\n\t}", "private void init() {\n\n if (isRunning && USE_RUN_WARNINGS) {\n JOptionPane\n .showMessageDialog(\n null,\n \"WARNING: You are modifying system parameters while a simulation is running. \\n \"\n + \"It is reccomended that you first stop the simulation using the stop button.\\n\"\n + \" Some functions may not behave as they are supposed to.\",\n \"Warning!\", JOptionPane.WARNING_MESSAGE);\n }\n\n setModal(true);\n setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);\n\n // Setup the internal content pane to hold the user content pane\n // and the standard button panel\n JPanel internalContentPane = new JPanel();\n\n internalContentPane.setLayout(new BorderLayout(COMPONENT_SPACING,\n COMPONENT_SPACING));\n\n internalContentPane.setBorder(BorderFactory.createEmptyBorder(\n COMPONENT_SPACING, COMPONENT_SPACING, COMPONENT_SPACING,\n COMPONENT_SPACING));\n\n // Create the standard \"Ok\" Button\n Action okAction = new AbstractAction(\"OK\") {\n public void actionPerformed(final ActionEvent actionEvent) {\n if (isValidData()) {\n myIsDialogCancelled = false;\n closeDialogOk();\n }\n }\n };\n\n // Create the standard \"Cancel\" Button\n Action cancelAction = new AbstractAction(\"Cancel\") {\n public void actionPerformed(final ActionEvent actionEvent) {\n myIsDialogCancelled = true;\n closeDialogCancel();\n dispose();\n }\n };\n\n JPanel buttonPanel = new JPanel();\n\n buttonPanel.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));\n\n okButton = new JButton(okAction);\n buttonPanel.add(customButtonPanel);\n buttonPanel.add(okButton);\n cancelButton = new JButton(cancelAction);\n buttonPanel.add(cancelButton);\n\n getRootPane().setDefaultButton(okButton);\n\n internalContentPane.add(buttonPanel, BorderLayout.SOUTH);\n\n // Initialize the user content pane with a JPanel\n setContentPane(new JPanel(new BorderLayout()));\n\n super.setContentPane(internalContentPane);\n\n // Finally, add a listener for the window close button.\n // Process this event the same as the \"Cancel\" button.\n WindowAdapter windowAdapter = new WindowAdapter() {\n public void windowClosing(final WindowEvent windowEvent) {\n myIsDialogCancelled = true;\n closeDialogCancel();\n }\n };\n\n addWindowListener(windowAdapter);\n\n this.getRootPane().registerKeyboardAction(\n actionListener,\n KeyStroke.getKeyStroke(KeyEvent.VK_W, Toolkit\n .getDefaultToolkit().getMenuShortcutKeyMask()), 0);\n\n // this.setAlwaysOnTop(true); //BREAKS SOME VERSIONS\n pack();\n\n }", "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }", "public abstract Composite getConfigurationGUI(Composite parent,\n\t\t\tZoomingInterfaceManager<Graph, GraphItem> gm, ExpandItem ei);", "public void launchSetupScreen() {\n\t\tnew SetUpScreen(this);\n\t}", "public BBDJPAAdminGUI() {\n initComponents();\n\n myInit();\n }", "private void $$$setupUI$$$() {\n\t\tpanel_overview = new JPanel();\n\t\tpanel_overview.setLayout(new BorderLayout(0, 0));\n\t\twebView = new WebbrowserPanel();\n\t\tpanel_overview.add(webView, BorderLayout.CENTER);\n\t}", "private void initUI() {\n\t\t\n\t\ttry {\n\t\t\t\n\t\t\trenderer = new LWJGLRenderer();\n\t\t\tgui = new GUI(stateWidget, renderer);\n\t\t\tthemeManager = ThemeManager.createThemeManager(StateWidget.class.getResource(\"gameui.xml\"), renderer);\n\t\t\tgui.applyTheme(themeManager);\n\t\t\t\n\t\t} catch (LWJGLException e) {\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "public static void main(String[] args) {\n\n\t\tif ( args.length == 1 && args[0].equals(\"themes\")) {\n\t\t\tSystem.out.println(\"--- Lista temi selezionabili ---\");\n\t\t\tfor ( LookAndFeelInfo lef : UIManager.getInstalledLookAndFeels() ) {\n\t\t\t\tSystem.out.println(lef.getClassName());\n\t\t\t}\n\t\t} else {\n\t\t\ttry {\n\t\t\t\tSettingsManager.getDefaultInstance().loadConfigs(\"configs.properties\");\n\t\t\t\ttry {\n\t\t\t\t\tUIManager.setLookAndFeel(SettingsManager.getDefaultInstance().get(\"ui.theme\").trim());\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t\t\t\t} catch ( Exception innere) {\n\t\t\t\t\t\tinnere.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t} \n\t\t\t\tClienteFrameController fc = new ClienteFrameController();\n\t\t\t\tExceptionHandlerManager.registerNewDefaultEH(new GuiHandler(fc));\n\t\t\t\tfc.showMainFrame(true);\n\t\t\t} catch (IOException e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, \"Errore durante la lettura del file di configurazione\", \"Errore lettura configurazioni\", JOptionPane.ERROR_MESSAGE);\n\t\t\t}\n\t\t}\n\t}", "public JavierGUI() {\r\n\t\tsuper();\r\n\t\tinitialize();\r\n\t\tthis.setJavier(getJavier());\r\n\t\tbtnHome.doClick();\r\n\t}", "private void initialize() {\n\n\t\tjavax.swing.UIManager.put(\"OptionPane.font\", new Font(VERDANA, Font.PLAIN, 16));\n\t\tjavax.swing.UIManager.put(\"OptionPane.messageFont\", new Font(VERDANA, Font.PLAIN, 16));\n\t\tjavax.swing.UIManager.put(\"OptionPane.buttonFont\", new Font(VERDANA, Font.PLAIN, 16));\n\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 980, 720);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\t\t// set icon image for frame\n\t\tURL iconURL = getClass().getResource(\"/Manipulator.png\");\n\t\tImageIcon img = new ImageIcon(iconURL);\n\t\tframe.setIconImage(img.getImage());\n\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Generate Test Case\");\n\t\tchckbxNewCheckBox.setSelected(true);\n\t\tchckbxNewCheckBox.setBounds(30, 7, 150, 23);\n\t\tframe.getContentPane().add(chckbxNewCheckBox);\n\n\t\tJButton btnOk = new JButton(\"OK\");\n\t\tbtnOk.addActionListener(e -> {\n\n\t\t\t// String TestSpecTemplateName = txtTestspectemplatexls.getText();\n\t\t\t// String TestDataTemplateName = txtTestdatatemplatexls.getText();\n\t\t\t// String TestInputDataFileName = txtTestgeneratorxlsx.getText();\n\n\t\t\tframe.dispose();\n\t\t\tnew SoapOrRestWindow();\n\t\t\tSoapOrRestWindow.main(null);\n\t\t});\n\t\tbtnOk.setBounds(356, 230, 86, 23);\n\t\tframe.getContentPane().add(btnOk);\n\n\t\tJButton btnNewButton = new JButton(\"Test Case Properties\");\n\t\tbtnNewButton.setBounds(30, 37, 159, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tJButton btnNewButton_1 = new JButton(\"Script Properties\");\n\t\tbtnNewButton_1.setBounds(214, 37, 159, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\n\t\tJLabel lblTestspec = new JLabel(\"TestSpecTemplateName :\");\n\t\tlblTestspec.setBounds(30, 71, 150, 14);\n\t\tframe.getContentPane().add(lblTestspec);\n\n\t\ttxtTestspectemplatexls = new JTextField();\n\t\ttxtTestspectemplatexls.setText(\"TestSpecTemplate.xls\");\n\t\ttxtTestspectemplatexls.setBounds(214, 68, 229, 20);\n\t\tframe.getContentPane().add(txtTestspectemplatexls);\n\t\ttxtTestspectemplatexls.setColumns(10);\n\n\t\tJLabel lblTestdatatemplatename = new JLabel(\"TestDataTemplateName :\");\n\t\tlblTestdatatemplatename.setBounds(30, 96, 150, 14);\n\t\tframe.getContentPane().add(lblTestdatatemplatename);\n\n\t\ttxtTestdatatemplatexls = new JTextField();\n\t\ttxtTestdatatemplatexls.setText(\"TestDataTemplate.xls\");\n\t\ttxtTestdatatemplatexls.setColumns(10);\n\t\ttxtTestdatatemplatexls.setBounds(214, 93, 229, 20);\n\t\tframe.getContentPane().add(txtTestdatatemplatexls);\n\n\t\tJLabel lblTestinputdatafilename = new JLabel(\"TestInputDataFileName :\");\n\t\tlblTestinputdatafilename.setBounds(30, 121, 150, 14);\n\t\tframe.getContentPane().add(lblTestinputdatafilename);\n\n\t\ttxtTestgeneratorxlsx = new JTextField();\n\t\ttxtTestgeneratorxlsx.setText(\"TestGenerator.xlsx\");\n\t\ttxtTestgeneratorxlsx.setColumns(10);\n\t\ttxtTestgeneratorxlsx.setBounds(214, 118, 229, 20);\n\t\tframe.getContentPane().add(txtTestgeneratorxlsx);\n\n\t\tJLabel lblPathtotestspectemplateexcel = new JLabel(\"PathToTestSpecTemplateExcel :\");\n\t\tlblPathtotestspectemplateexcel.setBounds(30, 152, 190, 14);\n\t\tframe.getContentPane().add(lblPathtotestspectemplateexcel);\n\n\t\tJLabel lblPathtotestdatatemplateexcel = new JLabel(\"PathToTestDataTemplateExcel :\");\n\t\tlblPathtotestdatatemplateexcel.setBounds(30, 177, 190, 14);\n\t\tframe.getContentPane().add(lblPathtotestdatatemplateexcel);\n\n\t\tJLabel lblPathtotestgeneratorexcel = new JLabel(\"PathToTestGeneratorExcel :\");\n\t\tlblPathtotestgeneratorexcel.setBounds(30, 202, 190, 14);\n\t\tframe.getContentPane().add(lblPathtotestgeneratorexcel);\n\n\t\ttextField_3 = new JTextField();\n\t\ttextField_3.setBounds(224, 149, 218, 20);\n\t\tframe.getContentPane().add(textField_3);\n\t\ttextField_3.setColumns(10);\n\n\t\ttextField_4 = new JTextField();\n\t\ttextField_4.setColumns(10);\n\t\ttextField_4.setBounds(224, 174, 218, 20);\n\t\tframe.getContentPane().add(textField_4);\n\n\t\ttextField_5 = new JTextField();\n\t\ttextField_5.setColumns(10);\n\t\ttextField_5.setBounds(224, 199, 218, 20);\n\t\tframe.getContentPane().add(textField_5);\n\n\t\tJButton btnCancel = new JButton(\"Reset\");\n\t\tbtnCancel.addActionListener(e -> frame.dispose());\n\t\tbtnCancel.setBounds(224, 230, 89, 23);\n\t\tframe.getContentPane().add(btnCancel);\n\t\tframe.setResizable(false);\n\t}", "public static void main(String[] args) {\n ConfigUSettable configU = new ConfigUSettable();\r\n configU.ToStringSetUsingClassLinks(true);\r\n\r\n RunLayouterDemoSwingForm runner = new RunLayouterDemoSwingForm(configU);\r\n\r\n //start inside the swing runner framework\r\n runner.run();\r\n\r\n }", "private void setGUI()\r\n\t{\r\n\t\tbubblePB = setProgressBar(bubblePB);\r\n\t\tinsertionPB = setProgressBar(insertionPB);\r\n\t\tmergePB = setProgressBar(mergePB);\r\n\t\tquickPB = setProgressBar(quickPB);\r\n\t\tradixPB = setProgressBar(radixPB);\r\n\t\t\r\n\t\tsetLabels();\r\n\t\tsetPanel();\r\n\t\tsetLabels();\r\n\t\tsetFrame();\r\n\t}", "private void setupGUI()\n\t{\n\t\t//initializes labelNumberOfASCII and adds to frame \n\t\tlabelNumberOfASCII = new JLabel();\n\t\tlabelNumberOfASCII.setLocation(12, 8);\n\t\tlabelNumberOfASCII.setSize(191,26);\n\t\tlabelNumberOfASCII.setText(\"Number of ASCII characters used\");\n\t\tgetContentPane().add(labelNumberOfASCII);\n\t\t\n\t\t//initialized comboCharSet and adds to frame\n\t\tString comboCharSet_tmp[]={\"Small\", \"Medium\", \"Large\"};\n\t\tcomboCharSet = new JComboBox<String>(comboCharSet_tmp);\n\t\tcomboCharSet.setLocation(294, 12);\n\t\tcomboCharSet.setSize(96, 25);\n\t\tcomboCharSet.setEditable(true);\n\t\tcomboCharSet.addActionListener(this);\n\t\tgetContentPane().add(comboCharSet);\n\n\t\t//initializes labelNumberofPixels and adds to frame\n\t\tlabelNumberOfPixels = new JLabel();\n\t\tlabelNumberOfPixels.setLocation(12,28);\n\t\tlabelNumberOfPixels.setSize(240,51);\n\t\tlabelNumberOfPixels.setText(\"Number of pixels per ASCII character: \");\n\t\tgetContentPane().add(labelNumberOfPixels);\n\t\t\n\t\t//initializes comboNumberOfPixels and adds to frame\n\t\tString comboNumberOfPixels_tmp[]={\"1\",\"3\",\"5\",\"7\",\"10\"};\n\t\tcomboNumberOfPixels = new JComboBox<String>(comboNumberOfPixels_tmp);\n\t\tcomboNumberOfPixels.setLocation(294,40);\n\t\tcomboNumberOfPixels.setSize(96,25);\n\t\tcomboNumberOfPixels.setEditable(true);\n\t\tcomboNumberOfPixels.addActionListener(this);\n\t\tgetContentPane().add(comboNumberOfPixels);\n\n\t\t//initializes outputPathLabel and adds to frame\n\t\toutputPathLabel = new JLabel();\n\t\toutputPathLabel.setLocation(12, 55);\n\t\toutputPathLabel.setText(\"Output folder:\");\n\t\toutputPathLabel.setSize(218, 51);\n\t\toutputPathLabel.setVisible(true);\n\t\tgetContentPane().add(outputPathLabel);\n\n\t\t//initializes outputPathTextField and adds to frame\n\t\toutputPathTextField = new JTextField();\n\t\tString initPath;\n\t\t//sets default output to default directory, created in Main.java. looks according to operating system.\n\t\tif (OSUtils.isUnixOrLinux())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"/.picture-to-ascii/output\";\n\t\telse if (OSUtils.isWindows())\n\t\t\tinitPath = System.getProperty(\"user.home\") + \"\\\\My Documents\\\\picture-to-ascii\\\\output\";\n\t\telse\n\t\t\tinitPath = \"(output path)\";\n\t\t//if the directory failed to create for reasons other than incompatible OS, we want (output path).\n\t\tif (!new File(initPath).isDirectory())\n\t\t\tinitPath = \"(output path)\";\n\n\t\toutputPathTextField.setLocation(150, 70);\n\t\toutputPathTextField.setSize(240,25);\n\t\toutputPathTextField.setText(initPath);\n\t\tgetContentPane().add(outputPathTextField);\n\n\t\tfontSizeTextField = new JTextField();\n\t\tfontSizeTextField.setLocation(150, 100);\n\t\tfontSizeTextField.setSize(240,25);\n\t\tfontSizeTextField.setText(\"5\");\n\t\tgetContentPane().add(fontSizeTextField);\n\n\t\tfontSizeLabel = new JLabel();\n\t\tfontSizeLabel.setText(\"Font size:\");\n\t\tfontSizeLabel.setSize(125, 51);\n\t\tfontSizeLabel.setLocation(12, 85);\n\t\tfontSizeLabel.setVisible(true);\n\t\tgetContentPane().add(fontSizeLabel);\n\t}", "public FrameIntroGUI() {\n\t\ttry {\n\t\t\tjbInit();\n\t\t}\n\t\tcatch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "CartogramWizardOptionsWindow ()\n\t{\n\t\t\n\t\t// Set the window parameters.\n\t\tthis.setTitle(\"Advanced options\");\n\t\t\t\n\t\tthis.setSize(500, 580);\n\t\tthis.setLocation(40, 50);\n\t\tthis.setResizable(false);\n\t\tthis.setLayout(null);\n\t\tthis.setModal(true);\n\t\t\n\t\t\n\t\t\t\t\n\t\t// GRID LAYER CHECK BOX\n\t\tmGridLayerCheckBox = \n\t\t\tnew JCheckBox(\"Create a transformation grid layer\");\n\t\t\n\t\tmGridLayerCheckBox.setSelected(\n\t\t\tAppContext.cartogramWizard.getCreateGridLayer());\n\t\t\t\n\t\tmGridLayerCheckBox.setFont(new Font(null, Font.BOLD, 11));\n\t\tmGridLayerCheckBox.setLocation(20, 20);\n\t\tmGridLayerCheckBox.setSize(300, 26);\n\t\tthis.add(mGridLayerCheckBox);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// DEFORMATION GRID LAYER HELP TEXT\n\t\t\n\t\tClassLoader cldr = this.getClass().getClassLoader();\n\t\t\n\t\tJTextPane deformationGridPane = new JTextPane();\n\t\tString deformationText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"DeformationGridLayerText.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tdeformationText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tdeformationGridPane.setContentType(\"text/html\");\n\t\tdeformationGridPane.setText(deformationText);\n\t\tdeformationGridPane.setEditable(false);\n\t\tdeformationGridPane.addHyperlinkListener(this);\n\t\tdeformationGridPane.setBackground(null);\n\t\tdeformationGridPane.setLocation(45, 45);\n\t\tdeformationGridPane.setSize(400, 30);\n\t\tthis.add(deformationGridPane);\n\t\t\n\t\t\n\t\t\n\t\t// GRID SIZE TEXT FIELD\n\t\tJLabel gridSizeLabel = new JLabel(\"Enter the number of rows:\");\n\t\tgridSizeLabel.setLocation(45, 85);\n\t\tgridSizeLabel.setSize(140, 26);\n\t\tgridSizeLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tthis.add(gridSizeLabel);\n\t\t\n\t\tint gridSize = AppContext.cartogramWizard.getDeformationGridSize();\n\t\tString gridSizeString = \"\" + gridSize;\n\t\tmGridSizeTextField = new JTextField(gridSizeString);\n\t\tmGridSizeTextField.setLocation(240, 85);\n\t\tmGridSizeTextField.setSize(50, 26);\n\t\tmGridSizeTextField.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmGridSizeTextField.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tthis.add(mGridSizeTextField);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Separator\n\t\tJSeparator separator = new JSeparator(SwingConstants.HORIZONTAL);\n\t\tseparator.setLocation(20, 120);\n\t\tseparator.setSize(460, 10);\n\t\tthis.add(separator);\n\t\t\n\t\t\n\t\t\n\t\t// ADVANCED OPTIONS CHECK BOX\n\t\tmAdvancedOptionsCheckBox = \n\t\t\tnew JCheckBox(\"Define cartogram parameters manually\");\n\t\t\n\t\tmAdvancedOptionsCheckBox.setSelected(\n\t\t\tAppContext.cartogramWizard.getAdvancedOptionsEnabled());\n\t\t\t\n\t\tmAdvancedOptionsCheckBox.setFont(new Font(null, Font.BOLD, 11));\n\t\tmAdvancedOptionsCheckBox.setLocation(20, 140);\n\t\tmAdvancedOptionsCheckBox.setSize(360, 26);\n\t\tmAdvancedOptionsCheckBox.addChangeListener(this);\n\t\tthis.add(mAdvancedOptionsCheckBox);\n\t\t\n\t\t\n\t\t\n\t\t// Manual parameters text\n\t\tmManualParametersPane = new JTextPane();\n\t\tString manualParametersText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"ManualParametersText.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tmanualParametersText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmManualParametersPane.setContentType(\"text/html\");\n\t\tmManualParametersPane.setText(manualParametersText);\n\t\tmManualParametersPane.setEditable(false);\n\t\tmManualParametersPane.addHyperlinkListener(this);\n\t\tmManualParametersPane.setBackground(null);\n\t\tmManualParametersPane.setLocation(45, 170);\n\t\tmManualParametersPane.setSize(400, 30);\n\t\tmManualParametersPane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mManualParametersPane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Grid 1 text\n\t\tmGrid1Pane = new JTextPane();\n\t\tString grid1Text = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"Grid1Text.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tgrid1Text = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmGrid1Pane.setContentType(\"text/html\");\n\t\tmGrid1Pane.setText(grid1Text);\n\t\tmGrid1Pane.setEditable(false);\n\t\tmGrid1Pane.addHyperlinkListener(this);\n\t\tmGrid1Pane.setBackground(null);\n\t\tmGrid1Pane.setLocation(45, 210);\n\t\tmGrid1Pane.setSize(400, 60);\n\t\tmGrid1Pane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mGrid1Pane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Cartogram grid size\n\t\tmCartogramGridSizeLabel = \n\t\t\tnew JLabel(\"Enter the number of grid rows:\");\n\t\t\t\n\t\tmCartogramGridSizeLabel.setLocation(45, 270);\n\t\tmCartogramGridSizeLabel.setSize(170, 26);\n\t\tmCartogramGridSizeLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmCartogramGridSizeLabel.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mCartogramGridSizeLabel);\n\t\t\n\t\tint cgGridSizeX = AppContext.cartogramWizard.getCartogramGridSizeInX();\n\t\tint cgGridSizeY = AppContext.cartogramWizard.getCartogramGridSizeInY();\n\t\tint cgGridSize = Math.max(cgGridSizeX, cgGridSizeY);\n\t\tString cgGridSizeString = \"\" + cgGridSize;\n\t\tmCartogramGridSizeTextField = new JTextField(cgGridSizeString);\n\t\tmCartogramGridSizeTextField.setLocation(240, 270);\n\t\tmCartogramGridSizeTextField.setSize(50, 26);\n\t\tmCartogramGridSizeTextField.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmCartogramGridSizeTextField.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tmCartogramGridSizeTextField.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mCartogramGridSizeTextField);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Grid 2 text\n\t\tmGrid2Pane = new JTextPane();\n\t\tString grid2Text = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"Grid2Text.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\tgrid2Text = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmGrid2Pane.setContentType(\"text/html\");\n\t\tmGrid2Pane.setText(grid2Text);\n\t\tmGrid2Pane.setEditable(false);\n\t\tmGrid2Pane.addHyperlinkListener(this);\n\t\tmGrid2Pane.setBackground(null);\n\t\tmGrid2Pane.setLocation(45, 315);\n\t\tmGrid2Pane.setSize(400, 50);\n\t\tmGrid2Pane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mGrid2Pane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Diffusion grid size\n\t\tmDiffusionGridSizeLabel = new JLabel(\"Diffusion grid size:\");\n\t\tmDiffusionGridSizeLabel.setLocation(45, 365);\n\t\tmDiffusionGridSizeLabel.setSize(170, 26);\n\t\tmDiffusionGridSizeLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmDiffusionGridSizeLabel.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mDiffusionGridSizeLabel);\n\t\t\n\t\tmDiffusionGridMenu = new JComboBox();\n\t\tmDiffusionGridMenu.setBounds(240, 365, 100, 26);\n\t\tmDiffusionGridMenu.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmDiffusionGridMenu.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tmDiffusionGridMenu.addItem(\"64\");\n\t\tmDiffusionGridMenu.addItem(\"128\");\n\t\tmDiffusionGridMenu.addItem(\"256\");\n\t\tmDiffusionGridMenu.addItem(\"512\");\n\t\tmDiffusionGridMenu.addItem(\"1024\");\n\t\t\n\t\tString strGridSize = \n\t\t\t\"\" + AppContext.cartogramWizard.getDiffusionGridSize();\n\t\t\t\n\t\tmDiffusionGridMenu.setSelectedItem(strGridSize);\n\t\t\n\t\tthis.add(mDiffusionGridMenu);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Iterations text\n\t\tmIterPane = new JTextPane();\n\t\tString iterText = null;\n\t\ttry\n\t\t{\n\t\t\tInputStream inStream = \n\t\t\t\tcldr.getResource(\"GastnerIterationsText.html\").openStream();\n\t\t\tStringBuffer inBuffer = new StringBuffer();\n\t\t\tint c;\n\t\t\twhile ((c = inStream.read()) != -1)\n\t\t\t{\n\t\t\t\tinBuffer.append((char)c);\n\t\t\t}\n\t\t\tinStream.close();\n\t\t\titerText = inBuffer.toString();\n\t\t} \n\t\tcatch (Exception e) \n\t\t{\n\t\t\te.printStackTrace(); \n\t\t}\n\t\tmIterPane.setContentType(\"text/html\");\n\t\tmIterPane.setText(iterText);\n\t\tmIterPane.setEditable(false);\n\t\tmIterPane.addHyperlinkListener(this);\n\t\tmIterPane.setBackground(null);\n\t\tmIterPane.setLocation(45, 405);\n\t\tmIterPane.setSize(400, 45);\n\t\tmIterPane.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mIterPane);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Iterations of diffusion algorithm\n\t\tmIterationsLabel = \n\t\t\tnew JLabel(\"Enter the number of iterations:\");\n\t\t\t\n\t\tmIterationsLabel.setLocation(45, 450);\n\t\tmIterationsLabel.setSize(190, 26);\n\t\tmIterationsLabel.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmIterationsLabel.setEnabled(mAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mIterationsLabel);\n\n\t\tmDiffusionIterationsTextField = new JTextField(\n\t\t\t\"\" + AppContext.cartogramWizard.getDiffusionIterations());\n\t\tmDiffusionIterationsTextField.setLocation(240, 450);\n\t\tmDiffusionIterationsTextField.setSize(50, 26);\n\t\tmDiffusionIterationsTextField.setFont(new Font(null, Font.PLAIN, 11));\n\t\tmDiffusionIterationsTextField.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tmDiffusionIterationsTextField.setEnabled(\n\t\t\tmAdvancedOptionsCheckBox.isSelected());\n\t\tthis.add(mDiffusionIterationsTextField);\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t// Cancel button\n\t\tJButton cancelButton = new JButton(\"Cancel\");\n\t\tcancelButton.setLocation(270, 510);\n\t\tcancelButton.setSize(100, 26);\n\t\t\n\t\tcancelButton.addActionListener(new \n\t\t\tCartogramWizardAdvancedOptionsAction(\n\t\t\t\"closeDialogWithoutSaving\", this));\n\t\t\t\n\t\tthis.add(cancelButton);\n\t\t\n\t\t\n\t\t// Ok button\n\t\tJButton okButton = new JButton(\"OK\");\n\t\tokButton.setLocation(380, 510);\n\t\tokButton.setSize(100, 26);\n\t\t\n\t\tokButton.addActionListener(new \n\t\t\tCartogramWizardAdvancedOptionsAction(\n\t\t\t\"closeDialogWithSaving\", this));\n\t\t\t\n\t\tthis.add(okButton);\n\t\t\n\n\n\n\t\t// ADD THE HELP BUTTON\n\t\t\t\t\n\t\tjava.net.URL imageURL = cldr.getResource(\"help-22.png\");\n\t\tImageIcon helpIcon = new ImageIcon(imageURL);\n\n\t\tJButton helpButton = \n\t\t\tnew JButton(helpIcon);\n\t\t\n\t\thelpButton.setVerticalTextPosition(SwingConstants.BOTTOM);\n\t\thelpButton.setHorizontalTextPosition(SwingConstants.CENTER);\n\t\thelpButton.setSize(30, 30);\n\t\thelpButton.setLocation(20, 510);\n\t\thelpButton.setFocusable(false);\n\t\thelpButton.setContentAreaFilled(false);\n\t\thelpButton.setBorderPainted(false);\n\t\t\n\t\thelpButton.addActionListener(new CartogramWizardShowURL(\n\t\t\t\"http://chorogram.choros.ch/scapetoad/help/c-transformation-parameters.php#advanced-options\"));\n\t\t\n\t\tthis.add(helpButton);\n\n\n\n\t\n\t}", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n banner = new javax.swing.JLabel();\n mainPanel = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n cancelBtn = new javax.swing.JButton();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n frequencyCombo = new javax.swing.JComboBox();\n newPluginsCheck = new javax.swing.JCheckBox();\n actionLabel = new javax.swing.JLabel();\n appUpdateCheck = new javax.swing.JCheckBox();\n actionCombo = new javax.swing.JComboBox();\n checkNowBtn = new javax.swing.JButton();\n helpBtn = new ca.cgjennings.ui.JHelpButton();\n updateStatusLabel = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n setTitle(string( \"core-config-title\" )); // NOI18N\n setResizable(false);\n\n banner.setBackground(java.awt.Color.gray);\n banner.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/resources/icons/application/app-banner.jpg\"))); // NOI18N\n banner.setVerticalAlignment(javax.swing.SwingConstants.TOP);\n banner.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 0, 1, java.awt.Color.gray));\n banner.setIconTextGap(0);\n banner.setOpaque(true);\n getContentPane().add(banner, java.awt.BorderLayout.WEST);\n\n jLabel1.setFont(jLabel1.getFont().deriveFont(jLabel1.getFont().getStyle() | java.awt.Font.BOLD, jLabel1.getFont().getSize()+4));\n jLabel1.setText(string( \"core-config-title\" )); // NOI18N\n jLabel1.setBorder(javax.swing.BorderFactory.createMatteBorder(0, 0, 1, 0, java.awt.Color.gray));\n\n cancelBtn.setText(string( \"close\" )); // NOI18N\n cancelBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n cancelBtnActionPerformed(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(string( \"core-p-autoupdate\" ))); // NOI18N\n\n jLabel2.setText(string( \"core-l-freq\" )); // NOI18N\n\n frequencyCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"core-autoupdate-never\", \"core-autoupdate-monthly\", \"core-autoupdate-weekly\", \"core-autoupdate-daily\" }));\n frequencyCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n frequencyComboActionPerformed(evt);\n }\n });\n\n newPluginsCheck.setText(string( \"core-b-new-plugins\" )); // NOI18N\n newPluginsCheck.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n newPluginsCheckActionPerformed(evt);\n }\n });\n\n actionLabel.setText(string( \"core-autoupdate-action\" )); // NOI18N\n\n appUpdateCheck.setText(string( \"core-b-app-update\" )); // NOI18N\n appUpdateCheck.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n appUpdateCheckActionPerformed(evt);\n }\n });\n\n actionCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"core-autoupdate-no-action\", \"core-autoupdate-install\" }));\n actionCombo.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n actionComboActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(newPluginsCheck)\n .addComponent(jLabel2)\n .addComponent(actionLabel)\n .addComponent(appUpdateCheck)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(actionCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(frequencyCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(88, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(frequencyCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(actionLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(actionCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(18, 18, Short.MAX_VALUE)\n .addComponent(newPluginsCheck)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(appUpdateCheck)\n .addContainerGap())\n );\n\n checkNowBtn.setFont(checkNowBtn.getFont().deriveFont(checkNowBtn.getFont().getStyle() | java.awt.Font.BOLD, checkNowBtn.getFont().getSize()+1));\n checkNowBtn.setText(string( \"core-b-check-now\" )); // NOI18N\n checkNowBtn.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n checkNowBtnActionPerformed(evt);\n }\n });\n\n helpBtn.setHelpPage(\"plugins-updates\");\n\n updateStatusLabel.setFont(updateStatusLabel.getFont().deriveFont(updateStatusLabel.getFont().getStyle() | java.awt.Font.BOLD, updateStatusLabel.getFont().getSize()-1));\n updateStatusLabel.setText(\" \");\n\n javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);\n mainPanel.setLayout(mainPanelLayout);\n mainPanelLayout.setHorizontalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, mainPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 445, Short.MAX_VALUE)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addComponent(helpBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 366, Short.MAX_VALUE)\n .addComponent(cancelBtn))\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, mainPanelLayout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(checkNowBtn)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addGap(10, 10, 10)\n .addComponent(updateStatusLabel)))))\n .addContainerGap())\n );\n mainPanelLayout.setVerticalGroup(\n mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(mainPanelLayout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(checkNowBtn)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(updateStatusLabel)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 46, Short.MAX_VALUE)\n .addGroup(mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(cancelBtn)\n .addComponent(helpBtn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap())\n );\n\n getContentPane().add(mainPanel, java.awt.BorderLayout.CENTER);\n\n pack();\n }", "private static void doStartConfiguration(final Configuration config) {\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tSetup setup = new Setup(config);\r\n\t\t\t\tsetup.setLocationRelativeTo(null);\r\n\t\t\t\tsetup.setVisible(true);\r\n\t\t\t\tsetup.pack();\r\n\t\t\t\tsetup.onRun.add(new Act() {\r\n\t\t\t\t\t@Override\r\n\t\t\t\t\tpublic void act() {\r\n\t\t\t\t\t\tdoStartProgram(config);\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}", "private void setupSettings() {\n add(announcementBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(currentGamesBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(chatRoomBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(friendsListBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n add(leaderboardBtn).expandX().width(ChessGame.MENU_WIDTH);\n row();\n }", "public config() {\n initComponents();\n }", "private void configureWindow() {\n\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n background.setBackground(Color.BLACK);\n setSize(initialWindowWidth, initialWindowHeight);\n setVisible(true);\n }", "private void setupGui(NbImageIcon nbIcon) {\n if (ignoreSetValue || (nbIcon == null && ignoreNull)) {\n return;\n }\n\n selectedFile = null;\n selectedURL = null;\n ignoreCombo = true;\n if (cbFile.getItemCount() > 0) {\n cbFile.setSelectedIndex(0);\n }\n ignoreCombo = false;\n\n if (nbIcon == null) {\n rbProjectImages.setSelected(true);\n previewLabel.setIcon(null);\n return;\n }\n\n switch (nbIcon.getType()) {\n case IconEditor.TYPE_FILE:\n FileObject iconFile = rootFolder.getFileObject(nbIcon.getName());\n setSelectedFolder(iconFile.getParent());\n setSelectedFile(iconFile);\n rbProjectImages.setSelected(true);\n enableUrlChoose(false);\n break;\n case IconEditor.TYPE_URL:\n setSelectedUrl(nbIcon.getName());\n rbExternalImages.setSelected(true);\n enableFileChoose(false);\n break;\n }\n previewLabel.setIcon(nbIcon);\n }", "private void showCrawlerSettings()\n {\n SpiderConfig config = spider.getConfig();\n \n JPanel crawlerSettingsPanel = new JPanel(new GridLayout(8, 2));\n JLabel crawlDistanceLabel = new JLabel(\"Max crawl distance\");\n JLabel maxAdjLinksLabel = new JLabel(\"Max adjacent URL's\");\n JLabel bufferSizeLabel = new JLabel(\"Buffer size\");\n JLabel cacheSizeLabel = new JLabel(\"Cache size\");\n JLabel updateDurationLabel = new JLabel(\"Duration (days) until update\");\n JLabel maxImagesLabel = new JLabel(\"Max number of images\");\n JLabel collectImagesLabel = new JLabel(\"Fetch images\");\n JLabel defaultIndexFileLabel = new JLabel(\"Default index file\");\n JTextField crawlDistanceField = new JTextField();\n JTextField maxAdjLinksField = new JTextField();\n JTextField bufferSizeField = new JTextField();\n JTextField cacheSizeField = new JTextField();\n JTextField updateDurationField = new JTextField();\n JTextField maxImagesField = new JTextField();\n JTextField indexFileField = new JTextField();\n JCheckBox collectImagesCheck = new JCheckBox();\n \n crawlerSettingsPanel.add(crawlDistanceLabel);\n crawlerSettingsPanel.add(crawlDistanceField);\n crawlerSettingsPanel.add(maxAdjLinksLabel);\n crawlerSettingsPanel.add(maxAdjLinksField);\n crawlerSettingsPanel.add(bufferSizeLabel);\n crawlerSettingsPanel.add(bufferSizeField);\n crawlerSettingsPanel.add(cacheSizeLabel);\n crawlerSettingsPanel.add(cacheSizeField);\n crawlerSettingsPanel.add(updateDurationLabel);\n crawlerSettingsPanel.add(updateDurationField);\n crawlerSettingsPanel.add(maxImagesLabel);\n crawlerSettingsPanel.add(maxImagesField);\n crawlerSettingsPanel.add(defaultIndexFileLabel);\n crawlerSettingsPanel.add(indexFileField);\n crawlerSettingsPanel.add(collectImagesLabel);\n crawlerSettingsPanel.add(collectImagesCheck);\n \n crawlDistanceField.setText(\"\" + config.getMaxCrawlDistance());\n maxAdjLinksField.setText(\"\" + config.getMaxAdjUrls());\n bufferSizeField.setText(\"\" + config.getBufferSize());\n cacheSizeField.setText(\"\" + config.getCacheSize());\n updateDurationField.setText(\"\" + config.getUpdateDays());\n maxImagesField.setText(\"\" + config.getMaxImages());\n collectImagesCheck.setSelected(config.isFetchingImages());\n indexFileField.setText(config.getDatabaseFile());\n \n int option = JOptionPane.showConfirmDialog(null, crawlerSettingsPanel, \"Crawler settings\", JOptionPane.OK_CANCEL_OPTION);\n if(option == JOptionPane.YES_OPTION)\n {\n try\n {\n int maxDistance = Integer.parseInt(crawlDistanceField.getText());\n int maxLinks = Integer.parseInt(maxAdjLinksField.getText());\n int bufferSize = Integer.parseInt(bufferSizeField.getText());\n int cacheSize = Integer.parseInt(cacheSizeField.getText());\n int updateDays = Integer.parseInt(updateDurationField.getText());\n int maxImages = Integer.parseInt(maxImagesField.getText());\n String defaultIndex = indexFileField.getText();\n boolean fetchImages = collectImagesCheck.isSelected();\n \n config.setBufferSize(bufferSize);\n config.setCacheSize(cacheSize);\n config.setMaxCrawlDistance(maxDistance);\n config.setMaxAdjUrls(maxLinks);\n config.setUpdateDays(updateDays);\n config.setFetchImages(fetchImages);\n config.setMaxImages(maxImages);\n config.setDatabaseFile(defaultIndex);\n \n spider.updateConfig();\n }\n \n catch(NumberFormatException e)\n {\n JOptionPane.showMessageDialog(null, \"Invalid config settings\");\n }\n }\n }", "private void initUI()\r\n {\r\n var webIcon = new ImageIcon(\"src/resources/web.png\");\r\n \r\n // The setIconImage() sets the image to be displayed as the icon for this window. the getImage() returns the\r\n // icon's Image.\r\n setIconImage(webIcon.getImage());\r\n \r\n setTitle(\"Icon\");\r\n setSize(300, 200);\r\n setLocationRelativeTo(null);\r\n setDefaultCloseOperation(EXIT_ON_CLOSE);\r\n }", "public main() {\n initComponents();\n btnSalvar3.setVisible(false);\n lerConfig();\n }", "@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 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 void initialize() {\n\ttry {\n\t\t// user code begin {1}\n\t\t// user code end\n\t\tsetName(\"PlatformInfoPanel\");\n\t\tsetLayout(null);\n\t\tsetSize(353, 240);\n\t\tadd(getPnlOS(), getPnlOS().getName());\n\t\tadd(getPnlJava(), getPnlJava().getName());\n\t} catch (java.lang.Throwable ivjExc) {\n\t\thandleException(ivjExc);\n\t}\n\t// user code begin {2}\n\tgetTxtOSName().setText(System.getProperty(\"os.name\"));\n\tgetTxtOSArchitecture().setText(System.getProperty(\"os.arch\"));\n\tgetTxtOSVersion().setText(System.getProperty(\"os.version\"));\n\tgetTxtOSLocale().setText(java.util.Locale.getDefault().toString());\n\tgetTxtJavaVersion().setText(System.getProperty(\"java.version\"));\n\tgetTxtJavaVMVersion().setText(System.getProperty(\"java.vm.version\"));\n\t// user code end\n}", "public void loadDefaultSettings(){\r\n try{\r\n File propFile;\r\n String curLine;\r\n CodeSource codeSource = EMSimulationSettingsView.class.getProtectionDomain().getCodeSource();\r\n File jarFile = new File(codeSource.getLocation().toURI().getPath());\r\n File jarDir = jarFile.getParentFile();\r\n \r\n propFile = new File(jarDir, \"default_EMSettings.txt\");\r\n FileReader fr = new FileReader(propFile);//reads in the pdb\r\n BufferedReader br = new BufferedReader(fr);\r\n while ((curLine = br.readLine()) != null) {\r\n String[] setting = curLine.split(\"[\\t]+\");//split by whitespace into an array to read\r\n if(setting[0].toString().compareTo(\"Minim Method\")==0){\r\n jComboBox1.setSelectedIndex(Integer.parseInt(setting[1]));\r\n }\r\n\t\t\t \r\n if(setting[0].compareTo(\"Step Size\")==0){\r\n if(setting[1].compareTo(\"0.0\")!=0&&setting[1].compareTo(\"0\")!=0)jTextField1.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Numsteps\")==0){\r\n jTextField2.setText(setting[1]);\r\n }\r\n \r\n if(setting[0].compareTo(\"Convergence\")==0){\r\n jTextField3.setText(setting[1]);\r\n }\r\n\t\t\t \r\n\t\tif(setting[0].compareTo(\"Interval\")==0){\r\n jTextField4.setText(setting[1]);\r\n }\r\n }\r\n this.setVisible(true);\r\n br.close();\r\n fr.close();\r\n }\r\n catch (Exception e){\r\n System.err.println(\"Error: \" + e.getMessage());\r\n }\r\n }", "public static void main(String[] args) {\r\n UILookAndFeel.setLAF();\r\n try {\r\n SwingUtilities.invokeAndWait(new Runnable() {\r\n public void run() {\r\n RegularGrid app = new RegularGrid();\r\n app.init();\r\n app.setVisible(true);\r\n }\r\n });\r\n } catch (Exception e) {\r\n e.printStackTrace();\r\n }\r\n }", "public History_GUI(){\n super();\n InitializeComponents();\n ConfigureWin();\n\n }", "private void initialize() {\r\n\t\tthis.setSize(378, 283);\r\n\t\tthis.setJMenuBar(getMenubar());\r\n\t\tthis.setContentPane(getJContentPane());\r\n\t\tthis.setTitle(\"JAVIER\");\r\n\t}", "public void initGUI(String windowTitle) throws IOException {\n // INIT THE DIALOGS\n initDialogs();\n \n // INIT THE TOOLBAR\n initFileToolbar();\n\n // INIT THE CENTER WORKSPACE CONTROLS BUT DON'T ADD THEM\n // TO THE WINDOW YET\n initWorkspace();\n\n // NOW SETUP THE EVENT HANDLERS\n initEventHandlers();\n\n // AND FINALLY START UP THE WINDOW (WITHOUT THE WORKSPACE)\n initWindow(windowTitle);\n }", "private void initGui() {\n initSeekBar();\n initDateFormatSpinner();\n GuiHelper.defineButtonOnClickListener(view, R.id.settings_buttonSave, this);\n\n }", "public Main() {\n //\n if (DEMO_MODE == false) {\n companySettings();\n }\n //\n initComponents();\n //\n if (DEMO_MODE) {\n prefil_demo_values();\n }\n //\n if (SHOW_AT_START) { // [2020-06-09]\n prefil_show_at_start_values();\n }\n //\n this.controller = new Controller(this, PROPS_MAIN);\n //\n initOther();\n buildComboList();\n buildObligatoryComboList();\n addJComboListeners();\n setFontJBoxesTitleBorders();\n //\n if (DEMO_MODE || (SHOW_AT_START && start_up_parameters_not_empty())) {\n demoAutoStart();\n }\n //\n if (COMPANY_NAME.equals(CONSTANTS.COMPANY_NAME_CEAT)) {\n //This because \"TEST NAME\" is not obligatory for CEAT and therefore i remove the \"*\" from \"TEST NAME*\"\n TitledBorder b = (TitledBorder) jPanel5.getBorder();\n Font f = b.getTitleFont();\n TitledBorder b_ = (TitledBorder) jPanel1.getBorder();\n b_.setTitleFont(f);\n b_.setTitle(\"TEST NAME\");\n //\n jComboBoxTestName.setEnabled(false);\n jComboBoxBatch.setEnabled(false);\n //\n jButton8.setVisible(false);\n jButton9.setVisible(false);\n //\n jButton_Prev_test_name.setEnabled(false);\n jButton_Next_test_name.setEnabled(false);\n //\n Font currentFont = jComboBoxOrder.getFont();\n Font newFont = currentFont.deriveFont(currentFont.getSize() * 0.75F);\n jComboBoxOrder.setFont(newFont);\n //\n }\n //\n hideTemporaryUntilFixed();\n //\n }", "public mainUI() {\n initComponents();\n }", "protected void setupUI() {\r\n this.setLayout(new GridLayout((this.needDefaultValue) ? 3 : 2, 2));\r\n\r\n this.nameLabel = new JLabel(this.nameLabelText);\r\n this.add(this.nameLabel);\r\n this.add(this.nameTextField);\r\n\r\n this.typeLabel = new JLabel(this.typeLabelText);\r\n this.add(this.typeLabel);\r\n this.add(this.typeDropDown);\r\n\r\n if (this.needDefaultValue) {\r\n this.defValLabel = new JLabel(this.defValLabelText);\r\n this.add(this.defValLabel);\r\n this.add(this.defValueTextField);\r\n }\r\n }", "private static void changeSettings() {\n\t\t\n\t\tfinal Settings sett = config;\n\t\t\n\t\tfinal JDialog settingsDialog = new JDialog(frame, \"Change settings\");\n\t\t\n\t\tsettingsDialog.getContentPane().setLayout(new BorderLayout());\n\t\tsettingsDialog.setPreferredSize(new Dimension(350,150));\n\t\t\n\t\tJPanel settings = new JPanel();\n\t\tsettings.setLayout(new GridLayout(3,2));\n\t\t\n\t\tJLabel lblDB = new JLabel(\"Update DB dynamically\");\n\t\tJRadioButton rbDB = new JRadioButton();\n\t\trbDB.setSelected(sett.isUpdateDB());\n\t\trbDB.addItemListener(new ItemListener(){\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setUpdateDB(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setUpdateDB(false);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t});\t\t\n\t\tJLabel lblGUI = new JLabel(\"Use Graphical User Interface\");\n\t\tJRadioButton rbGUI = new JRadioButton();\n\t\trbGUI.setSelected(sett.isGUI());\n\t\trbGUI.addItemListener(new ItemListener() {\n\n\t\t\t@Override\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\n\t\t\t\tif(e.getStateChange() == ItemEvent.SELECTED){\n\t\t\t\t\tsett.setGUI(true);\n\t\t\t\t} else if(e.getStateChange() == ItemEvent.DESELECTED){\n\t\t\t\t\tsett.setGUI(false);\n\t\t\t\t}\n\t\t\t}\t\t\t\n\t\t});\n\t\t\n\t\tJLabel lblFile = new JLabel(\"Working file\");\n\t\tfinal JTextField tfFile = new JTextField(sett.getWorkingFile());\n\t\t\t\t\n\t\tsettings.add(lblDB);\n\t\tsettings.add(rbDB);\n\t\tsettings.add(lblGUI);\n\t\tsettings.add(rbGUI);\n\t\tsettings.add(lblFile);\n\t\tsettings.add(tfFile);\n\t\t\n\t\tJButton btnSave = new JButton(\"Save settings\");\n\t\tbtnSave.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\n\t\t\t\tif(!saved) {\n\t\t \t\tint option = JOptionPane.showOptionDialog(frame,\n\t\t \t\t\t\t\"Updating the settings will reset the application\\nThere are unsaved changes\\nDo you want to save them now?\",\n\t\t \t\t\t\t\"Unsaved changes\",JOptionPane.YES_NO_CANCEL_OPTION,\n\t\t \t\t\t\tJOptionPane.WARNING_MESSAGE, null, null, 0);\n\t\t \t\tswitch(option) {\n\t\t \t\tcase 0:\n\t\t \t\t\ttoggleSaved(portfolio.save(WORKING_FILE));\n\t\t \t\tdefault:\n\t\t \t\t\tbreak; \t \t\t\n\t\t \t\t}\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tsett.setWorkingFile(tfFile.getText());\n\t\t\t\t\n\t\t\t\tsett.save();\n\t\t\t\tconfig = new Settings(sett);\n\t\t\t\tsettingsDialog.dispose();\n\t\t\t\t\n\t\t\t\tif(!sett.isGUI()){\n\t\t\t\t\tframe.dispose();\n\t\t\t\t\texit = false;\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!sett.isUpdateDB()){\n\t\t\t\t\tportfolio.init(config.getWorkingFile());\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION);\n\t\t\t\t\tbtnRestore.setEnabled(true);\n\t\t\t\t} else {\n\t\t\t\t\t\n\t\t\t\t\tportfolio.initDB();\n\t\t\t\t\tframe.setTitle(\"JProject v.\"+VERSION+\" ** Linked to Database **\");\n\t\t\t\t\tbtnRestore.setEnabled(false);\n\t\t\t\t}\n\t\t\t\t\topTable.setModel((TableModel) new ProjectTableModel(portfolio.getOngoingProjects()));\n\t\t\t\t\tfpTable.setModel((TableModel) new ProjectTableModel(portfolio.getFinishedProjects()));\n\t\t\t\t\tsel.init(portfolio);\n\t\t\t\t\tupdateCounters();\n\t\t\t\t\t\n\t\t\t}\n\t\t});\n\t\t\n\t\tsettingsDialog.add(settings, BorderLayout.CENTER);\n\t\tsettingsDialog.add(btnSave, BorderLayout.PAGE_END);\n\t\t\n\t\tsettingsDialog.pack();\n\t\tsettingsDialog.setVisible(true);\t\n\t}", "@Override\n public void initGUI() {\n\n }", "public void initGui()\n {\n StringTranslate var2 = StringTranslate.getInstance();\n int var4 = this.height / 4 + 48;\n\n this.controlList.add(new GuiButton(1, this.width / 2 - 100, var4 + 24 * 1, \"Offline Mode\"));\n this.controlList.add(new GuiButton(2, this.width / 2 - 100, var4, \"Online Mode\"));\n\n this.controlList.add(new GuiButton(3, this.width / 2 - 100, var4 + 48, var2.translateKey(\"menu.mods\")));\n\t\tthis.controlList.add(new GuiButton(0, this.width / 2 - 100, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.options\")));\n\t\tthis.controlList.add(new GuiButton(4, this.width / 2 + 2, var4 + 72 + 12, 98, 20, var2.translateKey(\"menu.quit\")));\n this.controlList.add(new GuiButtonLanguage(5, this.width / 2 - 124, var4 + 72 + 12));\n }", "public abstract void initUiAndListener();", "@Override\n\tprotected void updateLaunchConfigurationDialog() {\n\t\tsuper.updateLaunchConfigurationDialog();\n\t}", "public AplicationGUI() {\n initComponents();\n }", "public StartupOptions() {\n initComponents();\n done.addActionListener(Seasonality.bi);\n\n }" ]
[ "0.7174799", "0.66809714", "0.66023904", "0.64725524", "0.64588577", "0.6418183", "0.6401742", "0.63150257", "0.6299439", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6298949", "0.6283779", "0.62775624", "0.6219292", "0.6211749", "0.6201901", "0.61970985", "0.6189882", "0.6187449", "0.61822075", "0.6176513", "0.61666554", "0.6164167", "0.6155638", "0.6138257", "0.6131319", "0.6122908", "0.61192036", "0.6100799", "0.6088903", "0.6072252", "0.6066971", "0.6066265", "0.6055829", "0.6048339", "0.604668", "0.6046235", "0.60388696", "0.60299695", "0.6026297", "0.6025409", "0.6010398", "0.5986491", "0.5985778", "0.5984297", "0.59747976", "0.5969535", "0.5969244", "0.59612757", "0.59587026", "0.59563893", "0.59519976", "0.5941724", "0.594156", "0.5923774", "0.5922005", "0.5917713", "0.59164196", "0.5912744", "0.58977985", "0.589754", "0.5891262", "0.5889413", "0.5880807", "0.58778334", "0.5877748", "0.5868714", "0.5864484", "0.58619714", "0.5861603", "0.58610994", "0.5850998", "0.584877", "0.5845587", "0.5838802", "0.58382696", "0.5836429", "0.5836106", "0.58334726", "0.5828997", "0.5827914", "0.5822012", "0.58180016", "0.58168036", "0.5811596", "0.58100057", "0.5806609", "0.58028233", "0.58026654", "0.57915044", "0.5790983", "0.57875097", "0.57868814", "0.57857", "0.5779066" ]
0.72765714
0
Builds the DemoFrame using Options from the Launcher.
private void build() { applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); setContentPane(buildContentPane()); setTitle(getWindowTitle()); setJMenuBar( createMenuBuilder(this).buildMenuBar( settings, createHelpActionListener(), createAboutActionListener())); setIconImage(readImageIcon("eye_16x16.gif").getImage()); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "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 void main(String[] args) {\n @SuppressWarnings(\"unused\")\n DesignFrame df = new DesignFrame();\n }", "public void buildFrame();", "private Frame buildFrame() {\n return new Frame(command, headers, body);\n }", "private JFrame makeOptionsFrame(){\n MenuBarHandler menuBarHandler = new MenuBarHandler();\n JFrame optionsFrame = new JFrame(\"Options\");\n optionsFrame.setDefaultCloseOperation(JFrame.HIDE_ON_CLOSE);\n optionsFrame.setResizable(false);\n optionsFrame.setLocationRelativeTo(frame);\n followRedirect = new JCheckBox(\"follow redirect\");\n followRedirect.setSelected(true);\n followRedirect.addActionListener(menuBarHandler);\n hideOnSystemTray = new JCheckBox(\"Hide to tray\");\n hideOnSystemTray.addActionListener(menuBarHandler);\n ButtonGroup themes = new ButtonGroup();\n JRadioButton light = new JRadioButton(\"Light theme\");\n light.setSelected(true);\n JRadioButton dark = new JRadioButton(\"Dark theme\");\n light.addActionListener(menuBarHandler);\n dark.addActionListener(menuBarHandler);\n themes.add(light);\n themes.add(dark);\n optionsFrame.setLayout(new GridBagLayout());\n GridBagConstraints c = new GridBagConstraints();\n optionsFrame.add(hideOnSystemTray, c);\n optionsFrame.add(followRedirect, c);\n c.gridy = 1;\n optionsFrame.add(light, c);\n c.gridy = 2;\n optionsFrame.add(dark, c);\n optionsFrame.pack();\n return optionsFrame;\n }", "public CommandLineBuilderPanel() {\n initComponents();\n buildCommandLine();\n fileChooser.setCurrentDirectory(new File(System.getProperty(\"user.dir\")));\n }", "public static void main(final String[] args) {\n JFrame frame = new JFrame(TabbedPaneDemo.class.getAnnotation(DemoProperties.class).value());\n\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.getContentPane().add(new TabbedPaneDemo());\n frame.setPreferredSize(new Dimension(800, 600));\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n }", "public LauncherPanel(String conffile) {\n initComponents();\n \n Properties props = new Properties();\n try {\n FileInputStream in = new FileInputStream( conffile );\n props.load(in);\n } catch (FileNotFoundException fe) {\n System.err.println(\"Missing \" + conffile + \" -file!\");\n System.exit(-1);\n } catch (IOException ie) {\n System.err.println(\"Reading \" + conffile + \" failed!\");\n System.exit(-1); \n } catch (Exception e) {\n System.err.println(\"Reading properties failed \\n\" + e);\n System.exit(-1);\n }\n \n timeout = Integer.parseInt(props.getProperty(\"timeout\", \"10000\"));\n jLabel1.setText(props.getProperty(\"title\", \"Application launcher\"));\n jLabel2.setText(props.getProperty(\"launch\", \"Launch applications\"));\n jLabel3.setText(props.getProperty(\"leagues\", \"Leagues\")); \n \n workingDir = new File(props.getProperty(\"workingdir\"));\n separator = props.getProperty(\"separator\");\n extension = props.getProperty(\"extension\");\n app1 = props.getProperty(\"app1\");\n app2 = props.getProperty(\"app2\");\n app3 = props.getProperty(\"app3\");\n app4 = props.getProperty(\"app4\");\n \n String app1name = props.getProperty(\"app1name\");\n String app2name = props.getProperty(\"app2name\");\n String app3name = props.getProperty(\"app3name\");\n String app4name = props.getProperty(\"app4name\");\n \n if(app1name != null) {\n jCheckBox1.setText(app1name);\n jCheckBox1.setSelected(true);\n }\n if(app2name != null) {\n jCheckBox2.setText(app2name);\n jCheckBox2.setSelected(true);\n }\n if(app3name != null) {\n jCheckBox3.setText(app3name);\n jCheckBox3.setSelected(true);\n }\n if(app4name != null) {\n jCheckBox4.setText(app4name);\n jCheckBox4.setSelected(true);\n }\n \n String league1 = props.getProperty(\"league1\");\n String league2 = props.getProperty(\"league2\");\n String league3 = props.getProperty(\"league3\");\n String league4 = props.getProperty(\"league4\");\n String league5 = props.getProperty(\"league5\");\n \n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { league1, league2, league3, league4, league5 }));\n jLabel4.setText(props.getProperty(\"startall\"));\n jButton1.setText(props.getProperty(\"confirm\"));\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 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 launchFrame() {\n \n initComponents();\n \n }", "public static void main(String[] args) {\n // creating a new window with specified window size\n new Acme.MainFrame(new ReflectingPond(), args, WINDOW_SIZE, WINDOW_SIZE);\n }", "public DemoScreenControllerMasterApp(String[] args) {\r\n\t\t// transfer args to start the selected demo \r\n\t\t// via listener callback method \"tfStackReConnected()\" \r\n\t\t// => see end of this class\r\n\t\tthis.args = args;\r\n\t\t\r\n\r\n\t\t// Define Tinkerforge Stack (Listener)\r\n\t\tdemoTfStack = new DemoTfStackImpl(this);\r\n\r\n\t\t\r\n\t\t//Create connection and add listener\r\n\t\tnew TfConnectService(\"localhost\",4223, null, demoTfStack);\r\n\t\t\r\n\t\t// Define Clone LCD Connection\r\n\t\t// Connect will be processed after this stack is connected\r\n\t\tcloneHost = \"Tf-AU-EG-WZ\";\r\n\t\tclonePort = 4223;\r\n\t}", "public static void main(String[] args) {\n\t\t\n\t\tBasicComponentJFrame frame = new BasicComponentJFrame();\n\t\tframe.setSize(800, 600);\n\t\t\n\t\tframe.setComponents();\n\t\tGuiUtil.setLookNFeel(frame, GuiUtil.THEME_SWING);\n\t\tframe.setMenus();\n\t\tframe.eventReigst();\n\t\t\n\t\tframe.setVisible(true);\n\n\t}", "public static void main(String[] args){\r\n Panel panel = new Panel();\r\n Frame frame = new Frame();\r\n frame.setFrame(panel, \"Practica LDH\");\r\n }", "public static void main(String[] args) {\r\n\t\tinstallLnF();\r\n\t\tSwingUtilities.invokeLater(new Runnable() {\r\n\t\t\t@Override\r\n\t\t\tpublic void run() {\r\n\t\t\t\tOptionsFrame frame = new OptionsFrame(null);\r\n\t\t\t\tframe.setDefaultCloseOperation(OptionsFrame.EXIT_ON_CLOSE);\r\n\t\t\t\tframe.setTitle(\"OptionsFrame\");\r\n\t\t\t\tframe.getContentPane().setPreferredSize(frame.getSize());\r\n\t\t\t\tframe.pack();\r\n\t\t\t\tframe.setLocationRelativeTo(null);\r\n\t\t\t\tframe.setVisible(true);\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void buildAndDisplayFrame() {\n\n\t\tframe.add(panelForIncomingCall, BorderLayout.NORTH);\n\t\tpanelForIncomingCall.add(welcomeThenDisplayCallInfo);\n\n\t\tframe.add(backgroundPanel, BorderLayout.CENTER);\n\t\tbackgroundPanel.add(userInstructions);\n\t\tbackgroundPanel.add(startButton);\n\t\tbackgroundPanel.add(declineDisplay);\n\n\t\tframe.add(acceptDeclineBlockBottomPanel, BorderLayout.SOUTH);\n\t\tacceptDeclineBlockBottomPanel.add(acceptButton);\n\t\tacceptDeclineBlockBottomPanel.add(declineButton);\n\t\tacceptDeclineBlockBottomPanel.add(blockButton);\n\n\t\tframe.setSize(650, 700); // sizes frame to whatever we want\n\t\tframe.setLocationRelativeTo(null); // puts at center of screen\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tframe.setVisible(true);\n\t}", "public static void main(String[] args) {\n \n MyFrame myFrame = new MyFrame();\n \n }", "public void init() {\n f = new MenuFrame(\"DEMO Menu\");\n int width = Integer.parseInt(getParameter(\"width\"));\n int height = Integer.parseInt(getParameter(\"height\"));\n \n setSize(new Dimension(width, height));\n \n f.setSize(width, height);\n f.setVisible(true);\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 static void main(String[] args) {\n JFrame frame = new JFrame(\"App\");\n frame.setContentPane(new App().PanelMenu);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n frame.pack();\n frame.setVisible(true);\n }", "public static void main(String[] args) {\n\t\tAppFrame mf = new AppFrame();\n\t}", "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 Main() {\n //\n if (DEMO_MODE == false) {\n companySettings();\n }\n //\n initComponents();\n //\n if (DEMO_MODE) {\n prefil_demo_values();\n }\n //\n if (SHOW_AT_START) { // [2020-06-09]\n prefil_show_at_start_values();\n }\n //\n this.controller = new Controller(this, PROPS_MAIN);\n //\n initOther();\n buildComboList();\n buildObligatoryComboList();\n addJComboListeners();\n setFontJBoxesTitleBorders();\n //\n if (DEMO_MODE || (SHOW_AT_START && start_up_parameters_not_empty())) {\n demoAutoStart();\n }\n //\n if (COMPANY_NAME.equals(CONSTANTS.COMPANY_NAME_CEAT)) {\n //This because \"TEST NAME\" is not obligatory for CEAT and therefore i remove the \"*\" from \"TEST NAME*\"\n TitledBorder b = (TitledBorder) jPanel5.getBorder();\n Font f = b.getTitleFont();\n TitledBorder b_ = (TitledBorder) jPanel1.getBorder();\n b_.setTitleFont(f);\n b_.setTitle(\"TEST NAME\");\n //\n jComboBoxTestName.setEnabled(false);\n jComboBoxBatch.setEnabled(false);\n //\n jButton8.setVisible(false);\n jButton9.setVisible(false);\n //\n jButton_Prev_test_name.setEnabled(false);\n jButton_Next_test_name.setEnabled(false);\n //\n Font currentFont = jComboBoxOrder.getFont();\n Font newFont = currentFont.deriveFont(currentFont.getSize() * 0.75F);\n jComboBoxOrder.setFont(newFont);\n //\n }\n //\n hideTemporaryUntilFixed();\n //\n }", "public static void main(String[]args){\n FortuneTellerFrame fortuneTellerFrame = new FortuneTellerFrame();\n }", "public MainFrame() {\n initComponents();\n\n mAlmondUI.addWindowWatcher(this);\n mAlmondUI.initoptions();\n\n initActions();\n init();\n\n if (IS_MAC) {\n initMac();\n }\n\n initMenus();\n mActionManager.setEnabledDocumentActions(false);\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 }", "private void buildGui() {\n nifty = screen.getNifty();\n nifty.setIgnoreKeyboardEvents(true);\n nifty.loadStyleFile(\"nifty-default-styles.xml\");\n nifty.loadControlFile(\"nifty-default-controls.xml\");\n nifty.addScreen(\"Option_Screen\", new ScreenBuilder(\"Options_Screen\") {\n {\n controller((ScreenController) app);\n layer(new LayerBuilder(\"background\") {\n {\n childLayoutCenter();;\n font(\"Interface/Fonts/zombie.fnt\");\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n childLayoutOverlay();\n font(\"Interface/Fonts/zombie.fnt\");\n\n panel(new PanelBuilder(\"Switch_Options\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n interactOnClick(\"goTo(Display_Settings)\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Graphics_Settings\", new ScreenBuilder(\"Graphics_Extension\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n panel(new PanelBuilder(\"Post_Water_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Post Water\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Post_Water_Button\") {\n {\n marginLeft(\"110%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Reflections_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Reflections\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Reflections_Button\") {\n {\n marginLeft(\"45%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Ripples_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Ripples\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Ripples_Button\") {\n {\n marginLeft(\"75%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Specular_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Specular\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Specular_Button\") {\n {\n marginLeft(\"59%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Water_Foam_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Water Foam\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Water_Foam_Button\") {\n {\n marginLeft(\"93%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Sky_Dome_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Sky Dome\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Sky_Dome_Button\") {\n {\n marginLeft(\"128%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Star_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Star Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Star_Motion_Button\") {\n {\n marginLeft(\"106%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Cloud_Motion_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Cloud Motion\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n color(\"#ff0000\");\n }\n });\n control(new CheckboxBuilder(\"Cloud_Motion_Button\") {\n {\n marginLeft(\"87%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Bloom_Light_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Bloom Lighting\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Bloom_Light_Button\") {\n {\n marginLeft(\"70%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Light_Scatter_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"5%\");\n control(new LabelBuilder(\"\", \"Light Scatter\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new CheckboxBuilder(\"Light_Scatter_Button\") {\n {\n marginLeft(\"90%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutHorizontal();\n marginLeft(\"43%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"applySettings()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Display_Screen\", new ScreenBuilder(\"Display_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Sound_Settings)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"Resolution_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"40%\");\n marginTop(\"15%\");\n control(new LabelBuilder(\"\", \"Set Resolution\") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ListBoxBuilder(\"Resolution_Opts\") {\n {\n marginLeft(\"4%\");\n marginBottom(\"10%\");\n displayItems(1);\n showVerticalScrollbar();\n hideHorizontalScrollbar();\n selectionModeSingle();\n width(\"10%\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"displayApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n }\n }.build(nifty));\n nifty.addScreen(\"Sound Settings\", new ScreenBuilder(\"#Sound_Settings\") {\n {\n controller(settingsControl);\n layer(new LayerBuilder(\"background\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutCenter();;\n backgroundImage(\"Backgrounds/ZOMBIE1.jpg\");\n visibleToMouse(true);\n }\n });\n layer(new LayerBuilder(\"foreground\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutOverlay();\n panel(new PanelBuilder(\"Settings\") {\n {\n font(\"Interface/Fonts/zombie.fnt\");\n childLayoutVertical();\n control(new ButtonBuilder(\"\", \"Display Settings\") {\n {\n marginTop(\"42%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Display_Settings)\");\n }\n });\n /*control(new ButtonBuilder(\"\", \"Graphics Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Graphics_Extension)\");\n }\n });*/\n control(new ButtonBuilder(\"\", \"Sound Settings\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new ButtonBuilder(\"\", \"Leaderboard\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(Leader_Board)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Logout\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"goTo(#Login_Screen)\");\n }\n });\n control(new ButtonBuilder(\"\", \"Quit Game\") {\n {\n marginTop(\"2%\");\n marginLeft(\"5%\");\n height(\"50px\");\n width(\"150px\");\n align(ElementBuilder.Align.Left);\n font(\"Interface/Fonts/zombie.fnt\");\n interactOnClick(\"quitGame()\");\n }\n });\n }\n });\n }\n });\n layer(new LayerBuilder(\"Settings\") {\n {\n childLayoutVertical();\n panel(new PanelBuilder(\"#Master_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"35%\");\n control(new LabelBuilder(\"\", \"Master Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Master_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Ambient_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Ambient Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Ambient_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Combat_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Combat Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Combat_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Dialog_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Dialog Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Dialog_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"#Footsteps_Volume_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"30%\");\n marginTop(\"8%\");\n control(new LabelBuilder(\"\", \"Footsteps Volume : \") {\n {\n color(\"#ff0000\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n control(new SliderBuilder(\"#Footsteps_Volume\", false) {\n {\n marginLeft(\"20px\");\n min(0);\n max(100);\n width(\"25%\");\n }\n });\n }\n });\n panel(new PanelBuilder(\"Apply_Panel\") {\n {\n childLayoutHorizontal();\n marginLeft(\"45%\");\n marginTop(\"5%\");\n control(new ButtonBuilder(\"#Apply_Button\", \"Apply Settings\") {\n {\n interactOnClick(\"soundApply()\");\n font(\"Interface/Fonts/zombie.fnt\");\n }\n });\n }\n });\n }\n });\n\n }\n }.build(nifty));\n }", "public void viewOptions()\r\n {\r\n SetupScreen setupScreen = new SetupScreen();\r\n pushScreen(setupScreen);\r\n }", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tGraphicsDevice gd = GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice();\n\t\tint width = gd.getDisplayMode().getWidth();\n\t\tint height = gd.getDisplayMode().getHeight();\n\t\tframe.setBounds(width / 3, height / 3, 461, 321);\n\t\tframe.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\tframe.getContentPane().setLayout(null);\n\n\t\ttextField = new JTextField();\n\t\ttextField.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString text = textField.getText();\n\t\t\t\ttextField.setText(\"\");\n\t\t\t\tif (text.trim().equalsIgnoreCase(\"devwindow\")) {\n\n\t\t\t\t\tDevWindow window = new DevWindow();\n\t\t\t\t\twindow.frame.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\ttextField.setBounds(10, 240, 430, 31);\n\t\tframe.getContentPane().add(textField);\n\n\t\tJLabel label = new JLabel();\n\t\tlabel.setText(\"Command Line (Dev Use Only)\");\n\t\tlabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel.setBounds(10, 220, 204, 17);\n\t\tframe.getContentPane().add(label);\n\n\t\tOptionsController oc = new OptionsController();\n\n\t\tJSlider slider = new JSlider();\n\t\tslider.setBounds(10, 113, 430, 31);\n\t\tslider.setPaintTicks(true);\n\t\tslider.setMaximum(600);\n\t\tslider.setMinimum(1);\n\t\tslider.setValue(Integer.parseInt(oc.getProp().getProperty(\"refreshRate\")));\n\t\tframe.getContentPane().add(slider);\n\n\t\tJLabel lblBackgroundRefreshRate = new JLabel();\n\t\tlblBackgroundRefreshRate.setText(\"Background Refresh Rate\");\n\t\tlblBackgroundRefreshRate.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblBackgroundRefreshRate.setBounds(10, 91, 158, 17);\n\t\tframe.getContentPane().add(lblBackgroundRefreshRate);\n\n\t\tJSlider slider_1 = new JSlider();\n\t\tslider_1.setToolTipText(\"\");\n\t\tslider_1.setBounds(10, 30, 430, 33);\n\t\tslider_1.setMaximum(300);\n\t\tslider_1.setMinimum(1);\n\t\tslider_1.setValue(Integer.parseInt(oc.getProp().getProperty(\"messageFrequency\")));\n\t\tframe.getContentPane().add(slider_1);\n\n\t\tJLabel label_2 = new JLabel();\n\t\tlabel_2.setText(\"New Message Frequency\");\n\t\tlabel_2.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_2.setBounds(10, 11, 158, 17);\n\t\tframe.getContentPane().add(label_2);\n\n\t\tJLabel lblNewLabel = new JLabel(\"New label\");\n\t\tlblNewLabel.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlblNewLabel.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlblNewLabel.setBounds(317, 54, 123, 25);\n\t\tlblNewLabel.setText(oc.getProp().getProperty(\"messageFrequency\") + \" minute(s)\");\n\n\t\tlblNewLabel.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent arg0) {\n\n\t\t\t\toc.getProp().setProperty(\"messageFrequency\", lblNewLabel.getText().substring(0, 3).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(lblNewLabel);\n\n\t\tJLabel label_3 = new JLabel(\"115 second(s) or 1.92 minute(s)\");\n\t\tlabel_3.setHorizontalAlignment(SwingConstants.RIGHT);\n\t\tlabel_3.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 17));\n\t\tlabel_3.setBounds(291, 155, 149, 25);\n\t\tframe.getContentPane().add(label_3);\n\n\t\tJLabel label_1 = new JLabel(oc.getProp().getProperty(\"refreshRate\"));\n\t\tlabel_1.setHorizontalAlignment(SwingConstants.RIGHT);\n\n\t\tlabel_1.setFont(new Font(\"Microsoft Yi Baiti\", Font.BOLD, 17));\n\t\tlabel_1.setBounds(291, 135, 149, 25);\n\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\tlabel_1.setText(oc.getProp().getProperty(\"refreshRate\") + \" second(s)\");\n\t\tlabel_3.setText(\n\t\t\t\tdf.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0) + \" minute(s)\");\n\n\t\tlabel_1.addPropertyChangeListener(new PropertyChangeListener() {\n\t\t\tpublic void propertyChange(PropertyChangeEvent evt) {\n\n\t\t\t\toc.getProp().setProperty(\"refreshRate\", label_1.getText().substring(0, 4).trim());\n\t\t\t\toc.saveProperties();\n\t\t\t}\n\t\t});\n\n\t\tframe.getContentPane().add(label_1);\n\n\t\tJCheckBox chckbxNewCheckBox = new JCheckBox(\"Start On Start Up\");\n\t\tchckbxNewCheckBox.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t\tboolean selected = chckbxNewCheckBox.isSelected();\n\n\t\t\t\toc.getProp().setProperty(\"startOnStartUp\", Boolean.toString(selected));\n\t\t\t\toc.saveProperties();\n\n\t\t\t\tif (selected) {\n\n\t\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\t\tStartUp.create();\n\t\t\t\t\t}\n\t\t\t\t} else {\n\n\t\t\t\t\tStartUp.delete();\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tchckbxNewCheckBox.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tchckbxNewCheckBox.setBounds(317, 186, 123, 23);\n\t\tchckbxNewCheckBox.setSelected(Boolean.valueOf(oc.getProp().getProperty(\"startOnStartUp\")));\n\t\tframe.getContentPane().add(chckbxNewCheckBox);\n\n\t\tJButton btnNewButton = new JButton(\"Exit Without Refresh\");\n\t\tbtnNewButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbtnNewButton.setBounds(10, 156, 143, 23);\n\t\tframe.getContentPane().add(btnNewButton);\n\n\t\tJButton btnNewButton_1 = new JButton(\"Help\");\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\tInstructionWindow iWindow = new InstructionWindow();\n\t\t\t\tiWindow.setVisible(true);\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setBounds(201, 186, 65, 23);\n\t\tframe.getContentPane().add(btnNewButton_1);\n\n\t\tJButton button = new JButton(\"Refresh Offline MBank\");\n\t\tbutton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\n\t\t\t\t@SuppressWarnings(\"unused\")\n\t\t\t\tConnection conn = null;\n\t\t\t\tDatabaseController dbc = DatabaseController.getDBController();\n\t\t\t\tString connectString = dbc.buildConnectionString();\n\n\t\t\t\ttry {\n\t\t\t\t\tconn = DriverManager.getConnection(connectString);\n\t\t\t\t\toc.getProp().setProperty(\"offlineMode\", \"false\");\n\t\t\t\t\toc.saveProperties();\n\t\t\t\t} catch (SQLException e) {\n\t\t\t\t\tStringBuffer buf = new StringBuffer();\n\t\t\t\t\tbuf.append(\"There was a problem with the following connection string: \");\n\t\t\t\t\tbuf.append(connectString);\n\t\t\t\t\tbuf.append(\"\\n\\nHere is the exceptio:\\n\");\n\t\t\t\t\tbuf.append(e.toString());\n\t\t\t\t\tSystem.out.println(buf.toString());\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime()\n\t\t\t\t\t\t\t\t.exec(\"javaw -jar \\\"\" + System.getProperty(\"user.home\") + File.separator + \"Documents\"\n\t\t\t\t\t\t\t\t\t\t+ File.separator + \"SevMessageConfig\" + File.separator\n\t\t\t\t\t\t\t\t\t\t+ \"NowOfflineWindow.jar\\\"\");\n\t\t\t\t\t} catch (IOException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\ttry {\n\t\t\t\t\t\tThread.sleep((long) 3000.0);\n\t\t\t\t\t} catch (InterruptedException e2) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te2.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\t\t\t\tFile file = new File(System.getProperty(\"user.home\") + File.separator + \"Documents\" + File.separator\n\t\t\t\t\t\t+ \"SevMessageConfig\" + File.separator + \"offlineMessageBank.txt\");\n\t\t\t\tfile.delete();\n\n\t\t\t\tif (!StartUp.exists()) {\n\n\t\t\t\t\tStartUp.create();\n\t\t\t\t}\n\n\t\t\t}\n\t\t});\n\t\tbutton.setFont(new Font(\"Microsoft Yi Baiti\", Font.PLAIN, 15));\n\t\tbutton.setBounds(10, 186, 165, 23);\n\t\tframe.getContentPane().add(button);\n\n\t\tslider_1.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\n\t\t\t\tlblNewLabel.setText(Integer.toString(slider_1.getValue()) + \" minute(s)\");\n\t\t\t}\n\t\t});\n\n\t\tslider.addChangeListener(new ChangeListener() {\n\t\t\tpublic void stateChanged(ChangeEvent arg0) {\n\t\t\t\tDecimalFormat df = new DecimalFormat(\"#.##\");\n\t\t\t\tlabel_1.setText(Integer.toString(slider.getValue()) + \" second(s)\");\n\t\t\t\tlabel_3.setText(df.format(Long.parseLong(oc.getProp().getProperty(\"refreshRate\").trim()) / 60.0)\n\t\t\t\t\t\t+ \" minute(s)\");\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args) {\n ConfigUSettable configU = new ConfigUSettable();\r\n configU.ToStringSetUsingClassLinks(true);\r\n\r\n RunLayouterDemoSwingForm runner = new RunLayouterDemoSwingForm(configU);\r\n\r\n //start inside the swing runner framework\r\n runner.run();\r\n\r\n }", "public static void main(String[] args) {\n dbCopyFrame frame = new dbCopyFrame(false);\n frame.pack();\n frame.setVisible(true);\n }", "protected void builder(String commandLine) {\n // Pass through the command line options from the current builder\n List passThroughArgs = env.getBuilderArgs();\n for (Iterator iterator = passThroughArgs.iterator(); iterator.hasNext();) {\n commandLine = (String)iterator.next() + \" \" + commandLine;\n }\n\n StringTokenizer st = new StringTokenizer(commandLine);\n final String[] args = new String[st.countTokens()];\n for (int i = 0; i != args.length; ++i) {\n args[i] = st.nextToken();\n }\n// String command = \"java -jar build.jar \" + commandLine;\n new Build().mainProgrammatic(args);\n }", "private void setupFrame()\n\t\t{\n\t\t\tthis.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\t\tthis.setResizable(false);\n\t\t\tthis.setSize(800, 600);\n\t\t\tthis.setTitle(\"SEKA Client\");\n\t\t\tthis.setContentPane(panel);\n\t\t\tthis.setVisible(true);\n\t\t}", "public static void main(String[] args) {\n\t\tFrame window= new Frame(); \n\t}", "public static void main(String[] args) {\r\n\t//1. Kernel Objekt initialisieren\r\n\tKernelZZZ objKernel;\r\n\ttry {\r\n\t\tobjKernel = new KernelZZZ(\"FGL\", \"01\", \"\", \"ZKernelConfigConfig_default.ini\",(String)null);\r\n\t\tLogZZZ objLog = objKernel.getLogObject();\r\n\t\r\n\t\t//Dieses bietet die Möglichkeit auf die Komponenten einer Applikation zuzugreifen (auch Module genannt)\r\n\t\t//String sModule = \"Kernel\";\r\n\t\tString sModule = \"JDXDataReader\";\r\n\t\r\n\t\t//Einige Test- /Protokollausgaben\t\t\t\t\t\r\n\t\t//System.out.println(\"Anzahl der Componenten im Parent-Panel: \" + panelSubSouth.getComponentCount());\r\n\t\tobjLog.WriteLineDate(\"Action Edit Config to perform on module: \" + sModule);\r\n\t\r\n\t\tDLGBOX4INIZZZ frameDLG = new DLGBOX4INIZZZ(objKernel, null);\r\n\t\r\n\t\t// !!! Diese section und dieses Modul muessen in der oben fuer die Kernel-Konfiguration angegebenen Datei stehen. \r\n\t\t// !!! Die konfigurationsdatei fuer dieses Modul muss vorhanden sein.\r\n\t\tString[] saParam = new String[2];\r\n\t\tsaParam[0]=\"JDX!01\";\r\n\t\tsaParam[1]=sModule;\r\n\t\tframeDLG.launch(saParam);\r\n\t\r\n\t} catch (ExceptionZZZ ez) {\r\n\t\tez.printStackTrace();\r\n\t}\r\n\t}", "public void buildGui() {\n\t}", "public void main(String[] args) {\n // TODO code application logic here\n MF= new MainFrame();\n }", "public EmulatorFrame() {\r\n\t\tsuper(\"Troyboy Chip8 Emulator\");\r\n\t\t\r\n\t\tsetNativeLAndF();\r\n\t\tinitComponents();\r\n\t\tinitMenubar();\r\n\t\tsetupLayout();\r\n\t\tinitFrame();\r\n\t\t//frame is now ready to run a game\r\n\t\t//running of any games must be started by loading a ROM\r\n\t}", "public OptionPanel(Main w) {\r\n\t\tthis.w = w;\r\n\t\tstartButton = new JButton();\r\n\t\texitButton = new JButton();\r\n\t\t\r\n\t}", "public static void main(String[] args) {\n JFrame frame = new JFrame(\"Testing MdxBuilderTree...\");\n MdxBuilderTree dst = new MdxBuilderTree(null, \"Sales\");\n frame.setContentPane(dst);\n frame.addWindowListener(new WindowAdapter() {\n public void windowClosing(WindowEvent e) {\n System.exit(0);\n }\n });\n\n frame.pack();\n frame.setVisible(true);\n }", "public void showOptions() {\n frame.showOptions();\n }", "public ProductVOSGetParmsFrame (String args[]) {\n\n try {\n ProductVOSGetParmsFrameActual(args);\n } catch(Exception e) {\n ec.processError(e, this.getClass().getName(), \"constructor\", \"\");\n } // try - catch\n\n }", "private JFrame buildWindow() {\n frame = WindowFactory.mainFrame()\n .title(\"VISNode\")\n .menu(VISNode.get().getActions().buildMenuBar())\n .size(1024, 768)\n .maximized()\n .interceptClose(() -> {\n new UserPreferencesPersistor().persist(model.getUserPreferences());\n int result = JOptionPane.showConfirmDialog(panel, Messages.get().singleMessage(\"app.closing\"), null, JOptionPane.YES_NO_OPTION);\n return result == JOptionPane.YES_OPTION;\n })\n .create((container) -> {\n panel = new MainPanel(model);\n container.add(panel);\n });\n return frame;\n }", "@Override\r\n\tpublic void build(final Component root, final Component currentComponent) {\n\t\tframe = new JFrame(ctx.getString(TITLE.getStr()));\r\n\t\tframe.getContentPane().setBackground(Color.decode(ctx.getString(BG_COLOR.getStr())));\r\n\t\tframe.setPreferredSize(new Dimension(ctx.getInt(WIDTH.getStr()), ctx.getInt(HEIGHT.getStr())));\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\t// Spy framework's status bar.\r\n\t\tstatusBar = new SpyStatusBar(ctx);\r\n\t\tframe.getContentPane().add(statusBar.getStatusBarPanel(), BorderLayout.SOUTH);\r\n\r\n\t\t// Spy framework's menu.\r\n\t\tSpyMenu spyMenu = new SpyMenu(statusBar);\r\n\t\tframe.setJMenuBar(spyMenu.getMenuBar());\r\n\r\n\t\t// Spy framework's toolbar.\r\n\t\tSpyToolBar toolBar = new SpyToolBar(statusBar);\r\n\t\tframe.getContentPane().add(toolBar.getToolBar(), BorderLayout.NORTH);\r\n\r\n\t\t// Spy framework's tree panel.\r\n\t\tSpyTreePanel treePanel = new SpyTreePanel();\r\n\t\tframe.getContentPane().add(treePanel.getTreePanel(), BorderLayout.WEST);\r\n\r\n\t\t// Spy framework's properties panel.\r\n\t\tSpyPropertiesPanel propertiesPanel = new SpyPropertiesPanel();\r\n\t\tframe.getContentPane().add(propertiesPanel.getPropertiesPanel(), BorderLayout.CENTER);\r\n\r\n\t\tJPanel fut = new JPanel();\r\n\t\tfut.setBackground(Color.decode(\"#CCE0FF\"));\r\n\t\tframe.getContentPane().add(fut, BorderLayout.EAST);\r\n\r\n\t\t// Spy framework's settings for display.\r\n\t\tframe.setExtendedState(java.awt.Frame.MAXIMIZED_BOTH);\r\n\t\tframe.pack();\r\n\t\tframe.setVisible(true);\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\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 static void main(String[] args) {\n\t\tnew OpenDemo();\r\n\t}", "private void prepareFrame() {\n logger.debug(\"prepareFrame : enter\");\n\n // initialize the actions :\n registerActions();\n final Container container;\n\n if (Bootstrapper.isHeadless()) {\n container = null;\n } else {\n final JFrame frame = new JFrame(ApplicationDescription.getInstance().getProgramName());\n\n // handle frame icon\n final Image jmmcFavImage = ResourceImage.JMMC_FAVICON.icon().getImage();\n frame.setIconImage(jmmcFavImage);\n\n // get screen size to adjust minimum window size :\n final Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n logger.info(\"screen size = {} x {}\", screenSize.getWidth(), screenSize.getHeight());\n // hack for screens smaller than 1024x768 screens:\n final int appWidth = 950;\n final int appHeightMin = (screenSize.getHeight() >= 850) ? 800 : 700;\n\n final Dimension dim = new Dimension(appWidth, appHeightMin);\n frame.setMinimumSize(dim);\n frame.addComponentListener(new ComponentResizeAdapter(dim));\n frame.setPreferredSize(INITIAL_DIMENSION);\n\n App.setFrame(frame);\n\n container = frame.getContentPane();\n }\n // init the main panel:\n createContent(container);\n\n StatusBar.show(\"application started.\");\n\n logger.debug(\"prepareFrame : exit\");\n }", "public static void main(String[] args) {\n\t\tJFrame frame = new JFrame();\n\t\tframe.getContentPane().add(new GMovieCompositeSwing());\n\t\tframe.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "public frame() {\r\n\t\tadd(createMainPanel());\r\n\t\tsetTitle(\"Lunch Date\");\r\n\t\tsetSize(FRAME_WIDTH, FRAME_HEIGHT);\r\n\r\n\t}", "public static void main(String args[])\r\n\t{\n\t\tSwingFrameWithMenus frame = new SwingFrameWithMenus(); \r\n\t}", "public static void main(String[] args)\n\t{\n\t\tgo = new GUI();\n\t\tgo.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tgo.setExtendedState(JFrame.MAXIMIZED_BOTH); // Method to make auto-full screen\n\n\t\tgo.setVisible(true); // Basic frame stuff\n\t\tgo.init();\n\t\tr = new Runner();\n\t}", "protected void buildAppWindow(PApplet p) {\n\t\tP.renderer = Config.getString(AppSettings.RENDERER, P.P3D);\n\t\tif(P.isOpenGL()) PJOGL.profile = Config.getInt(AppSettings.PJOGL_PROFILE, 4);\n\t\tif(Config.getBoolean(AppSettings.SPAN_SCREENS, false) == true) {\n\t\t\t// run fullscreen across all screens\n\t\t\tp.fullScreen(P.renderer, P.SPAN);\n\t\t} else if(Config.getBoolean(AppSettings.FULLSCREEN, false) == true) {\n\t\t\t// run fullscreen - default to screen #1 unless another is specified\n\t\t\tif(Config.getInt(AppSettings.FULLSCREEN_SCREEN_NUMBER, 1) != 1) P.error(\"AppSettings.FULLSCREEN_SCREEN_NUMBER is busted if not screen #1. Use AppSettings.SCREEN_X, etc.\");\n\t\t\tp.fullScreen(P.renderer); // , Config.getInt(AppSettings.FULLSCREEN_SCREEN_NUMBER, 1)\n\t\t} else if(Config.getBoolean(AppSettings.FILLS_SCREEN, false) == true) {\n\t\t\t// fills the screen, but not fullscreen\n\t\t\tp.size(p.displayWidth, p.displayHeight, P.renderer);\n\t\t} else {\n\t\t\tif(P.renderer == PRenderers.PDF) {\n\t\t\t\t// set headless pdf output file\n\t\t\t\tp.size(Config.getInt(AppSettings.WIDTH, 800),Config.getInt(AppSettings.HEIGHT, 600), P.renderer, Config.getString(AppSettings.PDF_RENDERER_OUTPUT_FILE, \"output/output.pdf\"));\n\t\t\t} else {\n\t\t\t\t// run normal P3D renderer\n\t\t\t\tp.size(Config.getInt(AppSettings.WIDTH, 800),Config.getInt(AppSettings.HEIGHT, 600), P.renderer);\n\t\t\t}\n\t\t}\n\t\t\n\t\t// SMOOTHING\n\t\tif(Config.getInt(AppSettings.SMOOTHING, AppSettings.SMOOTH_HIGH) == 0) {\n\t\t\tp.noSmooth();\n\t\t} else {\n\t\t\tp.smooth(Config.getInt(AppSettings.SMOOTHING, AppSettings.SMOOTH_HIGH));\t\n\t\t}\n\t\t\n\t\t// SET APP ICON\n\t\tString appIconFile = Config.getString(AppSettings.APP_ICON, \"haxademic/images/haxademic-logo.png\");\n\t\tString iconPath = FileUtil.getPath(appIconFile);\n\t\tif(FileUtil.fileExists(iconPath)) {\n\t\t\tPJOGL.setIcon(iconPath);\n\t\t}\n\t\t\n\t\t// DO WE DARE TRY THE RETINA SETTING?\n\t\tif(Config.getBoolean(AppSettings.RETINA, false) == true) {\n\t\t\tif(p.displayDensity() == 2) {\n\t\t\t\tp.pixelDensity(2);\n\t\t\t} else {\n\t\t\t\tP.error(\"Error: Attempting to set retina drawing on a non-retina screen\");\n\t\t\t}\n\t\t}\t\n\t}", "public dbCopyFrame(boolean basic) {\n initComponents();\n\n setTitle(VERSION);\n\n if(basic) {\n hideAdvanceFeatures();\n }\n }", "public static void main(String[] args)\n {\n JFrame frame = new JFrame();\n \n frame.setSize(400,400);\n frame.setTitle(\"A Target\");\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n \n TargetComponent component = new TargetComponent();\n frame.add(component);\n \n frame.setVisible(true);\n }", "public static void main(String[] pArgs) {\n System.setProperty(\"apple.laf.useScreenMenuBar\", \"true\");\n System.setProperty(\"com.apple.eawt.CocoaComponent.CompatibilityMode\", \"false\");\n\n SwingUtilities.invokeLater(new Runnable() {\n public void run() {\n NSAutoreleasePool.new_();\n final JFrame frame = new JFrame(TITLE);\n// frame.getRootPane().putClientProperty(\"apple.awt.brushMetalLook\", Boolean.TRUE);\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n// frame.setUndecorated(true);\n// frame.getRootPane().setBorder(new TestPaletteWindow.PaletteWindowBorder(new TestPaletteWindow.PaletteTitleBar() {\n// {\n// if (\"!Aqua\".equals(UIManager.getLookAndFeel().getID())) {\n// titleLabel.putClientProperty(\"JComponent.sizeVariant\", null);\n// }\n//\n// Font font = titleLabel.getFont();\n// titleLabel.setFont(font.deriveFont(font.getSize2D() * 1.2f));\n// }\n//\n// @Override\n// protected void paintComponent(Graphics gr) {\n// gr.setColor(new Color(0xD3E0F0));\n// gr.fillRect(0, 0, getWidth(), getHeight());\n//\n// gr.setColor(new Color(0xF0F5FA));\n// gr.fillRect(0, 0, getWidth(), 1);\n// gr.fillRect(0, 0, 1, getHeight());\n//\n// gr.setColor(new Color(0x8DB2E3));\n// gr.fillRect(1, getHeight() - 1, getWidth(), 1);\n// gr.fillRect(getWidth() - 1, 1, 1, getHeight());\n// }\n// }));\n\n final JWebView webView = new JWebView();\n\n final URLTextField addressField = new URLTextField(20);\n\n webView.addProgressListener(new ProgressListener() {\n public void titleReceived(WebView pView, String pTitle, WebFrame pFrame) {\n if (pFrame.equals(pView.mainFrame())) {\n frame.setTitle(pTitle + \" | \" + TITLE);\n }\n }\n\n public void loadingStarted(WebView pView, WebFrame pFrame) {\n if (pFrame.equals(pView.mainFrame())) {\n addressField.setInProgress(true);\n addressField.setIcon(null);\n frame.setTitle(TITLE);\n }\n }\n\n public void loadingCommitted(WebView pView, WebFrame pFrame) {\n // Them Google guys are probably right in this being a Good Idea (TM)\n if (pFrame.equals(pView.mainFrame())) {\n String url = pView.mainFrameURL();\n int index = url.indexOf(\"://\");\n int start = index < 0 ? 0 : index + 3;\n addressField.setText(url.substring(start, url.endsWith(\"/\") ? url.length() - 1 : url.length()));\n }\n }\n\n public void loadingFinished(WebView pView, WebFrame pFrame) {\n if (pFrame.equals(pView.mainFrame())) {\n addressField.setInProgress(false);\n }\n }\n\n @Override\n public void iconReceived(WebView view, Image icon, WebFrame frame) {\n addressField.setIcon(icon != null ? new ImageIcon(icon.getScaledInstance(-1, 16, Image.SCALE_SMOOTH)) : null);\n }\n });\n\n JComponent top = new JPanel(new BorderLayout());\n top.setOpaque(false);\n top.setBorder(\n BorderFactory.createCompoundBorder(\n new AbstractBorder() {\n static final int BORDER_HEIGHT = 1;\n @Override\n public Insets getBorderInsets(Component c) {\n return getBorderInsets(c, new Insets(0, 0, 0, 0));\n }\n\n @Override\n public Insets getBorderInsets(Component c, Insets insets) {\n insets.bottom = BORDER_HEIGHT;\n return insets;\n }\n\n @Override\n public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) {\n Window window = SwingUtilities.getWindowAncestor(c);\n g.setColor(window != null && window.isFocused() ? Color.DARK_GRAY : Color.GRAY);\n g.fillRect(0, height - BORDER_HEIGHT, width, BORDER_HEIGHT);\n }\n },\n BorderFactory.createEmptyBorder(0, 6, 2, 6)\n )\n );\n\n addressField.addActionListener(new AbstractAction() {\n public void actionPerformed(ActionEvent event) {\n JTextField textField = (JTextField) event.getSource();\n\n try {\n String url = textField.getText();\n URI uri = URI.create(url);\n\n if (uri.getScheme() == null) {\n uri = new URI(\"http\", url, null);\n }\n\n if (!(\"http\".equals(uri.getScheme()) || \"https\".equals(uri.getScheme()))) {\n throw new URISyntaxException(url, \"Only HTTP or HTTPS allowed\");\n }\n\n textField.setBackground(UIManager.getColor(\"TextField.background\")); \n\n webView.setMainFrameURL(uri);\n }\n catch (Exception e) {\n textField.setBackground(new Color(0xFFcccc));\n e.printStackTrace();\n }\n }\n });\n top.add(addressField);\n\n// frame.add(top, BorderLayout.NORTH);\n frame.add(webView, BorderLayout.CENTER);\n\n frame.pack();\n frame.setLocationRelativeTo(null);\n frame.setVisible(true);\n\n// webView.setMainFrameURL(URI.create(\"http://www.google.com/\"));\n// webView.setMainFrameURL(URI.create(\"http://developer.apple.com/library/mac/documentation/Cocoa/Reference/WebKit/Classes/WebView_Class/Reference/Reference.html#//apple_ref/doc/c_ref/WebView\"));\n// webView.setMainFrameURL(URI.create(\"http://agap07:8080/pes/\"));\n webView.setMainFrameURL(URI.create(\"http://agap07:8080/pesto/\"));\n }\n });\n }", "public static void main(String[] args) {\n\t\t\n\t\tFrame_1 frame1 = new Frame_1();\n//\t\tframe1.setTitle(\"lalaal\");\n\t\t\n\t\t\n\t\t\n\t}", "public static void main( String args[] )\n\t{\n\t\tmainFrame = getInstance();\n\t\tmainFrame.setVisible( true );\n\t\t\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 }", "public GuiMainFrame() {\n this(new ArrayBlockingQueue<String>(100), new OBORunnerConfiguration());\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 }", "public static void main(String[] args) {\n\t\tJFrame frame = new JFrame();\n\t\tframe.getContentPane().add(new BookAddMethodSelectionPanel());\n\t\tframe.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "public static void main (String args[]){\r\n\t\tCalculator s = new Calculator();\r\n\t\ts.launchFrame();\r\n\t}", "private void editArguments() {\n\t\tDialog d = new EditArgumentsDialog(creator.modpack.minecraft.arguments, frame, true);\n\t\td.setVisible(true);\n\t}", "public static void main(String[] args) {\n \n Frame2 frame=new Frame2();\n \n \n }", "private void createFrame() {\n System.out.println(\"Assembling \" + name + \" frame\");\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 static void main(String[] args) {\n new MainFrameClass();\n\n }", "public dbCopyFrame(ApplicationFrame mainFrame, boolean basic) {\n this.mainFrame = mainFrame;\n initComponents();\n\n setTitle(VERSION);\n\n sourceTextField.setText(\"-2\");\n useTracerCheckBox.setSelected(false);\n\n if(basic) {\n hideAdvanceFeatures();\n }\n }", "public static void main(String[] argv) {\r\n new BubbleGraphDemo(new BasicFrame(\"Bubble Graph Demo\"));\r\n }", "public static void main(String[] args) {\n Frame testFrame = new MyGUIProgram();\n testFrame.setVisible(true);\n \n }", "public static void main(String[] args) {\n\tArrayList<Dhb> dhb = new ArrayList<Dhb>();\n\tUtilities.load(dhb);\n\t\n\tProjectFrame gui = new ProjectFrame (dhb);\n\tgui.setVisible(true);\n\n\t}", "public SimulatorHelpDialog() {\n super((Frame)null, true);\n initComponents();\n initialize();\n }", "public static void main(String[] args) {\n JFrame frame = new JFrame(\"Offline Browser\");\n //Set content panel\n frame.setContentPane(new MainForm().jMainPanel);\n //Disallow changing form size\n frame.setResizable(false);\n //Pack\n frame.pack();\n //Set form to display in center of the screen\n frame.setLocationRelativeTo(null);\n //Set default close operation\n frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n //Set form to be visible\n frame.setVisible(true);\n }", "public static void main(String[] args) {\n\t\tJFrame frame = new JFrame();\n\t\tframe.getContentPane().add(new StartPanel());\n\t\tframe.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);\n\t\tframe.pack();\n\t\tframe.setVisible(true);\n\t}", "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\t\t SwingUtilities.invokeLater(new Runnable() {\r\n\r\n\t public void run() {\r\n\r\n\t \tCharacterBuilderInterface ex = new CharacterBuilderInterface();\r\n\t ex.setVisible(true);\r\n\t }\r\n\t });\r\n\t}", "public void buildGUI(){\n\n\t\tsetLayout(new BorderLayout());//Setting a borderlayout for the frame\n\t\toptionsPane.setBorder(BorderFactory.createLineBorder(Color.black));//This sets a border around the options panel\n\t\tadd(disclaimer, BorderLayout.SOUTH);//Adds the disclaimer panel to the frame\n\t\tadd(optionsPane, BorderLayout.LINE_START);//Adds the options panel to the frame\n\t\tadd(scrollbar);//Adds the scrollbar to the frame (contains the search frame)\n\t\toptionsPane.add(jpCmbBoxes, BorderLayout.NORTH);//Adds the combo boxes to the options pane\n\t\toptionsPane.add(pic, BorderLayout.SOUTH);//Adds the picture to the options pane\n\t\tdisclaimer.add(disclaim, BorderLayout.LINE_START);//Adds the disclaimer text to the disclaimer panel\n\t\t\n\t\t/*Sets borders around each of the combo boxes, buttons and the disclaimer text */\n\t\ttrackingRange.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tgenderBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tstageofLifeBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\ttagLocationBox.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchButton.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tdisclaimer.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\tsearchByName.setBorder(new EmptyBorder(10, 10, 10, 10));\n\t\t\n\t\tsearchResults.setLayout((new BoxLayout(searchResults, BoxLayout.PAGE_AXIS)));//Setting the layout for search results panel\n\t\tsearchResults.setBorder(BorderFactory.createLineBorder(Color.black));//Sets a border around the panel\n\t\t/*Adding components to the combo boxes panel */\n\t\tjpCmbBoxes.setLayout(new BoxLayout(jpCmbBoxes, BoxLayout.Y_AXIS));//Sets the layout for this panel\n\t\tjpCmbBoxes.add(subTitle);\n\t\tjpCmbBoxes.add(trackingRangeLabel);\n\t\tjpCmbBoxes.add(trackingRange);\n\t\tjpCmbBoxes.add(genderLabel);\n\t\tjpCmbBoxes.add(genderBox);\n\t\tjpCmbBoxes.add(stageOfLifeLabel);\n\t\tjpCmbBoxes.add(stageofLifeBox);\n\t\tjpCmbBoxes.add(tagLocationLabel);\n\t\tjpCmbBoxes.add(tagLocationBox);\n\t\tjpCmbBoxes.add(searchButton);\n\t\tjpCmbBoxes.add(searchByName);\n\t\t\n\t\ttry {//Importing the image for this panel\n\t\t\tsharkImage = ImageIO.read(new File(\"source/images/shark2.png\"));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tJLabel image = new JLabel(new ImageIcon(sharkImage));//Creating a label and adding the image to the label\n\t\tpic.add(image);//adding the label to the panel\n\t}", "public static void main(String[] args) {\n BasicConfigurator.configure();\n // note: running mode starts as a result of finishing building mode\n BuildingWindow buildingWindow = new BuildingWindow(\"Game Build\");\n buildingWindow.start();\n }", "public TestGeneratorGui(boolean create, JFrame frame, JTabbedPane tabbedPane) {\n\t\tthis.create = create;\n\t\ttutorControlFrame = frame;\n\t\ttutorControl = tabbedPane;\n\t}", "public ServerOptions( final Frame mainFrame ) {\r\n super( mainFrame );\r\n }", "public static void main(String[] args) {\n // Create the GUI application and then start it's main routine\n \tfinal FilterToolGuiOpenCv frame = new StaticView2016();\n frame.main();\n }", "public RunFrame(MainFrame mainFrame) {\n\tthis.mainFrame = mainFrame;\n\tmainFrame.addScriptEventListener(scrEvtLis);\n\tsetAlwaysOnTop(true);\n setFocusable(false);\n setLocationByPlatform(true);\n\tsetLayout(new GridBagLayout());\n\tsetUndecorated(true);\n\tsetTitle(\"JUltima Toolbar\");\n\n\taddMouseListener(this);\n\taddMouseMotionListener(this);\n }", "public WhereIsAppCreator(JFrame frame) {\n this.frame = frame;\n initComponents();\n }", "public DriftSwing() {\n initComponents();\n \n // Create an invisible options dialog to initialize options\n options = new OptionsDialog(this);\n }", "public MainFrame() {\n super(\"Classic Crypto Tools\");\n initComponents();\n this.setResizable(false);\n plainOutputButton.setSelected(true);\n }", "public static void main(String[] args) {\n boolean useBlackAndWhite = false;\n for (int i = 0; i < args.length; i++) {\n //System.out.println(\"args[\" + i + \"] = \" + args[i]);\n if (args[i].equals(\"-b\")) {\n System.out.println(\"Use Black And White\");\n useBlackAndWhite = true;\n }\n }\n new MainFrame(new EnvironmentExplorer(true, useBlackAndWhite), 950, 600);\n }", "public static void main(String[] args) {\r\n \r\n CreateRandomDormFile frame = new CreateRandomDormFile();\r\n final int WIDTH = 300;\r\n final int HEIGHT = 300;\r\n frame.setSize(WIDTH, HEIGHT);\r\n }", "public static void main (String[] args) {\n JDialog d = new JDialog();\n d.getContentPane().setLayout (new java.awt.BorderLayout ());\n FilterConfigPanel jb = new FilterConfigPanel();\n d.getContentPane().add (jb, java.awt.BorderLayout.CENTER);\n d.setSize(640, 600);\n d.setLocation (20,20);\n d.show();\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 }", "public FrameDesign() {\n initComponents();\n }", "public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tFrame app = new Frame(\"Santa on Christmas Eve\"); \n\t\t\t}\n\t\t}\n\t\t);\n\t}", "Frame createFrame();", "public void execute() {\n try {\n final DemoManagerWindow window = new DemoManagerWindow();\n window.setResizable(false);\n window.setDemoManager(this);\n window.setDemoProvider(this);\n window.setVisibleAndWait();\n } catch (final Throwable t) {\n throw new BrowserException(\"\", t);\n }\n }", "@Override\n protected JXFrame createXFrame() {\n return new JXDemoFrame();\n }", "protected MenuBarView createMenuBuilder(Main mainFrameUtil) {\r\n return new MenuBarView(mainFrameUtil);\r\n }", "private void setupFrame()\n\t{\n\t\tthis.setContentPane(botPanel);\n\t\tthis.setSize(800,700);\n\t\tthis.setTitle(\"- Chatbot v.2.1 -\");\n\t\tthis.setResizable(true);\n\t\tthis.setVisible(true);\n\t}", "public static void main(String[] args) {\n\t\tSwingUtilities.invokeLater(new Runnable() {\n\t\t\tpublic void run() {\n\t\t\t\tWebcamPuzzle frame = new WebcamPuzzle();\n\t\t\t}\n\t\t});\n\t}", "public static void main(String[] args) {\n new GameJFrame();\n // new DigitalWatch();\n }", "private void createFrame(){\n System.out.println(\"Assembling \" + name + \" frame.\");\n }" ]
[ "0.59651756", "0.594852", "0.5894489", "0.57394254", "0.5720989", "0.5660816", "0.5554108", "0.55345666", "0.55187476", "0.54638535", "0.54221106", "0.5414989", "0.5390484", "0.53721434", "0.53712565", "0.53351593", "0.5324836", "0.5292056", "0.5290609", "0.5289561", "0.52890265", "0.5280948", "0.524909", "0.524445", "0.5237386", "0.52297443", "0.5208544", "0.5201409", "0.5182154", "0.5174493", "0.51655906", "0.51620764", "0.5152736", "0.5148639", "0.51308745", "0.5111586", "0.5111226", "0.50997007", "0.5092164", "0.509147", "0.50829923", "0.5080352", "0.5071945", "0.50649655", "0.50567", "0.5046907", "0.5045385", "0.504345", "0.5041102", "0.50400496", "0.5037567", "0.5035735", "0.5029474", "0.50290245", "0.502098", "0.50166315", "0.5013314", "0.5000876", "0.49922076", "0.4991464", "0.4987392", "0.49839276", "0.49743432", "0.4974257", "0.49739462", "0.4972139", "0.4970596", "0.49700677", "0.49678972", "0.49668783", "0.49646664", "0.4962977", "0.49626243", "0.4956167", "0.49558836", "0.49552843", "0.4951359", "0.49505562", "0.49489272", "0.49469623", "0.49451628", "0.49380696", "0.49367708", "0.49321955", "0.4931575", "0.4922728", "0.49207333", "0.49152467", "0.49136308", "0.49124676", "0.4907878", "0.4906381", "0.49032986", "0.48989412", "0.4898444", "0.4893135", "0.48916093", "0.4889221", "0.488814", "0.48819545" ]
0.5209697
26
Creates and returns a builder that builds the menu. This method is overriden by the full JGoodies Looks Demo to use a more sophisticated menu builder that uses the JGoodies UI Framework.
protected MenuBarView createMenuBuilder(Main mainFrameUtil) { return new MenuBarView(mainFrameUtil); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public Menu createToolsMenu();", "private static JMenuBar menuMaker(){\n final JMenuBar menuBar = new JMenuBar();\n final JMenu menu = new JMenu(\"App\");\n menuBar.add(menu);\n menu.addSeparator();\n final JMenuItem menuItem;\n (menuItem = new JMenuItem(\"Exit\", 88)).addActionListener(p0 -> System.exit(0));\n menu.add(menuItem);\n final JMenu menu2;\n (menu2 = new JMenu(\"Item\")).setMnemonic(73);\n menuBar.add(menu2);\n menu2.addSeparator();\n final JMenu menu3 = new JMenu(\"Selected\");\n menu2.add(menu3);\n menu3.addSeparator();\n\n return menuBar;\n }", "public Menu createViewMenu();", "private void buildMenu() {\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n\n JMenu fileMenu = new JMenu(\"File\");\n fileMenu.addMenuListener(this);\n\n JMenuItem openItem = new JMenuItem(\"Open\");\n openItem.setEnabled(false);\n JMenuItem newItem = new JMenuItem(\"New\");\n newItem.setEnabled(false);\n saveItem = new JMenuItem(\"Save\");\n saveItem.setEnabled(false);\n saveAsItem = new JMenuItem(\"Save As\");\n saveAsItem.setEnabled(false);\n reloadCalItem = new JMenuItem(RELOAD_CAL);\n exitItem = new JMenuItem(EXIT);\n\n mbar.add(makeMenu(fileMenu, new Object[]{newItem, openItem, null,\n reloadCalItem, null,\n saveItem, saveAsItem, null, exitItem}, this));\n\n JMenu viewMenu = new JMenu(\"View\");\n mbar.add(viewMenu);\n JMenuItem columnItem = new JMenuItem(COLUMNS);\n columnItem.addActionListener(this);\n JMenuItem logItem = new JMenuItem(LOG);\n logItem.addActionListener(this);\n JMenu satMenu = new JMenu(\"Satellite Image\");\n JMenuItem irItem = new JMenuItem(INFRA_RED);\n irItem.addActionListener(this);\n JMenuItem wvItem = new JMenuItem(WATER_VAPOUR);\n wvItem.addActionListener(this);\n satMenu.add(irItem);\n satMenu.add(wvItem);\n viewMenu.add(columnItem);\n viewMenu.add(logItem);\n viewMenu.add(satMenu);\n\n observability = new JCheckBoxMenuItem(\"Observability\", true);\n observability.setToolTipText(\"Check that the source is observable.\");\n remaining = new JCheckBoxMenuItem(\"Remaining\", true);\n remaining.setToolTipText(\n \"Check that the MSB has repeats remaining to be observed.\");\n allocation = new JCheckBoxMenuItem(\"Allocation\", true);\n allocation.setToolTipText(\n \"Check that the project still has sufficient time allocated.\");\n\n String ZOA = System.getProperty(\"ZOA\", \"true\");\n boolean tickZOA = true;\n if (\"false\".equalsIgnoreCase(ZOA)) {\n tickZOA = false;\n }\n\n zoneOfAvoidance = new JCheckBoxMenuItem(\"Zone of Avoidance\", tickZOA);\n localQuerytool.setZoneOfAvoidanceConstraint(!tickZOA);\n\n disableAll = new JCheckBoxMenuItem(\"Disable All\", false);\n JMenuItem cutItem = new JMenuItem(\"Cut\",\n new ImageIcon(ClassLoader.getSystemResource(\"cut.gif\")));\n cutItem.setEnabled(false);\n JMenuItem copyItem = new JMenuItem(\"Copy\",\n new ImageIcon(ClassLoader.getSystemResource(\"copy.gif\")));\n copyItem.setEnabled(false);\n JMenuItem pasteItem = new JMenuItem(\"Paste\",\n new ImageIcon(ClassLoader.getSystemResource(\"paste.gif\")));\n pasteItem.setEnabled(false);\n\n mbar.add(makeMenu(\"Edit\",\n new Object[]{\n cutItem,\n copyItem,\n pasteItem,\n null,\n makeMenu(\"Constraints\", new Object[]{observability,\n remaining, allocation, zoneOfAvoidance, null,\n disableAll}, this)}, this));\n\n mbar.add(SampClient.getInstance().buildMenu(this, sorter, table));\n\n JMenu helpMenu = new JMenu(\"Help\");\n helpMenu.setMnemonic('H');\n\n mbar.add(makeMenu(helpMenu, new Object[]{new JMenuItem(INDEX, 'I'),\n new JMenuItem(ABOUT, 'A')}, this));\n\n menuBuilt = true;\n }", "public JMTMenuBar createMenu() {\r\n \t\tJMTMenuBar menu = new JMTMenuBar(JMTImageLoader.getImageLoader());\r\n \t\t// File menu\r\n \t\tMenuAction action = new MenuAction(\"File\", new AbstractJmodelAction[] { newModel, openModel, saveModel, saveModelAs, closeModel, null, exit });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Edit menu\r\n \t\taction = new MenuAction(\"Edit\", new AbstractJmodelAction[] {\r\n \t\t// editUndo, editRedo, null\r\n \t\t\t\tactionCut, actionCopy, actionPaste, actionDelete, null, takeScreenShot });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Define menu\r\n \t\taction = new MenuAction(\"Define\",\r\n \t\t\t\tnew AbstractJmodelAction[] { editUserClasses, editMeasures, editSimParams, editPAParams, null, editDefaults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Solve menu\r\n \t\taction = new MenuAction(\"Solve\", new AbstractJmodelAction[] { simulate, pauseSimulation, stopSimulation, null, switchToExactSolver, null,\r\n \t\t\t\tshowResults });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\t// Help menu\r\n \t\taction = new MenuAction(\"Help\", new AbstractJmodelAction[] { openHelp, null, about });\r\n \t\tmenu.addMenu(action);\r\n \r\n \t\treturn menu;\r\n \t}", "private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }", "private static JMenuBar createMenu() {\r\n JMenuBar mb = new JMenuBar();\r\n JMenu menu = new JMenu(\"File\");\r\n JMenuItem item = new JMenuItem(\"Save\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n saveActionPerformed();\r\n });\r\n menu.add(item);\r\n mb.add(menu);\r\n\r\n menu = new JMenu(\"Help\");\r\n item = new JMenuItem(\"Show how-to\");\r\n item.addActionListener((ActionEvent evt) -> {\r\n showHelp();\r\n });\r\n menu.add(item);\r\n\r\n mb.add(menu);\r\n\r\n return mb;\r\n }", "private void createMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\tfileMenu = new JMenu(flp.getString(\"file\"));\n\t\tmenuBar.add(fileMenu);\n\n\t\tfileMenu.add(new JMenuItem(new ActionNewDocument(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionOpen(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSave(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionSaveAs(flp, this)));\n\t\tfileMenu.addSeparator();\n\t\tfileMenu.add(new JMenuItem(new ActionExit(flp, this)));\n\t\tfileMenu.add(new JMenuItem(new ActionStatistics(flp, this)));\n\n\t\teditMenu = new JMenu(flp.getString(\"edit\"));\n\n\t\teditMenu.add(new JMenuItem(new ActionCut(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionCopy(flp, this)));\n\t\teditMenu.add(new JMenuItem(new ActionPaste(flp, this)));\n\n\t\ttoolsMenu = new JMenu(flp.getString(\"tools\"));\n\n\t\titemInvert = new JMenuItem(new ActionInvertCase(flp, this));\n\t\titemInvert.setEnabled(false);\n\t\ttoolsMenu.add(itemInvert);\n\n\t\titemLower = new JMenuItem(new ActionLowerCase(flp, this));\n\t\titemLower.setEnabled(false);\n\t\ttoolsMenu.add(itemLower);\n\n\t\titemUpper = new JMenuItem(new ActionUpperCase(flp, this));\n\t\titemUpper.setEnabled(false);\n\t\ttoolsMenu.add(itemUpper);\n\n\t\tsortMenu = new JMenu(flp.getString(\"sort\"));\n\t\tsortMenu.add(new JMenuItem(new ActionSortAscending(flp, this)));\n\t\tsortMenu.add(new JMenuItem(new ActionSortDescending(flp, this)));\n\n\t\tmenuBar.add(editMenu);\n\t\tmenuBar.add(createLanguageMenu());\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(sortMenu);\n\n\t\tthis.setJMenuBar(menuBar);\n\t}", "private void makeMenu() {\r\n int i = 0;\r\n int j = 0;\r\n final JMenuBar bar = new JMenuBar();\r\n final Action[] menuActions = {new NewItemAction(MENU_ITEM_STRINGS[i++]),\r\n new ExitAction(MENU_ITEM_STRINGS[i++], myFrame),\r\n new AboutAction(MENU_ITEM_STRINGS[i++], myFrame)};\r\n i = 0;\r\n\r\n final JMenu fileMenu = new JMenu(MENU_STRINGS[j++]);\r\n fileMenu.setMnemonic(KeyEvent.VK_F);\r\n fileMenu.add(menuActions[i++]);\r\n fileMenu.addSeparator();\r\n fileMenu.add(menuActions[i++]);\r\n\r\n final JMenu optionsMenu = new JMenu(MENU_STRINGS[j++]);\r\n optionsMenu.setMnemonic(KeyEvent.VK_O);\r\n\r\n final JMenu helpMenu = new JMenu(MENU_STRINGS[j++]);\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n helpMenu.add(menuActions[i++]);\r\n\r\n bar.add(fileMenu);\r\n bar.add(optionsMenu);\r\n bar.add(helpMenu);\r\n\r\n myFrame.setJMenuBar(bar);\r\n }", "private JMenu getHelpMenu() {\n\t\tif (helpMenu == null) {\n\t\t\thelpMenu = new JMenu();\n\t\t\thelpMenu.setText(\"Pomoc\");\n\t\t\thelpMenu.add(getAboutMenuItem());\n\t\t}\n\t\treturn helpMenu;\n\t}", "public void generateMenu(){\n\t\tmenuBar = new JMenuBar();\n\n\t\tJMenu file = new JMenu(\"File\");\n\t\tJMenu tools = new JMenu(\"Tools\");\n\t\tJMenu help = new JMenu(\"Help\");\n\n\t\tJMenuItem open = new JMenuItem(\"Open \");\n\t\tJMenuItem save = new JMenuItem(\"Save \");\n\t\tJMenuItem exit = new JMenuItem(\"Exit \");\n\t\tJMenuItem preferences = new JMenuItem(\"Preferences \");\n\t\tJMenuItem about = new JMenuItem(\"About \");\n\n\n\t\tfile.add(open);\n\t\tfile.add(save);\n\t\tfile.addSeparator();\n\t\tfile.add(exit);\n\t\ttools.add(preferences);\n\t\thelp.add(about);\n\n\t\tmenuBar.add(file);\n\t\tmenuBar.add(tools);\n\t\tmenuBar.add(help);\n\t}", "protected JMenuBar createDropDownMenu()\r\n {\r\n\r\n // Setup menu Items String values that are shared\r\n setSharedMenuItemStrings();\r\n // Make a new Action Trigger, as it is generic and used in many places.\r\n ActionTrigger actionTrigger = new ActionTrigger();\r\n // Add\tall the Horizontal elements\r\n JMenuBar result = new JMenuBar();\r\n\r\n // to the button group - Set the Fraction Decimal Visible as being\r\n // selected below.\r\n com.hgutil.data.Fraction.setShowAsFraction(false);\r\n\r\n // Create two individual check button menu items, and add\r\n ButtonGroup fractionGroup = new ButtonGroup();\r\n HGMenuItem fractionCheck =\r\n new HGMenuItem(\r\n HGMenuListItem.JCHECKBOXMNUITEM,\r\n getString(\"WatchListTableModule.edit_menu.fractions_on_text\"),\r\n fractionCmd,\r\n null,\r\n KeyEvent.VK_F,\r\n InputEvent.CTRL_MASK,\r\n fractionGroup,\r\n false);\r\n HGMenuItem decimalCheck =\r\n new HGMenuItem(\r\n HGMenuListItem.JCHECKBOXMNUITEM,\r\n getString(\"WatchListTableModule.edit_menu.decimals_on_text\"),\r\n decimalCmd,\r\n null,\r\n KeyEvent.VK_D,\r\n InputEvent.CTRL_MASK,\r\n fractionGroup,\r\n true);\r\n JMenu viewColumnNumbers =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.view_columns_fields_as\"),\r\n 'C',\r\n new Object[] { fractionCheck, decimalCheck },\r\n actionTrigger);\r\n\r\n // Lets build a Menu List of Columns that we can either \r\n // view or not view\r\n // Build Check Boxes, for all Items, except the Symbol Column\r\n HGMenuItem[] columnsChecks = new HGMenuItem[StockData.columns.length];\r\n for (int k = 1; k < StockData.columns.length; k++)\r\n {\r\n columnsChecks[k] =\r\n new HGMenuItem(\r\n HGMenuListItem.JCHECKBOXMNUITEM,\r\n StockData.columns[k].getTitle(),\r\n null,\r\n null,\r\n 0,\r\n 0,\r\n null,\r\n true,\r\n new ColumnKeeper(StockData.columns[k]));\r\n }\r\n\r\n // Add in the Viewing menu\r\n JMenu viewColumns =\r\n HGMenuItem.makeMenu(getString(\"WatchListTableModule.edit_menu.view_columns_text\"), 'V', columnsChecks, null);\r\n\r\n JMenu insertRows =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.view_insert_row_text\"),\r\n 'I',\r\n new Object[] { insertBeforeCmd, insertAfterCmd },\r\n actionTrigger);\r\n\r\n JMenu editMenu = null;\r\n editMenu =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.title\"),\r\n 'E',\r\n new Object[] {\r\n viewColumns,\r\n viewColumnNumbers,\r\n null,\r\n insertRows,\r\n deleteRowCmd,\r\n null,\r\n addNewWatchListCmd,\r\n deleteWatchListCmd,\r\n renameListCmd,\r\n null,\r\n printListCmd,\r\n null,\r\n tableProps },\r\n actionTrigger);\r\n\r\n // Add the Edit Menu to the result set the Alignment and return the MenuBar\r\n result.add(editMenu);\r\n result.setAlignmentX(JMenuBar.LEFT_ALIGNMENT);\r\n return result;\r\n }", "IMenuFactory getMenuFactory();", "@Override\r\n\tpublic void createMenu(Menu menu) {\n\r\n\t}", "private void createMenu() {\n\t\tJMenuBar mb = new JMenuBar();\n\t\tsetJMenuBar(mb);\n\t\tmb.setVisible(true);\n\t\t\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmb.add(menu);\n\t\t//mb.getComponent();\n\t\tmenu.add(new JMenuItem(\"Exit\"));\n\t\t\n\t\t\n\t}", "public static String BuildMenu()\n {\n StringBuilder sb = new StringBuilder();\n sb.append(Common.Stars(50));\n sb.append(\"\\n\");\n sb.append(\"What would you like to do today?\\n\");\n sb.append(Common.Dashes(50));\n sb.append(\"\\n\");\n sb.append(\"* 1) List Vehicles [Enter 1] *\\n\");\n sb.append(\"* 2) Add A Vehicle [Enter 2] *\\n\");\n sb.append(\"* 3) Remove A Vehicle [Enter 3] *\\n\");\n sb.append(Common.Dashes(50));\n sb.append(\"\\n\");\n sb.append(Common.Stars(50));\n sb.append(\"\\n\");\n return sb.toString();\n }", "private void makeToolsMenu() {\r\n\t\tJMenu toolsMnu = new JMenu(\"Herramientas\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Usuarios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Manejo de Usuarios\",\r\n\t\t\t\t\timageLoader.getImage(\"users.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'm',\r\n\t\t\t\t\t\"Manejar los usuarios del sistema\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F7, 0), Users.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"FacturacionManual\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Facturacion Manual\",\r\n\t\t\t\t\timageLoader.getImage(\"kwrite.png\"));\r\n\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'f',\r\n\t\t\t\t\t\"Manejar la Facturacion Manual\", KeyStroke.getKeyStroke(\r\n\t\t\t\t\t\t\tKeyEvent.VK_F3, 0), ManualInvoice.class);\r\n\r\n\t\t\ttoolsMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\ttoolsMnu.setMnemonic('h');\r\n\t\t\tadd(toolsMnu);\r\n\t\t}\r\n\t}", "private void createMenus() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\t\r\n\t\tJMenu fileMenu = new LJMenu(\"file\", flp);\r\n\t\tmenuBar.add(fileMenu);\r\n\t\t\r\n\t\tfileMenu.add(new JMenuItem(createBlankDocument));\r\n\t\tfileMenu.add(new JMenuItem(openDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAction));\r\n\t\tfileMenu.add(new JMenuItem(saveDocumentAsAction));\r\n\t\tfileMenu.add(new JMenuItem(closeCurrentTabAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(getStatsAction));\r\n\t\tfileMenu.addSeparator();\r\n\t\tfileMenu.add(new JMenuItem(exitAction));\r\n\t\t\r\n\t\tJMenu editMenu = new LJMenu(\"edit\", flp);\r\n\t\tmenuBar.add(editMenu);\r\n\t\t\r\n\t\teditMenu.add(new JMenuItem(copyAction));\r\n\t\teditMenu.add(new JMenuItem(pasteAction));\r\n\t\teditMenu.add(new JMenuItem(cutAction));\r\n\t\t\r\n\t\tJMenu langMenu = new LJMenu(\"lang\", flp);\r\n\t\tJMenuItem hr = new LJMenuItem(\"cro\", flp);\r\n\t\thr.addActionListener((l) -> { \r\n\t\t\tLocalizationProvider.getInstance().setLanguage(\"hr\");\r\n\t\t\tcurrentLang = \"hr\";\r\n\t\t});\r\n\t\t\r\n\t\tlangMenu.add(hr);\r\n\t\tJMenuItem en = new LJMenuItem(\"eng\", flp);\r\n\t\ten.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"en\");\r\n\t\t\t currentLang = \"en\";\r\n\t\t});\r\n\t\tlangMenu.add(en);\r\n\t\tJMenuItem de = new LJMenuItem(\"de\", flp);\r\n\t\tde.addActionListener((l) -> { \r\n\t\t\t LocalizationProvider.getInstance().setLanguage(\"de\");\r\n\t\t\t currentLang = \"de\";\r\n\t\t});\r\n\t\tlangMenu.add(de);\r\n\t\tmenuBar.add(langMenu);\r\n\t\t\r\n\t\tJMenu toolsMenu = new LJMenu(\"tools\", flp);\r\n\t\tJMenuItem toUp = new JMenuItem(toUpperCaseAction);\r\n\t\ttoolsMenu.add(toUp);\r\n\t\ttoggable.add(toUp);\r\n\t\ttoUp.setEnabled(false);\r\n\t\tJMenuItem toLow = new JMenuItem(toLowerCaseAction);\r\n\t\ttoolsMenu.add(toLow);\r\n\t\ttoggable.add(toLow);\r\n\t\ttoLow.setEnabled(false);\r\n\t\tJMenuItem inv = new JMenuItem(invertSelected);\r\n\t\ttoolsMenu.add(inv);\r\n\t\ttoggable.add(inv);\r\n\t\tinv.setEnabled(false);\r\n\t\tmenuBar.add(toolsMenu);\r\n\t\t\r\n\t\tJMenu sort = new LJMenu(\"sort\", flp);\r\n\t\tJMenuItem sortAsc = new JMenuItem(sortAscAction);\r\n\t\tsort.add(sortAsc);\r\n\t\ttoggable.add(sortAsc);\r\n\t\tJMenuItem sortDesc = new JMenuItem(sortDescAction);\r\n\t\tsort.add(sortDesc);\r\n\t\ttoggable.add(sortDesc);\r\n\t\tJMenuItem uniq = new JMenuItem(uniqueLinesAction);\r\n\t\ttoolsMenu.add(uniq);\r\n\t\ttoggable.add(uniq);\r\n\t\t\r\n\t\ttoolsMenu.add(sort);\r\n\t\tsetJMenuBar(menuBar);\r\n\r\n\t}", "public void generateMenu(){\n menuBar = new JMenuBar();\n\n JMenu file = new JMenu(\"Datei\");\n JMenu tools = new JMenu(\"Werkzeuge\");\n JMenu help = new JMenu(\"Hilfe\");\n\n JMenuItem open = new JMenuItem(\"Öffnen \");\n JMenuItem save = new JMenuItem(\"Speichern \");\n JMenuItem exit = new JMenuItem(\"Beenden \");\n JMenuItem preferences = new JMenuItem(\"Einstellungen \");\n JMenuItem about = new JMenuItem(\"Über das Projekt \");\n\n\n file.add(open);\n file.add(save);\n file.addSeparator();\n file.add(exit);\n tools.add(preferences);\n help.add(about);\n\n menuBar.add(file);\n menuBar.add(tools);\n menuBar.add(help);\n }", "private void createMenu()\n\t{\n\t\tfileMenu = new JMenu(\"File\");\n\t\thelpMenu = new JMenu(\"Help\");\n\t\ttoolsMenu = new JMenu(\"Tools\");\n\t\t\n\t\tmenuBar = new JMenuBar();\n\t\t\n\t\texit = new JMenuItem(\"Exit\");\t\t\n\t\treadme = new JMenuItem(\"Readme\");\n\t\tabout = new JMenuItem(\"About\");\n\t\tsettings = new JMenuItem(\"Settings\");\n\t\t\t\t\n\t\tfileMenu.add (exit);\n\t\t\n\t\thelpMenu.add (readme);\n\t\thelpMenu.add (about);\t\n\t\t\n\t\ttoolsMenu.add (settings);\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(toolsMenu);\n\t\tmenuBar.add(helpMenu);\t\t\n\t\t\t\t\n\t\tdefaultMenuBackground = menuBar.getBackground();\n\t\tdefaultMenuForeground = fileMenu.getForeground();\n\t\t\n\t}", "private JMenu brugerMenuSetup() {\n JMenu brugerMenu = generalMenuSetup(\"Bruger\");\n JMenuItem logUdItem = new JMenuItem(\"Log ud\");\n brugerMenu.add(logUdItem);\n logUdItem.addActionListener(\n e -> System.exit(0)\n );\n JMenuItem minListeItem = new JMenuItem(\"Min liste\");\n brugerMenu.add(minListeItem);\n\n return brugerMenu;\n }", "public JMenuBar createMenuBar() {\n\t\tJMenuBar menuBar = new JMenuBar(); \n\t\t\n\t\t//Build the color Menu\n\t\tJMenu menu = new JMenu (\"Pick Colors\");\n\t\t //menu.setMnemonic(KeyEvent.VK_A);\n\t menu.getAccessibleContext().setAccessibleDescription(\n\t \"The only menu in this program that has menu items\");\n\t menuBar.add(menu);\n\t \n\t \n\t //add a color option to the menu -Yellow\n\t JMenuItem Yellow = new JMenuItem (\"Yellow\");\n\t Yellow.getAccessibleContext().setAccessibleDescription(\"Color1\");\n\t menu.add(Yellow);\n\n\t //add a color option to the menu- Blue\n\t JMenuItem Blue = new JMenuItem (\"Blue\");\n\t Blue.getAccessibleContext().setAccessibleDescription(\"Color2\");\n\t menu.add(Blue);\n\t \n\t //add a color option to the menu - Green\n\t JMenuItem Green = new JMenuItem (\"Green\");\n\t Green.getAccessibleContext().setAccessibleDescription(\"Color3\");\n\t menu.add(Green);\n\t \n\n\t //Build second menu in the menu bar.\n\t menu = new JMenu(\"Another Menu\");\n\t // menu.setMnemonic(KeyEvent.VK_N);\n\t menu.getAccessibleContext().setAccessibleDescription(\"This menu does nothing\");\n\t menuBar.add(menu);\n\t \n\t return menuBar; \n\t}", "private JMenu createLanguageMenu() {\n\t\tAction nestoAction = new AbstractAction() {\n\n\t\t\t/** The generated serial user ID */\n\t\t\tprivate static final long serialVersionUID = -4439263551767223123L;\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJMenuItem src = (JMenuItem) e.getSource();\n\t\t\t\tString arg = src.getText();\n\t\t\t\tLocalizationProvider.getInstance().setLanguage(arg);\n\t\t\t\tLocalizationProvider.getInstance().fire();\n\t\t\t}\n\t\t};\n\n\t\titemHR = new JMenuItem(nestoAction);\n\t\titemHR.setText(\"hr\");\n\t\titemEN = new JMenuItem(nestoAction);\n\t\titemEN.setText(\"en\");\n\t\titemDE = new JMenuItem(nestoAction);\n\t\titemDE.setText(\"de\");\n\n\t\tlangMenu = new JMenu(flp.getString(\"lang\"));\n\n\t\tlangMenu.add(itemHR);\n\t\tlangMenu.add(itemEN);\n\t\tlangMenu.add(itemDE);\n\n\t\treturn langMenu;\n\t}", "public void buildMenu() {\n\t\tthis.Menu = new uPanel(this.layer, 0, 0, (int) (this.getWidth() * 2), (int) (this.getHeight() * 3)) {\r\n\t\t\t@Override\r\n\t\t\tpublic boolean handleEvent(uEvent event) {\r\n\t\t\t\treturn false;\r\n\t\t\t}\r\n\r\n\t\t\t@Override\r\n\t\t\tpublic void onClick() {\r\n\t\t\t\tsuper.onClick();\r\n\t\t\t\tthis.space.sortLayer(this.layer);\r\n\t\t\t\tthis.castEvent(\"MENUPANEL_CLICK\");\r\n\t\t\t}\r\n\t\t};\r\n\r\n\t\tthis.screen.addPrehide(this.Menu);\r\n\r\n\t\tthis.Node.addChild(this.Menu.getNode());\r\n\r\n\t}", "private void buildViewMenu(){\n //Create a Run Payroll menu item\n viewItem = new JMenuItem(\"View CS History\");\n viewItem.setMnemonic(KeyEvent.VK_H);\n viewItem.addActionListener(new ViewListener());\n \n //Create a JMenu object for the run menu\n viewMenu = new JMenu(\"View\");\n viewMenu.setMnemonic(KeyEvent.VK_V);\n \n //Add the item to the menu\n viewMenu.add(viewItem);\n }", "public JMenu helpMenu() {\r\n final JMenu helpMenu = new JMenu(\"Help\");\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n final JMenuItem about = new JMenuItem(\"About...\");\r\n about.setMnemonic(KeyEvent.VK_A);\r\n about.addActionListener((theEvent) -> {\r\n final ImageIcon img = new ImageIcon(\"images//Lion.png\");\r\n final String sb = \"TCSS 305\\nAutumn 2016\\nKeldon Fischer\\n\";\r\n JOptionPane.showMessageDialog(null, sb, \r\n \"About\", \r\n JOptionPane.PLAIN_MESSAGE, img);\r\n });\r\n helpMenu.add(about);\r\n \r\n return helpMenu;\r\n }", "public void createMenu() {\n\t\tmenuBar.add(createGameMenuColumn());\n\t\tmenuBar.add(createTestsMenuColumn());\n\t\tmenuBar.add(createCheatsMenuColumn());\n\n\t\tparentMainView.setJMenuBar(menuBar);\n\t}", "private JMenu getAidejMenu() {\r\n\t\tif (AidejMenu == null) {\r\n\t\t\tAidejMenu = new JMenu();\r\n\t\t\tAidejMenu.setText(\"Aide\");\r\n\t\t\tAidejMenu.setFont(new Font(\"Dialog\", Font.PLAIN, 12));\r\n\t\t\tAidejMenu.add(getExplorerjMenuItem());\r\n\t\t\tAidejMenu.add(getMailjMenuItem());\r\n\t\t\tAidejMenu.add(getAProposjMenuItem());\r\n\t\t}\r\n\t\treturn AidejMenu;\r\n\t}", "public Menu getStartMenu() {\n Menu menu = new Menu(new Point(475, 0), 672-475, 320, 8, 1, new Cursor(new Point(0, 7)), \"exit\");\n Button PokedexButton = new Button(new Point(475, 0), 672-475, 40, \"Pokédex\", new Point(0, 7), \"Pokédex\");\n Button PokemonButton = new Button(new Point(475, 40), 672-475, 40, \"Pokémon\", new Point(0, 6), \"Pokémon\");\n Button BagButton = new Button(new Point(475, 80), 672-475, 40, \"Bag\", new Point(0, 5), \"Bag\");\n Button PokenavButton = new Button(new Point(475, 120), 672-475, 40, \"Pokénav\", new Point(0, 4), \"Pokénav\");\n Button PlayerButton = new Button(new Point(475, 160), 672-475, 40, trainer.getName(), new Point(0, 3), trainer.getName());\n Button SaveButton = new Button(new Point(475, 200), 672-475, 40, \"save\", new Point(0, 2), \"Save\");\n Button OptionButton = new Button(new Point(475, 240), 672-475, 40, \"add_menu_other\", new Point(0, 1), \"Options\");\n Button ExitButton = new Button(new Point(475, 280), 672-475, 40, \"exit\", new Point(0, 0), \"exit\");\n menu.addButton(PokedexButton);\n menu.addButton(PokemonButton);\n menu.addButton(BagButton);\n menu.addButton(PokenavButton);\n menu.addButton(PlayerButton);\n menu.addButton(SaveButton);\n menu.addButton(OptionButton);\n menu.addButton(ExitButton);\n menu.getButton(menu.getCursor().getPos()).Highlight();\n return menu;\n }", "private void createMenu(){\n\n JMenuBar mbar = new JMenuBar();\n setJMenuBar(mbar);\n JMenu Opcje = new JMenu(\"Opcje\");\n mbar.add(Opcje);\n JMenuItem Ustawienia = new JMenuItem(\"Ustawienia\");\n /** Obsluga zdarzen wcisniecia przycisku ustawien w menu */\n Ustawienia.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n if(Justawienia==null)\n Justawienia =new JUstawienia();\n Justawienia.setVisible(true);\n if (controller.timer!=null)\n controller.timer.stop();\n }\n });\n Opcje.add(Ustawienia);\n Opcje.addSeparator();\n JMenuItem Info = new JMenuItem(\"Info\");\n /** Obsluga zdarzen wcisniecia przycisku info w menu */\n Info.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n controller.WyswietlInfo();\n }\n });\n Opcje.add(Info);\n }", "UIFormMenu toUIFormMenu(String heading);", "@Override\n\tpublic void setUpMenu() {\n\t\t\n\t}", "protected JPopupMenu createPopupMenu()\r\n {\r\n\r\n // Setup menu Items String values that are shared\r\n setSharedMenuItemStrings();\r\n // Add\tall the Horizontal elements\r\n JPopupMenu result = null;\r\n\r\n JMenu insertRows =\r\n HGMenuItem.makeMenu(\r\n getString(\"WatchListTableModule.edit_menu.view_insert_row_text\"),\r\n 'I',\r\n new Object[] { insertBeforeCmd, insertAfterCmd },\r\n actionTrigger);\r\n\r\n result =\r\n HGMenuItem.makePopupMenu(\r\n new Object[] {\r\n viewOptionChainCmd,\r\n null,\r\n viewHistoricChartCmd,\r\n null,\r\n insertRows,\r\n deleteRowCmd,\r\n null,\r\n addNewWatchListCmd,\r\n deleteWatchListCmd,\r\n renameListCmd,\r\n null,\r\n printListCmd },\r\n actionTrigger);\r\n\r\n // Set the Alignment and return the MenuBar\r\n result.setAlignmentX(JMenuBar.LEFT_ALIGNMENT);\r\n return result;\r\n }", "private void constructMenus()\n\t{\n\t\tthis.fileMenu = new JMenu(\"File\");\n\t\tthis.editMenu = new JMenu(\"Edit\");\n\t\tthis.caseMenu = new JMenu(\"Case\");\n\t\tthis.imageMenu = new JMenu(\"Image\");\n\t\tthis.fileMenu.add(this.saveImageMenuItem);\n\t\tthis.fileMenu.addSeparator();\n\t\tthis.fileMenu.add(this.quitMenuItem);\n\t\tthis.editMenu.add(this.undoMenuItem);\n\t\tthis.editMenu.add(this.redoMenuItem);\n\t\tthis.caseMenu.add(this.removeImageMenuItem);\n\t\tthis.imageMenu.add(this.antiAliasMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.brightenMenuItem);\n\t\tthis.imageMenu.add(this.darkenMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.grayscaleMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.resizeMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.cropMenuItem);\n\t\tthis.imageMenu.addSeparator();\n\t\tthis.imageMenu.add(this.rotate90MenuItem);\n\t\tthis.imageMenu.add(this.rotate180MenuItem);\n\t\tthis.imageMenu.add(this.rotate270MenuItem);\n\t}", "private void setupMenus() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\n\t\t// Build the first menu.\n\t\tJMenu menu = new JMenu(Messages.getString(\"Gui.File\")); //$NON-NLS-1$\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenuBar.add(menu);\n\n\t\t// a group of JMenuItems\n\t\tJMenuItem menuItem = new JMenuItem(openAction);\n\t\tmenu.add(menuItem);\n\n\t\t// menuItem = new JMenuItem(openHttpAction);\n\t\t// menu.add(menuItem);\n\n\t\t/*\n\t\t * menuItem = new JMenuItem(crudAction); menu.add(menuItem);\n\t\t */\n\n\t\tmenuItem = new JMenuItem(showLoggingFrameAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(quitAction);\n\t\tmenu.add(menuItem);\n\n\t\tmenuBar.add(menu);\n\n\t\tJMenu optionMenu = new JMenu(Messages.getString(\"Gui.Options\")); //$NON-NLS-1$\n\t\tmenuItem = new JCheckBoxMenuItem(baselineModeAction);\n\t\toptionMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(toggleButtonsAction);\n\t\toptionMenu.add(menuItem);\n\n\t\tmenuBar.add(optionMenu);\n\t\tJMenu buttonMenu = new JMenu(Messages.getString(\"Gui.Buttons\")); //$NON-NLS-1$\n\t\tmenuItem = new JMenuItem(wrongAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(attendingAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(independentAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(verbalAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(modelingAction);\n\t\tbuttonMenu.add(menuItem);\n\t\tmenuItem = new JMenuItem(noAnswerAction);\n\t\tbuttonMenu.add(menuItem);\n\n\t\tmenuBar.add(buttonMenu);\n\t\tframe.setJMenuBar(menuBar);\n\n\t\tframe.pack();\n\n\t\tframe.setVisible(true);\n\t}", "private void buildJMenuBar() {\r\n // create Menu Bar\r\n gameBar = new JMenuBar();\r\n\r\n buildGameMenu();\r\n buildSettingsMenu();\r\n\r\n gameBar.add( gameMenu );\r\n gameBar.add( settingsMenu );\r\n }", "MenuBar setMenu() {\r\n\t\t// initially set up the file chooser to look for cfg files in current directory\r\n\t\tMenuBar menuBar = new MenuBar(); // create main menu\r\n\r\n\t\tMenu mFile = new Menu(\"File\"); // add File main menu\r\n\t\tMenuItem mExit = new MenuItem(\"Exit\"); // whose sub menu has Exit\r\n\t\tmExit.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\tpublic void handle(ActionEvent t) { // action on exit\r\n\t\t\t\ttimer.stop(); // stop timer\r\n\t\t\t\tSystem.exit(0); // exit program\r\n\t\t\t}\r\n\t\t});\r\n\t\tmFile.getItems().addAll(mExit); // add load, save and exit to File menu\r\n\r\n\t\tMenu mHelp = new Menu(\"Help\"); // create Help menu\r\n\t\tMenuItem mAbout = new MenuItem(\"About\"); // add Welcome sub menu item\r\n\t\tmAbout.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent actionEvent) {\r\n\t\t\t\tshowAbout(); // whose action is to give welcome message\r\n\t\t\t}\r\n\t\t});\r\n\t\tmHelp.getItems().addAll(mAbout); // add Welcome and About to Run main item\r\n\r\n\t\tmenuBar.getMenus().addAll(mFile, mHelp); // set main menu with File, Config, Run, Help\r\n\t\treturn menuBar; // return the menu\r\n\t}", "private JMenuBar createMenuBar(){\n\n MenuBarHandler menuBarHandler = new MenuBarHandler();\n JMenuBar menuBar = new JMenuBar();\n JMenu application = new JMenu(\"Application\");\n application.setMnemonic(KeyEvent.VK_A);\n JMenu view = new JMenu(\"View\");\n view.setMnemonic(KeyEvent.VK_V);\n JMenu help = new JMenu(\"Help\");\n help.setMnemonic(KeyEvent.VK_H);\n menuBar.add(application);\n menuBar.add(view);\n menuBar.add(help);\n JMenuItem options = new JMenuItem(\"Options\", KeyEvent.VK_O);\n JMenuItem exit = new JMenuItem(\"Exit\", KeyEvent.VK_E);\n application.add(options);\n options.addActionListener(menuBarHandler);\n application.add(exit);\n exit.addActionListener(menuBarHandler);\n JMenuItem toggleFullScreen = new JMenuItem(\"Toggle Full Screen\", KeyEvent.VK_T);\n JMenuItem toggleSideBar = new JMenuItem(\"Toggle Sidebar\", KeyEvent.VK_O);\n view.add(toggleFullScreen);\n toggleFullScreen.addActionListener(menuBarHandler);\n view.add(toggleSideBar);\n toggleSideBar.addActionListener(menuBarHandler);\n JMenuItem about = new JMenuItem(\"About\", KeyEvent.VK_A);\n JMenuItem helpItem = new JMenuItem(\"Help\", KeyEvent.VK_H);\n KeyStroke ctrlS = KeyStroke.getKeyStroke(\"control S\");\n toggleSideBar.setAccelerator(ctrlS);\n help.add(about);\n about.addActionListener(menuBarHandler);\n help.add(helpItem);\n helpItem.addActionListener(menuBarHandler);\n return menuBar;\n }", "private JMenu getHelpMenu() {\n if (helpMenu == null) {\n helpMenu = new JMenu();\n helpMenu.setText(\"Help\");\n helpMenu.add(getAboutMenuItem());\n }\n return helpMenu;\n }", "private void createMenus() {\r\n\t\t// File menu\r\n\t\tmenuFile = new JMenu(Constants.C_FILE_MENU_TITLE);\r\n\t\tmenuBar.add(menuFile);\r\n\t\t\r\n\t\tmenuItemExit = new JMenuItem(Constants.C_FILE_ITEM_EXIT_TITLE);\r\n\t\tmenuItemExit.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\r\n\t\t\t\tactionOnClicExit();\t\t// Action triggered when the Exit item is clicked.\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuFile.add(menuItemExit);\r\n\t\t\r\n\t\t// Help menu\r\n\t\tmenuHelp = new JMenu(Constants.C_HELP_MENU_TITLE);\r\n\t\tmenuBar.add(menuHelp);\r\n\t\t\r\n\t\tmenuItemHelp = new JMenuItem(Constants.C_HELP_ITEM_HELP_TITLE);\r\n\t\tmenuItemHelp.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemHelp);\r\n\t\t\r\n\t\tmenuItemAbout = new JMenuItem(Constants.C_HELP_ITEM_ABOUT_TITLE);\r\n\t\tmenuItemAbout.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicAbout();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemAbout);\r\n\t\t\r\n\t\tmenuItemReferences = new JMenuItem(Constants.C_HELP_ITEM_REFERENCES_TITLE);\r\n\t\tmenuItemReferences.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactionOnClicReferences();\r\n\t\t\t}\r\n\t\t});\r\n\t\tmenuHelp.add(menuItemReferences);\r\n\t}", "@Override\r\n\tprotected MenuManager createMenuManager() {\r\n\t\tMenuManager menuManager = new MenuManager(\"menu\");\r\n\t\treturn menuManager;\r\n\t}", "private MenuManager createEditMenu() {\n\t\tMenuManager menu = new MenuManager(\"&Edition\", Messages.getString(\"IU.Strings.40\")); //$NON-NLS-1$ //$NON-NLS-2$\n\t\tmenu.add(new GroupMarker(Messages.getString(\"IU.Strings.41\"))); //$NON-NLS-1$\n\n\t\tmenu.add(getAction(ActionFactory.UNDO.getId()));\n\t\tmenu.add(getAction(ActionFactory.REDO.getId()));;\n\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.UNDO_EXT));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.CUT.getId()));\n\t\tmenu.add(getAction(ActionFactory.COPY.getId()));\n\t\tmenu.add(getAction(ActionFactory.PASTE.getId()));\n\t\tmenu.add(new GroupMarker(IWorkbenchActionConstants.CUT_EXT));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.DELETE.getId()));\n\t\tmenu.add(getAction(ActionFactory.SELECT_ALL.getId()));\n\t\tmenu.add(getAction(ActionFactory.FIND.getId()));\n\t\tmenu.add(new Separator());\n\t\tmenu.add(getAction(ActionFactory.PREFERENCES.getId()));\n\t\treturn menu;\n\t}", "private void createMenu(){\n \n menuBar = new JMenuBar();\n \n game = new JMenu(\"Rummy\");\n game.setMnemonic('R');\n \n newGame = new JMenuItem(\"New Game\");\n newGame.setMnemonic('N');\n newGame.addActionListener(menuListener);\n \n \n \n exit = new JMenuItem(\"Exit\");\n exit.setMnemonic('E');\n exit.addActionListener(menuListener); \n \n \n \n }", "public MyMenu() {\n this(DSL.name(\"MY_MENU\"), null);\n }", "private void makeUtilitiesMenu() {\r\n\t\tJMenu utilitiesMnu = new JMenu(\"Utilidades\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Reportes\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Reportes\",\r\n\t\t\t\t\timageLoader.getImage(\"reports.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'r',\r\n\t\t\t\t\t\"Ver los reportes del sistema\", null,\r\n\t\t\t\t\tReports.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"ConsultarPrecios\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Consultar Precios\",\r\n\t\t\t\t\timageLoader.getImage(\"money.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'p',\r\n\t\t\t\t\t\"Consultar los precios de los productos\", null,\r\n\t\t\t\t\tPriceRead.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Calculadora\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Calculadora Impuesto\",\r\n\t\t\t\t\timageLoader.getImage(\"pc.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'c',\r\n\t\t\t\t\t\"Calculadora de impuesto\", null, Calculator.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tutilitiesMnu.addSeparator();\r\n\t\tif (StoreCore.getAccess(\"Categorias\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Categorias Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"group.gif\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'i',\r\n\t\t\t\t\t\"Manejar las categorias del inventario\", null, Groups.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Impuestos\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Impuestos\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 't',\r\n\t\t\t\t\t\"Manejar el listado de impuestos\", null, Tax.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Ciudades\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ciudades\");\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'u',\r\n\t\t\t\t\t\"Manejar el listado de ciudades\", null, City.class);\r\n\t\t\tutilitiesMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tutilitiesMnu.setMnemonic('u');\r\n\t\t\tadd(utilitiesMnu);\r\n\t\t}\r\n\t}", "public Menu displayMenu() {\n return new CMDDisplayMenu(agg).execute();\n }", "private JMenu getHelpMenu() {\n\t\tif (helpMenu == null) {\n\t\t\thelpMenu = new JMenu();\n\t\t\thelpMenu.setText(\"Help\");\n\t\t\thelpMenu.add(getHowToPlayMenuItem());\n\t\t\thelpMenu.add(getAboutMenuItem());\n\t\t}\n\t\treturn helpMenu;\n\t}", "private void buildMenuBar(){\n //Create the manu bar\n menuBar = new JMenuBar();\n \n //Create the file and run menus\n buildFileMenu();\n buildViewMenu();\n \n //Add the file and run menus to the menu bar\n menuBar.add(fileMenu);\n menuBar.add(viewMenu);\n \n //Set the window's menu bar\n setJMenuBar(menuBar);\n }", "private void buildSettingsMenu() {\r\n settingsMenu = new JMenu( Msgs.str( \"Settings\" ) );\r\n\r\n qMarkItem = new JCheckBoxMenuItem( Msgs.str( \"Qmarks\" ), qMarksOn );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_Q, Event.ALT_MASK );\r\n qMarkItem.setAccelerator( ks );\r\n qMarkItem.setMnemonic( 'Q' );\r\n qMarkItem.addActionListener( listener );\r\n\r\n newGameItem = new JMenuItem( Msgs.str( \"game.new\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_F2, 0 );\r\n newGameItem.setAccelerator( ks );\r\n newGameItem.addActionListener( listener );\r\n\r\n showSettingsItem = new JMenuItem( Msgs.str( \"settings.change\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_C, Event.ALT_MASK );\r\n showSettingsItem.setAccelerator( ks );\r\n showSettingsItem.setMnemonic( 'C' );\r\n showSettingsItem.addActionListener( listener );\r\n\r\n settingsMenu.add( qMarkItem );\r\n settingsMenu.add( newGameItem );\r\n settingsMenu.add( showSettingsItem );\r\n }", "private JMenu getJMenuHelp() {\r\n if (jMenuHelp == null) {\r\n jMenuHelp = new JMenu();\r\n jMenuHelp.setText(\"Help\");\r\n jMenuHelp.setMnemonic(KeyEvent.VK_H);\r\n jMenuHelp.add(getJMenuItemTutorial());\r\n }\r\n return jMenuHelp;\r\n }", "@Override\n\tpublic LookAndFeelMenu createLookAndFeelMenu() {\n\t\treturn null;\n\t}", "private static String getMenu() { // method name changes Get_menu to getMenu()\r\n\t\tStringBuilder sb = new StringBuilder();\r\n\t\t\r\n\t\tsb.append(\"\\nLibrary Main Menu\\n\\n\")\r\n\t\t .append(\" M : add member\\n\")\r\n\t\t .append(\" LM : list members\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" B : add book\\n\")\r\n\t\t .append(\" LB : list books\\n\")\r\n\t\t .append(\" FB : fix books\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" L : take out a loan\\n\")\r\n\t\t .append(\" R : return a loan\\n\")\r\n\t\t .append(\" LL : list loans\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" P : pay fine\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\" T : increment date\\n\")\r\n\t\t .append(\" Q : quit\\n\")\r\n\t\t .append(\"\\n\")\r\n\t\t .append(\"Choice : \");\r\n\t\t \r\n\t\treturn sb.toString();\r\n\t}", "public ChessMenuBar() {\n String[] menuCategories = {\"File\", \"Options\", \"Help\"};\n String[] menuItemLists =\n {\"New game/restart,Exit\", \"Toggle graveyard,Toggle game log\",\n \"About\"};\n for (int i = 0; i < menuCategories.length; i++) {\n JMenu currMenu = new JMenu(menuCategories[i]);\n String[] currMenuItemList = menuItemLists[i].split(\",\");\n for (int j = 0; j < currMenuItemList.length; j++) {\n JMenuItem currItem = new JMenuItem(currMenuItemList[j]);\n currItem.addActionListener(new MenuListener());\n currMenu.add(currItem);\n }\n this.add(currMenu);\n }\n }", "private JMenu getJMenuSapphiron() {\r\n if (jMenuSapphiron == null) {\r\n jMenuSapphiron = new JMenu();\r\n jMenuSapphiron.setPreferredSize(new Dimension(65, 20));\r\n jMenuSapphiron.setMnemonic(KeyEvent.VK_S);\r\n jMenuSapphiron.setLocation(new Point(0, 0));\r\n jMenuSapphiron.setText(\"Sapphiron\");\r\n jMenuSapphiron.add(getJMenuFile());\r\n jMenuSapphiron.add(getJMenuHelp());\r\n }\r\n return jMenuSapphiron;\r\n }", "private void buildMenu() {\r\n\t\tJMenuBar mainmenu = new JMenuBar();\r\n\t\tsetJMenuBar(mainmenu);\r\n\r\n\t\tui.fileMenu = new JMenu(\"File\");\r\n\t\tui.editMenu = new JMenu(\"Edit\");\r\n\t\tui.viewMenu = new JMenu(\"View\");\r\n\t\tui.helpMenu = new JMenu(\"Help\");\r\n\t\t\r\n\t\tui.fileNew = new JMenuItem(\"New...\");\r\n\t\tui.fileOpen = new JMenuItem(\"Open...\");\r\n\t\tui.fileImport = new JMenuItem(\"Import...\");\r\n\t\tui.fileSave = new JMenuItem(\"Save\");\r\n\t\tui.fileSaveAs = new JMenuItem(\"Save as...\");\r\n\t\tui.fileExit = new JMenuItem(\"Exit\");\r\n\r\n\t\tui.fileOpen.setAccelerator(KeyStroke.getKeyStroke('O', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.fileSave.setAccelerator(KeyStroke.getKeyStroke('S', InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.fileImport.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doImport(); } });\r\n\t\tui.fileExit.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { dispose(); doExit(); } });\r\n\t\t\r\n\t\tui.fileOpen.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoLoad();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSave.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSave();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.fileSaveAs.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoSaveAs();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editUndo = new JMenuItem(\"Undo\");\r\n\t\tui.editUndo.setEnabled(undoManager.canUndo()); \r\n\t\t\r\n\t\tui.editRedo = new JMenuItem(\"Redo\");\r\n\t\tui.editRedo.setEnabled(undoManager.canRedo()); \r\n\t\t\r\n\t\t\r\n\t\tui.editCut = new JMenuItem(\"Cut\");\r\n\t\tui.editCopy = new JMenuItem(\"Copy\");\r\n\t\tui.editPaste = new JMenuItem(\"Paste\");\r\n\t\t\r\n\t\tui.editCut.addActionListener(new Act() { @Override public void act() { doCut(true, true); } });\r\n\t\tui.editCopy.addActionListener(new Act() { @Override public void act() { doCopy(true, true); } });\r\n\t\tui.editPaste.addActionListener(new Act() { @Override public void act() { doPaste(true, true); } });\r\n\t\t\r\n\t\tui.editPlaceMode = new JCheckBoxMenuItem(\"Placement mode\");\r\n\t\t\r\n\t\tui.editDeleteBuilding = new JMenuItem(\"Delete building\");\r\n\t\tui.editDeleteSurface = new JMenuItem(\"Delete surface\");\r\n\t\tui.editDeleteBoth = new JMenuItem(\"Delete both\");\r\n\t\t\r\n\t\tui.editClearBuildings = new JMenuItem(\"Clear buildings\");\r\n\t\tui.editClearSurface = new JMenuItem(\"Clear surface\");\r\n\r\n\t\tui.editUndo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doUndo(); } });\r\n\t\tui.editRedo.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doRedo(); } });\r\n\t\tui.editClearBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearBuildings(true); } });\r\n\t\tui.editClearSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doClearSurfaces(true); } });\r\n\t\t\r\n\r\n\t\tui.editUndo.setAccelerator(KeyStroke.getKeyStroke('Z', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editRedo.setAccelerator(KeyStroke.getKeyStroke('Y', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCut.setAccelerator(KeyStroke.getKeyStroke('X', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editCopy.setAccelerator(KeyStroke.getKeyStroke('C', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPaste.setAccelerator(KeyStroke.getKeyStroke('V', InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editPlaceMode.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_F3, 0));\r\n\t\t\r\n\t\tui.editDeleteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, 0));\r\n\t\tui.editDeleteSurface.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.editDeleteBoth.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_DELETE, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editDeleteBuilding.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBuilding(); } });\r\n\t\tui.editDeleteSurface.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteSurface(); } });\r\n\t\tui.editDeleteBoth.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDeleteBoth(); } });\r\n\t\tui.editPlaceMode.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doPlaceMode(ui.editPlaceMode.isSelected()); } });\r\n\t\t\r\n\t\tui.editPlaceRoads = new JMenu(\"Place roads\");\r\n\t\t\r\n\t\tui.editResize = new JMenuItem(\"Resize map\");\r\n\t\tui.editCleanup = new JMenuItem(\"Remove outbound objects\");\r\n\t\t\r\n\t\tui.editResize.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoResize();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.editCleanup.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoCleanup();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.editCutBuilding = new JMenuItem(\"Cut: building\");\r\n\t\tui.editCutSurface = new JMenuItem(\"Cut: surface\");\r\n\t\tui.editPasteBuilding = new JMenuItem(\"Paste: building\");\r\n\t\tui.editPasteSurface = new JMenuItem(\"Paste: surface\");\r\n\t\tui.editCopyBuilding = new JMenuItem(\"Copy: building\");\r\n\t\tui.editCopySurface = new JMenuItem(\"Copy: surface\");\r\n\t\t\r\n\t\tui.editCutBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_X, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editCopyBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_C, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\tui.editPasteBuilding.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_V, InputEvent.CTRL_DOWN_MASK | InputEvent.SHIFT_DOWN_MASK));\r\n\t\t\r\n\t\tui.editCutBuilding.addActionListener(new Act() { @Override public void act() { doCut(false, true); } });\r\n\t\tui.editCutSurface.addActionListener(new Act() { @Override public void act() { doCut(true, false); } });\r\n\t\tui.editCopyBuilding.addActionListener(new Act() { @Override public void act() { doCopy(false, true); } });\r\n\t\tui.editCopySurface.addActionListener(new Act() { @Override public void act() { doCopy(true, false); } });\r\n\t\tui.editPasteBuilding.addActionListener(new Act() { @Override public void act() { doPaste(false, true); } });\r\n\t\tui.editPasteSurface.addActionListener(new Act() { @Override public void act() { doPaste(true, false); } });\r\n\t\t\r\n\t\tui.viewZoomIn = new JMenuItem(\"Zoom in\");\r\n\t\tui.viewZoomOut = new JMenuItem(\"Zoom out\");\r\n\t\tui.viewZoomNormal = new JMenuItem(\"Zoom normal\");\r\n\t\tui.viewBrighter = new JMenuItem(\"Daylight (1.0)\");\r\n\t\tui.viewDarker = new JMenuItem(\"Night (0.5)\");\r\n\t\tui.viewMoreLight = new JMenuItem(\"More light (+0.05)\");\r\n\t\tui.viewLessLight = new JMenuItem(\"Less light (-0.05)\");\r\n\t\t\r\n\t\tui.viewShowBuildings = new JCheckBoxMenuItem(\"Show/hide buildings\", renderer.showBuildings);\r\n\t\tui.viewShowBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_B, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewSymbolicBuildings = new JCheckBoxMenuItem(\"Minimap rendering mode\", renderer.minimapMode);\r\n\t\tui.viewSymbolicBuildings.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_M, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewTextBackgrounds = new JCheckBoxMenuItem(\"Show/hide text background boxes\", renderer.textBackgrounds);\r\n\t\tui.viewTextBackgrounds.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewTextBackgrounds.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleTextBackgrounds(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomIn(); } });\r\n\t\tui.viewZoomOut.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomOut(); } });\r\n\t\tui.viewZoomNormal.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doZoomNormal(); } });\r\n\t\tui.viewShowBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleBuildings(); } });\r\n\t\tui.viewSymbolicBuildings.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doToggleMinimap(); } });\r\n\t\t\r\n\t\tui.viewBrighter.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doBright(); } });\r\n\t\tui.viewDarker.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doDark(); } });\r\n\t\tui.viewMoreLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doMoreLight(); } });\r\n\t\tui.viewLessLight.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent e) { doLessLight(); } });\r\n\t\t\r\n\t\tui.viewZoomIn.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD9, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomOut.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD3, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewZoomNormal.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD0, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewMoreLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD8, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewLessLight.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD2, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewBrighter.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD7, InputEvent.CTRL_DOWN_MASK));\r\n\t\tui.viewDarker.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_NUMPAD1, InputEvent.CTRL_DOWN_MASK));\r\n\t\t\r\n\t\tui.viewStandardFonts = new JCheckBoxMenuItem(\"Use standard fonts\", TextRenderer.USE_STANDARD_FONTS);\r\n\t\t\r\n\t\tui.viewStandardFonts.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoStandardFonts();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.viewPlacementHints = new JCheckBoxMenuItem(\"View placement hints\", renderer.placementHints);\r\n\t\tui.viewPlacementHints.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoViewPlacementHints();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.helpOnline = new JMenuItem(\"Online wiki...\");\r\n\t\tui.helpOnline.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoHelp();\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.helpAbout = new JMenuItem(\"About...\");\r\n\t\tui.helpAbout.setEnabled(false); // TODO implement\r\n\t\t\r\n\t\tui.languageMenu = new JMenu(\"Language\");\r\n\t\t\r\n\t\tui.languageEn = new JRadioButtonMenuItem(\"English\", true);\r\n\t\tui.languageEn.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"en\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tui.languageHu = new JRadioButtonMenuItem(\"Hungarian\", false);\r\n\t\tui.languageHu.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tsetLabels(\"hu\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tButtonGroup bg = new ButtonGroup();\r\n\t\tbg.add(ui.languageEn);\r\n\t\tbg.add(ui.languageHu);\r\n\t\t\r\n\t\tui.fileRecent = new JMenu(\"Recent\");\r\n\t\tui.clearRecent = new JMenuItem(\"Clear recent\");\r\n\t\tui.clearRecent.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tdoClearRecent();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\taddAll(ui.fileRecent, ui.clearRecent);\r\n\t\t\r\n\t\taddAll(mainmenu, ui.fileMenu, ui.editMenu, ui.viewMenu, ui.languageMenu, ui.helpMenu);\r\n\t\taddAll(ui.fileMenu, ui.fileNew, null, ui.fileOpen, ui.fileRecent, ui.fileImport, null, ui.fileSave, ui.fileSaveAs, null, ui.fileExit);\r\n\t\taddAll(ui.editMenu, ui.editUndo, ui.editRedo, null, \r\n\t\t\t\tui.editCut, ui.editCopy, ui.editPaste, null, \r\n\t\t\t\tui.editCutBuilding, ui.editCopyBuilding, ui.editPasteBuilding, null, \r\n\t\t\t\tui.editCutSurface, ui.editCopySurface, ui.editPasteSurface, null, \r\n\t\t\t\tui.editPlaceMode, null, ui.editDeleteBuilding, ui.editDeleteSurface, ui.editDeleteBoth, null, \r\n\t\t\t\tui.editClearBuildings, ui.editClearSurface, null, ui.editPlaceRoads, null, ui.editResize, ui.editCleanup);\r\n\t\taddAll(ui.viewMenu, ui.viewZoomIn, ui.viewZoomOut, ui.viewZoomNormal, null, \r\n\t\t\t\tui.viewBrighter, ui.viewDarker, ui.viewMoreLight, ui.viewLessLight, null, \r\n\t\t\t\tui.viewShowBuildings, ui.viewSymbolicBuildings, ui.viewTextBackgrounds, ui.viewStandardFonts, ui.viewPlacementHints);\r\n\t\taddAll(ui.helpMenu, ui.helpOnline, null, ui.helpAbout);\r\n\t\t\r\n\t\taddAll(ui.languageMenu, ui.languageEn, ui.languageHu);\r\n\t\t\r\n\t\tui.fileNew.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdoNew();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tui.toolbar = new JToolBar(\"Tools\");\r\n\t\tContainer c = getContentPane();\r\n\t\tc.add(ui.toolbar, BorderLayout.PAGE_START);\r\n\r\n\t\tui.toolbarCut = createFor(\"res/Cut24.gif\", \"Cut\", ui.editCut, false);\r\n\t\tui.toolbarCopy = createFor(\"res/Copy24.gif\", \"Copy\", ui.editCopy, false);\r\n\t\tui.toolbarPaste = createFor(\"res/Paste24.gif\", \"Paste\", ui.editPaste, false);\r\n\t\tui.toolbarRemove = createFor(\"res/Remove24.gif\", \"Remove\", ui.editDeleteBuilding, false);\r\n\t\tui.toolbarUndo = createFor(\"res/Undo24.gif\", \"Undo\", ui.editUndo, false);\r\n\t\tui.toolbarRedo = createFor(\"res/Redo24.gif\", \"Redo\", ui.editRedo, false);\r\n\t\tui.toolbarPlacementMode = createFor(\"res/Down24.gif\", \"Placement mode\", ui.editPlaceMode, true);\r\n\r\n\t\tui.toolbarUndo.setEnabled(false);\r\n\t\tui.toolbarRedo.setEnabled(false);\r\n\t\t\r\n\t\tui.toolbarNew = createFor(\"res/New24.gif\", \"New\", ui.fileNew, false);\r\n\t\tui.toolbarOpen = createFor(\"res/Open24.gif\", \"Open\", ui.fileOpen, false);\r\n\t\tui.toolbarSave = createFor(\"res/Save24.gif\", \"Save\", ui.fileSave, false);\r\n\t\tui.toolbarImport = createFor(\"res/Import24.gif\", \"Import\", ui.fileImport, false);\r\n\t\tui.toolbarSaveAs = createFor(\"res/SaveAs24.gif\", \"Save as\", ui.fileSaveAs, false);\r\n\t\tui.toolbarZoomNormal = createFor(\"res/Zoom24.gif\", \"Zoom normal\", ui.viewZoomNormal, false);\r\n\t\tui.toolbarZoomIn = createFor(\"res/ZoomIn24.gif\", \"Zoom in\", ui.viewZoomIn, false);\r\n\t\tui.toolbarZoomOut = createFor(\"res/ZoomOut24.gif\", \"Zoom out\", ui.viewZoomOut, false);\r\n\t\tui.toolbarBrighter = createFor(\"res/TipOfTheDay24.gif\", \"Daylight\", ui.viewBrighter, false);\r\n\t\tui.toolbarDarker = createFor(\"res/TipOfTheDayDark24.gif\", \"Night\", ui.viewDarker, false);\r\n\t\tui.toolbarHelp = createFor(\"res/Help24.gif\", \"Help\", ui.helpOnline, false);\r\n\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarNew);\r\n\t\tui.toolbar.add(ui.toolbarOpen);\r\n\t\tui.toolbar.add(ui.toolbarSave);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarImport);\r\n\t\tui.toolbar.add(ui.toolbarSaveAs);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarCut);\r\n\t\tui.toolbar.add(ui.toolbarCopy);\r\n\t\tui.toolbar.add(ui.toolbarPaste);\r\n\t\t\r\n\t\tui.toolbar.add(ui.toolbarRemove);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarUndo);\r\n\t\tui.toolbar.add(ui.toolbarRedo);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarPlacementMode);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarZoomNormal);\r\n\t\tui.toolbar.add(ui.toolbarZoomIn);\r\n\t\tui.toolbar.add(ui.toolbarZoomOut);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarBrighter);\r\n\t\tui.toolbar.add(ui.toolbarDarker);\r\n\t\tui.toolbar.addSeparator();\r\n\t\tui.toolbar.add(ui.toolbarHelp);\r\n\t\t\r\n\t}", "private JMenu createFileMenu() {\n\t\tJMenu menu = new JMenu(\"File\"); \n\t\tmenu.add(createDetectiveNotes());\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}", "private void constructMenuItems()\n\t{\n\t\tthis.saveImageMenuItem = ComponentGenerator.generateMenuItem(\"Save Image\", this, KeyStroke.getKeyStroke(KeyEvent.VK_S, ActionEvent.CTRL_MASK));\n\t\tthis.quitMenuItem = ComponentGenerator.generateMenuItem(\"Quit\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Q, ActionEvent.CTRL_MASK));\n\t\tthis.undoMenuItem = ComponentGenerator.generateMenuItem(\"Undo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Z, ActionEvent.CTRL_MASK));\n\t\tthis.redoMenuItem = ComponentGenerator.generateMenuItem(\"Redo\", this, KeyStroke.getKeyStroke(KeyEvent.VK_Y, ActionEvent.CTRL_MASK));\n\t\tthis.removeImageMenuItem = ComponentGenerator.generateMenuItem(\"Remove Image from Case\", this);\n\t\tthis.antiAliasMenuItem = ComponentGenerator.generateMenuItem(\"Apply Anti Aliasing\", this);\n\t\tthis.brightenMenuItem = ComponentGenerator.generateMenuItem(\"Brighten by 10%\", this);\n\t\tthis.darkenMenuItem = ComponentGenerator.generateMenuItem(\"Darken by 10%\", this);\n\t\tthis.grayscaleMenuItem = ComponentGenerator.generateMenuItem(\"Convert to Grayscale\", this);\n\t\tthis.resizeMenuItem = ComponentGenerator.generateMenuItem(\"Resize Image\", this);\n\t\tthis.cropMenuItem = ComponentGenerator.generateMenuItem(\"Crop Image\", this);\n\t\tthis.rotate90MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 90\\u00b0 Right\", this);\n\t\tthis.rotate180MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 180\\u00b0 Right\", this);\n\t\tthis.rotate270MenuItem = ComponentGenerator.generateMenuItem(\"Rotate Image 270\\u00b0 Right\", this);\n\t}", "MenuEntry.Factory getMenuEntryFactory();", "private void createMenusNow()\n {\n JMenu debugMenu = myToolbox.getUIRegistry().getMenuBarRegistry().getMenu(MenuBarRegistry.MAIN_MENU_BAR,\n MenuBarRegistry.DEBUG_MENU);\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Print Summary\", e -> printSummary()));\n debugMenu.add(SwingUtilities.newMenuItem(\"DataTypeInfo - Tag Data Type\", e -> tagDataType()));\n }", "private void makeMenuBar() {\n final int SHORTCUT_MASK =\n Toolkit.getDefaultToolkit().getMenuShortcutKeyMask();\n\n JMenuBar menubar = new JMenuBar();\n setJMenuBar(menubar);\n\n JMenu menu;\n JMenuItem item;\n\n // create the File menu\n menu = new JMenu(\"File\");\n menubar.add(menu);\n\n item = new JMenuItem(\"Quit\");\n item.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_Q, SHORTCUT_MASK));\n item.addActionListener(e -> quit());\n menu.add(item);\n\n // create the Help menu\n menu = new JMenu(\"Help\");\n menubar.add(menu);\n\n item = new JMenuItem(\"About TalkBox...\");\n item.addActionListener(e -> showAbout());\n menu.add(item);\n }", "private JMenuBar createMenuBar() {\r\n\t\tJMenuBar menuBar = new JMenuBar();\r\n\t\tmenuBar.add(createFileMenu());\r\n\t\tmenuBar.add(createExamplesMenu());\r\n\t\tmenuBar.add(createEditVariableMenu());\r\n\t\tmenuBar.add(createAnimationMenu());\r\n\t\treturn (menuBar);\r\n\t}", "public void init() {\n\t\tMenu menu = new Menu();\n\t\tmenu.register();\n\n\t\t// Application.getInstance().getGUILog().showMessage(\"Show a popup the proper\n\t\t// way !\");\n\n\t\t// final ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\n\t\t// final MDAction action = new ExampleAction();\n\t\t// Adding action to main menu\n\t\t// manager.addMainMenuConfigurator(new MainMenuConfigurator(action));\n\t\t// Adding action to main toolbar\n\t\t// manager.addMainToolbarConfigurator(new MainToolbarConfigurator(action));\n\n\t\t// pluginDir = getDescriptor().getPluginDirectory().getPath();\n\n\t\t// Creating submenu in the MagicDraw main menu\n\t\t// ActionsConfiguratorsManager manager =\n\t\t// ActionsConfiguratorsManager.getInstance();\n\t\t// manager.addMainMenuConfigurator(new\n\t\t// MainMenuConfigurator(getSubmenuActions()));\n\n\t\t/**\n\t\t * @Todo: load project options (@see myplugin.generator.options.ProjectOptions)\n\t\t * from ProjectOptions.xml and take ejb generator options\n\t\t */\n\n\t\t// for test purpose only:\n\t\t// GeneratorOptions ejbOptions = new GeneratorOptions(\"c:/temp\", \"ejbclass\",\n\t\t// \"templates\", \"{0}.java\", true, \"ejb\");\n\t\t// ProjectOptions.getProjectOptions().getGeneratorOptions().put(\"EJBGenerator\",\n\t\t// ejbOptions);\n\n\t\t// ejbOptions.setTemplateDir(pluginDir + File.separator +\n\t\t// ejbOptions.getTemplateDir()); //apsolutna putanja\n\t}", "private JMenuBar createMenuBar() {\n\t\tJMenuBar menuBar = new JMenuBar();\n\t\t\n\t\tJMenu fileMenu = new JMenu(\"File\");\n\t\tJMenu helpMenu = new JMenu(\"Help\");\n\t\t\n\t\tmenuBar.add(fileMenu);\n\t\tmenuBar.add(helpMenu);\n\t\t\n\t\tfileMenu.setMnemonic(KeyEvent.VK_F);\n\t\thelpMenu.setMnemonic(KeyEvent.VK_H);\n\n\t\tJMenuItem exitItem =\n\t\t\t\tcreateMenuItem(fileMenu, \"Exit\", KeyEvent.VK_X, \"ctrl X\", \"Exits the program\");\n\t\texitItem.addActionListener((e) -> {\n\t\t\tthis.dispose();\n\t\t\tSystem.exit(0);\n\t\t});\n\t\t\n\t\tJMenuItem aboutItem =\n\t\t\t\tcreateMenuItem(helpMenu, \"About File Encryptor\", -1, null, \"Shows information about this program\");\n\t\taboutItem.addActionListener((e) -> {\n\t\t\tshowHelp();\n\t\t});\n\t\t\n\t\treturn menuBar;\n\t}", "public interface UIFormMenuBuilderInterface {\r\n\r\n\t/**\r\n\t * Return a new UIMenu object.\r\n\t * \r\n\t * @param heading String\r\n\t * @return UIMenu UIMenu\r\n\t */\r\n\t//UIFormMenu toUIMenu(String heading);\r\n\t\r\n\t/**\r\n\t * Return a new UIForm object.\r\n\t * \r\n\t * @param heading String\r\n\t * @return UIForm UIForm\r\n\t */\r\n\tUIFormMenu toUIFormMenu(String heading);\r\n\t\r\n\t/**\r\n\t * Add prompt to UIMenu\r\n\t * \r\n\t * @param prompt Prompt\r\n\t * @param action Action to be taken\r\n\t */\r\n\tvoid add(String prompt, UIMenuAction action);\r\n\t\r\n\t/**\r\n\t * Add prompt to UIForm\r\n\t * \r\n\t * @param prompt Prompt\r\n\t * @param test Test for form\r\n\t */\r\n\tvoid add(String prompt, UIFormTest test);\r\n\t\r\n}", "public Menu createFileMenu();", "private JMenuBar createMenuBar()\n\t{\n\t\tJMenuBar menBar = new JMenuBar();\n\t\tJMenu men = new JMenu();\n\t\tmen.setText(\"Menu\");\n\t\tJMenuItem menSettings = new JMenuItem();\n\t\tmenSettings.setText(\"Settings\");\n\t\tmenSettings.addActionListener(new ActionListener() { public void actionPerformed(ActionEvent e)\n\t\t{\n\t\t\tsettingsWindow.setVisible(true);\n\t\t}});\n\t\tmen.add(menSettings);\n\t\tmenBar.add(men);\n\t\treturn menBar;\n\t}", "private HBox createMenu(BorderPane root) {\n HBox menu = new HBox();\n\n menu.setPadding(new Insets(30, 30, 30, 30));\n menu.setSpacing(30);\n menu.setBackground(new Background(new BackgroundFill(MENU_COLOR, CornerRadii.EMPTY, Insets.EMPTY)));\n menu.getChildren().addAll(createNewArrayButton(root), createArrSizeSliderWrapper(root),\n createNumOfThreadsSpinnerWrapper(), createExecuteMergeSortButton(root));\n\n return menu;\n }", "private MenuManager createHelpMenu(IWorkbenchWindow window) {\n\t\tMenuManager menu = new MenuManager(Messages.getString(\"IU.Strings.42\")); //$NON-NLS-1$\n\t\t\n\t\t\n\t\tmenu.add(getAction(ActionFactory.HELP_CONTENTS.getId()));\t\n\t\tmenu.add(new Separator());\n\t\tIWorkbenchAction about = ActionFactory.ABOUT.create(window);\n\t\tabout.setText(Messages.getString(\"IU.Strings.43\")); //$NON-NLS-1$\n\t\tmenu.add(about);\n\t\t\n\t\treturn menu;\t\n\t}", "private void makeHelpMenu() {\r\n\t\tJMenu helpMnu = new JMenu(\"Ayuda\");\r\n\r\n\t\tJMenuItem tipMenuItem = new JMenuItem(\"Tips...\");\r\n\t\ttipMenuItem.setMnemonic('t');\r\n\t\ttipMenuItem.setToolTipText(\"Muestra los consejos de Store\");\r\n\t\ttipMenuItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tnew StoreTip();\r\n\t\t\t}\r\n\r\n\t\t});\r\n\r\n\t\thelpMnu.add(tipMenuItem);\r\n\t\thelpMnu.setMnemonic('y');\r\n\t\tadd(helpMnu);\r\n\t}", "public TextController createMenu(ControllerCore genCode) {\n\t\tmenuTXT = new TextController(\"menu\", getParentController(controlItemSCSCLC), genCode) {\n\t\t\t@Override\n\t\t\tpublic void initialize() {\n\t\t\t\tsetLinkedController(menu$1LBL);\n\t\t\t\tsetProperty(\"menu\");\n\t\t\t\tsuper.initialize();\n\t\t\t}\n\t\t\t@Override\n\t\t\tpublic void createControl() {\n\t\t\t\tsuper.createControl();\n\t\t\t\tif (isValid()) {\n\t\t\t\t\tif (null != fieldBindManager)\n\t\t\t\t\t\tfieldBindManager = new XjcFieldBindingManager(this);\n\t\t\t\t\tgetControl().addFocusListener(new XjcFocusListener(this));\n\t\t\t\t}\n\t\t\t}\n\t\t};\n\t\treturn menuTXT;\n\t}", "private void buildGameMenu() {\r\n gameMenu = new JMenu( Msgs.str( \"Game\" ) );\r\n\r\n tinyFieldItem = new JMenuItem( Msgs.str( \"field.xs\" ) + FIELD_SIZE_XS + Msgs.str( \"sqr_side\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_T, Event.ALT_MASK );\r\n tinyFieldItem.setAccelerator( ks );\r\n tinyFieldItem.setMnemonic( 'T' );\r\n tinyFieldItem.addActionListener( listener );\r\n\r\n smallFieldItem = new JMenuItem( Msgs.str( \"field.sm\" ) + FIELD_SIZE_SM + Msgs.str( \"sqr_side\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_S, Event.ALT_MASK );\r\n smallFieldItem.setAccelerator( ks );\r\n smallFieldItem.setMnemonic( 'S' );\r\n smallFieldItem.addActionListener( listener );\r\n\r\n medFieldItem = new JMenuItem( Msgs.str( \"field.md\" ) + FIELD_SIZE_MD + Msgs.str( \"sqr_side\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_M, Event.ALT_MASK );\r\n medFieldItem.setAccelerator( ks );\r\n medFieldItem.setMnemonic( 'M' );\r\n medFieldItem.addActionListener( listener );\r\n\r\n largeFieldItem = new JMenuItem( Msgs.str( \"field.lg\" ) + FIELD_SIZE_LG + Msgs.str( \"sqr_side\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_L, Event.ALT_MASK );\r\n largeFieldItem.setAccelerator( ks );\r\n largeFieldItem.setMnemonic( 'L' );\r\n largeFieldItem.addActionListener( listener );\r\n\r\n hugeFieldItem = new JMenuItem( Msgs.str( \"field.xl\" ) + FIELD_SIZE_XL + Msgs.str( \"sqr_side\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_H, Event.ALT_MASK );\r\n hugeFieldItem.setAccelerator( ks );\r\n hugeFieldItem.setMnemonic( 'H' );\r\n hugeFieldItem.addActionListener( listener );\r\n\r\n exitGameItem = new JMenuItem( Msgs.str( \"Exit\" ) );\r\n ks = KeyStroke.getKeyStroke( KeyEvent.VK_X, Event.ALT_MASK );\r\n exitGameItem.setAccelerator( ks );\r\n exitGameItem.setMnemonic( 'X' );\r\n exitGameItem.addActionListener( listener );\r\n\r\n gameMenu.add( tinyFieldItem );\r\n gameMenu.add( smallFieldItem );\r\n gameMenu.add( medFieldItem );\r\n gameMenu.add( largeFieldItem );\r\n gameMenu.add( hugeFieldItem );\r\n gameMenu.addSeparator();\r\n gameMenu.add( exitGameItem );\r\n }", "@objid (\"fff3543b-6152-4665-9552-d57a3790f997\")\n public static MMenuElement createMenu(final IModule module, MPart view) {\n MMenu moduleMenu = MMenuFactory.INSTANCE.createMenu();\n moduleMenu.setEnabled(true);\n moduleMenu.setToBeRendered(true);\n moduleMenu.setVisible(true);\n moduleMenu.setLabel(module.getLabel());\n moduleMenu.setIconURI(getModuleIconeURI(module));\n moduleMenu.getTags().add(DYNAMIC_MODULE_MENU_TAG);\n moduleMenu.getTags().add(module.getName());\n // Create command, handler and corresponding menu entry for each\n // IModuleAction provided by the module with\n // location == ActionLocation.contextualpopup\n createMenuEntriesForAction(module, moduleMenu, view);\n // If at least one command added, add the module to the main popup.\n if (!moduleMenu.getChildren().isEmpty()) {\n return moduleMenu;\n }\n return null;\n }", "public AdminMenu(JDealsController sysCtrl) {\n super(\"Select Menu\", sysCtrl);\n\n this.addItem(\"Admin Panel\", new Callable() {\n @Override\n public Boolean call() throws Exception {\n new AdminCommandList(getSysCtrl()).runMenu();\n return true;\n }\n });\n\n this.addItem(\"Default Menu\", new Callable() {\n @Override\n public Boolean call() throws Exception {\n new UserMenu(getSysCtrl()).runMenu();\n return true;\n }\n });\n }", "private void initMenu()\n {\n bar = new JMenuBar();\n fileMenu = new JMenu(\"File\");\n crawlerMenu = new JMenu(\"Crawler\"); \n aboutMenu = new JMenu(\"About\");\n \n bar.add(fileMenu);\n bar.add(crawlerMenu);\n bar.add(aboutMenu);\n \n exit = new JMenuItem(\"Exit\");\n preferences = new JMenuItem(\"Preferences\");\n author = new JMenuItem(\"Author\");\n startCrawlerItem = new JMenuItem(\"Start\");\n stopCrawlerItem = new JMenuItem(\"Stop\");\n newIndexItem = new JMenuItem(\"New index\");\n openIndexItem = new JMenuItem(\"Open index\");\n \n stopCrawlerItem.setEnabled(false);\n \n fileMenu.add(newIndexItem);\n fileMenu.add(openIndexItem);\n fileMenu.add(exit);\n aboutMenu.add(author);\n crawlerMenu.add(startCrawlerItem);\n crawlerMenu.add(stopCrawlerItem);\n crawlerMenu.add(preferences);\n \n author.addActionListener(this);\n preferences.addActionListener(this);\n exit.addActionListener(this);\n startCrawlerItem.addActionListener(this);\n stopCrawlerItem.addActionListener(this);\n newIndexItem.addActionListener(this);\n openIndexItem.addActionListener(this);\n \n frame.setJMenuBar(bar);\n }", "public static HelpDisplayBuilder builder() {\n return new HelpDisplayBuilder();\n }", "protected ViewerPopupMenu createPopupMenu()\n {\n ViewerPopupMenu menu = super.createPopupMenu();\n\n viewAction = new ViewerAction(this, \"View\", \"view\",\n \"View Dofs\",\n \"View the dofs of an Actor in table form.\",\n null, null, \"Ctrl-V\", null, \"false\");\n\n menu.addSeparator();\n menu.add(viewAction);\n\n return menu;\n }", "public JMenu createFileMenu(){\n\t\tJMenu menu = new JMenu(\"File\");\n\t\tmenu.add(createFileResetItem());\n\t\tmenu.add(createFilePracticeItem());\t\t\n\t\tmenu.add(createFileExitItem());\n\t\treturn menu;\n\t}", "private Menu createServiceMenu() {\r\n\t\tMenu serviceMenu = new Menu(\"Service\");\r\n\r\n\t\tstartService = new MenuItem(\"Start\");\r\n\t\tstartService.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlocalPeer.startService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tserviceMenu.add(startService);\r\n\r\n\t\tstopService = new MenuItem(\"Stop\");\r\n\t\tstopService.addActionListener(new ActionListener() {\r\n\t\t\t@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tlocalPeer.stopService();\r\n\t\t\t}\r\n\t\t});\r\n\t\tstopService.setEnabled(false);\r\n\t\tserviceMenu.add(stopService);\r\n\r\n\t\treturn serviceMenu;\r\n\t}", "private JMenu getMMain() {\n\t\tif (mMain == null) {\n\t\t\tmMain = new JMenu();\n\t\t\tmMain.setText(\"Dosya\");\n\t\t\tmMain.add(getMiConfigure());\n\t\t\tmMain.add(getMiExit());\n\t\t}\n\t\treturn mMain;\n\t}", "protected void createContents() {\n\t\tshlMenu = new Shell();\n\t\tshlMenu.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/File-delete-icon.png\"));\n\t\tshlMenu.setBackground(SWTResourceManager.getColor(255, 102, 0));\n\t\tshlMenu.setSize(899, 578);\n\t\tshlMenu.setText(\"MENU\");\n\t\t\n\t\tMenu menu = new Menu(shlMenu, SWT.BAR);\n\t\tshlMenu.setMenuBar(menu);\n\t\t\n\t\tMenuItem mnętmBookLists = new MenuItem(menu, SWT.NONE);\n\t\tmnętmBookLists.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booklist frame \n\t\t\t\tBookListFrame window = new BookListFrame();\n\t\t\t\twindow.open();\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmnętmBookLists.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Todo-List-icon.png\"));\n\t\tmnętmBookLists.setText(\"Book Lists\");\n\t\t\n\t\tMenuItem mnętmMemberList = new MenuItem(menu, SWT.NONE);\n\t\tmnętmMemberList.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call memberlistframe\n\t\t\t\tMemberListFrame window = new MemberListFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tmnętmMemberList.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Misc-User-icon.png\"));\n\t\tmnętmMemberList.setText(\"Member List\");\n\t\t\n\t\tMenuItem mnętmNewItem = new MenuItem(menu, SWT.NONE);\n\t\tmnętmNewItem.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call rent list\n\t\t\t\tRentListFrame rlf=new RentListFrame();\n\t\t\t\trlf.open();\n\t\t\t}\n\t\t});\n\t\tmnętmNewItem.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Time-And-Date-Calendar-icon.png\"));\n\t\tmnętmNewItem.setText(\"Rent List\");\n\t\t\n\t\tButton btnNewButton = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call booksettingsframe\n\t\t\t\tBookSettingsFrame window = new BookSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Printing-Books-icon.png\"));\n\t\tbtnNewButton.setBounds(160, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_1 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_1.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\t//call membersettingsframe\n\t\t\t\tMemberSettingsFrame window = new MemberSettingsFrame();\n\t\t\t\twindow.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_1.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_1.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Add-User-icon.png\"));\n\t\tbtnNewButton_1.setBounds(367, 176, 114, 112);\n\t\t\n\t\tButton btnNewButton_2 = new Button(shlMenu, SWT.NONE);\n\t\tbtnNewButton_2.addSelectionListener(new SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(SelectionEvent e) {\n\t\t\t\tRentingFrame rf=new RentingFrame();\n\t\t\t\trf.open();\n\t\t\t}\n\t\t});\n\t\tbtnNewButton_2.setForeground(SWTResourceManager.getColor(SWT.COLOR_INFO_BACKGROUND));\n\t\tbtnNewButton_2.setImage(SWTResourceManager.getImage(MainMenu.class, \"/ikons/Business-Statistics-icon.png\"));\n\t\tbtnNewButton_2.setBounds(567, 176, 114, 112);\n\n\t}", "private JMenuBar createMenuBar() {\n\t\tJMenuBar jmb = new JMenuBar();\n\t\tImageIcon icon;\n\n\t\t// Create the File menu.\n\t\tJMenu jmFile = new JMenu(\"File\");\n\t\tthis.imageURL = getClass().getResource(\"/icons/folder-open_16.png\");\n\t\ticon = new ImageIcon(imageURL);\n\t\tJMenuItem jmiOpen = new JMenuItem(\"Open\", icon);\n\t\tjmiOpen.addActionListener(event -> tfStatus.setText(\"Menu item: \" + event.getActionCommand()));\n\t\tthis.imageURL = getClass().getResource(\"/icons/save_16.png\");\n\t\ticon = new ImageIcon(imageURL);\n\t\tJMenuItem jmiSave = new JMenuItem(\"Save\", icon);\n\t\tjmiSave.addActionListener(event -> tfStatus.setText(\"Menu item: \" + event.getActionCommand()));\n\t\tthis.imageURL = getClass().getResource(\"/icons/print_16.png\");\n\t\ticon = new ImageIcon(imageURL);\n\t\tJMenuItem jmiPrint = new JMenuItem(\"Print\", icon);\n\t\tjmiPrint.addActionListener(event -> tfStatus.setText(\"Menu item: \" + event.getActionCommand()));\n\t\tJMenuItem jmiExit = new JMenuItem(\"Exit\");\n\t\tjmiExit.addActionListener(event -> System.exit(0));\n\t\tjmFile.add(jmiOpen);\n\t\tjmFile.add(jmiSave);\n\t\tjmFile.addSeparator();\n\t\tjmFile.add(jmiPrint);\n\t\tjmFile.addSeparator();\n\t\tjmFile.add(jmiExit);\n\t\tjmb.add(jmFile);\n\n\t\t// Create the Options menu.\n\t\tJMenu jmOptions = new JMenu(\"Options\");\n\t\t// Create the Colors submenu.\n\t\tJMenu jmColors = new JMenu(\"Colors\");\n\t\tJRadioButtonMenuItem jmiBlue = new JRadioButtonMenuItem(blueAction);\n\t\tJRadioButtonMenuItem jmiRed = new JRadioButtonMenuItem(redAction);\n\t\tJRadioButtonMenuItem jmiYellow = new JRadioButtonMenuItem(yellowAction);\n\t\tjmColors.add(jmiBlue);\n\t\tjmColors.add(jmiRed);\n\t\tjmColors.add(jmiYellow);\n\t\tjmOptions.add(jmColors);\n\t\tButtonGroup bg = new ButtonGroup();\n\t\tbg.add(jmiBlue);\n\t\tbg.add(jmiRed);\n\t\tbg.add(jmiYellow);\n\t\tjmOptions.addSeparator();\n\t\tJCheckBoxMenuItem jmiSettings = new JCheckBoxMenuItem(\"Settings\");\n\t\tjmiSettings.setSelected(true);\n\t\tjmiSettings.addActionListener(event -> tfStatus.setText(\"Menu item: \" + event.getActionCommand()));\n\t\tjmOptions.add(jmiSettings);\n\t\tjmb.add(jmOptions);\n\t\treturn jmb;\n\t}", "private JMenuBar createMenuBar()\r\n {\r\n UIManager.put(\"Menu.selectionBackground\", new Color(0xDA,0xDD,0xED));\r\n UIManager.put(\"MenuItem.selectionForeground\", Color.LIGHT_GRAY);\r\n JMenuBar menuBar = new JMenuBar();\r\n JMenu menu = new JMenu(\"Fil\");\r\n UIManager.put(\"MenuItem.selectionBackground\", menu.getBackground());\r\n menuItemSave = new JMenuItem(\"Lagre\");\r\n UIManager.put(\"MenuItem.selectionBackground\", menuItemSave.getBackground());\r\n menuItemSave.setForeground(Color.LIGHT_GRAY);\r\n menuItemSave.setBorder(BorderFactory.createEmptyBorder());\r\n menuItemSave.setAccelerator(KeyStroke.getKeyStroke('S', Event.CTRL_MASK));\r\n menuItemSave.addActionListener(listener);\r\n menu.add(menuItemSave);\r\n menuItemPrint = new JMenuItem(\"Skriv ut\");\r\n menuItemPrint.setForeground(Color.LIGHT_GRAY);\r\n menuItemPrint.setBorder(BorderFactory.createEmptyBorder());\r\n menuItemPrint.setAccelerator(KeyStroke.getKeyStroke('P', Event.CTRL_MASK));\r\n menuItemPrint.addActionListener(listener);\r\n menu.add(menuItemPrint);\r\n menu.addSeparator();\r\n menuItemLogout = new JMenuItem(\"Logg av\");\r\n menuItemLogout.setForeground(Color.LIGHT_GRAY);\r\n menuItemLogout.setBorder(BorderFactory.createEmptyBorder());\r\n menuItemLogout.addActionListener(listener);\r\n menuItemLogout.setAccelerator(KeyStroke.getKeyStroke('L', Event.CTRL_MASK));\r\n menu.add(menuItemLogout);\r\n UIManager.put(\"MenuItem.selectionBackground\", new Color(0xDA,0xDD,0xED));\r\n UIManager.put(\"MenuItem.selectionForeground\", Color.BLACK);\r\n menuItemClose = new JMenuItem(\"Avslutt\");\r\n menuItemClose.setAccelerator(KeyStroke.getKeyStroke('A', Event.CTRL_MASK));\r\n menuItemClose.addActionListener(listener);\r\n menuBar.add(menu);\r\n menu.add(menuItemClose);\r\n JMenu menu2 = new JMenu(\"Om\");\r\n menuItemAbout = new JMenuItem(\"Om\");\r\n menuItemAbout.setAccelerator(KeyStroke.getKeyStroke('O', Event.CTRL_MASK));\r\n menuItemAbout.addActionListener(listener);\r\n menuItemAbout.setBorder(BorderFactory.createEmptyBorder());\r\n menu2.add(menuItemAbout);\r\n menuBar.add(menu2);\r\n \r\n return menuBar;\r\n }", "public MenuBar lobbyMenu() {\n MenuBar menubar = new MenuBar();\n\n Menu accountMenu = new Menu(\"Account\");\n\n MenuItem preferences = new MenuItem(\"Preferences\");\n preferences.setOnAction(e -> new AccountGUI().start(stage, this, loginGUI, socket));\n\n MenuItem signOut = new MenuItem(\"Sign Out\");\n signOut.setOnAction(e -> {\n loginGUI.disconnect();\n loginGUI.start(stage);\n });\n\n accountMenu.getItems().addAll(preferences, signOut);\n\n menubar.getMenus().add(accountMenu);\n\n return menubar;\n }", "ReturnCode createMenus(MmtConfig cfg, String menuJson);", "private void createContextMenu(){\r\n\t\tmenu = new JMenuBar();\r\n\t\tint ctrl;\r\n\t\tif(MAC)\r\n\t\t\tctrl = ActionEvent.META_MASK;\r\n\t\telse\r\n\t\t\tctrl = ActionEvent.CTRL_MASK;\r\n\r\n\t\tJMenu fileMenu = new JMenu(\"File\");\r\n\t\tnewMenu = new JMenuItem(\"New\");\r\n\t\tnewMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_N, ctrl));\r\n\t\tnewMenu.addActionListener(this);\r\n\t\topenMenu = new JMenuItem(\"Open\");\r\n\t\topenMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_O, ctrl));\r\n\t\topenMenu.addActionListener(this);\r\n\t\trecentMenu = new JMenu(\"Open Recent\");\r\n\t\tpopulateRecentMenu();\r\n\t\tsaveMenu = new JMenuItem(\"Save\");\r\n\t\tsaveMenu.setAccelerator(KeyStroke.getKeyStroke(KeyEvent.VK_S, ctrl));\r\n\t\tsaveMenu.addActionListener(this);\r\n\t\tsaveAsMenu = new JMenuItem(\"Save As...\");\r\n\t\tsaveAsMenu.addActionListener(this);\r\n\t\tfileMenu.add(newMenu);\r\n\t\tfileMenu.add(openMenu);\r\n\t\tfileMenu.add(recentMenu);\r\n\t\tfileMenu.add(saveMenu);\r\n\t\tfileMenu.add(saveAsMenu);\r\n\r\n\t\tmenu.add(fileMenu);\r\n\r\n\t\tJMenu editMenu = new JMenu(\"Edit\");\r\n\t\tpreferencesMenu = new JMenuItem(\"Preferences\");\r\n\t\tpreferencesMenu.addActionListener(this);\r\n\t\teditMenu.add(preferencesMenu);\r\n\r\n\t\tmenu.add(editMenu);\r\n\r\n\t\tif(!MAC){\r\n\t\t\tJMenu helpMenu = new JMenu(\"Help\");\r\n\t\t\tJMenuItem aboutMenuI = new JMenuItem(\"About\");\r\n\r\n\t\t\taboutMenuI.addActionListener(new ActionListener(){\r\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\tshowAboutMenu();\r\n\t\t\t\t}\t\t\r\n\t\t\t});\r\n\t\t\thelpMenu.add(aboutMenuI);\r\n\t\t\tmenu.add(helpMenu);\r\n\t\t}\r\n\t}", "public Menu createMenu(String name) {\r\n\t\treturn new Menu(name,this);\r\n\t}", "protected abstract PopupMenuHelper createActionMenuHelper();", "IMenuView getMenuView();", "public JMenuBar buildMenu()\n\t{\n\t\tJMenu menuItem1 = new JMenu(\"Project\"); //Create a menu named \"Project\"\n\t JMenu menuItem2 = new JMenu(\"File\"); //Create a menu named \"File\"\n\t //JMenu menuItem3 = new JMenu(\"Help\"); //Create a menu named \"Help\"\n\t JMenu menuItem4 = new JMenu(\"Execute\"); //Create a menu named \"Execute\"\n\t \n\t //Add each menu to the menu bar\n\t menuBar.add(menuItem1); \n\t menuBar.add(menuItem2);\n\t // menuBar.add(menuItem3);\n\t menuBar.add(menuItem4);\n\t \n\t //Create a new menu item called \"Open Project\"\n\t JMenuItem projectOpen = new JMenuItem(\"Open Project\"); \n\t //Create an action listener for that menu item\n\t projectOpen.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) \n {\n try \n {\n \t\tdisplayText(f.closeFile()); //Clear the current text open in the editor\n \t\tcurrentFile.setLength(0); //Clear the name of the currently opened project\n\t \tresetFileTitle(); //Reset the text editor window title to the default \n\t\t\t\t\tp.openProject(saveDirectory, currentProject); //Calls the openProject function\n\t projectPropertiesDisplay(); //Reset the project properties window to display the open projects files\n\t\t\t\t\tresetProjectTitle(); //Reset the projectPoperties title to the name of the open project\n\t\t\t\t} \n catch (WorkspaceFolderException e1) \n {}\n }\n });\n\t \n\t //Create a new menu item called \"Close Project\"\n\t JMenuItem projectClose = new JMenuItem(\"Close Project\");\n\t //Create an action listener for that menu item\n\t projectClose.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) \n {\n \t\tdisplayText(f.closeFile()); //Clear the current text open in the editor\n \t\tcurrentFile.setLength(0); //Clear the name of the currently opened project\n \tresetFileTitle(); //Reset the text editor window title to the default\n p.closeProject(currentProject);\n\t\t\t\tresetProjectTitle();\n projectPropertiesDisplay(); //Reset the project properties window to display the open projects files \n }\n });\n\t \n\t //Create a new menu item called \"Create New Project\"\n\t JMenuItem projectCreateNew = new JMenuItem(\"Create New Project\"); \n\t //Create an action listener for that menu item\n\t projectCreateNew.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) \n {\n \ttry \n \t{\n \t\tdisplayText(f.closeFile()); //Clear the current text open in the editor\n \t\tcurrentFile.setLength(0); //Clear the name of the currently opened project\n\t \tresetFileTitle(); //Reset the text editor window title to the default\n\t p.closeProject(currentProject);\n\t\t\t\t\tp.createNewProject(saveDirectory, currentProject); //Call the create new project function \n\t\t\t\t\tresetProjectTitle(); //Reset the project properties title to the newly created project name\n\t projectPropertiesDisplay(); //Reset the project properties window to display the open projects files\n\t\t\t\t} \n \tcatch (IOException e1) \n \t{} \n \tcatch (NoProjectNameException e1) \n \t{} \n \tcatch (WorkspaceFolderException e1) \n \t{}\n }\n });\n\t \n\t //Add the project menu items\n\t menuItem1.add(projectOpen); //Add the new menu items to the \"Project\" menu item\n\t menuItem1.add(projectClose);\n\t menuItem1.add(projectCreateNew);\n\t \n\t //Create a new menu item called \"Save\"\n\t JMenuItem fileSave = new JMenuItem(\"Save\");\n\t //Create an action listener for that menu item\n\t fileSave.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) \n {\n \ttry \n \t{\n\t\t\t\t\tf.saveFile(ta, currentProject, currentFile); //Call the saveFile function\n\t\t\t\t} \n \tcatch (IOException e1) \n \t{} \n \tcatch (NoFileToSaveException e1) \n \t{} \n \tcatch (ProjectNotOpenException e1) \n \t{}\n }\n });\n\n\t //Create a new menu item called \"Close\"\n\t JMenuItem fileClose = new JMenuItem(\"Close\");\n\t //Create an action listener for that menu item\n\t fileClose.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) \n {\n \t\tdisplayText(f.closeFile()); //Clear the current text open in the editor\n \t\tcurrentFile.setLength(0); //Clear the name of the currently opened project\n \tresetFileTitle(); //Reset the text editor window title to the default \n }\n });\n\t \n\t //Create a new menu item called \"Create New\"\n\t JMenuItem fileCreateNew = new JMenuItem(\"Create New\"); \n\t //Create an action listener for that menu item\n\t fileCreateNew.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) \n {\n try \n {\n \t\tcurrentFile.setLength(0); //Clear the name of the currently opened project\n\t\t\t\t\tf.createNewFile(currentProject, currentFile); //Call the create a new file function\n\t\t\t\t\tprojectPropertiesDisplay(); //Reset the project properties display\n\t\t\t\t\tresetFileTitle(); //Reset the text editor window title to the newly created file\n\t\t\t\t} \n catch (ProjectNotOpenException e1) \n {} \n catch (IOException e1) \n {} \n catch (NoFileNameException e1) \n {} \n catch (FileExistsException e1) \n {}\n }\n });\n\t \n\t //Create a new menu item called \"Remove\"\n\t JMenuItem fileRemove = new JMenuItem(\"Remove\");\n\t //Create an action listener for that menu item\n\t fileRemove.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) \n {\n \ttry \n \t{\n\t\t\t\t\tdisplayText(f.removeFile(currentProject, currentFile)); //Clear the text on the text editor window\n\t\t\t\t\tprojectPropertiesDisplay(); //Reset the project properties display window\n \t\tcurrentFile.setLength(0); //Clear the name of the currently opened project\n\t\t\t\t\tresetFileTitle(); //Reset the text editor window title\n\t\t\t\t} \n \tcatch (NoFileNameException e1) \n \t{} \n \tcatch (ProjectNotOpenException e1) \n \t{}\n }\n });\n\t \n\t //Add the File menu items\n\t menuItem2.add(fileSave);\n\t menuItem2.add(fileClose);\n\t menuItem2.add(fileCreateNew);\n\t menuItem2.add(fileRemove);\n\t \n\t //This is the action listener for the \"Execute\" menu button\n\t menuItem4.addMouseListener(new MouseListener() \n\t {\n\t \t@Override\n\t public void mouseReleased(MouseEvent e) {}\n\n\t @Override\n\t public void mousePressed(MouseEvent e) \n\t {\n\t try\n\t \t\t{\n\t \tf.saveFile(ta, currentProject, currentFile); //Save the current open file\n\t \tcosoleText();\n\t \t\t}\n\t \t\tcatch(ProjectNotOpenException e1)\n\t \t\t{}\n \tcatch (NoFileToSaveException e1) \n \t{} \n\t catch (IOException e1) \n\t {} \n\t }\n\t @Override\n\t public void mouseExited(MouseEvent e) {}\n\t @Override\n\t public void mouseEntered(MouseEvent e) {}\n\t @Override\n\t public void mouseClicked(MouseEvent e) {}\n\t });\n\t \n\t return menuBar;\n\t}", "Menu getMenuHelp();", "public JMenuItem createMenuItem(Action a) {\n JMenuItem item = new JMenuItem(a);\n decorateMenuComponent(item);\n return item;\n }", "private void buildFileMenu(){\n //Create a Save menu item\n saveItem = new JMenuItem(\"Save\");\n saveItem.setMnemonic(KeyEvent.VK_S);\n saveItem.addActionListener(new SaveListener());\n \n //Create a Load menu item\n loadItem = new JMenuItem(\"Load\");\n loadItem.setMnemonic(KeyEvent.VK_L);\n loadItem.addActionListener(new LoadListener());\n\n //Create an Exit menu item\n exitItem = new JMenuItem(\"Exit\");\n exitItem.setMnemonic(KeyEvent.VK_X);\n exitItem.addActionListener(new ExitListener());\n \n //Create a JMenu object for the file menu\n fileMenu = new JMenu(\"File\");\n fileMenu.setMnemonic(KeyEvent.VK_F);\n \n //Add the items to the menu\n fileMenu.add(saveItem);\n fileMenu.add(loadItem);\n fileMenu.add(exitItem);\n }", "private JMenu createFileMenu()\r\n {\r\n JMenu fileMenu = new JMenu(\"File\");\r\n fileMenu.add(new JMenuItem(openFileAction));\r\n fileMenu.add(new JMenuItem(openUriAction));\r\n fileMenu.add(new JSeparator());\r\n\r\n fileMenu.add(recentUrisMenu.getMenu());\r\n fileMenu.add(new JSeparator());\r\n\r\n fileMenu.add(new JMenuItem(importObjFileAction));\r\n fileMenu.add(new JSeparator());\r\n \r\n fileMenu.add(new JMenuItem(saveAsAction));\r\n fileMenu.add(new JMenuItem(saveAsBinaryAction));\r\n fileMenu.add(new JMenuItem(saveAsEmbeddedAction));\r\n fileMenu.add(new JSeparator());\r\n fileMenu.add(new JMenuItem(exitAction));\r\n return fileMenu;\r\n }", "@Override\n\tprotected MenuManager createMenuManager() {\n\t\treturn null;\n\t}", "private void makeStockMenu() {\r\n\t\tJMenu stockMnu = new JMenu(\"Inventario\");\r\n\t\tboolean isAccesible = false;\r\n\r\n\t\tif (StoreCore.getAccess(\"Inventario\")) {\r\n\t\t\tisAccesible = true;\r\n\r\n\t\t\tif (StoreCore.getAccess(\"AgregarInventario\")) {\r\n\t\t\t\tJMenuItem addItem = new JMenuItem(\"Agregar Articulo\");\r\n\t\t\t\taddItem.setMnemonic('a');\r\n\t\t\t\taddItem.setToolTipText(\"Agregar rapidamente un nuevo articulo\");\r\n\t\t\t\taddItem.addActionListener(new ActionListener() {\r\n\r\n\t\t\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\t\t\tnew AddStockItem(\"\");\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t});\r\n\t\t\t\tstockMnu.add(addItem);\r\n\t\t\t}\r\n\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Listar Inventario\",\r\n\t\t\t\t\timageLoader.getImage(\"world.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'v', \"Ver el inventario\",\r\n\t\t\t\t\tKeyStroke.getKeyStroke(KeyEvent.VK_F2, 0), Stock.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t\tstockMnu.addSeparator();\r\n\t\t}\r\n\t\tif (StoreCore.getAccess(\"Kardex\")) {\r\n\t\t\tisAccesible = true;\r\n\t\t\tJMenuItem menuItem = new JMenuItem(\"Ver Kardex\", \r\n\t\t\t\t\timageLoader.getImage(\"kardexSingle.png\"));\r\n\t\t\tsetMenuItemSpecialFeatures(menuItem, 'k', \"Ver el kardex\", null,\r\n\t\t\t\t\tKardex.class);\r\n\t\t\tstockMnu.add(menuItem);\r\n\t\t}\r\n\t\tif (isAccesible) {\r\n\t\t\tstockMnu.setMnemonic('i');\r\n\t\t\tadd(stockMnu);\r\n\t\t}\r\n\t}", "public ItemMenu(JDealsController sysCtrl) {\n super(\"Item Menu\", sysCtrl);\n\n this.addItem(\"Add general good\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.GOODS);\n }\n });\n this.addItem(\"Restourant Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.RESTOURANT);\n }\n });\n this.addItem(\"Travel Event\", new Callable() {\n @Override\n public Object call() throws Exception {\n return addItem(ProductTypes.TRAVEL);\n }\n });\n }", "protected abstract void addMenuOptions();", "protected LinkedList<IMenuEntry> buildLeftMenu() {\n\n\t\tfinal LinkedList<IMenuEntry> menuItems = new LinkedList<IMenuEntry>();\n\n\t\tmenuItems.addAll(menuBuilder.getMenuList(\"bankportal\"));\n\t\t\n\t\t// Add Home Page to left menu\n\t\tfinal MenuEntry hmMenuEntry = new MenuEntry(\"left.menu.home\", BtpnConstants.PRIV_UI_HOME_BANK_PORTAL,\n\t\t\tBankPortalHomePage.class);\n\t\thmMenuEntry.setActive(true);\n\t\tmenuItems.add(hmMenuEntry);\n\n\t\t// Add Manage Profile Page to left menu\n\t\tfinal MenuEntry mpMenuEntry = new MenuEntry(\"left.menu.manageprofile\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_MANAGE_PROFILE, ManageProfilePage.class);\n\t\tmpMenuEntry.setActive(false);\n\t\tmenuItems.add(mpMenuEntry);\n\t\t\n\t\t// Add Sample Menu 1\n\t\tfinal MenuEntry mpSample1 = new MenuEntry(\"left.menu.elimit\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_LIMITEX, ElimitPage.class);\n\t\tmpSample1.setActive(false);\n\t\tmenuItems.add(mpSample1);\n\t\t\n\t\t// Add Sample Menu 2\n\t\tfinal MenuEntry mpSample2 = new MenuEntry(\"left.menu.approvalelimit\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_LIMITEX_APPROVE, ElimitApprovePage.class);\n\t\tmpSample2.setActive(false);\n\t\tmenuItems.add(mpSample2);\n\t\t\n\t\t// Add Bank Admin Registration Page to left menu\n\t\tfinal MenuEntry bankAdmRegMenuEntry = new MenuEntry(\"left.menu.bank.admin.registration\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_ADMIN_REGISTRATION, BankAdminRegistrationPage.class);\n\t\tbankAdmRegMenuEntry.setActive(false);\n\t\tmenuItems.add(bankAdmRegMenuEntry);\n\t\t\n\t\t// Add Custom Cash In Page to left menu\n\t\tfinal MenuEntry cashInCustomMenuEntry = new MenuEntry(\"left.menu.bank.portal.cashIn\",\n\t\t\tBtpnConstants.PRIV_CUSTOMER_CASHIN_AT_AGENT, BankPortalCustomCashInPage.class);\n\t\tcashInCustomMenuEntry.setActive(false);\n\t\tmenuItems.add(cashInCustomMenuEntry); \n\t\t\n\t\t// Add Custom Cash Out Page to left men\n\t\tfinal MenuEntry cashOutCustomMenuEntry = new MenuEntry(\"left.menu.bank.portal.cashOut\",\n\t\t\tBtpnConstants.PRIV_CUSTOMER_CASHOUT_AT_AGENT, BankPortalCustomCashOutPage.class);\n\t\tcashOutCustomMenuEntry.setActive(false);\n\t\tmenuItems.add(cashOutCustomMenuEntry);\n\n\t\t// Add Bank User Registration Page to left menu\n\t\tfinal MenuEntry bankUserRegMenuEntry = new MenuEntry(\"left.menu.bank.user.registration\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_USER_REGISTRATION, BankUserRegistrationPage.class);\n\t\tbankUserRegMenuEntry.setActive(false);\n\t\tmenuItems.add(bankUserRegMenuEntry);\n\n\t\t// Add Change Language Page to left menu\n\t\tfinal MenuEntry approvalRegPage = new MenuEntry(\"left.menu.consumer.approval\",\n\t\t\tBtpnConstants.PRIV_UI_CUSTOMER_REGISTRATION_APPROVAL, BankCheckerApprovalPage.class);\n\t\tapprovalRegPage.setActive(false);\n\t\tmenuItems.add(approvalRegPage);\n\n\t\t// Registration Menu Entry\n\t\tfinal MenuEntry registrationMenuEntry = new MenuEntry(\"left.menu.consumerRegistration\",\n\t\t\tBtpnConstants.PRIV_UI_CUSTOMER_REGISTRATION, ConsumerRegistrationMobileNumberPage.class);\n\t\tregistrationMenuEntry.setActive(false);\n\t\tmenuItems.add(registrationMenuEntry);\n\n\t\tfinal MenuEntry officerAgentMenuEntry = new MenuEntry(\"left.menu.officer.approval\",\n\t\t\tBtpnConstants.PRIV_UI_OFFICER_AGENT_APPROVAL, BankCheckerApprovalPage.class);\n\t\tofficerAgentMenuEntry.setActive(false);\n\t\tmenuItems.add(officerAgentMenuEntry);\n\n\t\t// Add Activate/Deactivate Menu to left menu\n\t\tfinal MenuEntry activateDeactivateMenu = new MenuEntry(\"left.menu.bank.activate.deactivate.menu\",\n\t\t\tBtpnConstants.PRIV_UI_BANK_PORTAL_ACTIVATE_DEACTIVATE_MENU, ActivateDeactivateMenuPage.class);\n\t\tactivateDeactivateMenu.setActive(false);\n\t\tmenuItems.add(activateDeactivateMenu);\n\n\t\t//TOP Agen Cash IN\n\t\t/*\n\t\tfinal MenuEntry cashInMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashIn\",\n\t\t\tBtpnConstants.PRIV_TOPAGENT_CASHIN_AT_BANK, BankPortalCashinPage.class);\n\t\tcashInMenuEntry.setActive(false);\n\t\tmenuItems.add(cashInMenuEntry);\n\t\t*/\n\t\t//change to:\n\t\tfinal MenuEntry cashInMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashIn\",\n\t\t\tBtpnConstants.PRIV_TOPAGENT_CASHIN_AT_BANK, BankPortalTopAgentCashInPage.class);\n\t\tcashInMenuEntry.setActive(false);\n\t\tmenuItems.add(cashInMenuEntry);\n\t\t\n\t\t\n\t\t//TOP Agen Cash OUT\n\t\t/*\n\t\tfinal MenuEntry cashOutMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashOut\",\n\t\t\tBtpnConstants.PRIV_UI_TOP_AGENT_CASH_OUT, BankPortalCashOutPage.class);\n\t\tcashOutMenuEntry.setActive(false);\n\t\tmenuItems.add(cashOutMenuEntry);\n\t\t*/\n\t\t//change to\n\t\tfinal MenuEntry cashOutMenuEntry = new MenuEntry(\"left.menu.bank.portal.AgentCashOut\",\n\t\t\t\tBtpnConstants.PRIV_TOPAGENT_CASHOUT_AT_BANK, BankPortalTopAgentCashOutPage.class);\n\t\tcashOutMenuEntry.setActive(false);\n\t\tmenuItems.add(cashOutMenuEntry);\n\t\t\t\n\t\t\n\t\t// Approve Customer data\n\t\tfinal MenuEntry transReport = new MenuEntry(\"left.menu.transReport\",\n\t\t\tBtpnConstants.PRIV_UI_TRANSACTION_DETAILS_REPORT, TransactionDetailsReportPage.class);\n\t\ttransReport.setActive(false);\n\t\tmenuItems.add(transReport);\n\n\t\t// Add Change Language Page to left menu\n\t\tfinal MenuEntry clMenuEntry = new MenuEntry(\"left.menu.changeLanguage\", BtpnConstants.PRIV_UI_CHANGE_LANGUAGE,\n\t\t\tChangeLanguagePage.class);\n\t\tclMenuEntry.setActive(false);\n\t\tmenuItems.add(clMenuEntry);\n\t\t\n\t\t// Add Search Salary upload to left menu\n\t\t/*//jadi satu di : UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\n\t\tfinal MenuEntry batchTrans = new MenuEntry(\"left.menu.batch.transaction\",\n\t\t\tBtpnConstants.PRIV_UI_BATCH_TRANSACTION_UPLOAD, SearchSalaryDataPage.class);\n\t\tbatchTrans.setActive(false);\n\t\tmenuItems.add(batchTrans);\n\t\t*/\n\t\t\n\t\t// Add Search Salary upload to left menu\n\t\t/* //jadi satu di : UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\n\t\t final MenuEntry searchTrans = new MenuEntry(\"left.menu.search.transaction\",\n\t\t\tBtpnConstants.PRIV_UI_SEARCH_TRANSACTION_DATA, SearchSalaryDataPage.class);\n\t\tsearchTrans.setActive(false);\n\t\tmenuItems.add(searchTrans);\n\t\t*/\n\t\t\n\t\t// Add Manage Products Menu\n\t\tfinal MenuEntry mgProductsMenuEntry = new MenuEntry(\"left.menu.manageProducts\",\n\t\t\tBtpnConstants.PRIV_UI_MANAGE_PRODUCTS, ManageProductsPage.class);\n\t\tmgProductsMenuEntry.setActive(false);\n\t\tmenuItems.add(mgProductsMenuEntry);\n\n\t\t// Add Manage Products Menu\n\t\tfinal MenuEntry mgLimitMenuEntry = new MenuEntry(\"left.menu.manageLimit\", BtpnConstants.PRIV_UI_MANAGE_LIMIT,\n\t\t\tManageLimitPage.class);\n\t\tmgLimitMenuEntry.setActive(false);\n\t\tmenuItems.add(mgLimitMenuEntry);\n\n\t\t// Add Manage Fee Page\n\t\tfinal MenuEntry mgFeeEntry = new MenuEntry(\"left.menu.manageFee\", BtpnConstants.PRIV_UI_MANAGE_FEE,\n\t\t\t\tManageCustomUseCaseFeePage.class);\n\t\tmgFeeEntry.setActive(false); \n\t\tmenuItems.add(mgFeeEntry);\n\n\n\t\t// Add Approve Fee Page\n\t\tfinal MenuEntry aprFeeEntry = new MenuEntry(\"left.menu.approveFee\", BtpnConstants.PRIV_UI_MANAGE_FEE_APPROVAL,\n\t\t\t\tManageCustomUseCaseFeeApprovePage.class);\n\t\tmgFeeEntry.setActive(false); \n\t\tmenuItems.add(aprFeeEntry);\n\t\t\n\t\t// Add BillPayment by : Imam\n\t\tfinal MenuEntry pgBillPayment = new MenuEntry(\"left.menu.billPayment\", BtpnConstants.PRIV_UI_BANK_PORTAL_BILL_PAYMENT,\n\t\t\t\tBankBillPaymentPage.class);\n\t\tpgBillPayment.setActive(false); \n\t\tmenuItems.add(pgBillPayment);\n\t\t\n\t\t// Add Manage Biller Fee Page \n\t\t//@author :Andi Samalangi ManageCustomBillerFeePage, \n\t\t//@modified: Feny -> dipindahkan ke ManageBillPaymentFee\n\t\tfinal MenuEntry mgBillerFeeEntry = new MenuEntry(\"left.menu.manageBillPaymentFee\", BtpnConstants.PRIV_UI_MANAGE_BILL_PAYMENT_FEE,\n\t\t\t\tManageBillPaymentFeePage.class);\n\t\tmgBillerFeeEntry.setActive(false); \n\t\tmenuItems.add(mgBillerFeeEntry);\n\t\t\n\t\t// Add Approve Biller Fee page\n\t\tfinal MenuEntry mgAppBillerFeeEntry = new MenuEntry(\"left.menu.manageAppBillPaymentFee\", BtpnConstants.PRIV_UI_MANAGE_BILL_PAYMENT_FEE_APPROVAL,\n\t\t\t\tManageBillPaymentFeeApprovePage.class);\n\t\tmgAppBillerFeeEntry.setActive(false); \n\t\tmenuItems.add(mgAppBillerFeeEntry);\n\t\t\n\t\t// Add Manage Fee Page\n\t\tfinal MenuEntry mgAttFeeEntry = new MenuEntry(\"left.menu.manageAttFee\",\n\t\t\tBtpnConstants.PRIV_UI_MANAGE_AIRTIME_TOPUP_FEE, ManageAirtimeTopupFeePage.class);\n\t\tmgAttFeeEntry.setActive(false);\n\t\tmenuItems.add(mgAttFeeEntry);\n\n\t\t// Add Manage Products Menu\n\t\tfinal MenuEntry apprvProductsMenuEntry = new MenuEntry(\"left.menu.approveProducts\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_PRODUCTS, ManageProductsApprovePage.class);\n\t\tapprvProductsMenuEntry.setActive(false);\n\t\tmenuItems.add(apprvProductsMenuEntry);\n\t\t\n\t\t// Add Approve Fee/Limit Menu\n\t\tfinal MenuEntry apprvfeeLimitMenuEntry = new MenuEntry(\"left.menu.approve.fee.limit\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_FEE_LIMIT, ApproveFeePage.class);\n\t\tapprvfeeLimitMenuEntry.setActive(false);\n\t\tmenuItems.add(apprvfeeLimitMenuEntry);\n\n\t\t// Add Approve Fee/Limit Menu\n\t\tfinal MenuEntry childSubAgentApprovalMenuEntry = new MenuEntry(\"left.menu.child.sub.agent.approval\",\n\t\t\tBtpnConstants.PRIV_UI_CHILD_SUB_AGENT_APPROVAL, BankCheckerApprovalPage.class);\n\t\tchildSubAgentApprovalMenuEntry.setActive(false);\n\t\tmenuItems.add(childSubAgentApprovalMenuEntry);\n\t\t\n\t\t// Add Change Language Page to left menu\n\t\tfinal MenuEntry topupRegPage = new MenuEntry(\"left.menu.topup.agent.registration\",\n\t\t\tBtpnConstants.PRIV_UI_TOP_AGENT_REGISTRATION, TopAgentRegistrationMobileNumberPage.class);\n\t\ttopupRegPage.setActive(false);\n\t\tmenuItems.add(topupRegPage);\n\n\t\t// Add Transaction Reversal Page to left menu\n//\t\tfinal MenuEntry manageGLTransaction = new MenuEntry(\"left.menu.manageGL\", BtpnConstants.PRIV_UI_MANAGE_GL,\n//\t\t\tManageGeneralLedgerPage.class);\n//\t\tmanageGLTransaction.setActive(false);\n//\t\tmenuItems.add(manageGLTransaction);\n\t\t\n\t\t// Add Manage GL Page to left menu\n\t\tfinal MenuEntry manageGLTransaction = new MenuEntry(\"left.menu.manageGL\", BtpnConstants.PRIV_UI_MANAGE_GL,\n\t\t\t\tManageCustomGLPage.class);\n\t\tmanageGLTransaction.setActive(false);\n\t\tmenuItems.add(manageGLTransaction);\n\n\t\t// Add Transaction Reversal Page to left menu\n\t\tfinal MenuEntry approveGL = new MenuEntry(\"left.menu.approveGL\", BtpnConstants.PRIV_UI_APPROVE_GL,\n\t\t\tManageCustomGLApprovePage.class);\n\t\tapproveGL.setActive(false);\n\t\tmenuItems.add(approveGL);\n\n\t\t// Add Transaction GL\n\t\tfinal MenuEntry transactionGL = new MenuEntry(\"left.menu.transactionGL\",\n\t\t\tBtpnConstants.PRIV_UI_MANAGE_TRANSACTION_GL, TransactionGeneralLedgerPage.class);\n\t\ttransactionGL.setActive(false);\n\t\tmenuItems.add(transactionGL);\n\n\t\t// Add Transaction GL\n\t\tfinal MenuEntry approveTransactionGL = new MenuEntry(\"left.menu.approveTransactionGL\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_TRANSACTION_GL, ApproveTransactionGeneralLedgerPage.class);\n\t\tapproveTransactionGL.setActive(false);\n\t\tmenuItems.add(approveTransactionGL);\n\n\t\t// Add Salary Upload to left menu\n\t\tfinal MenuEntry salaryUpload = new MenuEntry(\"left.menu.bulk.upload\", \n\t\t\t\"UI_BATCH_UPLOAD_MAKER_PRIVILEGE\", SalaryUploadPage.class);\n\t\tsalaryUpload.setActive(false);\n\t\tmenuItems.add(salaryUpload);\n\n\t\t// Add Search Salary upload to left menu\n\t\tfinal MenuEntry searchSalaryUpload = new MenuEntry(\"left.menu.bulk.search\",\n\t\t\t\"UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\", SearchSalaryDataPage.class);\n\t\tsearchSalaryUpload.setActive(false);\n\t\tmenuItems.add(searchSalaryUpload);\n\n\t\t// Add Transaction Reversal Page to left menu\n\t\tfinal MenuEntry transactionReversalPage = new MenuEntry(\"left.menu.transactionReversal\",\n\t\t\tBtpnConstants.PRIV_UI_TRANSACTION_REVERSAL, TransactionReversalPage.class);\n\t\ttransactionReversalPage.setActive(false);\n\t\tmenuItems.add(transactionReversalPage);\n\n\t\t// Add Approve Transaction Reversal Page to left menu\n\t\tfinal MenuEntry approveTransactionReversalPage = new MenuEntry(\"left.menu.approveTransactionReversal\",\n\t\t\tBtpnConstants.PRIV_UI_APPROVE_TRANSACTION_REVERSAL, ApproveTxnReversalPage.class);\n\t\tapproveTransactionReversalPage.setActive(false);\n\t\tmenuItems.add(approveTransactionReversalPage);\n\n\t\t// Add Approve MSISDN Page to left menu\n\t\tfinal MenuEntry approveMsisdnPage = new MenuEntry(\"left.menu.approveMsisdn\",\n\t\t\tBtpnConstants.PRIV_CHANGE_MSISDN_CHECKER, ApproveMsisdnPage.class);\n\t\tapproveMsisdnPage.setActive(false);\n\t\tmenuItems.add(approveMsisdnPage);\n\n\t\t/*// jadi satu : UI_BATCH_UPLOAD_MAKER_PRIVILEGE\n\t\tfinal MenuEntry consumerUpload = new MenuEntry(\"left.menu.consumerUpload\",\n\t\t\tBtpnConstants.PRIV_UI_CUSTOMER_UPLOAD, RegUploadPage.class);\n\t\tconsumerUpload.setActive(false);\n\t\tmenuItems.add(consumerUpload);\n\t\t*/\n\t\t\n\t\t/*//jadi satu di : UI_BATCH_UPLOAD_CHECKER_PRIVILEGE\n\t\tfinal MenuEntry searchConsumerRegData = new MenuEntry(\"left.menu.searchConsumerRegData\",\n\t\t\tBtpnConstants.PRIV_UI_SEARCH_CUSTOMER_DATA, SearchRegDataPage.class);\n\t\tsearchConsumerRegData.setActive(false);\n\t\tmenuItems.add(searchConsumerRegData);\n\t\t*/\n\n\t\t// Add Manage Interest Page\n\t\tfinal MenuEntry mgIntEntry = new MenuEntry(\"left.menu.manageInterest\",\n\t\t\tBtpnConstants.PRIV_INTEREST_MAKER, ManageInterestPage.class);\n\t\tmgIntEntry.setActive(false);\n\t\tmenuItems.add(mgIntEntry);\n\t\t\n\t\t// Add Manage Interest Tax Page\n\t\tfinal MenuEntry mgIntTaxEntry = new MenuEntry(\"left.menu.manageInterestTax\",\n\t\t\tBtpnConstants.PRIV_INTEREST_TAX_MAKER, ManageInterestTaxPage.class);\n\t\tmgIntEntry.setActive(false);\n\t\tmenuItems.add(mgIntTaxEntry);\n\t\t\n\t\t// Add Manage Interest Approve Page\n\t\tfinal MenuEntry mgIntAppEntry = new MenuEntry(\"left.menu.manageInterestApprove\",\n\t\t\tBtpnConstants.PRIV_INTEREST_CHECKER, ManageInterestApprovePage.class);\n\t\tmgIntAppEntry.setActive(false);\n\t\tmenuItems.add(mgIntAppEntry);\n\t\t\n\t\t// Add Manage Interest Tax Approve Page\n\t\tfinal MenuEntry mgIntTaxAppEntry = new MenuEntry(\"left.menu.manageInterestTaxApprove\",\n\t\t\tBtpnConstants.PRIV_INTEREST_TAX_CHECKER, ManageInterestTaxApprovePage.class);\n\t\tmgIntTaxAppEntry.setActive(false);\n\t\tmenuItems.add(mgIntTaxAppEntry);\n\t\t\n\t\t\n\t\tfinal MenuEntry holidayCalender = new MenuEntry(\"left.menu.holidayCalender\",\n\t\t\tBtpnConstants.PRIV_UI_HOLIDAY_CALENDAR, HolidayCalender.class);\n\t\tholidayCalender.setActive(false);\n\t\tmenuItems.add(holidayCalender);\n\n\t\t// Approve Holiday Calendar Menu\n\t\tfinal MenuEntry approveHolidayCalendar = new MenuEntry(\"left.menu.pproveHolidays\",\n\t\t\tBtpnConstants.PRIV_UI_HOLIDAY_CALENDAR_APPROVAL, ApproveHolidayCalendarPage.class);\n\t\tapproveHolidayCalendar.setActive(false);\n\t\tmenuItems.add(approveHolidayCalendar);\n\n\t\t// FIXME Approve Customer data\n//\t\tfinal MenuEntry approveCustomerData = new MenuEntry(\"left.menu.approveCustomerData\",\n//\t\t\tBtpnConstants.PRIV_UI_APPROVE_CUSTOMER_DATA, ApproveCustomerData.class);\n//\t\tapproveCustomerData.setActive(false);\n//\t\tmenuItems.add(approveCustomerData);\n\t\t\n\t\t// FIXME Approve Customer data\n//\t\tfinal MenuEntry approveAllAgentsData = new MenuEntry(\"left.menu.approveAgentData\",\n//\t\t\tBtpnConstants.PRIV_UI_APPROVE_ALL_AGENTS_DATA, ApproveCustomerData.class);\n//\t\tapproveCustomerData.setActive(false);\n//\t\tmenuItems.add(approveAllAgentsData);\n\n\t\t// Help\n\t\tfinal MenuEntry addHelp = new MenuEntry(\"left.menu.addHelp\", BtpnConstants.PRIV_UI_ADD_HELP, AddHelpPage.class);\n\t\taddHelp.setActive(false);\n\t\tmenuItems.add(addHelp);\n\n\t\treturn menuItems;\n\t}", "public ToolsMenu() {\n\t\tsuper(\"Tools\");\n\t}", "public static void initMenuBars()\n\t{\n\t\tmenuBar = new JMenuBar();\n\n\t\t//Build the first menu.\n\t\tmenu = new JMenu(\"Options\");\n\t\tmenu.setMnemonic(KeyEvent.VK_A);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"The only menu in this program that has menu items\");\n\t\tmenuBar.add(menu);\n\n\t\t//a group of JMenuItems\n\t\tmenuItem = new JMenuItem(\"Quit\",\n\t\t KeyEvent.VK_T);\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_1, ActionEvent.ALT_MASK));\n\t\tmenuItem.getAccessibleContext().setAccessibleDescription(\n\t\t \"This doesn't really do anything\");\n\t\tmenuItem.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t});\n\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Both text and icon\",\n\t\t new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_B);\n\t\tmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(new ImageIcon(\"images/middle.gif\"));\n\t\tmenuItem.setMnemonic(KeyEvent.VK_D);\n\t\tmenu.add(menuItem);\n\n\t\t//a group of radio button menu items\n\t\tmenu.addSeparator();\n\t\tButtonGroup group = new ButtonGroup();\n\t\trbMenuItem = new JRadioButtonMenuItem(\"A radio button menu item\");\n\t\trbMenuItem.setSelected(true);\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_R);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\trbMenuItem = new JRadioButtonMenuItem(\"Another one\");\n\t\trbMenuItem.setMnemonic(KeyEvent.VK_O);\n\t\tgroup.add(rbMenuItem);\n\t\tmenu.add(rbMenuItem);\n\n\t\t//a group of check box menu items\n\t\tmenu.addSeparator();\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"A check box menu item\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_C);\n\t\tmenu.add(cbMenuItem);\n\n\t\tcbMenuItem = new JCheckBoxMenuItem(\"Another one\");\n\t\tcbMenuItem.setMnemonic(KeyEvent.VK_H);\n\t\tmenu.add(cbMenuItem);\n\n\t\t//a submenu\n\t\tmenu.addSeparator();\n\t\tsubmenu = new JMenu(\"A submenu\");\n\t\tsubmenu.setMnemonic(KeyEvent.VK_S);\n\n\t\tmenuItem = new JMenuItem(\"An item in the submenu\");\n\t\tmenuItem.setAccelerator(KeyStroke.getKeyStroke(\n\t\t KeyEvent.VK_2, ActionEvent.ALT_MASK));\n\t\tsubmenu.add(menuItem);\n\n\t\tmenuItem = new JMenuItem(\"Another item\");\n\t\tsubmenu.add(menuItem);\n\t\tmenu.add(submenu);\n\n\t\t//Build second menu in the menu bar.\n\t\tmenu = new JMenu(\"Another Menu\");\n\t\tmenu.setMnemonic(KeyEvent.VK_N);\n\t\tmenu.getAccessibleContext().setAccessibleDescription(\n\t\t \"This menu does nothing\");\n\t\tmenuBar.add(menu);\n\t}" ]
[ "0.73089874", "0.7032386", "0.6960877", "0.6939817", "0.691779", "0.6901186", "0.67820174", "0.67542684", "0.6743296", "0.6719708", "0.670351", "0.6700678", "0.6692607", "0.6678891", "0.663716", "0.6582324", "0.6581772", "0.65802395", "0.65764976", "0.65731466", "0.6549638", "0.65407497", "0.6539288", "0.6525541", "0.6499603", "0.64867496", "0.64827436", "0.6461184", "0.64527225", "0.6439331", "0.6433016", "0.6415657", "0.63916004", "0.6380059", "0.6368208", "0.634298", "0.6336449", "0.63346416", "0.632869", "0.6321815", "0.6319907", "0.63176644", "0.62905043", "0.6289279", "0.62870824", "0.6283151", "0.6280361", "0.626986", "0.62655973", "0.6264054", "0.6244498", "0.6243474", "0.6242427", "0.6239217", "0.6235257", "0.6220022", "0.62186325", "0.6215792", "0.62070554", "0.61890185", "0.6185988", "0.6180599", "0.61747", "0.61488724", "0.6140141", "0.613793", "0.61269724", "0.6125618", "0.6112891", "0.6111748", "0.61078036", "0.61064327", "0.6089441", "0.60732514", "0.60703886", "0.6069203", "0.604008", "0.60374755", "0.60372394", "0.603574", "0.6035139", "0.6034355", "0.6031593", "0.60313594", "0.60276383", "0.60214543", "0.6001485", "0.5997327", "0.599717", "0.5996961", "0.599574", "0.5993247", "0.5991396", "0.59834516", "0.59774137", "0.5958034", "0.5945805", "0.59431547", "0.5942769", "0.59300077" ]
0.7059592
1
Builds and answers the content.
private JComponent buildContentPane() { contentPane = new ContentPanel(new BorderLayout()); contentPane.add(buildToolBar(), BorderLayout.NORTH); contentPane.add(buildMainPanel(), BorderLayout.CENTER); return contentPane; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void build() {\n\t\tgenerate();\n\t\tstoreAns();\n\t\t// display();\n\t}", "public void build() {\r\n // TODO\r\n }", "@Override\r\n\tprotected String buildContent() {\n\t\treturn null;\r\n\t}", "protected void buildResponse() {\r\n appendResponse(\"<?xml version=\\\"1.0\\\" standalone=\\\"no\\\"?>\\r\\n\");\r\n appendResponse(\"<!DOCTYPE RETS SYSTEM \\\"RETS-20021015.dtd\\\">\\r\\n\");\r\n appendResponse(\"<RETS ReplyCode=\\\"\");\r\n appendResponse(replyCode);\r\n appendResponse(\"\\\" ReplyText=\\\"\");\r\n appendResponse(replyText);\r\n appendResponse(\"\\\"\");\r\n\r\n if (getReplyCode() != REPLY_CODE_SUCCESS) {\r\n cat.debug(\"*****ERROR\");\r\n appendResponse(\" />\");\r\n } else {\r\n appendResponse(\" >\\n\");\r\n\r\n fillContent();\r\n\r\n appendResponse(\"</RETS>\\r\\n\");\r\n }\r\n\r\n cat.debug(\"RESPONSE ::\" + this.response.toString());\r\n }", "@Override\n public String build() {\n StringBuilder stringBuilder = new StringBuilder();\n\n // Builds the section headers.\n ArrayList<Header> headers = new ArrayList<Header>();\n headers.add(new Header(\"Content-Type\", m_ContentType.getTypeString()));\n headers.add(new Header(\"Content-Transfer-Encoding\", m_TransferEncoding.getKeyWord()));\n stringBuilder.append(Header.buildHeaders(headers)).append(\"\\r\\n\");\n\n // Encodes the body, and appends it\n switch (m_TransferEncoding) {\n case BASE64 -> stringBuilder.append(Base64.getEncoder().encodeToString(m_RawBody.getBytes()));\n case QUOTED_PRINTABLE -> stringBuilder.append(QuotedPrintable.encode(m_RawBody));\n }\n stringBuilder.append(\"\\r\\n\");\n\n // Returns the built body\n return stringBuilder.toString();\n }", "public void buildDocument() {\n/* 220 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 222 */ syncAccessMethods();\n/* */ }", "public void buildDocument() {\n/* 310 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 312 */ syncAccessMethods();\n/* */ }", "public void buildDocument() {\n/* 248 */ setDocument(getDocumentLoader().getDocument(getClass()), \"text/html\", \"ISO-8859-1\");\n/* */ \n/* 250 */ syncAccessMethods();\n/* */ }", "abstract public Content createContent();", "public Content createContent();", "private void buildContentPane() {\n\t\t// The JPanel that will become the content pane\n\t\tJPanel cp = new JPanel();\n\t\tcp.setLayout(new BoxLayout(cp, BoxLayout.PAGE_AXIS));\n\n\t\tlanguagePanel = initLanguagePanel();\n\t\tcp.add(languagePanel);\n\n\t\tinputPanel = initInputPanel();\n\t\tcp.add(inputPanel);\n\n\t\tJPanel btnPanel = initBtnPanel();\n\t\tcp.add(btnPanel);\n\n\t\toutputPanel = initOutputPanel();\n\t\tcp.add(outputPanel);\n\n\t\tJPanel picturePanel = initPicturePanel();\n\t\tif(picturePanel == null) {\n\t\t\tframe.setSize(FRAME_WIDTH, FRAME_SMALL_HEIGHT);\n\t\t}\n\t\telse {\n\t\t\tcp.add(picturePanel);\n\t\t}\n\n\t\tLanguage selectedLang = languagePanel.getSelectedLanguage();\n\t\tsetLanguage(selectedLang);\n\n\t\tframe.setContentPane(cp);\n\t}", "public void build() throws IOException {\n if (packageWriter == null) {\n //Doclet does not support this output.\n return;\n }\n build(layoutParser.parseXML(ROOT), contentTree);\n }", "private void createContent() {\n\t\t// Design mail content\n\t\tview.getTxtSubject().setText(\n\t\t\t\tMessages.getString(\"SendAlertController.1\") + arr[9]);\n\t\tcontent += Messages.getString(\"SendAlertController.2\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.3\");\n\t\tcontent += Messages.getString(\"SendAlertController.4\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.5\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.6\");\n\t\tcontent += Messages.getString(\"SendAlertController.7\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.8\")\n\t\t\t\t+ new Date().toString()\n\t\t\t\t+ Messages.getString(\"SendAlertController.9\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.10\") + arr[9]\n\t\t\t\t+ Messages.getString(\"SendAlertController.11\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.12\") + arr[11]\n\t\t\t\t+ Messages.getString(\"SendAlertController.13\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.14\") + arr[12]\n\t\t\t\t+ Messages.getString(\"SendAlertController.15\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.16\")\n\t\t\t\t+ fee.getBorFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.17\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.18\")\n\t\t\t\t+ fee.getLateFee()\n\t\t\t\t+ Messages.getString(\"SendAlertController.19\");\n\t\tcontent += Messages.getString(\"SendAlertController.20\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.21\") + arr[1]\n\t\t\t\t+ Messages.getString(\"SendAlertController.22\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.23\") + arr[4]\n\t\t\t\t+ Messages.getString(\"SendAlertController.24\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.25\") + arr[6]\n\t\t\t\t+ Messages.getString(\"SendAlertController.26\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.27\") + arr[7]\n\t\t\t\t+ Messages.getString(\"SendAlertController.28\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.29\") + arr[5]\n\t\t\t\t+ Messages.getString(\"SendAlertController.30\");\n\t\tcontent += Messages.getString(\"SendAlertController.31\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.32\") + arr[15]\n\t\t\t\t+ Messages.getString(\"SendAlertController.33\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.34\") + arr[16]\n\t\t\t\t+ Messages.getString(\"SendAlertController.35\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.36\") + arr[17]\n\t\t\t\t+ Messages.getString(\"SendAlertController.37\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.38\") + arr[18]\n\t\t\t\t+ Messages.getString(\"SendAlertController.39\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.40\") + arr[19]\n\t\t\t\t+ Messages.getString(\"SendAlertController.41\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.42\") + arr[20]\n\t\t\t\t+ Messages.getString(\"SendAlertController.43\");\n\t\tcontent += Messages.getString(\"SendAlertController.44\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.45\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.46\");\n\t\tcontent += Messages.getString(\"SendAlertController.47\")\n\t\t\t\t+ Messages.getString(\"SendAlertController.48\");\n\t\tview.getTxtContent().setText(content);\n\t}", "public void construct(){\n\t\tbuilder.buildPart1();\n\t\tbuilder.buildPart2();\n\t\tbuilder.retrieveResult();\n\t}", "protected void createContents() {\n\n\t}", "protected void build() {\n // Make sure we have a fresh build of everything needed to run a JAM session\n // - bootstrap, translator and agent suites\n builder(\"clean\");\n builder(\"\");\n buildBootstrap();\n }", "public StringBuilder buildLogContent() {\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint numberOfServers = Integer.parseInt(properties.getProperty(\"numberOfServers\"));\n\t\tint numberOfCpus = Integer.parseInt(properties.getProperty(\"numberOfCpus\"));\n\t\tint numberOfDays = Integer.parseInt(properties.getProperty(\"numberOfDays\"));\n\t\tint numberOfMins = numberOfDays * 24 * 60;\n\n\t\tfor (int server = 0; server < numberOfServers; server++) {\n\t\t\tfor (int cpu = 0; cpu < numberOfCpus; cpu++) {\n\t\t\t\tfor (int min = 0; min < numberOfMins; min++) {\n\t\t\t\t\tsb.append(new Log(server, cpu, min).getLine()).append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn sb;\n\n\t}", "private void buildView() {\n this.setHeaderInfo(model.getHeaderInfo());\n\n CWButtonPanel buttonPanel = this.getButtonPanel();\n \n buttonPanel.add(saveButton);\n buttonPanel.add(saveAndCloseButton);\n buttonPanel.add(cancelButton);\n \n FormLayout layout = new FormLayout(\"pref, 4dlu, 200dlu, 4dlu, min\",\n \"pref, 2dlu, pref, 2dlu, pref, 2dlu, pref\"); // rows\n\n layout.setRowGroups(new int[][]{{1, 3, 5}});\n \n CellConstraints cc = new CellConstraints();\n this.getContentPanel().setLayout(layout);\n \n this.getContentPanel().add(nameLabel, cc.xy (1, 1));\n this.getContentPanel().add(nameTextField, cc.xy(3, 1));\n this.getContentPanel().add(descLabel, cc.xy(1, 3));\n this.getContentPanel().add(descTextField, cc.xy(3, 3));\n this.getContentPanel().add(amountLabel, cc.xy(1, 5));\n this.getContentPanel().add(amountTextField, cc.xy(3, 5));\n }", "@Override\n public String build() {\n final Result result = build.getResult();\n\n // Prepare title\n final String title = String.format(\"Job: %s Status: %s\", getJobName(), result != null ? result.toString() : \"None\");\n // Prepare text\n final String text = String.format(\"%s %s %s [View](%s)\", ICON_STATUS.get(build.getResult()), getCause(),\n getTime(), getUrl());\n\n // Prepare message for attachments\n final JsonObject msg = new JsonObject();\n msg.addProperty(\"text\", text);\n msg.addProperty(\"color\", ifSuccess() ? \"#228a00\" : \"#8B0000\");\n msg.addProperty(\"title\", title);\n\n // Prepare attachments\n final JsonArray attachments = new JsonArray();\n attachments.add(msg);\n\n // Prepare final json\n final JsonObject json = new JsonObject();\n json.addProperty(\"username\", \"Jenkins\");\n json.add(\"attachments\", attachments);\n\n return json.toString();\n }", "public com.google.cloud.recommender.v1.RecommendationContent.Builder getContentBuilder() {\n bitField0_ |= 0x00000080;\n onChanged();\n return getContentFieldBuilder().getBuilder();\n }", "protected void fillContent() {\r\n appendResponse(\"ConnectTime=\");\r\n appendResponse(getConnectTime());\r\n appendResponse(\"\\n\");\r\n appendResponse(\"Billing=\");\r\n appendResponse(getBilling());\r\n appendResponse(\"\\n\");\r\n appendResponse(\"SignOffMessage=\");\r\n appendResponse(getSignOffMessage());\r\n appendResponse(\"\\n\");\r\n }", "public abstract Object build();", "public void build() {\n\t\t\tRequest request = new Request();\n request.context = context;\n\t\t\trequest.requestType = requestType;\n\t\t\trequest.url = url;\n\t\t\trequest.envelope = envelope;\n\t\t\trequest.headers = headers;\n\n\t\t\trequest.responseListener = responseListener;\n\t\t\trequest.onValidateResponseListener = validateResponseListener;\n\n\t\t\trequest.isDebug = isDebug;\n\n\t\t\trequest.start();\n\t\t}", "public Object build();", "protected abstract Content newContent();", "abstract Object build();", "abstract T build();", "public String build();", "public String build();", "private void build() {\r\n \tapplyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n setContentPane(buildContentPane());\r\n setTitle(getWindowTitle());\r\n setJMenuBar(\r\n createMenuBuilder(this).buildMenuBar(\r\n settings,\r\n createHelpActionListener(),\r\n createAboutActionListener()));\r\n setIconImage(readImageIcon(\"eye_16x16.gif\").getImage());\r\n }", "private Frame buildFrame() {\n return new Frame(command, headers, body);\n }", "public String build() {\n this.message_string = \"{\";\n\n if (this.recipient_id != null) {\n this.message_string += \"\\\"recipient\\\": {\\\"id\\\": \\\"\" + this.recipient_id + \"\\\"},\";\n }\n\n if ((this.message_text != null)\n && !(this.message_text.equals(\"\"))\n && !(this.buttons.isEmpty())) {\n this.message_string += \"\\\"message\\\": {\";\n this.message_string += \"\\\"attachment\\\": {\";\n this.message_string += \"\\\"type\\\": \\\"template\\\",\";\n this.message_string += \"\\\"payload\\\": {\";\n this.message_string += \"\\\"template_type\\\": \\\"button\\\",\";\n this.message_string += \"\\\"text\\\": \\\"\" + this.message_text + \"\\\",\";\n this.message_string += \"\\\"buttons\\\":[\";\n for (int j = 0; j < this.buttons.size(); j++) {\n HashMap<String, String> button = this.buttons.get(j);\n this.message_string += \"{\";\n if (!button.get(\"type\").equals(\"\")) {\n this.message_string += \"\\\"type\\\":\\\"\" + button.get(\"type\") + \"\\\",\";\n }\n if (!button.get(\"title\").equals(\"\")) {\n this.message_string += \"\\\"title\\\":\\\"\" + button.get(\"title\") + \"\\\",\";\n }\n if (!button.get(\"url\").equals(\"\")) {\n this.message_string += \"\\\"url\\\":\\\"\" + button.get(\"url\") + \"\\\",\";\n }\n if (!button.get(\"payload\").equals(\"\")) {\n this.message_string += \"\\\"payload\\\":\\\"\" + button.get(\"payload\") + \"\\\",\";\n }\n if (!button.get(\"webview_height_ratio\").equals(\"\")) {\n this.message_string +=\n \"\\\"webview_height_ratio\\\":\\\"\"\n + button.get(\"webview_height_ratio\")\n + \"\\\",\";\n }\n this.message_string = this.message_string.replaceAll(\",$\", \"\");\n this.message_string += \"},\";\n }\n this.message_string = this.message_string.replaceAll(\",$\", \"\");\n this.message_string += \"]\";\n this.message_string += \"}\";\n this.message_string += \"}\";\n this.message_string += \"}\";\n }\n\n this.message_string = this.message_string.replaceAll(\",$\", \"\");\n\n this.message_string += \"}\";\n\n return this.message_string;\n }", "void generateContent(OutputStream output) throws Exception;", "private JPanel buildContentPane(){\t\n\t\tinitialiseElements();\n\t\tpanel = new JPanel();\n\t\tpanel.setLayout(new FlowLayout());\n\t\tpanel.setBackground(Color.lightGray);\n\t\tpanel.add(scroll);\n\t\tpanel.add(bouton);\n\t\tpanel.add(bouton2);\n\t\treturn panel;\n\t}", "public void sendQuestion() {\n/* 55 */ StringBuilder buf = new StringBuilder();\n/* 56 */ buf.append(getBmlHeader());\n/* */ \n/* 58 */ buf.append(\"label{text=\\\"\\\"}\");\n/* 59 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"General\\\"}\");\n/* 60 */ buf.append(\"label{text=\\\" * I've keep some of the ways that HFC was used for skill increases. But no junk food, \\\"}\");\n/* 61 */ buf.append(\"label{text=\\\" e.g. nails are not used as an ingredient and if present in a container, they will stop the \\\"}\");\n/* 62 */ buf.append(\"label{text=\\\" food item being made.\\\"}\");\n/* 63 */ buf.append(\"label{text=\\\" * Meats now have a material, e.g. Meat, Dragon and Meat, Game\\\"}\");\n/* 64 */ buf.append(\"label{text=\\\" o As you can see it does not use the animal type, but a category as we have so \\\"}\");\n/* 65 */ buf.append(\"label{text=\\\" many animal types. Some of the categories are: (there are 16 total)\\\"}\");\n/* 66 */ buf.append(\"label{text=\\\" . Dragon\\\"}\");\n/* 67 */ buf.append(\"label{text=\\\" . Game\\\"}\");\n/* 68 */ buf.append(\"label{text=\\\" . Human\\\"}\");\n/* 69 */ buf.append(\"label{text=\\\" . Humanoid\\\"}\");\n/* 70 */ buf.append(\"label{text=\\\" . Snake\\\"}\");\n/* 71 */ buf.append(\"label{text=\\\" * Meat and fillets can now be put in FSB and Crates.\\\"}\");\n/* 72 */ buf.append(\"label{text=\\\" * Fish and fish fillets can now be put in FSB and Crates.\\\"}\");\n/* 73 */ buf.append(\"label{text=\\\" * Existing Zombified milk will lose its zombie status. New zombie milk should be fine.\\\"}\");\n/* 74 */ buf.append(\"label{text=\\\" * You will be able to seal some containers so long as they only have one liquid in them, \\\"}\");\n/* 75 */ buf.append(\"label{text=\\\" this will stop their decay.\\\"}\");\n/* 76 */ buf.append(\"label{text=\\\" o Small and Large Amphoria.\\\"}\");\n/* 77 */ buf.append(\"label{text=\\\" o Pottery Jar.\\\"}\");\n/* 78 */ buf.append(\"label{text=\\\" o Pottery Flask.\\\"}\");\n/* 79 */ buf.append(\"label{text=\\\" o Water Skin.\\\"}\");\n/* 80 */ buf.append(\"label{text=\\\" o Small Barrel.\\\"}\");\n/* 81 */ buf.append(\"harray{label{text=\\\" * \\\"};label{type=\\\"bold\\\";text=\\\"Bees\\\"};label{text=\\\" have been added.\\\"}}\");\n/* */ \n/* */ \n/* 84 */ buf.append(\"harray{label{text=\\\" * Cooking will now be from \\\"};label{type=\\\"bold\\\";text=\\\"recipes\\\"};label{text=\\\", this does not mean that you cannot continue \\\"}}\");\n/* */ \n/* */ \n/* 87 */ buf.append(\"label{text=\\\" cooking like you used to though, although some recipes will have changed.\\\"}\");\n/* 88 */ buf.append(\"harray{label{text=\\\" * A personal \\\"};label{type=\\\"bold\\\";text=\\\"cookbook\\\"};label{text=\\\" is now available which has the recipes that you know about in.\\\"}}\");\n/* */ \n/* */ \n/* 91 */ buf.append(\"label{text=\\\" * Hens eggs can now be found when foraging on grass tiles. And you will be able to put\\\"}\");\n/* 92 */ buf.append(\"label{text=\\\" in FSB, but that makes them infertile.\\\"}\");\n/* 93 */ buf.append(\"label{text=\\\" * Old containers and tools - now with more use.\\\"}\");\n/* 94 */ buf.append(\"label{text=\\\" o Sauce pan - had to change size of this, but that means some recipes need a \\\"}\");\n/* 95 */ buf.append(\"label{text=\\\" new one which is larger.\\\"}\");\n/* 96 */ buf.append(\"label{text=\\\" o Pottery bowl - can now be used to hold liquids as well, a lot of recipes use this.\\\"}\");\n/* 97 */ buf.append(\"label{text=\\\" o Hand - used to make some mixes, and other things. Note if a recipe says a \\\"}\");\n/* 98 */ buf.append(\"label{text=\\\" hand must be used, actually any active item will work.\\\"}\");\n/* 99 */ buf.append(\"label{text=\\\" o Fork - how else were you going to mix some stuff!\\\"}\");\n/* 100 */ buf.append(\"label{text=\\\" o Knife - used a lot in food preparation.\\\"}\");\n/* 101 */ buf.append(\"label{text=\\\" o Spoon - An alternative way to mix things (so same ingredients can be used in \\\"}\");\n/* 102 */ buf.append(\"label{text=\\\" multiple recipes. Also can be used to scoop.\\\"}\");\n/* 103 */ buf.append(\"label{text=\\\" o Press - can be used to squash something.\\\"}\");\n/* 104 */ buf.append(\"label{text=\\\" o Branch - branching out, could be used as a spit ...\\\"}\");\n/* 105 */ buf.append(\"label{text=\\\" * New containers and tools\\\"}\");\n/* 106 */ buf.append(\"label{text=\\\" o Stoneware. - used to make things like breads, biscuits etc\\\"}\");\n/* 107 */ buf.append(\"label{text=\\\" o Cake tin - used to make cakes\\\"}\");\n/* 108 */ buf.append(\"label{text=\\\" o Pie dish - used to make pies and tarts\\\"}\");\n/* 109 */ buf.append(\"label{text=\\\" o Roasting dish - used to roast food.\\\"}\");\n/* 110 */ buf.append(\"label{text=\\\" o Plate - used to make salads and sandwiches on.\\\"}\");\n/* 111 */ buf.append(\"label{text=\\\" o Mortar+Pestle - used to grind small things (e.g. spices)\\\"}\");\n/* 112 */ buf.append(\"label{text=\\\" o Measuring Jug - used to get a specific amount of liquid, its volume can be \\\"}\");\n/* 113 */ buf.append(\"label{text=\\\" adjusted (volume is same as weight for this).\\\"}\");\n/* 114 */ buf.append(\"label{text=\\\" o Still - used for distilling.\\\"}\");\n/* 115 */ buf.append(\"label{text=\\\" * New crops\\\"}\");\n/* 116 */ buf.append(\"label{text=\\\" o Carrots\\\"}\");\n/* 117 */ buf.append(\"label{text=\\\" o Cabbage\\\"}\");\n/* 118 */ buf.append(\"label{text=\\\" o Tomatos\\\"}\");\n/* 119 */ buf.append(\"label{text=\\\" o Sugar Beet\\\"}\");\n/* 120 */ buf.append(\"label{text=\\\" o Lettuce\\\"}\");\n/* 121 */ buf.append(\"label{text=\\\" o Peas\\\"}\");\n/* 122 */ buf.append(\"label{text=\\\" o Cucumbers\\\"}\");\n/* 123 */ buf.append(\"label{text=\\\" * New Bush\\\"}\");\n/* 124 */ buf.append(\"label{text=\\\" o Hazelnut bush - now you know where the hazelnuts come from.\\\"}\");\n/* 125 */ buf.append(\"label{text=\\\" * New Tree\\\"}\");\n/* 126 */ buf.append(\"label{text=\\\" o Orange tree - because it seemed like a good idea.\\\"}\");\n/* 127 */ buf.append(\"harray{label{text=\\\" * Spices - all can be planted in a \\\"};label{type=\\\"bold\\\";text=\\\"planter\\\"}label{text=\\\", except Nutmeg.\\\"}}\");\n/* */ \n/* */ \n/* 130 */ buf.append(\"label{text=\\\" o Cumin\\\"}\");\n/* 131 */ buf.append(\"label{text=\\\" o Ginger\\\"}\");\n/* 132 */ buf.append(\"label{text=\\\" o Paprika\\\"}\");\n/* 133 */ buf.append(\"label{text=\\\" o Turmeric\\\"}\");\n/* 134 */ buf.append(\"harray{label{text=\\\" * New Herbs - all Herbs can be planted in a \\\"};label{type=\\\"bold\\\";text=\\\"planter\\\"};}\");\n/* */ \n/* 136 */ buf.append(\"label{text=\\\" o Fennel\\\"}\");\n/* 137 */ buf.append(\"label{text=\\\" o Mint\\\"}\");\n/* 138 */ buf.append(\"label{text=\\\" * New items that are only found by forage / botanize. Note all above spices and herbs \\\"}\");\n/* 139 */ buf.append(\"label{text=\\\" and the new vegs can be found this way as well)\\\"}\");\n/* 140 */ buf.append(\"label{text=\\\" o Cocoa bean\\\"}\");\n/* 141 */ buf.append(\"label{text=\\\" o Nutmeg (note this is a spice but cannot be planted in a planter)\\\"}\");\n/* 142 */ buf.append(\"label{text=\\\" o Raspberries\\\"}\");\n/* 143 */ buf.append(\"label{text=\\\" o Hazelnut sprout.\\\"}\");\n/* 144 */ buf.append(\"label{text=\\\" o Orange sprout.\\\"}\");\n/* 145 */ buf.append(\"label{text=\\\" * Rocksalt\\\"}\");\n/* 146 */ buf.append(\"label{text=\\\" o Rock tiles that would of produced salt when mining will now be shown as \\\"}\");\n/* 147 */ buf.append(\"label{text=\\\" Rocksalt veins (this may take a day or two to show), but have a limited life (e.g. \\\"}\");\n/* 148 */ buf.append(\"label{text=\\\" you get 45-50 rocksalt from one).\\\"}\");\n/* 149 */ buf.append(\"label{text=\\\" o The Rocksalt can then be ground into salt using a grindstone. You can get\\\"}\");\n/* 150 */ buf.append(\"label{text=\\\" more than one salt from each Rocksalt bepending on your milling skill.\\\"}\");\n/* 151 */ buf.append(\"label{text=\\\" o Veins that had salt in, will be unaffected, e.g.you will still be able to get the \\\"}\");\n/* 152 */ buf.append(\"label{text=\\\" random salt when mining them.\\\"}\");\n/* 153 */ buf.append(\"label{text=\\\" * Trellis\\\"}\");\n/* 154 */ buf.append(\"label{text=\\\" o A new trellis has been added for hops.\\\"}\");\n/* 155 */ buf.append(\"label{text=\\\" o Trellis can now be harvested when their produce is in season (except ivy ones \\\"}\");\n/* 156 */ buf.append(\"label{text=\\\" don't have a season).\\\"}\");\n/* 157 */ buf.append(\"label{text=\\\" o To help plant your trellis in nice straight lines, you can plant them using a wall, \\\"}\");\n/* 158 */ buf.append(\"label{text=\\\" fence or tile border. And have three options, on left, center and on right.\\\"}\");\n/* 159 */ buf.append(\"label{text=\\\" o There is a limit of 4 planted trellis per tile. Any extras that are currently planted \\\"}\");\n/* 160 */ buf.append(\"label{text=\\\" on same tile will become unplanted.\\\"}\");\n/* 161 */ buf.append(\"label{text=\\\" * Flowers\\\"}\");\n/* 162 */ buf.append(\"label{text=\\\" o Flowers can now be used in some recipes, and therefore will now only go into \\\"}\");\n/* 163 */ buf.append(\"label{text=\\\" a food storage bin. This also applies to rose petals, oleander, lavender and \\\"}\");\n/* 164 */ buf.append(\"label{text=\\\" camellia.\\\"}\");\n/* 165 */ buf.append(\"label{text=\\\" o Any existing flowers in bulk storage bins are fine, you can still take them out,\\\"}\");\n/* 166 */ buf.append(\"label{text=\\\" but will not be able to put them back into the bulk storage bin, but they will go \\\"}\");\n/* 167 */ buf.append(\"label{text=\\\" into the food storage bin.\\\"}\");\n/* 168 */ buf.append(\"label{text=\\\" * The goodness of food\\\"}\");\n/* 169 */ buf.append(\"label{text=\\\" o Each meal made will have a bonus attached to it, so the same ingredients \\\"}\");\n/* 170 */ buf.append(\"label{text=\\\" making the same meal (in same cooker and same container) will end up with \\\"}\");\n/* 171 */ buf.append(\"label{text=\\\" this same bonus.\\\"}\");\n/* 172 */ buf.append(\"label{text=\\\" . This bonus will give a timed affinity to a skill, but can be different per \\\"}\");\n/* 173 */ buf.append(\"label{text=\\\" player, e.g. fish and chips may give a temp weaponsmithing affinity to \\\"}\");\n/* 174 */ buf.append(\"label{text=\\\" Joe, but to Tom it gives carpentry, (also may not give it to any skill).\\\"}\");\n/* 175 */ buf.append(\"label{text=\\\" o Nutrition has not been changed.\\\"}\");\n/* */ \n/* 177 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Bees\\\"}\");\n/* 178 */ buf.append(\"label{text=\\\" * Wild bee hives will appear in spring at random locations and they will vanish at the end \\\"}\");\n/* 179 */ buf.append(\"label{text=\\\" of the year (in winter). Note they will be in different locations each year.\\\"}\");\n/* 180 */ buf.append(\"label{text=\\\" * As time passes honey will be made in hives together with bees wax, the amount will\\\"}\");\n/* 181 */ buf.append(\"label{text=\\\" depend on nearby flowers, fields and trees.\\\"}\");\n/* 182 */ buf.append(\"label{text=\\\" * Each wild hive will start with one queen bee, this may increase by one every wurm \\\"}\");\n/* 183 */ buf.append(\"label{text=\\\" month, to a maximum of two, so long as the hive has over a certain amount of honey in \\\"}\");\n/* 184 */ buf.append(\"label{text=\\\" it. When there is two queen bees if there is a domestic hive nearby it may migrate to it.\\\"}\");\n/* 185 */ buf.append(\"label{text=\\\" * Domestic hives will be loadable. Even with a queen in it. So you can move it to \\\"}\");\n/* 186 */ buf.append(\"label{text=\\\" somewhere, e.g. your own deed. Watch out bees sting!\\\"}\");\n/* 187 */ buf.append(\"label{text=\\\" * Domestic hives that had a queen in it, will go dormant over the winter period and will \\\"}\");\n/* 188 */ buf.append(\"label{text=\\\" become active again in spring. But it is possible for the queen to die over winter if no \\\"}\");\n/* 189 */ buf.append(\"label{text=\\\" honey is left in the hive (Note can put sugar in hive to keep the queen alive.\\\"}\");\n/* 190 */ buf.append(\"label{text=\\\" * Honey ( and beeswax) will be collectable from hives.. But you may need a bee \\\"}\");\n/* 191 */ buf.append(\"label{text=\\\" smoker.. So bees do not sting you, note that this bee smoker is useful for other times, \\\"}\");\n/* 192 */ buf.append(\"label{text=\\\" like if you want to chop down a tree that has a hive, or load/unload a domestic hive \\\"}\");\n/* 193 */ buf.append(\"label{text=\\\" which has a queen in it.\\\"}\");\n/* */ \n/* 195 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Recipes\\\"}\");\n/* 196 */ buf.append(\"label{text=\\\" * As well as being able to examine a food container to see what it will make, you can \\\"}\");\n/* 197 */ buf.append(\"harray{label{text=\\\" also use \\\"};label{type=\\\"bold\\\";text=\\\"LORE\\\"};label{text=\\\", to get hints on what ingredient you could add into the container to be \\\"}}\");\n/* */ \n/* */ \n/* 200 */ buf.append(\"label{text=\\\" able to make something.\\\"}\");\n/* 201 */ buf.append(\"label{text=\\\" * Some more specialised recipes will call for a meat of a specific category, or a specific \\\"}\");\n/* 202 */ buf.append(\"label{text=\\\" fish, but most will use any meat or any fish or even any veg.\\\"}\");\n/* 203 */ buf.append(\"label{text=\\\" * Most new recipes only require one of each item, main exception is making sandwiches \\\"}\");\n/* 204 */ buf.append(\"label{text=\\\" which normally requires 2 slices of bread.\\\"}\");\n/* 205 */ buf.append(\"label{text=\\\" * Some recipes are an intermediate step, or some sauce which is used later e.g. there is \\\"}\");\n/* 206 */ buf.append(\"label{text=\\\" cake mix and white sauce.\\\"}\");\n/* 207 */ buf.append(\"label{text=\\\" * Lots of new food category types e.g.\\\"}\");\n/* 208 */ buf.append(\"label{text=\\\" o Curry\\\"}\");\n/* 209 */ buf.append(\"label{text=\\\" o Pizza\\\"}\");\n/* 210 */ buf.append(\"label{text=\\\" o Cookies\\\"}\");\n/* 211 */ buf.append(\"label{text=\\\" o Pie\\\"}\");\n/* 212 */ buf.append(\"label{text=\\\" o Tarts\\\"}\");\n/* 213 */ buf.append(\"label{text=\\\" o Biscuits\\\"}\");\n/* 214 */ buf.append(\"label{text=\\\" o Scones\\\"}\");\n/* 215 */ buf.append(\"label{text=\\\" o Salads\\\"}\");\n/* 216 */ buf.append(\"label{text=\\\" * And some of your old favorites like.\\\"}\");\n/* 217 */ buf.append(\"label{text=\\\" o Cakes\\\"}\");\n/* 218 */ buf.append(\"label{text=\\\" o Sandwiches\\\"}\");\n/* 219 */ buf.append(\"label{text=\\\" o Tea\\\"}\");\n/* 220 */ buf.append(\"label{text=\\\" o Wine\\\"}\");\n/* 221 */ buf.append(\"label{text=\\\" o Meal\\\"}\");\n/* 222 */ buf.append(\"label{text=\\\" * And there are some new drinks which will need distilling.\\\"}\");\n/* 223 */ buf.append(\"label{text=\\\" * Note you will need to experiment to find their recipes, but do note some items need a \\\"}\");\n/* 224 */ buf.append(\"label{text=\\\" mix before adding other items, e.g. you will now need a cake mix to make cakes.\\\"}\");\n/* 225 */ buf.append(\"label{text=\\\" * Some ingredients will only be found doing forage/botanize actions, whilst others, once \\\"}\");\n/* 226 */ buf.append(\"harray{label{text=\\\" found, they may be able to be planted as a \\\"};label{type=\\\"bold\\\";text=\\\"crop\\\"};label{text=\\\" or even in a \\\"};label{type=\\\"bold\\\";text=\\\"planter\\\"};label{text=\\\" (e.g. most spices \\\"}}\");\n/* */ \n/* */ \n/* */ \n/* */ \n/* 231 */ buf.append(\"label{text=\\\" and herbs can be planted in a planter).\\\"}\");\n/* 232 */ buf.append(\"label{text=\\\" o Fresh is an attribute of an item when just found from foraging or picking, if you \\\"}\");\n/* 233 */ buf.append(\"label{text=\\\" put it in a FSB it looses that attribute.\\\"}\");\n/* 234 */ buf.append(\"label{text=\\\" * Some recipes are nameable this means that whoever is the first to make the item for \\\"}\");\n/* 235 */ buf.append(\"label{text=\\\" that recipe, will have their name added to the front of that recipe name, e.g. if Pifa was \\\"}\");\n/* 236 */ buf.append(\"label{text=\\\" first to make a meat curry (assuming that was nameable) then it would show to \\\"}\");\n/* 237 */ buf.append(\"label{text=\\\" everyone, when they discover it, as ''Pifa's meat curry''.\\\"}\");\n/* 238 */ buf.append(\"label{text=\\\" * Note only one recipe can be named per person.\\\"}\");\n/* 239 */ buf.append(\"label{text=\\\" * Some recipes may only be makeable once you have that recipe in your cookbook,\\\"}\");\n/* 240 */ buf.append(\"label{text=\\\" these recipes are only available from killing certain creatures.\\\"}\");\n/* 241 */ buf.append(\"label{text=\\\" * Recipes can be inscribed onto papryus (or paper), to do this you need to be looking at\\\"}\");\n/* 242 */ buf.append(\"label{text=\\\" the recipe in your cookbook, and then use the reed pen on a blank papryus (or paper).\\\"}\");\n/* 243 */ buf.append(\"label{text=\\\" o You can then mail these or trade them to others, where they can add it to their\\\"}\");\n/* 244 */ buf.append(\"label{text=\\\" cookbook, if they don't know it, by either reading the recipe and selecting to add\\\"}\");\n/* 245 */ buf.append(\"label{text=\\\" to their cookbook or activate it and r-click on the cookbook menu option.\\\"}\");\n/* */ \n/* 247 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Planter\\\"}\");\n/* 248 */ buf.append(\"label{text=\\\" * Items can be planted in a planter, e.g. a herb or a spice (not all spices).\\\"}\");\n/* 249 */ buf.append(\"label{text=\\\" * The planted item will start growing.\\\"}\");\n/* 250 */ buf.append(\"label{text=\\\" * After a while it will be available to be harvested.\\\"}\");\n/* 251 */ buf.append(\"label{text=\\\" * Harvesting will be available daily,\\\"}\");\n/* 252 */ buf.append(\"label{text=\\\" * Each time you harvest it will prolong its life\\\"}\");\n/* 253 */ buf.append(\"label{text=\\\" * Eventually it will get too woody to be harvested, then it is time to start afresh.\\\"}\");\n/* */ \n/* 255 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"LORE\\\"}\");\n/* 256 */ buf.append(\"label{text=\\\"Using LORE on a container, will let you know what could be made, e.g.\\\"}\");\n/* 257 */ buf.append(\"label{text=\\\" * If the contents match a known recipe (known by you that is). You would get a message \\\"}\");\n/* 258 */ buf.append(\"label{text=\\\" like:\\\"}\");\n/* 259 */ buf.append(\"label{text=\\\" o 'The ingredients in the frying pan would make an omlette when cooked'.\\\"}\");\n/* 260 */ buf.append(\"label{text=\\\" * If the contents match an unknown recipe. Message would be like: \\\"}\");\n/* 261 */ buf.append(\"label{text=\\\" o 'You think this may well work when cooked'.\\\"}\");\n/* 262 */ buf.append(\"label{text=\\\" * If the contents would make any recipe but has the incorrect amount of a liquid then \\\"}\");\n/* 263 */ buf.append(\"label{text=\\\" you would get something like:\\\"}\");\n/* 264 */ buf.append(\"label{text=\\\" o 'The ingredients in the saucepan would make tea when cooked, but...'\\\"}\");\n/* 265 */ buf.append(\"label{text=\\\" 'There is too much water, try between 300g and 400g.'\\\"}\");\n/* 266 */ buf.append(\"label{text=\\\" * Partial Matches\\\"}\");\n/* 267 */ buf.append(\"label{text=\\\" o It performs checks in this order \\\"}\");\n/* 268 */ buf.append(\"label{text=\\\" . Unknown recipe that is not nameable.\\\"}\");\n/* 269 */ buf.append(\"label{text=\\\" . Unknown recipe that is nameable.\\\"}\");\n/* 270 */ buf.append(\"label{text=\\\" . Known recipe that is not nameable.\\\"}\");\n/* 271 */ buf.append(\"label{text=\\\" . Known recipe that is nameable.\\\"}\");\n/* 272 */ buf.append(\"label{text=\\\" o If the contents form part of any recipe, it will give a hint as to what to add to \\\"}\");\n/* 273 */ buf.append(\"label{text=\\\" make that recipe. E.g. 'have you tried adding a chopped onion?'.\\\"}\");\n/* 274 */ buf.append(\"label{text=\\\" . Note the recipe is picked at random from a list of possible recipes and \\\"}\");\n/* 275 */ buf.append(\"label{text=\\\" so is the shown ingredient.\\\"}\");\n/* */ \n/* 277 */ buf.append(\"label{type=\\\"bold\\\";text=\\\"Cookbook\\\"}\");\n/* 278 */ buf.append(\"label{text=\\\" * Every person has a cookbook, where your known recipes are shown.\\\"}\");\n/* 279 */ buf.append(\"label{text=\\\" * Some recipes are known by everyone by default, you have to find the others and \\\"}\");\n/* 280 */ buf.append(\"label{text=\\\" make them for them to appear in your cookbook..\\\"}\");\n/* 281 */ buf.append(\"label{text=\\\" * The initial page of your cookbook allows you to select what recipes to view, i.e. \\\"}\");\n/* 282 */ buf.append(\"label{text=\\\" o Target action - these are the ones where you use one item on another, e.g. \\\"}\");\n/* 283 */ buf.append(\"label{text=\\\" grinding cereals to make flour.\\\"}\");\n/* 284 */ buf.append(\"label{text=\\\" o Container action - these ones are when you use a tool of some kind on a \\\"}\");\n/* 285 */ buf.append(\"label{text=\\\" container to change the contents of the container into a different item. E.g. \\\"}\");\n/* 286 */ buf.append(\"label{text=\\\" using your hand on a pottery bowl which containers flour, water, salt and butter \\\"}\");\n/* 287 */ buf.append(\"label{text=\\\" to make pastry.\\\"}\");\n/* 288 */ buf.append(\"label{text=\\\" o Heat - these ones are your basic cooking recipes, where you put ingredients \\\"}\");\n/* 289 */ buf.append(\"label{text=\\\" into a food container, and put in an cooker and after the ingredients get hot the \\\"}\");\n/* 290 */ buf.append(\"label{text=\\\" container items change to the result, e.g. putting maple sap into a saucepan in \\\"}\");\n/* 291 */ buf.append(\"label{text=\\\" a lit oven, will result in maple syrup after sometime. Not all recipes work in all \\\"}\");\n/* 292 */ buf.append(\"label{text=\\\" cookers.\\\"}\");\n/* 293 */ buf.append(\"label{text=\\\" o Time - these ones are used for brewing.\\\"}\");\n/* 294 */ buf.append(\"label{text=\\\" * Also on the initial page you also have links to view recipes (that you know) by\\\"}\");\n/* 295 */ buf.append(\"label{text=\\\" o Tool - this gives a list of the tools that you know are used for cooking, selecting \\\"}\");\n/* 296 */ buf.append(\"label{text=\\\" a tool from that list will give you the known recipes that can be made from it.\\\"}\");\n/* 297 */ buf.append(\"label{text=\\\" o Cooker - this will give a list of cookers, and selecting a cooker from that list will \\\"}\");\n/* 298 */ buf.append(\"label{text=\\\" lead you to a list of known recipes that can be made in it\\\"}\");\n/* 299 */ buf.append(\"label{text=\\\" o Container - this will give you a list of containers that can be used by known \\\"}\");\n/* 300 */ buf.append(\"label{text=\\\" recipes, selecting one will then give a list of the known recipes that use that \\\"}\");\n/* 301 */ buf.append(\"label{text=\\\" container.\\\"}\");\n/* 302 */ buf.append(\"label{text=\\\" o Ingredients - gives a list of all your known ingredients, and again selecting one \\\"}\");\n/* 303 */ buf.append(\"label{text=\\\" of them will then show a list of known recipes that use that ingredient.\\\"}\");\n/* 304 */ buf.append(\"label{text=\\\" * Also you can search your recipes.\\\"}\");\n/* 305 */ buf.append(\"label{text=\\\" * From any list of recipes, you can select one and view what you think is used to make \\\"}\");\n/* 306 */ buf.append(\"label{text=\\\" that item\\\"}\");\n/* 307 */ buf.append(\"label{text=\\\" o Note that there are optional ingredients, and unless you have used them for an \\\"}\");\n/* 308 */ buf.append(\"label{text=\\\" ingredient, then they will not show in your version.\\\"}\");\n/* 309 */ buf.append(\"label{text=\\\" o Note that some recipes may use any type of meat, or fish, or veg, or herb, or \\\"}\");\n/* 310 */ buf.append(\"label{text=\\\" spice, when you attempt the same recipe with a different type, your recipe will \\\"}\");\n/* 311 */ buf.append(\"label{text=\\\" be updated to show that information, e.g. if your recipe says that it uses beef \\\"}\");\n/* 312 */ buf.append(\"label{text=\\\" meat, and you try with canine meat, then if it works, the recipe will update \\\"}\");\n/* 313 */ buf.append(\"label{text=\\\" to show any meat. \\\"}\");\n/* 314 */ buf.append(\"label{text=\\\" o Note that not all recipes can use all types.\\\"}\");\n/* */ \n/* 316 */ buf.append(createAnswerButton2());\n/* 317 */ getResponder().getCommunicator().sendBml(480, 500, true, true, buf.toString(), 200, 200, 200, this.title);\n/* */ }", "@Override\r\n\tpublic void buildPart() {\n\t\t\r\n\t}", "protected void createContents() {\n\t\tsetText(\"Muokkaa asiakastietoja\");\n\t\tsetSize(800, 550);\n\n\t}", "@Override\n public void build() {\n\n // Create the missive\n this.createMissive();\n }", "@SuppressWarnings(\"JavaUtilDate\")\n public OAIPMHtype build() {\n response.setRequest(requestType);\n GregorianCalendar cal = new GregorianCalendar();\n cal.setGregorianChange(new Date());\n try {\n response.setResponseDate(DatatypeFactory.newInstance().newXMLGregorianCalendar(cal));\n } catch (DatatypeConfigurationException ex) {\n LOGGER.error(\"Failed to set response date to OAI-PMH response.\", ex);\n }\n\n if (!isError()) {\n switch (verb) {\n case IDENTIFY:\n response.setIdentify(identifyType);\n break;\n case LIST_METADATA_FORMATS:\n response.setListMetadataFormats(listMetadataFormatsType);\n break;\n case LIST_SETS:\n response.setListSets(listSetsType);\n break;\n case GET_RECORD:\n response.setGetRecord(getRecordType);\n break;\n case LIST_IDENTIFIERS:\n response.setListIdentifiers(listIdentifiers);\n break;\n case LIST_RECORDS:\n response.setListRecords(listRecordsType);\n break;\n }\n }\n\n return response;\n }", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "java.lang.String getContent();", "public PageResponse build() {\n return new PageResponse(this);\n }", "public void execute() {\n //this.$context.$Request.initialize();\n this.$context.$Request.extractAllVars();\n\n this.$context.$Response.writeHeader(\"Content-type\", \"text/html; charset=UTF-8\");\n\n // Check security code\n if (!this.$context.$Request.contains(\"code\")) {\n this.$context.$Response.end(\"Code is required!\");\n return;\n }\n String $code = this.$context.$Request.get(\"code\");\n if (!EQ($code, Config.SECURITY_CODE)) {\n this.$context.$Response.end(\"Incorrect code!\");\n return;\n }\n\n // Check package\n if (!this.$context.$Request.contains(\"package\")) {\n this.$context.$Response.end(\"Package is required!\");\n return;\n }\n String $package = this.$context.$Request.get(\"package\");\n if (BLANK($package)) {\n this.$context.$Response.end(\"Empty package!\");\n return;\n }\n String[] $packageChunks = Strings.split(\"-\", $package);\n for (int $n = 0; $n < SIZE($packageChunks); $n++)\n $packageChunks[$n] = Strings.firstCharToUpper($packageChunks[$n]);\n $package = Strings.join(\"/\", $packageChunks);\n\n // Check class\n if (!this.$context.$Request.contains(\"class\")) {\n this.$context.$Response.end(\"Class is required!\");\n return;\n }\n String $className = this.$context.$Request.get(\"class\");\n if (BLANK($className)) {\n this.$context.$Response.end(\"Empty class!\");\n return;\n }\n\n // Check method\n if (!this.$context.$Request.contains(\"method\")) {\n this.$context.$Response.end(\"Method is required!\");\n return;\n }\n String $method = this.$context.$Request.get(\"method\");\n if (BLANK($method)) {\n this.$context.$Response.end(\"Empty method!\");\n return;\n }\n\n // Fill array with parameters\n int $count = 0;\n TArrayList $pars = new TArrayList();\n for (int $n = 1; $n <= 6; $n++) {\n String $parName = CAT(\"par\", $n);\n if (!this.$context.$Request.contains($parName))\n break;\n String $parValue = this.$context.$Request.get($parName);\n if (EQ($parValue, \"_\"))\n $parValue = \"\";\n //$parsArray[] = $parValue;\n $pars.add($parValue);\n $count++;\n }\n\n String $buffer = null;\n Object $result = null;\n\n String $fullClass = CAT($package, \"/\", $className);\n\n $fullClass = Strings.replace(\"/\", \".\", $fullClass);\n TArrayList $pars0 = new TArrayList(new Object[] { this.$context.$Connection });\n $result = Bula.Internal.callMethod($fullClass, $pars0, $method, $pars);\n\n if ($result == null)\n $buffer = \"NULL\";\n else if ($result instanceof DataSet)\n $buffer = ((DataSet)$result).toXml(EOL);\n else\n $buffer = STR($result);\n this.$context.$Response.write($buffer);\n this.$context.$Response.end();\n }", "private void buildOutput() {\n\t\tsalesSlip.addName(itemField.getText());\n\t\tsalesSlip.addPrice(Double.parseDouble(costField.getText()), Integer.parseInt(quantityField.getText()));\n\t\tsalesSlip.addQuantity(Integer.parseInt(quantityField.getText()));\n\t\tsalesSlip.updatePrice();\n\t\t\n\t\ttextArea.append(salesSlip.generateOutput(salesSlip.numItems-1));\n\t\ttextArea.append(\"\\n\");\n\t\t\n\t\ttotalArea.setText(\"$\" + salesSlip.totalPrice);\n\t}", "@Override\n public Object build() {\n return null;\n }", "@Override\n public Object build() {\n return null;\n }", "public String content() {\n StringWriter content = new StringWriter();\n PrintWriter w = new PrintWriter(content);\n\n printHeaderComment(w);\n\n w.println();\n\n w.println(\"#include \\\"\" + className + \".h\\\"\");\n w.println(\"#include <iostream>\");\n w.println();\n\n w.println();\n\n w.println(\"void \" + className + \"::load( PersistableInputStream& \" + INSTREAM_VAR_NAME + \" ){\");\n w.print(loadContent.toString());\n w.println(\"}\");\n\n w.println();\n\n w.println(\"void \" + className + \"::save( PersistableOutputStream& \" + OUTSTREAM_VAR_NAME + \" ){\");\n w.print(saveContent.toString());\n w.println(\"}\");\n\n return content.toString();\n }", "public String build() {\r\n if (this.isNotEmpty()) {\r\n final StringBuilder sb = new StringBuilder();\r\n\r\n final List<MessageAssertor> messages;\r\n if (this.isPreconditionsNotEmpty()) {\r\n messages = this.preconditions;\r\n } else {\r\n messages = this.messages;\r\n }\r\n\r\n for (final MessageAssertor message : messages) {\r\n sb.append(HelperMessage.getMessage(message));\r\n }\r\n\r\n return sb.toString();\r\n }\r\n return StringUtils.EMPTY;\r\n }", "public Yhzh build() {\n return this.obj;\n }", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "String getContent();", "public String build() {\n\treturn prefixes.toString() + \" \\n CONSTRUCT { \" + variables.toString()\n\t\t+ \" } WHERE { \" + wheres.toString() + \" }\";\n }", "@Override\n\tpublic String getResponse() {\n\n\t\tString[] css = { Resource.CSS_COMMON, Resource.CSS_HEADER, Resource.CSS_CARD, Resource.CSS_TITLE_BANNER,\n\t\t\t\tResource.CSS_MODAL_IMAGE, Resource.CSS_BUTTON, Resource.CSS_FORMS};\n\t\tString[] js = { Resource.JS_HEADER, Resource.JS_FORMS };\n\n\t\tm.addHead(css, js, \"View Window\");\n\n\t\tm.ln(\"<body>\");\n\t\tm.addNavbar(NavbarItem.Sandpit, requestInfo);\n\n\t\tm.ln(\"<script>\");\n\t\tm.ln(\"function updateClientWidth() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('client-width');\");\n\t\tm.ln(\"\telement.innerHTML = document.documentElement.clientWidth;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateInnerWidth() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('inner-width');\");\n\t\tm.ln(\"\telement.innerHTML = window.innerWidth;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateClientHeight() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('client-height');\");\n\t\tm.ln(\"\telement.innerHTML = document.documentElement.clientHeight;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateInnerHeight() {\");\n\t\tm.ln(\"\tvar element = document.getElementById('inner-height');\");\n\t\tm.ln(\"\telement.innerHTML = window.innerHeight;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\"function updateAll() {\");\n\t\tm.ln(\"\tupdateClientWidth();\");\n\t\tm.ln(\"\tupdateInnerWidth();\");\n\t\tm.ln(\"\tupdateClientHeight();\");\n\t\tm.ln(\"\tupdateInnerHeight();\");\n\t\tm.ln(\"}\");\n\t\tm.ln(\"</script>\");\n\n\n\t\tm.ln(\"<style>\");\n\t\tm.ln(\"#hold {\");\n\t\tm.ln(\"position: fixed;\");\n\t\tm.ln(\"background-color: powderblue;\");\n\t\tm.ln(\"left: 0;\");\n\t\tm.ln(\"}\");\n\n\t\tm.ln(\".green { background-color: lightgreen; }\");\n\t\tm.ln(\"</style>\");\n\n\t\tm.ln(\"<div class=\\\"common-content\\\">\");\n\t\tm.ln(\"<div class=\\\"card\\\">\");\n\n\t\tm.ln(\"<br><br><br>\");\n\t\tm.ln(\"<p><i>On Chrome for Android: you cannot interact with the bottom of the page when page is displayed through iframe. \"\n\t\t\t\t+ \"When you scroll down the innerHeight becomes bigger than clientHeight as the URL bar is hidden.</i></p><br>\");\n\n\t\tm.ln(\"<div id='hold'>\");\n\t\tm.ln(\"<p>document.documentElement.clientWidth = <b id='client-width'></b>\");\n\t\tm.ln(\"<button onclick='updateClientWidth()'>update</button></p>\");\n\n\t\tm.ln(\"<p>window.innerWidth = <b id='inner-width'></b>\");\n\t\tm.ln(\"<button onclick='updateInnerWidth()'>update</button></p>\");\n\n\t\tm.ln(\"<p>document.documentElement.clientHeight = <b id='client-height'></b>\");\n\t\tm.ln(\"<button onclick='updateClientHeight()'>update</button></p>\");\n\n\t\tm.ln(\"<p>window.innerHeight = <b id='inner-height'></b>\");\n\t\tm.ln(\"<button onclick='updateInnerHeight()'>update</button></p>\");\n\n\t\tm.ln(\"<p>Update all: \");\n\t\tm.ln(\"<button onclick='updateAll()'>update all</button></p>\");\n\t\tm.ln(\"</div>\"); // hold\n\n\t\tfor (int i = 0; i < 64; i ++) {\n\t\t\tm.ln(\"<br>line \" + i);\n\t\t}\n\n\t\tm.ln(\"</div>\"); // card\n\t\tm.ln(\"</div>\"); //common-content\n\n\t\tm.ln(\"<button onclick='this.classList.toggle(\\\"green\\\");'>----- Can press? -----</button><b style='float:right'>----- Can select? -----</b>\");\n\t\tm.ln(\"</body>\");\n\t\tm.ln(\"</html>\");\n\n\t\treturn m.p.toString();\n\t}", "static SimImpl handle_builder_request(DataInputStream in, DataOutputStream out) throws IOException {\n\t\tSimImpl.Builder builder = new SimImpl.Builder();\n\t\tHashSet<SimImpl.Coordinates> hazards = new HashSet<SimImpl.Coordinates>();\n\t\tHashSet<SimImpl.Coordinates> blobs = new HashSet<SimImpl.Coordinates>();\n\t\tLong seed = null;\n\n\t\twhile (true) {\n\t\t\tfor (byte command = in.readByte(); COMMANDS[command] != Command.BUILD; command = in.readByte()) {\n\t\t\t\ttry {\n\t\t\t\t\tif (command >= COMMANDS.length) {\n\t\t\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t\t\t}\n\t\t\t\t\tswitch (COMMANDS[command]) {\n\t\t\t\t\tcase SET_MAP_SIZE:\n\t\t\t\t\t\tint w = in.readInt();\n\t\t\t\t\t\tint h = in.readInt();\n\t\t\t\t\t\tbuilder.mapSize(w, h);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SET_BOT_POS:\n\t\t\t\t\t\tint x = in.readInt();\n\t\t\t\t\t\tint y = in.readInt();\n\t\t\t\t\t\tbuilder.robotPosition(x, y);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SET_BOT_DIR:\n\t\t\t\t\t\tbyte dir_idx = in.readByte();\n\t\t\t\t\t\tif (dir_idx >= DIRECTIONS.length) {\n\t\t\t\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t\t\t\t}\n\t\t\t\t\t\tbuilder.robotDirection(DIRECTIONS[dir_idx]);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ADD_HAZARD:\n\t\t\t\t\t\tx = in.readInt();\n\t\t\t\t\t\ty = in.readInt();\n\t\t\t\t\t\thazards.add(new SimImpl.Coordinates(x, y));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase REMOVE_HAZARD:\n\t\t\t\t\t\tx = in.readInt();\n\t\t\t\t\t\ty = in.readInt();\n\t\t\t\t\t\thazards.remove(new SimImpl.Coordinates(x, y));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase ADD_BLOB:\n\t\t\t\t\t\tx = in.readInt();\n\t\t\t\t\t\ty = in.readInt();\n\t\t\t\t\t\tblobs.add(new SimImpl.Coordinates(x, y));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase REMOVE_BLOB:\n\t\t\t\t\t\tx = in.readInt();\n\t\t\t\t\t\ty = in.readInt();\n\t\t\t\t\t\tblobs.remove(new SimImpl.Coordinates(x, y));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SET_SEED:\n\t\t\t\t\t\tseed = in.readLong();\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SET_PROB_0:\n\t\t\t\t\t\tfloat prob = in.readFloat();\n\t\t\t\t\t\tbuilder.setNoMovementProbability(prob);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tcase SET_PROB_2:\n\t\t\t\t\t\tprob = in.readFloat();\n\t\t\t\t\t\tbuilder.setDoubleForwardProbability(prob);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\tdefault:\n\t\t\t\t\t\tthrow new IllegalArgumentException();\n\t\t\t\t\t}\n\t\t\t\t} catch (IllegalArgumentException e) {\n\t\t\t\t\tout.writeByte(ERR);\n\t\t\t\t\tout.flush();\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tout.writeByte(OK);\n\t\t\t\tout.flush();\n\t\t\t}\n\n\t\t\t// If we reached here, command equaled Command.BUILD and thus we should try\n\t\t\t// building SimImpl.\n\t\t\ttry {\n\t\t\t\tRandom rng;\n\t\t\t\tif (seed == null) {\n\t\t\t\t\trng = new Random();\n\t\t\t\t} else {\n\t\t\t\t\trng = new Random(seed);\n\t\t\t\t}\n\t\t\t\tSimImpl sim = builder.hazards(hazards.stream()).blobs(blobs.stream()).rng(rng).build();\n\t\t\t\t// Success: tell the user we've built it and return to caller.\n\t\t\t\tout.writeByte(OK);\n\t\t\t\tout.flush();\n\t\t\t\treturn sim;\n\n\t\t\t} catch (IllegalStateException | IndexOutOfBoundsException | IllegalArgumentException e) {\n\t\t\t\t// We just signal error to user and keep looping.\n\t\t\t\tout.writeByte(ERR);\n\t\t\t\tout.flush();\n\t\t\t}\n\t\t}\n\t}", "public String buildReponse(HttpURLConnection con) throws IOException {\n\n BufferedReader in = new BufferedReader(\n\t\t\t new InputStreamReader(con.getInputStream()));\n\t\tString inputLine;\n\t\tStringBuffer response = new StringBuffer();\n\n\t\twhile ((inputLine = in.readLine()) != null) {\n\t\t\tresponse.append(inputLine);\n\t\t}\n\t\tin.close();\n\t\treturn response.toString();\n\t}", "public void run() {\n LOG.info(\"Starting Contentful crawling\");\n //Partition of ContentTypes: TRUE: vocabularies and FALSE: non-vocabularies/web content\n Map<Boolean, List<CMAContentType>> contentTypes = getContentTypes();\n List<CMAContentType> vocContentTypes = contentTypes.get(Boolean.TRUE);\n List<CMAContentType> webContentTypes = contentTypes.get(Boolean.FALSE);\n\n //Extract vocabularies meta data\n VocabularyTerms vocabularyTerms = getVocabularyTerms(vocContentTypes);\n\n //Mapping generator can be re-used for all content types\n MappingGenerator mappingGenerator = new MappingGenerator(vocContentTypes);\n\n //Gets the ContentType.resourceId for news and articles, which vary by space\n newsContentTypeId = getContentTypeId(webContentTypes, configuration.getNewsContentType());\n articleContentTypeId = getContentTypeId(webContentTypes, configuration.getArticleContentType());\n projectContentTypeId = getContentTypeId(webContentTypes, configuration.getProjectContentType());\n\n\n //Crawl all Content Types, except for vocabularies\n crawlContentTypes(webContentTypes, mappingGenerator, vocabularyTerms);\n LOG.info(\"Contentful crawling has finished\");\n }", "Object build();", "protected void createContents() throws Exception {\n\t\tshlGecco = new Shell();\n\t\tshlGecco.setImage(SWTResourceManager.getImage(jdView.class, \"/images/yc.ico\"));\n\t\tshlGecco.setSize(1366, 736);\n\t\tshlGecco.setText(\"gecco爬取京东信息\");\n\t\tshlGecco.setLocation(0, 0);\n\t\tshlGecco.setLayout(new FillLayout(SWT.HORIZONTAL));\n\t\tSashForm sashForm = new SashForm(shlGecco, SWT.NONE);\n\t\tsashForm.setOrientation(SWT.VERTICAL);\n\n\t\tGroup group = new Group(sashForm, SWT.NONE);\n\t\tgroup.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup.setText(\"爬取查询条件\");\n\t\tgroup.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_2 = new SashForm(group, SWT.NONE);\n\n\t\tGroup group_2 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_2.setText(\"爬取条件\");\n\n\t\tLabel lblip = new Label(group_2, SWT.NONE);\n\t\tlblip.setLocation(34, 27);\n\t\tlblip.setSize(113, 21);\n\t\tlblip.setText(\"输入开始爬取地址:\");\n\n\t\ttxtSearchUrl = new Text(group_2, SWT.BORDER);\n\t\ttxtSearchUrl.setLocation(153, 23);\n\t\ttxtSearchUrl.setSize(243, 23);\n\t\ttxtSearchUrl.setText(\"https://www.jd.com/allSort.aspx\");\n\n\t\tbtnSearch = new Button(group_2, SWT.NONE);\n\t\tbtnSearch.setLocation(408, 23);\n\t\tbtnSearch.setSize(82, 25);\n\n\t\tbtnSearch.setEnabled(false);\n\t\tbtnSearch.setText(\"开始爬取\");\n\n\t\tGroup group_3 = new Group(sashForm_2, SWT.NONE);\n\t\tgroup_3.setText(\"查询条件\");\n\n\t\tLabel label_2 = new Label(group_3, SWT.NONE);\n\t\tlabel_2.setLocation(77, 25);\n\t\tlabel_2.setSize(86, 25);\n\t\tlabel_2.setText(\"选择查询条件:\");\n\n\t\tcombo = new Combo(group_3, SWT.NONE);\n\t\tcombo.setLocation(169, 23);\n\t\tcombo.setSize(140, 23);\n\t\tcombo.setItems(new String[] { \"全部\", \"商品总类别\", \"子类别名\", \"类别链接\" });\n\t\t// combo.setText(\"全部\");\n\n\t\tbutton = new Button(group_3, SWT.NONE);\n\t\tbutton.setLocation(524, 23);\n\t\tbutton.setSize(80, 25);\n\t\tbutton.setText(\"点击查询\");\n\t\tbutton.setEnabled(false);\n\n\t\tcombo_1 = new Combo(group_3, SWT.NONE);\n\t\tcombo_1.setEnabled(false);\n\t\tcombo_1.setLocation(332, 23);\n\t\tcombo_1.setSize(170, 23);\n\t\t// combo_1.setItems(new String[] { \"全部\" });\n\t\t// combo_1.setText(\"全部\");\n\t\tsashForm_2.setWeights(new int[] { 562, 779 });\n\t\tGroup group_1 = new Group(sashForm, SWT.NONE);\n\t\tgroup_1.setFont(SWTResourceManager.getFont(\"Microsoft YaHei UI\", 10, SWT.BOLD));\n\t\tgroup_1.setText(\"爬取结果\");\n\t\tgroup_1.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tSashForm sashForm_1 = new SashForm(group_1, SWT.NONE);\n\n\t\tGroup group_Categorys = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_Categorys.setText(\"商品分组\");\n\t\tgroup_Categorys.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tcategorys = new Table(group_Categorys, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tcategorys.setHeaderVisible(true);\n\t\tcategorys.setLinesVisible(true);\n\n\t\tTableColumn ParentName = new TableColumn(categorys, SWT.NONE);\n\t\tParentName.setWidth(87);\n\t\tParentName.setText(\"商品总类别\");\n\n\t\tTableColumn Title = new TableColumn(categorys, SWT.NONE);\n\t\tTitle.setWidth(87);\n\t\tTitle.setText(\"子类别名\");\n\n\t\tTableColumn Ip = new TableColumn(categorys, SWT.NONE);\n\t\tIp.setWidth(152);\n\t\tIp.setText(\"类别链接\");\n\n\t\tGroup group_ProductBrief = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductBrief.setText(\"商品简要信息列表\");\n\t\tgroup_ProductBrief.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tproductBrief = new Table(group_ProductBrief, SWT.BORDER | SWT.FULL_SELECTION);\n\t\tproductBrief.setLinesVisible(true);\n\t\tproductBrief.setHeaderVisible(true);\n\n\t\tTableColumn Code = new TableColumn(productBrief, SWT.NONE);\n\t\tCode.setWidth(80);\n\t\tCode.setText(\"商品编号\");\n\n\t\tTableColumn Detailurl = new TableColumn(productBrief, SWT.NONE);\n\t\tDetailurl.setWidth(162);\n\t\tDetailurl.setText(\"商品详情链接\");\n\n\t\tTableColumn Preview = new TableColumn(productBrief, SWT.NONE);\n\t\tPreview.setWidth(170);\n\t\tPreview.setText(\"商品图片链接\");\n\n\t\tTableColumn Dtitle = new TableColumn(productBrief, SWT.NONE);\n\t\tDtitle.setWidth(150);\n\t\tDtitle.setText(\"商品标题\");\n\n\t\tGroup group_ProductDetail = new Group(sashForm_1, SWT.NONE);\n\t\tgroup_ProductDetail.setText(\"商品详细信息\");\n\t\tgroup_ProductDetail.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n\t\tComposite composite = new Composite(group_ProductDetail, SWT.NONE);\n\n\t\tPDetail = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tPDetail.setLocation(55, 339);\n\t\tPDetail.setSize(360, 220);\n\n\t\tLabel Id = new Label(composite, SWT.NONE);\n\t\tId.setBounds(31, 28, 61, 15);\n\t\tId.setText(\"商品编号:\");\n\n\t\tLabel detail = new Label(composite, SWT.NONE);\n\t\tdetail.setText(\"商品详情:\");\n\t\tdetail.setBounds(31, 311, 61, 15);\n\n\t\tLabel title = new Label(composite, SWT.NONE);\n\t\ttitle.setText(\"商品标题:\");\n\t\ttitle.setBounds(31, 64, 61, 15);\n\n\t\tLabel jdAd = new Label(composite, SWT.NONE);\n\t\tjdAd.setText(\"商品广告:\");\n\t\tjdAd.setBounds(31, 201, 61, 15);\n\n\t\tLabel price = new Label(composite, SWT.NONE);\n\t\tprice.setBounds(31, 108, 61, 15);\n\t\tprice.setText(\"价格:\");\n\n\t\tdcode = new Text(composite, SWT.BORDER);\n\t\tdcode.setEditable(false);\n\t\tdcode.setBounds(98, 25, 217, 21);\n\n\t\tLabel jdprice = new Label(composite, SWT.NONE);\n\t\tjdprice.setBounds(75, 127, 48, 15);\n\t\tjdprice.setText(\"京东价:\");\n\n\t\tLabel srcPrice = new Label(composite, SWT.NONE);\n\t\tsrcPrice.setBounds(75, 166, 48, 15);\n\t\tsrcPrice.setText(\"原售价:\");\n\n\t\tdprice = new Text(composite, SWT.BORDER);\n\t\tdprice.setEditable(false);\n\t\tdprice.setBounds(128, 127, 187, 21);\n\n\t\tdsrcPrice = new Text(composite, SWT.BORDER);\n\t\tdsrcPrice.setEditable(false);\n\t\tdsrcPrice.setBounds(128, 166, 187, 21);\n\n\t\tdtitle = new Text(composite,\n\t\t\t\tSWT.BORDER | SWT.READ_ONLY | SWT.WRAP | SWT.H_SCROLL | SWT.V_SCROLL | SWT.CANCEL | SWT.MULTI);\n\t\tdtitle.setBounds(98, 62, 217, 42);\n\n\t\tLabel label = new Label(composite, SWT.NONE);\n\t\tlabel.setText(\"广告标题:\");\n\t\tlabel.setBounds(62, 233, 61, 15);\n\n\t\tLabel label_1 = new Label(composite, SWT.NONE);\n\t\tlabel_1.setText(\"广告链接:\");\n\t\tlabel_1.setBounds(62, 272, 61, 15);\n\n\t\tadtitle = new Text(composite, SWT.BORDER);\n\t\tadtitle.setEditable(false);\n\t\tadtitle.setBounds(128, 231, 187, 21);\n\n\t\tadUrl = new Text(composite, SWT.BORDER);\n\t\tadUrl.setEditable(false);\n\t\tadUrl.setBounds(128, 270, 187, 21);\n\t\tsashForm_1.setWeights(new int[] { 335, 573, 430 });\n\t\tsashForm.setWeights(new int[] { 85, 586 });\n\n\t\tdoEvent();// 组件的事件操作\n\n\t}", "@Override\r\n public String getContent() {\r\n return content;\r\n }", "protected JComponent doMakeContents() {\n // Run super.doMakeContents()\n // It does some initialization on private components that we can't get at\n JComponent parentContents = super.doMakeContents();\n Element chooserNode = getXmlNode();\n \n String pathFromXml =\n XmlUtil.getAttribute(chooserNode, ATTR_PATH, (String)null);\n if (pathFromXml != null && Paths.get(pathFromXml).toFile().exists()) {\n setPath(pathFromXml);\n }\n \n JComponent typeComponent = new JPanel();\n if (XmlUtil.getAttribute(chooserNode, ATTR_DSCOMP, true)) {\n typeComponent = getDataSourcesComponent();\n }\n \n if (defaultDataSourceName != null) {\n typeComponent = new JLabel(defaultDataSourceName);\n McVGuiUtils.setLabelBold((JLabel) typeComponent, true);\n McVGuiUtils.setComponentHeight(typeComponent, new JComboBox());\n }\n \n // Create the different panels... extending classes can override these\n topPanel = getTopPanel();\n centerPanel = getCenterPanel();\n bottomPanel = getBottomPanel();\n \n JPanel innerPanel = centerPanel;\n if (topPanel != null && bottomPanel != null) {\n innerPanel = McVGuiUtils.topCenterBottom(topPanel, centerPanel, bottomPanel);\n } else if (topPanel != null) {\n innerPanel = McVGuiUtils.topBottom(topPanel, centerPanel, McVGuiUtils.Prefer.BOTTOM);\n } else if (bottomPanel != null) {\n innerPanel = McVGuiUtils.topBottom(centerPanel, bottomPanel, McVGuiUtils.Prefer.TOP);\n }\n // Start building the whole thing here\n JPanel outerPanel = new JPanel();\n \n JLabel typeLabel = McVGuiUtils.makeLabelRight(getDataSourcesLabel());\n \n JLabel statusLabelLabel = McVGuiUtils.makeLabelRight(\"\");\n \n McVGuiUtils.setLabelPosition(statusLabel, Position.RIGHT);\n McVGuiUtils.setComponentColor(statusLabel, TextColor.STATUS);\n \n JButton helpButton = McVGuiUtils.makeImageButton(ICON_HELP, \"Show help\");\n helpButton.setActionCommand(GuiUtils.CMD_HELP);\n helpButton.addActionListener(this);\n \n JButton refreshButton = McVGuiUtils.makeImageButton(ICON_REFRESH, \"Refresh\");\n refreshButton.setActionCommand(GuiUtils.CMD_UPDATE);\n refreshButton.addActionListener(this);\n \n McVGuiUtils.setButtonImage(loadButton, ICON_ACCEPT_SMALL);\n McVGuiUtils.setComponentWidth(loadButton, Width.DOUBLE);\n \n // This is how we know if the action was initiated by a button press\n loadButton.addActionListener(e -> {\n buttonPressed = true;\n Misc.runInABit(1000, () -> buttonPressed = false);\n });\n \n GroupLayout layout = new GroupLayout(outerPanel);\n outerPanel.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(LEADING)\n .addGroup(TRAILING, layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(TRAILING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(helpButton)\n .addGap(GAP_RELATED)\n .addComponent(refreshButton)\n .addPreferredGap(RELATED)\n .addComponent(loadButton))\n .addGroup(LEADING, layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(LEADING)\n .addComponent(innerPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createSequentialGroup()\n .addComponent(typeLabel)\n .addGap(GAP_RELATED)\n .addComponent(typeComponent))\n .addGroup(layout.createSequentialGroup()\n .addComponent(statusLabelLabel)\n .addGap(GAP_RELATED)\n .addComponent(statusLabel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE)))))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(BASELINE)\n .addComponent(typeLabel)\n .addComponent(typeComponent))\n .addPreferredGap(UNRELATED)\n .addComponent(innerPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(UNRELATED)\n .addGroup(layout.createParallelGroup(BASELINE)\n .addComponent(statusLabelLabel)\n .addComponent(statusLabel))\n .addPreferredGap(UNRELATED)\n .addGroup(layout.createParallelGroup(BASELINE)\n .addComponent(loadButton)\n .addComponent(refreshButton)\n .addComponent(helpButton))\n .addContainerGap())\n );\n outerPanel.addAncestorListener(this);\n return outerPanel;\n }", "private void buildview() {\n\t\tCssLayout cd= new CssLayout();\n\t\t\n\t\t//table.setSizeFull();\n\t\t\t\n\t\t\ttable.setContainerDataSource(container);\n\t\t\ttable.setVisibleColumns(new Object[]{\"Name\",\"Component\",\"Indication\",\"Comment\",\"MethodofAdministration\"});\n\t\t\ttable.setColumnHeader(\"MethodofAdministration\", \"Method of Administration\");\n\t\t\t\n\t\t\ttable.setWidth(\"100%\");\n\t\t\tcd.addComponent(table);\n\t\t\tcd.setSizeFull();\n\t\t\tsetContent(cd);\n\t\t\n\t}", "protected byte[] buildResponse() {\n final Object[] fields = {\n messageType(),\n request,\n errorDescription\n };\n\n final byte[] resposta = new byte[1];\n final byte[] codigo = new byte[1];\n final byte[] numeroDeBytes = new byte[1];\n final byte[] dados = new byte[numeroDeBytes[0]];\n\n\n return resposta;\n }", "abstract String getContent();", "@Override\n public Navigation run() throws Exception {\n \tString content = request.getParameter(\"content\");\n\n \tSystem.out.println(\"content=\"+ content);\n \tUser user = UserServiceFactory.getUserService().getCurrentUser();\n/*\n \t// username が設定されていない場合は400を返して終了します、\n \tif(StringUtils.isEmpty(username)){\n \t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n \t\treturn null;\n \t}\n*/\n \t// content が設定されていない場合は400を返して終了します。\n \tif(StringUtils.isEmpty(content)){\n \t\tresponse.setStatus(HttpServletResponse.SC_BAD_REQUEST);\n \t\treturn null;\n \t}\n\n \tEntity entity = new Entity(\"Todo\");\n\n \tentity.setProperty(\"username\" , user.getEmail());\n \tentity.setProperty(\"content\" , content);\n \tentity.setProperty(\"createdAt\", new Date().getTime());\n\n \t// 正常にデータを登録できた場合は201を返して終了します。\n \tDatastore.put(entity);\n \tresponse.setStatus(HttpServletResponse.SC_CREATED);\n return null;\n }", "@Override\n\tpublic void constructContent() {\n\t\t((JPanel)withdrawFrame.getContentPane()).setBorder(BorderFactory.createEmptyBorder(50,50,50,50));\n\t\tContainer defaultPanel = withdrawFrame.getContentPane();\n\t\tdefaultPanel.setLayout(new BorderLayout());\n\t\tJPanel subPanel1 = new JPanel();\n\t\tJLabel money = new JLabel(\"Number:\");\n\t\tsubPanel1.add(money);\n\t\tdefaultPanel.add(subPanel1, BorderLayout.NORTH);\n\t\tJPanel subPanel2 = new JPanel();\n\t\tsubPanel2.setBorder(BorderFactory.createEmptyBorder(80,50,50,50));\n\t\twithdrawMoney = new JTextField();\n\t\twithdrawMoney.setPreferredSize(new Dimension(350, 50));\n\t\tsubPanel2.add(withdrawMoney);\n\t\tdefaultPanel.add(subPanel2, BorderLayout.CENTER);\n\t\tJPanel subPanel3 = new JPanel();\n\t\tconfirmButton = new JButton(\"Confirm\");\n\t\tbackButton = new JButton(\"Back\");\n\t\tconfirmButton.setPreferredSize(new Dimension(200, 50));\n\t\tbackButton.setPreferredSize(new Dimension(200,50));\n\t\tconfirmButton.addActionListener(this);\n\t\tbackButton.addActionListener(this);\n\t\tsubPanel3.add(confirmButton);\n\t\tsubPanel3.add(backButton);\n\t\tdefaultPanel.add(subPanel3, BorderLayout.SOUTH);\n\t\t//moneyNum.\n\t}", "public void build(){\n\t\t\r\n\t\t\tsetTitle(\"Temperature\");\r\n\t\t\tsetSize(220,150);\r\n\t\t\tsetLocationRelativeTo(null);\r\n\t\t\tsetResizable(false);\r\n\t\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\t\t\tsetVisible(true);\r\n\t\r\n\t\t\t\r\n\t\t\tsetContentPane(buildContentPane());\r\n\t\t}", "public static void ConvertToBuilt()\r\n\t{\r\n\t\t Browser.instance.findElement(exitButton).click();\r\n\t\tBuildBagsPage.goTo();\r\n\t\tBuildBagsPage.EmptyToBuilt();\r\n\t\t\r\n\t\t\r\n\t}", "public Module build() {\n return new Module(moduleCode, moduleTitle, academicYear, semester,\n students, tags);\n }", "public void buildGui() {\n\t}", "private void HandleBuilder(int select){\n ArrayList<String> generatedSection = null;\n\n //construct the loader callback abstract class\n if(select == 0) {\n LoaderCallbackBuilder build = new LoaderCallbackBuilder();\n generatedSection = build.GenerateLoaderCallbacks(refact, cachedGlobalVariables, asyncCached);\n System.out.println(\"(3) Generating the Loader Callback abstract class\\n\");\n DisplaySleep();\n }\n\n //create the main inner class of the async task loader\n else if(select == 1) {\n AsyncTaskLoaderClassBuilder build = new AsyncTaskLoaderClassBuilder();\n generatedSection = build.GenerateAsyncClass(refact, asyncFunc, asyncCached, cachedGlobalVariables);\n System.out.println(\"(4) Generating the AsyncTaskLoader subclass\\n\\n\");\n DisplaySleep();\n }\n\n //look for the last bracket and insert right above it\n int lastBracket = refact.size() - 1;\n\n //go backwards until we find the closing bracket\n for(int i = lastBracket; i > 0; i--){\n if(refact.get(i).contains(\"}\")){\n lastBracket = i-1;\n break;\n }\n }\n\n refact.addAll(lastBracket, generatedSection);\n\n }", "public ContainerTag generateBody(List<HtmlData> data) {\n return div();\n }", "public void buildContent(XMLNode node, Content contentTree) {\n Content packageContentTree = packageWriter.getContentHeader();\n buildChildren(node, packageContentTree);\n contentTree.addContent(packageContentTree);\n }", "public ToDo build() {\n return new ToDo(this);\n }", "private void build()\n\t{\n\t\tengine.addSystem(new InputSystem());\n\t\tengine.addSystem(new MovementSystem());\n\t\t\n\t}", "@NonNull\n public Semantics build() {\n return new Semantics(mImpl.build(), mFingerprint);\n }", "protected Control createContents(Composite parent) {\r\n noDefaultAndApplyButton();\r\n\r\n // The main composite\r\n Composite composite = new Composite(parent, SWT.NONE);\r\n GridLayout layout = new GridLayout(1, false);\r\n layout.marginWidth = 0;\r\n layout.marginHeight = 0;\r\n composite.setLayout(layout);\r\n\r\n // TODO change these labels later\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Provided by Duke University Computer Science Department\");\r\n new Label(composite, SWT.NONE).setText(\"http://www.cs.duke.edu\");\r\n new Label(composite, SWT.NONE)\r\n .setText(\"Questions? Go to our website at http://www.cs.duke.edu/csed/ambient\");\r\n return composite;\r\n }", "public CloseableHttpClient build() {\n\t\tCloseableHttpClient httpClient = httpClientBuilder.build();\n\t\treturn httpClient;\n\t}", "public PoaMaestroMultivaloresHTML() {\n/* 253 */ this(StandardDocumentLoader.getInstance());\n/* */ \n/* 255 */ buildDocument();\n/* */ }", "public String create()\n {\n return createHtml();\n }", "public String getContent()\n/* */ {\n/* 1329 */ return this.content;\n/* */ }", "public abstract Object getContent();", "private JPanel buildContentPanel() {\n JPanel content = new JPanel();\n content.setLayout(new GridBagLayout());\n\n m_ipField = new JTextField(10);\n m_ipField.setText(m_defaultIp);\n\n m_portField = new JTextField(5);\n m_portField.setText(m_defaultPort);\n\n // First Column\n GridBagConstraints gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.insets = new Insets(2, 2, 2, 2);\n content.add(new JLabel(\"IP:\"), gbc);\n\n\n // Second Column\n gbc.gridx = 1;\n gbc.gridy = 0;\n content.add(m_ipField, gbc);\n\n\n // Third Column\n gbc.gridx = 2;\n gbc.gridy = 0;\n gbc.gridwidth = 1;\n content.add(new JLabel(\"Port:\"), gbc);\n\n // Fourth Column\n gbc.gridx = 3;\n content.add(m_portField, gbc);\n\n\n // Separator\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.gridwidth = 5;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n content.add(new JSeparator(), gbc);\n\n return content;\n }", "public HelpDisplay build() {\n return new HelpDisplay(commands, delimiter);\n }", "public Builder content(List<String> content) {\n this.contentBuilder.setLength(0);\n content.forEach(this::addLine);\n return this;\n }", "public String getContent();", "@Override\n\tpublic LSystem build() {\n\t\t\n\t\t/**\n\t\t * Nested class which implements the LSystem and provides two essential methods\n\t\t * for building the LSystem: draw and generate.\n\t\t * @author Alen Carin\n\t\t *\n\t\t */\n\t\tclass LSystemImpl implements LSystem {\n\n\t\t\t/**\n\t\t\t * Method used for drawing the Lyndermayer system.\n\t\t\t * Calls method generate to generate all of the productions and \n\t\t\t * executes all the commands that are in the generated string.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic void draw(int depth, Painter painter) {\n\t\t\t\tTurtleState state = new TurtleState(\n\t\t\t\t\t\torigin.copy(), \n\t\t\t\t\t\tnew Vector2D(1, 0).rotated(angle), \n\t\t\t\t\t\tColor.BLACK,\n\t\t\t\t\t\tunitLength * Math.pow(unitLengthDegreeScaler, depth)\n\t\t\t\t\t\t);\n\t\t\t\tContext context = new Context();\n\t\t\t\tcontext.pushState(state);\n\t\t\t\tchar[] sequence = generate(depth).toCharArray();\n\t\t\t\t\n\t\t\t\texecuteAllCommands(context, painter, sequence);\n\t\t\t}\n\n\t\t\t/**\n\t\t\t * Recursive method which generates a string of actions \n\t\t\t * which are generated from productions for the given depth.\n\t\t\t */\n\t\t\t@Override\n\t\t\tpublic String generate(int depth) {\n\t\t\t\tStringBuilder builder = new StringBuilder();\n\t\t\t\tif(depth == 0) {\n\t\t\t\t\treturn axiom;\n\t\t\t\t}\n\t\t\t\tbuilder.append(generate(depth-1));\n\t\t\t\t\n\t\t\t\tchar[] array = builder.toString().toCharArray();\n\t\t\t\tString result = new String();\n\t\t\t\tfor(int i = 0; i < array.length; i++) {\n\t\t\t\t\tString production = (String) productions.get(array[i]);\n\t\t\t\t\tif(production != null) {\n\t\t\t\t\t\tresult += production;\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tresult += array[i];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\treturn result;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\treturn new LSystemImpl();\n\t}", "public String SearchContent()\n\t{\n\t\tSystem.out.println(\"Content:\" + Content);\n\t\tluc = new Lucene_fuction();\n\t\tHttpServletRequest request = ServletActionContext.getRequest();\n\t\tServletContext servletContext = ServletActionContext.getServletContext();\n\t\trequest.getSession();\n\t\tHttpServletResponse response = ServletActionContext.getResponse();\n\t\t// if the tag is empty\n\t\t\n\t\t\tArrayList<Picture> PicList = new ArrayList<>();\n\t\t\tPicList = luc.queryIndex_Content(Content);\n\t\t\trequest.setAttribute(\"PictureList\", PicList);\n\t\t\treturn \"Content_Result\";\n\t}", "@Override\n \tprotected void produceVisibleOutput(QContent qc,boolean bInit,boolean bPlain)\n \t\tthrows OmException\n \t{\n \t\tif(bPlain)\n \t\t{\n \t\t\t// Put text equivalent\n \t\t\tElement eDiv=qc.createElement(\"div\"); // Can't use span because they aren't allowed to contain things\n \t\t\teDiv.setAttribute(\"style\",\"display:inline\");\n \t\t\taddLangAttributes(eDiv);\n \t\t\tqc.addInlineXHTML(eDiv);\n \t\t\tXML.createText(eDiv,getString(\"alt\"));\n \t\t\tqc.addTextEquivalent(getString(\"alt\"));\n \n \t\t\t// Markers are not supported in plain mode\n \t\t\treturn;\n \t\t}\n \n \t\t// If image has changed, send new version\n \t\tif(bChanged)\n \t\t{\n \t\t\tbyte[] imageData;\n \t\t\tString mimeType;\n \t\t\tif (getString(PROPERTY_TYPE).equals(\"png\")) {\n \t\t\t\timageData = QContent.convertPNG(bi);\n \t\t\t\tmimeType = \"image/png\";\n \t\t\t} else if (getString(PROPERTY_TYPE).equals(\"jpg\")) {\n \t\t\t\timageData = QContent.convertJPG(bi);\n \t\t\t\tmimeType = \"image/jpeg\";\n \t\t\t} else {\n \t\t\t\tthrow new OmUnexpectedException(\"Unknown canvas type. Only png and jpg are valid.\");\n \t\t\t}\n \t\t\tMessageDigest md;\n \t\t\ttry {\n \t\t\t\tmd = MessageDigest.getInstance(\"SHA-1\");\n \t\t\t} catch (NoSuchAlgorithmException e) {\n \t\t\t\tthrow new OmUnexpectedException(e);\n \t\t\t}\n \t\t\tfilename = \"canvas-\" + getID() + \"-\" +\n \t\t\t\t\tStrings.byteArrayToHexString(md.digest(imageData)) + \".\" + getString(PROPERTY_TYPE);\n \t\t\tqc.addResource(filename, mimeType, imageData);\n \t\t}\n \n \t\tElement eEnsureSpaces=qc.createElement(\"div\");\n \t\teEnsureSpaces.setAttribute(\"class\",\"canvas\");\n \t\taddLangAttributes(eEnsureSpaces);\n \t\tqc.addInlineXHTML(eEnsureSpaces);\n \t\tXML.createText(eEnsureSpaces,\" \");\n \n \t\tString sImageID=QDocument.ID_PREFIX+getID()+\"_img\";\n \t\tElement eImg=XML.createChild(eEnsureSpaces,\"img\");\n \t\teImg.setAttribute(\"id\",sImageID);\n \t\teImg.setAttribute(\"onmousedown\",\"return false;\"); // Prevent Firefox drag/drop\n \t\teImg.setAttribute(\"src\",\"%%RESOURCES%%/\"+filename);\n \t\teImg.setAttribute(\"alt\",getString(\"alt\"));\n \n \t\t// Get zoom, marker size and hotspot position.\n \t\tdouble dZoom=getQuestion().getZoom();\n \t\tint iMarkerSize;\n \t\tif (dZoom>=2.0)\n \t\t{\n \t\t\tiMarkerSize=31;\n \t\t}\n \t\telse if (dZoom>=1.5)\n \t\t{\n \t\t\tiMarkerSize=23;\n \t\t}\n \t\telse\n \t\t{\n \t\t\tiMarkerSize=15;\n \t\t}\n \n \t\tint[] hotspotPositions=parseHotspotProperty(getString(PROPERTY_MARKERHOTSPOT),iMarkerSize);\n \n \t\tString sMarkerPrefix=getString(PROPERTY_MARKERIMAGE);\n \t\tif(bInit && !lMarkers.isEmpty())\n \t\t{\n \t\t\tif (sMarkerPrefix==null)\n \t\t\t{\n \t\t\t\tsetString(PROPERTY_MARKERIMAGE, \"canvasm\");\n \t\t\t\tsMarkerPrefix=\"canvasm\"+iMarkerSize;\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\".gif\",\"image/gif\",\n \t\t\t\t\t\tIO.loadResource(CanvasComponent.class,sMarkerPrefix+\".gif\"));\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\"d.gif\",\"image/gif\",\n \t\t\t\t\t\tIO.loadResource(CanvasComponent.class,sMarkerPrefix+\"d.gif\"));\n \t\t\t\t}\n \t\t\t\tcatch(IOException e)\n \t\t\t\t{\n \t\t\t\t\tthrow new OmUnexpectedException(e);\n \t\t\t\t}\n \t\t\t}\n \t\t\telse\n \t\t\t{\n \t\t\t\tsMarkerPrefix+=iMarkerSize;\n \t\t\t\ttry\n \t\t\t\t{\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\".gif\",\"image/gif\",\n \t\t\t\t\t\t\tgetQuestion().loadResource(sMarkerPrefix+\".gif\"));\n \t\t\t\t\tqc.addResource(sMarkerPrefix+\"d.gif\",\"image/gif\",\n \t\t\t\t\t\t\tgetQuestion().loadResource(sMarkerPrefix+\"d.gif\"));\n \t\t\t\t}\n \t\t\t\tcatch(IOException e)\n \t\t\t\t{\n \t\t\t\t\tthrow new OmDeveloperException(\"Marker image not found: \"+sMarkerPrefix, e);\n \t\t\t\t}\n \t\t\t}\n \t\t}\n \t\telse\n \t\t{\n \t\t\tsMarkerPrefix+=iMarkerSize;\n \t\t}\n \t\tif(!lMarkers.isEmpty())\n \t\t{\n \t\t\tElement eScript=XML.createChild(eEnsureSpaces,\"script\");\n \t\t\teScript.setAttribute(\"type\",\"text/javascript\");\n \t\t\tXML.createText(eScript,\n \t\t\t\t\"addOnLoad(function() { canvasInit('\"+getID()+\"','\"+QDocument.ID_PREFIX+\"',\"+\n \t\t\t\tisEnabled()+\",\"+hotspotPositions[0]+\",\"+hotspotPositions[1]+\",\"+\n \t\t\t\t((int)(dZoom * 4.0)) + \",'\"+\n \t\t\t\t(getQuestion().isFixedColour() ? getQuestion().getFixedColourFG() : \"black\")+\n \t\t\t\t\"','\"+\n \t\t\t\t(getQuestion().isFixedColour() ? getQuestion().getFixedColourBG() :\n \t\t\t\t\tconvertHash(getBackground()))+\n \t\t\t\t\"',\" + (int)(dZoom * 10.0)+\n \t\t\t\t\"); });\");\n \t\t\tElement eDynamic=XML.createChild(eEnsureSpaces,\"div\");\n \t\t\teDynamic.setAttribute(\"id\",QDocument.ID_PREFIX+getID()+\"_dynamic\");\n \t\t}\n \n\t\tint iIndex=0;\n \t\tfor(Marker m : lMarkers)\n \t\t{\n \t\t\tElement eMarker=XML.createChild(eEnsureSpaces,\"img\");\n\t\t\teMarker.setAttribute(\"id\",QDocument.ID_PREFIX+getID()+\"_marker\"+iIndex);\n \t\t\teMarker.setAttribute(\"src\",\"%%RESOURCES%%/\"+sMarkerPrefix+\n \t\t\t\t(isEnabled() ? \"\" : \"d\") + \".gif\");\n \t\t\teMarker.setAttribute(\"class\",\"canvasmarker\");\n \t\t\tif(isEnabled())\teMarker.setAttribute(\"tabindex\",\"0\");\n \t\t\tElement eScript=XML.createChild(eEnsureSpaces,\"script\");\n \t\t\teScript.setAttribute(\"type\",\"text/javascript\");\n \t\t\tWorld w=m.sWorld==null ? null : getWorld(m.sWorld);\n \t\t\tXML.createText(eScript,\n \t\t\t\t\"addOnLoad(function() { canvasMarkerInit('\"+getID()+\"','\"+QDocument.ID_PREFIX+\"','\"+\n \t\t\t\tm.sLabelJS.replaceAll(\"'\",\"\\\\\\\\'\")+\"',\"+\n \t\t\t\tgetWorldFactors(w,dZoom)+\"); });\");\n \t\t\tElement eInputX=XML.createChild(eEnsureSpaces,\"input\");\n \t\t\teInputX.setAttribute(\"type\",\"hidden\");\n \t\t\teInputX.setAttribute(\"value\",\"\"+(int)(m.iX*dZoom));\n\t\t\teInputX.setAttribute(\"name\",QDocument.ID_PREFIX+\"canvasmarker_\"+getID()+\"_\"+iIndex+\"x\");\n \t\t\teInputX.setAttribute(\"id\",eInputX.getAttribute(\"name\"));\n \t\t\tElement eInputY=XML.createChild(eEnsureSpaces,\"input\");\n \t\t\teInputY.setAttribute(\"type\",\"hidden\");\n \t\t\teInputY.setAttribute(\"value\",\"\"+(int)(m.iY*dZoom));\n\t\t\teInputY.setAttribute(\"name\",QDocument.ID_PREFIX+\"canvasmarker_\"+getID()+\"_\"+iIndex+\"y\");\n \t\t\teInputY.setAttribute(\"id\",eInputY.getAttribute(\"name\"));\n \n\t\t\tif(isEnabled()) qc.informFocusable(QDocument.ID_PREFIX+getID()+\"_marker\"+iIndex,bPlain);\n \t\t}\n \t\tfor(MarkerLine ml : lLines)\n \t\t{\n \t\t\tWorld w=ml.sWorld==null ? null : getWorld(ml.sWorld);\n \n \t\t\tElement eScript=XML.createChild(eEnsureSpaces,\"script\");\n \t\t\teScript.setAttribute(\"type\",\"text/javascript\");\n \t\t\tXML.createText(eScript,\n \t\t\t\t\"addOnLoad(function() { canvasLineInit('\"+getID()+\"','\"+QDocument.ID_PREFIX+\"',\"+\n \t\t\t\tml.iFrom+\",\"+ml.iTo+\",'\"+ml.sLabelJS.replaceAll(\"'\",\"\\\\\\\\'\")+\"',\" +\n \t\t\t\tgetWorldFactors(w,dZoom)+\n \t\t\t\t\"); });\");\n \t\t}\n \n \t\tXML.createText(eEnsureSpaces,\" \");\n \t\tqc.addTextEquivalent(getString(\"alt\"));\n \t}", "@Override\n\t\tpublic Track build() {\n\t\t\treturn of(\n\t\t\t\t_name,\n\t\t\t\t_comment,\n\t\t\t\t_description,\n\t\t\t\t_source,\n\t\t\t\t_links,\n\t\t\t\t_number,\n\t\t\t\t_type,\n\t\t\t\t_extensions,\n\t\t\t\t_segments\n\t\t\t);\n\t\t}", "public void run()\n {\n mkdStack = translateMacroStack(mkdStack);\n //translate mkd to html\n translateMkdToHtml();\n //send html string to global variable\n Compiler.htmlString = htmlStackToString();\n }" ]
[ "0.6741118", "0.63807166", "0.631848", "0.621938", "0.62113845", "0.6127291", "0.6103976", "0.6098719", "0.6006671", "0.5990802", "0.59605086", "0.59593403", "0.5877157", "0.5790035", "0.5770035", "0.56738335", "0.5667117", "0.56272864", "0.5606784", "0.5605093", "0.5530491", "0.54981166", "0.5473683", "0.54361874", "0.5429285", "0.5386531", "0.5370821", "0.53624195", "0.53624195", "0.53599155", "0.5348682", "0.5344393", "0.5339073", "0.5324724", "0.5318034", "0.5313354", "0.53093415", "0.5282468", "0.52617645", "0.52569056", "0.52569056", "0.52569056", "0.52569056", "0.52569056", "0.52569056", "0.5248678", "0.5224393", "0.5220309", "0.5219868", "0.5219868", "0.51976526", "0.51830256", "0.51696515", "0.51649916", "0.51649916", "0.51649916", "0.51649916", "0.51649916", "0.51649916", "0.51649916", "0.51649916", "0.51565963", "0.514404", "0.512603", "0.51166695", "0.51149136", "0.51123786", "0.5107832", "0.508689", "0.508642", "0.50714934", "0.50713545", "0.5048558", "0.50409865", "0.5039037", "0.50366205", "0.50313675", "0.50095767", "0.5001785", "0.49992478", "0.49895048", "0.49865937", "0.49850368", "0.49828187", "0.4981521", "0.4979187", "0.4975596", "0.49748415", "0.49729916", "0.49723163", "0.49714217", "0.49683613", "0.4967168", "0.49663594", "0.49554187", "0.49526528", "0.49522436", "0.49476725", "0.49442276", "0.4939084" ]
0.5387406
25
Tool Bar Builds, configures and returns the toolbar. Requests HeaderStyle, lookspecific BorderStyles, and Plastic 3D Hint from Launcher.
private Component buildToolBar() { DToolBar toolBar = new DToolBar(); // toolBar.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT); toolBar.setFloatable(true); toolBar.putClientProperty("JToolBar.isRollover", Boolean.TRUE); // Swing toolBar.putClientProperty( Options.HEADER_STYLE_KEY, settings.getToolBarHeaderStyle()); toolBar.putClientProperty( PlasticLookAndFeel.BORDER_STYLE_KEY, settings.getToolBarPlasticBorderStyle()); toolBar.putClientProperty( WindowsLookAndFeel.BORDER_STYLE_KEY, settings.getToolBarWindowsBorderStyle()); toolBar.putClientProperty( PlasticLookAndFeel.IS_3D_KEY, settings.getToolBar3DHint()); AbstractButton button; /* toolBar.add(createToolBarButton("backward.gif", "Back")); button = createToolBarButton("forward.gif", "Next"); button.setEnabled(false); toolBar.add(button);*/ button = createToolBarButton("home.gif", ResourceUtil.getString("HOME")); toolBar.add(button); button.addActionListener(this); button.setActionCommand("home"); // toolBar.addSeparator(); button = createToolBarButton("preference16.gif", ResourceUtil.getString("PREFERENCES")); toolBar.add(button); button.setRolloverIcon(readImageIcon("preference16_over.gif")); button.addActionListener(this); button.setActionCommand("Preferences"); toolBar.addSeparator(); button = createToolBarButton("new16.gif", ResourceUtil.getString("NEW")); button.setActionCommand("new"); button.addActionListener(this); toolBar.add(button); button = createToolBarButton("save_edit.gif", ResourceUtil.getString("SAVE")); button.setActionCommand("save"); button.addActionListener(this); toolBar.add(button); button = createToolBarButton("delete16.gif", ResourceUtil.getString("DELETE")); button.setActionCommand("delete"); button.addActionListener(this); toolBar.add(button); button = createToolBarButton("print.gif", ResourceUtil.getString("PRINT")); button.setActionCommand("print"); button.addActionListener(this); toolBar.add(button); /* toolBar.add(createToolBarButton("print.gif", "Print")); toolBar.add(createToolBarButton("refresh.gif", "Update")); toolBar.addSeparator(); ButtonGroup group = new ButtonGroup(); button = createToolBarRadioButton("pie_mode.png", "Pie Chart"); button.setSelectedIcon(readImageIcon("pie_mode_selected.gif")); group.add(button); button.setSelected(true); toolBar.add(button); button = createToolBarRadioButton("bar_mode.png", "Bar Chart"); button.setSelectedIcon(readImageIcon("bar_mode_selected.gif")); group.add(button); toolBar.add(button); button = createToolBarRadioButton("table_mode.png", "Table"); button.setSelectedIcon(readImageIcon("table_mode_selected.gif")); group.add(button); toolBar.add(button); toolBar.addSeparator(); button = createToolBarButton("help.gif", "Open Help"); button.addActionListener(createHelpActionListener()); toolBar.add(button);*/ return toolBar; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void setupToolbars(){\n\t\ttopBar = new TopBar(0, 0, setup.getFrameWidth()+12, Constants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.COLOR_HEADER_1, setup);\n\t\t\n\t\tbottomBar = new BottomBar(0, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT+(Constants.WINDOW_MAP_MARGIN*2)+Constants.WINDOW_MAP_HEIGHT, \n\t\t\t\tsetup.getFrameWidth()+12, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.COLOR_HEADER_1, setup);\n\t\t\n\t\trightBar = new RightBar((Constants.WINDOW_MAP_MARGIN*2)+Constants.WINDOW_MAP_WIDTH, \n\t\t\t\tConstants.WINDOW_HEADER_HEIGHT, \n\t\t\t\tConstants.WINDOW_RIGHT_BAR_WIDTH, \n\t\t\t\tConstants.WINDOW_RIGHT_BAR_HEIGHT, \n\t\t\t\tConstants.COLOR_MAP_LAND, setup);\n\t}", "private void setupToolBar() {\n\t\tbOk = ConfirmPanel.createOKButton(false);\n\t\tbOk.addActionListener(this);\n\t\tbSearch = ConfirmPanel.createRefreshButton(true);\n\t\tbSearch.addActionListener(this);\n\t\tbCancel = ConfirmPanel.createCancelButton(false);\n\t\tbCancel.addActionListener(this);\n\t\tbZoom = ConfirmPanel.createZoomButton(true);\n\t\tbZoom.addActionListener(this);\n\t\tbExport = ConfirmPanel.createExportButton(true);\n\t\tbExport.addActionListener(this);\n\t\tbDelete = ConfirmPanel.createDeleteButton(true);\n\t\tbDelete.addActionListener(this);\n\t\tAppsAction selectAllAction = new AppsAction(\"SelectAll\", null, Msg.getMsg(Env.getCtx(),\"SelectAll\"));\n\t\tselectAllAction.setDelegate(this);\n\t\tbSelectAll = (CButton) selectAllAction.getButton();\n\t\ttoolsBar = new javax.swing.JToolBar();\n\t}", "private void createToolBar() {\r\n toolbar = new JToolBar();\r\n inbox = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.INBOX_ICON)), \"Maintain Inbox\", \"Maintain Inbox\");\r\n awards = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.AWARDS_ICON)), \"Maintain Awards\", \"Maintain Awards\");\r\n proposal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_ICON)), \"Maintain InstituteProposals\", \"Maintain Institute Proposals\");\r\n proposalDevelopment = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_DEVELOPMENT_ICON)), \"Maintain ProposalDevelopment\", \"Maintain Proposal Development\");\r\n rolodex = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.ROLODEX_ICON)), \"Maintain Rolodex\", \"Maintain Rolodex\");\r\n sponsor = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SPONSOR_ICON)), \"Maintain Sponsor\", \"Maintain Sponsor\");\r\n subContract = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SUBCONTRACT_ICON)), \"Maintain SubContract\", \"Maintain Subcontract\");\r\n negotiations = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.NEGOTIATIONS_ICON)), \"Maintain Negotiations\", \"Maintain Negotiations\");\r\n buisnessRules = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.BUSINESS_RULES_ICON)), \"Maintain BusinessRules\", \"Maintain Business Rules\");\r\n map = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.MAP_ICON)), \"Maintain Map\", \"Maintain Map\");\r\n personnal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PERSONNAL_ICON)), \"Maintain Personal\", \"Maintain Personnel\");\r\n users = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.USERS_ICON)), \"Maintain Users\", \"Maintain Users\");\r\n unitHierarchy = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.UNIT_HIERARCHY_ICON)), \"Maintain UnitHierarchy\", \"Maintain Unit Hierarchy\");\r\n cascade = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.CASCADE_ICON)), \"Cascade\", \"Cascade\");\r\n tileHorizontal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_HORIZONTAL_ICON)), \"Tile Horizontal\", \"Tile Horizontal\");\r\n tileVertical = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_VERTICAL_ICON)), \"Tile Vertical\", \"Tile Vertical\");\r\n layer = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.LAYER_ICON)), \"Layer\", \"Layer\");\r\n \r\n /*Added Icons are Committe,Protocol,Shedule. The Icons are different.Non-availability of standard Icon - Chandrashekar*/\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n /* JM 05-02-2013\r\n irbProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_ICON)), \"Protocol\", \"IRB Protocol\");\r\n \r\n irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n /* JM 05-02-2013\r\n schedule = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SCHEDULE_ICON)), \"Schedule\", \"Schedule\");\r\n committee = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.COMMITTEE_ICON)), \"Committee\", \"Committee\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n //irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n // getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n iacucProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_ICON)), \"Protocol\", \"IACUC Protocol\");\r\n \r\n iacucProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IACUC Protocol Submission\");\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.HELP_ICON)), \"Contact Coeus Help\", \"Contact Coeus Help\");\r\n /* JM END */\r\n \r\n exit = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.EXIT_ICON)), \"Exit\", \"Exit\");\r\n \r\n \r\n toolbar.add(inbox);\r\n toolbar.addSeparator();\r\n toolbar.add(awards);\r\n toolbar.add(proposal);\r\n toolbar.add(proposalDevelopment);\r\n toolbar.add(rolodex);\r\n toolbar.add(sponsor);\r\n toolbar.add(subContract);\r\n toolbar.add(negotiations);\r\n toolbar.add(buisnessRules);\r\n toolbar.add(map);\r\n toolbar.add(personnal);\r\n toolbar.add(users);\r\n toolbar.add(unitHierarchy);\r\n \r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n toolbar.add(irbProtocol);\r\n toolbar.add(irbProtocolSubmission);\r\n \r\n toolbar.add(schedule);\r\n toolbar.add(committee);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n toolbar.add(iacucProtocol);\r\n toolbar.add(iacucProtocolSubmission);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n toolbar.addSeparator();\r\n toolbar.add(cascade);\r\n toolbar.add(tileHorizontal);\r\n toolbar.add(tileVertical);\r\n toolbar.add(layer);\r\n toolbar.addSeparator();\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n toolbar.add(contactCoeusHelp);\r\n toolbar.addSeparator();\r\n /* JM END */\r\n \r\n toolbar.add(exit);\r\n \r\n toolbar.setFloatable(false);\r\n setTextLabels(false);\r\n MouseListener pl = new PopupListener();\r\n cpm = new CoeusPopupMenu();\r\n toolbar.addMouseListener(pl);\r\n \r\n inbox.addActionListener(this);\r\n awards.addActionListener(this);\r\n proposal.addActionListener(this);\r\n proposalDevelopment.addActionListener(this);\r\n rolodex.addActionListener(this);\r\n sponsor.addActionListener(this);\r\n subContract.addActionListener(this);\r\n negotiations.addActionListener(this);\r\n buisnessRules.addActionListener(this);\r\n map.addActionListener(this);\r\n personnal.addActionListener(this);\r\n users.addActionListener(this);\r\n unitHierarchy.addActionListener(this);\r\n cascade.addActionListener(this);\r\n tileHorizontal.addActionListener(this);\r\n tileVertical.addActionListener(this);\r\n layer.addActionListener(this);\r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n irbProtocol.addActionListener(this);\r\n schedule.addActionListener(this);\r\n committee.addActionListener(this);\r\n irbProtocolSubmission.addActionListener(this);\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n iacucProtocol.addActionListener(this);\r\n iacucProtocolSubmission.addActionListener(this); */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp.addActionListener(this);\r\n /* JM END */\r\n \r\n exit.addActionListener(this);\r\n }", "private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }", "private void createToolbar() {\r\n // the visible toolbar is actually a toolbar next to a combobox.\r\n // That is why we need this extra composite, layout and numColums = 2.\r\n final Composite parent = new Composite(SHELL, SWT.FILL);\r\n final GridLayout layout = new GridLayout();\r\n layout.numColumns = 2;\r\n parent.setLayout(layout);\r\n\r\n final ToolBar bar = new ToolBar(parent, SWT.NONE);\r\n final GridData data = new GridData();\r\n data.heightHint = 55;\r\n data.grabExcessVerticalSpace = false;\r\n bar.setLayoutData(data);\r\n bar.setLayout(new GridLayout());\r\n\r\n createOpenButton(bar);\r\n\r\n createGenerateButton(bar);\r\n\r\n createSaveButton(bar);\r\n\r\n createSolveButton(bar);\r\n\r\n createAboutButton(bar);\r\n\r\n algorithmCombo = new AlgorithmCombo(parent);\r\n }", "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsToolBar.add(getColorButton());\r\n\t\t\ttoolsToolBar.add(getLinkButton());\r\n\t\t\ttoolsToolBar.add(getIcoButton());\r\n\t\t}\r\n\t\treturn toolsToolBar;\r\n\t}", "private void createToolbars() {\n\t\tJToolBar toolBar = new JToolBar(\"Tools\");\n\t\ttoolBar.setFloatable(true);\n\n\t\ttoolBar.add(new JButton(new ActionNewDocument(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionOpen(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSave(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSaveAs(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionCut(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionCopy(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionPaste(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionStatistics(flp, this)));\n\n\t\tthis.getContentPane().add(toolBar, BorderLayout.PAGE_START);\n\t}", "public JMTToolBar createToolbar() {\r\n \t\tJMTToolBar toolbar = new JMTToolBar(JMTImageLoader.getImageLoader());\r\n \t\t// Builds an array with all actions to be put in the toolbar\r\n \t\tAbstractJmodelAction[] actions = new AbstractJmodelAction[] { newModel, openModel, saveModel, null,\r\n \t\t\t\t// editUndo, editRedo, null,\r\n \t\t\t\tactionCut, actionCopy, actionPaste, null, editUserClasses, editMeasures, editSimParams, editPAParams, null, switchToExactSolver,\r\n \t\t\t\tnull, simulate, pauseSimulation, stopSimulation, showResults, null, editDefaults, openHelp };\r\n \t\ttoolbar.populateToolbar(actions);\r\n \t\treturn toolbar;\r\n \t}", "private void createToolbars() {\r\n\t\tJToolBar toolBar = new JToolBar(\"Tool bar\");\r\n\t\ttoolBar.add(createBlankDocument);\r\n\t\ttoolBar.add(openDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAsAction);\r\n\t\ttoolBar.add(closeCurrentTabAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(copyAction);\r\n\t\ttoolBar.add(cutAction);\r\n\t\ttoolBar.add(pasteAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(getStatsAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(exitAction);\r\n\t\t\r\n\t\tgetContentPane().add(toolBar, BorderLayout.PAGE_START);\r\n\t}", "public MainToolbar createToolbar()\r\n {\n WbSwingUtilities.invoke(this::_createToolbar);\r\n return toolbar;\r\n }", "private void defineToolBar() {\r\n //ARREGLO CON LOS BOTONES ORDENADOS POR POSICION\r\n tools = new ImageView[]{im_tool1,im_tool2,im_tool3,im_tool4,im_tool5,im_tool6,im_tool7,im_tool8,im_tool9,im_tool10,im_tool11,im_tool12}; \r\n //CARGA DE LA BD LA CONFIGURACION DE USUARIO PARA LA PANTALLA\r\n toolsConfig = Ln.getInstance().loadToolBar();\r\n // arreglo con cada etiqueta, ordenado por boton\r\n tooltips = new String[]{\r\n \"Nueva \" + ScreenName + \" \",\r\n \"Editar \" + ScreenName + \" \",\r\n \"Guardar \" + ScreenName + \" \",\r\n \"Cambiar Status de \" + ScreenName + \" \",\r\n \"Imprimir \" + ScreenName + \" \",\r\n \"Cancelar \",\r\n \"Sin Asignar \",\r\n \"Faltante en \" + ScreenName + \" \",\r\n \"Devolución en \" + ScreenName + \" \",\r\n \"Sin Asignar\",\r\n \"Sin Asignar\",\r\n \"Buscar \" + ScreenName + \" \"\r\n };\r\n //se asigna la etiqueta a su respectivo boton\r\n for (int i = 0; i < tools.length; i++) { \r\n Tooltip tip_tool = new Tooltip(tooltips[i]);\r\n Tooltip.install(tools[i], tip_tool);\r\n }\r\n \r\n im_tool7.setVisible(false);\r\n im_tool8.setVisible(false);\r\n im_tool9.setVisible(false);\r\n im_tool10.setVisible(false);\r\n im_tool11.setVisible(false);\r\n }", "private Component createToolBar()\n {\n Component toolbarPanel = null;\n\n mainToolBar = new MainToolBar(this);\n\n boolean chatToolbarVisible\n = ConfigurationUtils.isChatToolbarVisible();\n\n if (OSUtils.IS_MAC)\n {\n UnifiedToolBar macToolbarPanel = new UnifiedToolBar();\n\n MacUtils.makeWindowLeopardStyle(getRootPane());\n\n macToolbarPanel.addComponentToLeft(mainToolBar);\n macToolbarPanel.addComponentToRight(contactPhotoPanel);\n macToolbarPanel.disableBackgroundPainter();\n macToolbarPanel.installWindowDraggerOnWindow(this);\n macToolbarPanel.getComponent()\n .setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\n macToolbarPanel.getComponent().setVisible(chatToolbarVisible);\n\n toolbarPanel = macToolbarPanel.getComponent();\n }\n else\n {\n ToolbarPanel panel = new ToolbarPanel(new BorderLayout());\n\n panel.setBorder(BorderFactory.createEmptyBorder(3, 0, 3, 0));\n panel.add(mainToolBar, BorderLayout.CENTER);\n panel.add(contactPhotoPanel, BorderLayout.EAST);\n panel.setVisible(chatToolbarVisible);\n\n toolbarPanel = panel;\n }\n\n return toolbarPanel;\n }", "@Override\n protected void initializeToolBars() {\n SharedToolBar sharedToolbar = getSharedToolBar();\n sharedToolbar.addPushButton(new HelpAction(\"org.geocraft.ui.traceviewer.MapPlot\"));\n\n // Create a custom toolbar just for the trace viewer.\n SimpleToolBar toolbar = addCustomToolBar();\n\n // Add a color selector for choosing the background color.\n final ColorSelector colorSelector = toolbar.addColorSelector(getBackgroundViewColor());\n colorSelector.getButton().setToolTipText(\"Select background color\");\n colorSelector.addListener(new IPropertyChangeListener() {\n\n /**\n * Invoked when a color is chosen in the color selector.\n * \n * @param event\n * the property change event.\n */\n public void propertyChange(final PropertyChangeEvent event) {\n RGB newColor = colorSelector.getColorValue();\n setBackgroundViewColor(newColor);\n _plot.getModelSpaceCanvas().setGridLineProperties(LineStyle.NONE, newColor, 0);\n }\n });\n }", "private void setupToolBar() {\n\t\tJPanel buttons = new JPanel(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\ttoolBar = new JToolBar(\"Buttons\");\n\t\ttoolBar.setFloatable(false);\n\t\ttoolBar.setOrientation(SwingConstants.VERTICAL);\n\t\tbuttons.add(toolBar, c);\n\t\tadd(buttons, BorderLayout.EAST);\n\t}", "@Override\n\tprotected ToolBarManager createToolBarManager(int style) {\n\t\treturn null;\n\t}", "private void configureToolBar() {\n toolBar = findViewById(R.id.my_first_toolbar);\n setSupportActionBar(toolBar);\n getSupportActionBar().setDisplayShowTitleEnabled(false);\n }", "@Override\n\tpublic Toolbar createToolbar() {\n\t\tLightVisualThemeToolbar lightVisualThemeToolbar = new LightVisualThemeToolbar();\n\t\treturn lightVisualThemeToolbar;\n\t}", "@Override\r\n\tprotected ToolBarManager createToolBarManager(int style) {\r\n\t\tToolBarManager toolBarManager = new ToolBarManager(style);\r\n\t\treturn toolBarManager;\r\n\t}", "private void createToolbar() {\n\t\ttoolbarPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\n\t\tString iconsDir = \"icons/\";\n\n\t\tfileToolbar = new JToolBar();\n\t\tfileToolbar.setName(\"File\");\n\n\t\t// Componentes da barra de ferramentas de arquivo\n\t\tIcon newFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"new.png\"));\n\t\tnewFileButton = new JButton(newFileIcon);\n\t\tnewFileButton.setToolTipText(\"Novo arquivo\");\n\n\t\tIcon openFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"open.png\"));\n\t\topenFileButton = new JButton(openFileIcon);\n\t\topenFileButton.setToolTipText(\"Abrir arquivo\");\n\t\topenFileButton.addActionListener(new OpenFileHandler());\n\n\t\tIcon saveFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"save.png\"));\n\t\tsaveFileButton = new JButton(saveFileIcon);\n\t\tsaveFileButton.setToolTipText(\"Salvar arquivo\");\n\n\t\t// fileToolbar.add(newFileButton);\n\t\tfileToolbar.add(openFileButton);\n\t\t// fileToolbar.add(saveFileButton);\n\n\t\t// Componentes da barra de ferramentas de rede\n\t\tnetworkComponentsToolbar = new JToolBar();\n\t\tnetworkComponentsToolbar.setName(\"Network components\");\n\n\t\tIcon newPlaceIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"circle_stroked.png\"));\n\t\taddPlaceButton = new JButton(newPlaceIcon);\n\t\taddPlaceButton.setToolTipText(\"Adicionar lugar\");\n\n\t\tIcon newTransitionIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"pipe.png\"));\n\t\taddTransitionButton = new JButton(newTransitionIcon);\n\t\taddTransitionButton.setToolTipText(\"Adicionar transição\");\n\n\t\tIcon newEdgeIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"arrow_alt_right.png\"));\n\t\taddEdgeButton = new JButton(newEdgeIcon);\n\t\taddEdgeButton.setToolTipText(\"Adicionar aresta\");\n\n\t\tnetworkComponentsToolbar.add(addPlaceButton);\n\t\tnetworkComponentsToolbar.add(addTransitionButton);\n\t\tnetworkComponentsToolbar.add(addEdgeButton);\n\n\t\ttoolbarPanel.add(fileToolbar);\n\t\t// toolbarPanel.add(networkComponentsToolbar);\n\n\t\tthis.add(toolbarPanel, BorderLayout.NORTH);\n\t}", "protected abstract JToolBar getNorthToolbar();", "private void configureToolBar(){\n this.toolbar = (Toolbar) findViewById(R.id.activity_main_toolbar);\n setSupportActionBar(toolbar);\n }", "private BrowserToolbar() {\n\t\tinitComponents();\n\t}", "public ToolScreen addToolbars()\n {\n ToolScreen toolbar = super.addToolbars();\n \n ToolScreen toolbar2 = new EmptyToolbar(this.getNextLocation(ScreenConstants.LAST_LOCATION, ScreenConstants.DONT_SET_ANCHOR), this, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC, null);\n BaseField converter = null;\n ScreenComponent sField = null;\n \n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.GROSS);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.NET);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.PRICING_STATUS_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n sField.setEnabled(false);\n \n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.TOUR_PRICING_TYPE_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.NEXT_INPUT_LOCATION, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n converter = this.getRecord(Booking.BOOKING_FILE).getField(Booking.NON_TOUR_PRICING_TYPE_ID);\n sField = converter.setupDefaultView(toolbar2.getNextLocation(ScreenConstants.RIGHT_WITH_DESC, ScreenConstants.ANCHOR_DEFAULT), toolbar2, ScreenConstants.DEFAULT_DISPLAY);\n \n return toolbar;\n }", "public ToolBarView() {\r\n\t\tbuttonsToolbar = new JButton[14];\r\n\t\tfor (int i = 0; i < imagesToolbar.length; i++) {\r\n\t\t\tif (i == 2 || i == 3 || i == 8 || i == 10 || i == 11 || i == 12 ) {\r\n /* adding separator to the toolbar */\r\n\t\t\t\taddSeparator();\r\n } \r\n /* adding the buttons to toolbar */\r\n\t\t\tadd(buttonsToolbar[i] = new JButton(new ImageIcon(ClassLoader.getSystemResource(imagesToolbar[i]))));\r\n\t\t\t/* setting the ToolTipText to the buttons of toolbar */\r\n\t\t\tbuttonsToolbar[i].setToolTipText(tipText[i]);\r\n\t\t}\r\n\t}", "private void create_toolbar() {\n setSupportActionBar(toolbar);\n getSupportActionBar().setTitle(\"Event Planner\");//this will set the title of our application\n\n }", "protected void fillCoolBar(ICoolBarManager coolBar) {\n\t\tIWorkbenchWindow window = getActionBarConfigurer().getWindowConfigurer().getWindow();\n\t\tIToolBarManager toolbar = new ToolBarManager(SWT.LEFT);\n\t\tcoolBar.add(new ToolBarContributionItem(toolbar, Messages.getString(\"IU.Strings.15\"))); //$NON-NLS-1$\n\t\ttoolbar.add(new GroupMarker(Messages.getString(\"IU.Strings.16\"))); //$NON-NLS-1$\n\n\n\t\t/*IWorkbenchAction open = ActionFactory..create(window);\n\t\topen.setImageDescriptor(Activator.getImageDescriptor(\"icons/charger.png\"));\n\t\ttoolbar.add(open);*/\n\n\t\tIWorkbenchAction save = ActionFactory.SAVE.create(window);\n\t\tsave.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.17\"))); //$NON-NLS-1$\n\t\tsave.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.18\"))); //$NON-NLS-1$\n\t\tsave.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.19\"))); //$NON-NLS-1$\n\t\tsave.setText(Messages.getString(\"IU.Strings.20\")); //$NON-NLS-1$\n\t\tsave.setToolTipText(Messages.getString(\"IU.Strings.21\")); //$NON-NLS-1$\n\t\ttoolbar.add(save);\n\n\t\tIWorkbenchAction print = ActionFactory.PRINT.create(window);\n\t\tprint.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.22\"))); //$NON-NLS-1$\n\t\tprint.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.23\"))); //$NON-NLS-1$\n\t\tprint.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.24\"))); //$NON-NLS-1$\n\t\tprint.setText(Messages.getString(\"IU.Strings.25\")); //$NON-NLS-1$\n\t\tprint.setToolTipText(Messages.getString(\"IU.Strings.26\")); //$NON-NLS-1$\n\t\ttoolbar.add(print);\n\n\n\t\ttoolbar.add(new GroupMarker(Messages.getString(\"IU.Strings.27\"))); //$NON-NLS-1$\n\t\ttoolbar.add(new Separator());\n\t\tIWorkbenchAction find = ActionFactory.FIND.create(window);\n\t\tfind.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.28\"))); //$NON-NLS-1$\n\t\t//find.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.29\"))); //$NON-NLS-1$\n\t\t//find.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.30\"))); //$NON-NLS-1$\n\t\tfind.setText(Messages.getString(\"IU.Strings.31\")); //$NON-NLS-1$\n\t\tfind.setToolTipText(Messages.getString(\"IU.Strings.32\")); //$NON-NLS-1$\n\t\ttoolbar.add(find);\n\n\t\t/*toolbar.add(ActionFactory.COPY.create(window));\n\t\ttoolbar.add(ActionFactory.CUT.create(window));\n\t\ttoolbar.add(ActionFactory.PASTE.create(window));\n\t\ttoolbar.add(new Separator());*/\n\n\t\t//TODO Rrgler le bug d'icon non charger undo / redo entre l'editeur et la console\n\t\t/*IWorkbenchAction undo = ActionFactory.UNDO.create(window);\n\t\tundo.setImageDescriptor(Activator.getImageDescriptor(\"icons/undo.gif\"));\n\t\tundo.setDisabledImageDescriptor(Activator.getImageDescriptor(\"icons/undo.gif\"));\n\t\tundo.setHoverImageDescriptor(Activator.getImageDescriptor(\"icons/undo.gif\"));\n\t\ttoolbar.add(undo);\n\n\t\tIWorkbenchAction redo = ActionFactory.REDO.create(window);\n\t\tredo.setImageDescriptor(Activator.getImageDescriptor(\"icons/redo.gif\"));\n\t\tredo.setDisabledImageDescriptor(Activator.getImageDescriptor(\"icons/redo.gif\"));\n\t\tredo.setHoverImageDescriptor(Activator.getImageDescriptor(\"icons/redo.gif\"));\n\t\ttoolbar.add(redo);*/\n\n\t\t\n\t\t//toolbar.add(ActionFactory.REDO.create(window));*/\n\n\t\t//toolbox2.png\n\t\tToolsBoxAction toolBox = new ToolsBoxAction(window);\n\t\ttoolBox.setImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.33\"))); //$NON-NLS-1$\n\t\ttoolBox.setDisabledImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.34\"))); //$NON-NLS-1$\n\t\ttoolBox.setHoverImageDescriptor(Activator.getImageDescriptor(Messages.getString(\"IU.Strings.35\"))); //$NON-NLS-1$\n\t\ttoolbar.add(toolBox);\n\t\t\n\t\t\n\t\t//action_toolsBox.setMenuCreator(new IMenuCreator(){});\n\t\n\t\t//coolBar.add(new ToolBarContributionItem(toolbar2, \"main2\"));\n\t\t//toolbar2.add(ActionFactory.SHOW_VIEW_MENU.create(window));\n\n\t\t\n\t\tIToolBarManager toolbar2 = new ToolBarManager(SWT.RIGHT | SWT.FLAT | SWT.HORIZONTAL);\n\t\t\n\t\tcoolBar.add(new ToolBarContributionItem(toolbar2, Messages.getString(\"IU.Strings.36\")));\t //$NON-NLS-1$\n\t\ttoolbar2.add(new GroupMarker(Messages.getString(\"IU.Strings.37\"))); //$NON-NLS-1$\n\t\ttoolbar2.add(new GroupMarker(Messages.getString(\"IU.Strings.38\"))); //$NON-NLS-1$\n\t}", "public HeatMapColorToolBar() {\n initialize();\n }", "private JToolBar createToolBar() {\n JToolBar toolbar = new JToolBar();\n Insets margins = new Insets(0, 0, 0, 0);\n\n ButtonGroup group1 = new ButtonGroup();\n\n ToolBarButton edit = new ToolBarButton(\"images/E.gif\");\n edit.setToolTipText(\"Edit motes\");\n edit.setMargin(margins);\n edit.setActionCommand(\"edit\");\n edit.setSelected(true);\n edit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n add.enable();\n remove.enable();\n auto.enable();\n add.setSelected(true);\n }\n });\n group1.add(edit);\n toolbar.add(edit);\n\n ToolBarButton vis = new ToolBarButton(\"images/V.gif\");\n vis.setToolTipText(\"Visualize mote network\");\n vis.setMargin(margins);\n vis.setActionCommand(\"visualize\");\n vis.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n// AKD setMode(VIZ_MODE);\n add.setSelected(false);\n remove.setSelected(false);\n auto.setSelected(false);\n add.disable();\n remove.disable();\n auto.disable();\n }\n });\n group1.add(vis);\n toolbar.add(vis);\n\n toolbar.addSeparator();\n\n ButtonGroup group2 = new ButtonGroup();\n\n ToolBarButton pan = new ToolBarButton(\"images/P.gif\");\n pan.setToolTipText(\"Pan view\");\n pan.setMargin(margins);\n pan.setActionCommand(\"pan\");\n pan.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(PAN_MODE);\n }\n });\n group2.add(pan);\n toolbar.add(pan);\n\n add = new ToolBarButton(\"images/A.gif\");\n add.setToolTipText(\"Add mote\");\n add.setMargin(margins);\n add.setActionCommand(\"add\");\n add.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n }\n });\n group2.add(add);\n toolbar.add(add);\n\n remove = new ToolBarButton(\"images/R.gif\");\n remove.setToolTipText(\"Remove mote\");\n remove.setMargin(margins);\n remove.setActionCommand(\"pan\");\n remove.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(REMOVE_MODE);\n }\n });\n group2.add(remove);\n toolbar.add(remove);\n\n auto = new ToolBarButton(\"images/T.gif\");\n auto.setToolTipText(\"Automatic mode\");\n auto.setMargin(margins);\n auto.setActionCommand(\"auto\");\n auto.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(AUTO_MODE);\n }\n });\n group2.add(auto);\n toolbar.add(auto);\n\n toolbar.setFloatable(true);\n return toolbar;\n }", "private void loadToolBar() {\r\n //si existe la configuracion de la TOOLBAR asociada al usuario\r\n if(toolsConfig != null){\r\n //Si el id de pantalla es la correcta y se encuentra activo 1 el TOOLBAR\r\n if(Datos.getIdScreen()==toolsConfig[0] && toolsConfig[1]==1){ \r\n for (int i = 0; i < tools.length; i++){ //Recorre el arreglo de botones\r\n if(toolsConfig[i+2] == 1){ //Si esta disponible 1 \r\n enableToolBar(tools, i); //habilita el boton\r\n }else{ \r\n disableToolBar(tools,i); //deshabilita el boton\r\n } \r\n }\r\n }\r\n }\r\n else{\r\n for (int i = 0; i < tools.length; i++){ //Recorre el arreglo de botones\r\n disableToolBar(tools,i); //deshabilita el boton\r\n }\r\n }\r\n }", "public JToolBar gameToolbar() {\n\t\tthis.gameToolbar = new JToolBar();\n\t\t//this.gameToolbar.setPreferredSize(size);\n\t\tFlowLayout tbLayout = new FlowLayout();\n\t\tthis.gameToolbar.setLayout(tbLayout);\n\t\ttbLayout.setAlignment(FlowLayout.CENTER);\n\t\tthis.gameToolbar.setRollover(true);\n\t\tthis.dealButton = new JButton(\"DEAL\");\n\t\tthis.dealButton.addActionListener(this);\n\t\tthis.placeBetButton = new JButton(\"PLACE BET\");\n\t\tthis.placeBetButton.addActionListener(this);\n\t\tthis.resultsButton = new JButton(\"VIEW RESULTS\");\n\t\tthis.resultsButton.addActionListener(this);\n\t\tthis.gameToolbar.add(this.dealButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.placeBetButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.resultsButton);\n\t\treturn this.gameToolbar;\n\t\t\n\t}", "public JToolBar getToolBar(){\r\n return toolbar;\r\n }", "@Override\n public void setToolbar(MToolBar arg0)\n {\n \n }", "public JToolBar getToolBar() {\n return toolBar;\n }", "private static JToolBar initToolBar() {\n JToolBar basicMenu = new JToolBar();\n\n JButton cr = initButton(Icons.CREATE, a -> EditorScreen.instance().create());\n JButton op = initButton(Icons.LOAD, a -> EditorScreen.instance().load());\n JButton sv = initButton(Icons.SAVE, a -> EditorScreen.instance().save(false));\n JButton undo = initButton(Icons.UNDO, a -> UndoManager.instance().undo());\n JButton redo = initButton(Icons.REDO, a -> UndoManager.instance().redo());\n undo.setEnabled(false);\n redo.setEnabled(false);\n\n JToggleButton place = new JToggleButton();\n place.setIcon(Icons.PLACEOBJECT);\n requestFocusOnMouseDown(place);\n\n JToggleButton ed = new JToggleButton();\n ed.setIcon(Icons.EDIT);\n ed.setSelected(true);\n requestFocusOnMouseDown(ed);\n\n JToggleButton mv = new JToggleButton();\n mv.setIcon(Icons.MOVE);\n mv.setEnabled(false);\n requestFocusOnMouseDown(mv);\n\n ed.addActionListener(a -> {\n ed.setSelected(true);\n place.setSelected(false);\n mv.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_EDIT);\n isChanging = false;\n\n Game.window().getRenderComponent().setCursor(Cursors.DEFAULT, 0, 0);\n });\n\n place.addActionListener(a -> {\n addPopupMenu.show(place, 0, place.getHeight());\n place.setSelected(true);\n ed.setSelected(false);\n mv.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_CREATE);\n isChanging = false;\n });\n\n mv.addActionListener(a -> {\n mv.setSelected(true);\n ed.setSelected(false);\n place.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_MOVE);\n isChanging = false;\n\n Game.window().getRenderComponent().setCursor(Cursors.MOVE, 0, 0);\n });\n\n EditorScreen.instance().getMapComponent().onEditModeChanged(i -> {\n if (isChanging) {\n return;\n }\n\n if (i == MapComponent.EDITMODE_CREATE) {\n ed.setSelected(false);\n mv.setSelected(false);\n place.setSelected(true);\n place.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.ADD, 0, 0);\n }\n\n if (i == MapComponent.EDITMODE_EDIT) {\n place.setSelected(false);\n mv.setSelected(false);\n ed.setSelected(true);\n ed.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.DEFAULT, 0, 0);\n }\n\n if (i == MapComponent.EDITMODE_MOVE) {\n if (!mv.isEnabled()) {\n return;\n }\n\n ed.setSelected(false);\n place.setSelected(false);\n mv.setSelected(true);\n mv.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.MOVE, 0, 0);\n }\n });\n\n JButton del = new JButton();\n del.setIcon(Icons.DELETE);\n del.setEnabled(false);\n del.addActionListener(a -> EditorScreen.instance().getMapComponent().delete());\n\n // copy\n JButton cop = new JButton();\n cop.setIcon(Icons.COPY);\n cop.setEnabled(false);\n ActionListener copyAction = a -> EditorScreen.instance().getMapComponent().copy();\n cop.addActionListener(copyAction);\n cop.getModel().setMnemonic('C');\n KeyStroke keyStroke = KeyStroke.getKeyStroke('C', Event.CTRL_MASK, false);\n cop.registerKeyboardAction(copyAction, keyStroke, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n // paste\n JButton paste = new JButton();\n paste.setIcon(Icons.PASTE);\n\n ActionListener pasteAction = a -> EditorScreen.instance().getMapComponent().paste();\n paste.addActionListener(pasteAction);\n paste.getModel().setMnemonic('V');\n KeyStroke keyStrokePaste = KeyStroke.getKeyStroke('V', Event.CTRL_MASK, false);\n paste.registerKeyboardAction(pasteAction, keyStrokePaste, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n // cut\n JButton cut = new JButton();\n cut.setIcon(Icons.CUT);\n cut.setEnabled(false);\n ActionListener cutAction = a -> EditorScreen.instance().getMapComponent().cut();\n cut.addActionListener(cutAction);\n cut.getModel().setMnemonic('X');\n KeyStroke keyStrokeCut = KeyStroke.getKeyStroke('X', Event.CTRL_MASK, false);\n cut.registerKeyboardAction(cutAction, keyStrokeCut, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n EditorScreen.instance().getMapComponent().onFocusChanged(mo -> {\n if (mv.isSelected()) {\n mv.setSelected(false);\n ed.setSelected(true);\n }\n\n mv.setEnabled(mo != null);\n del.setEnabled(mo != null);\n cop.setEnabled(mo != null);\n cut.setEnabled(mo != null);\n undo.setEnabled(UndoManager.instance().canUndo());\n redo.setEnabled(UndoManager.instance().canRedo());\n paste.setEnabled(EditorScreen.instance().getMapComponent().getCopiedBlueprint() != null);\n });\n\n EditorScreen.instance().getMapComponent().onEditModeChanged(mode -> paste.setEnabled(EditorScreen.instance().getMapComponent().getCopiedBlueprint() != null));\n\n UndoManager.onUndoStackChanged(manager -> {\n EditorScreen.instance().getMapComponent().updateTransformControls();\n undo.setEnabled(manager.canUndo());\n redo.setEnabled(manager.canRedo());\n });\n\n JButton colorButton = new JButton();\n colorButton.setIcon(Icons.COLOR);\n colorButton.setEnabled(false);\n\n JSpinner spinnerAmbientAlpha = new JSpinner();\n spinnerAmbientAlpha.setToolTipText(\"Adjust ambient alpha.\");\n spinnerAmbientAlpha.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n spinnerAmbientAlpha.setMaximumSize(new Dimension(50, 50));\n spinnerAmbientAlpha.setEnabled(true);\n spinnerAmbientAlpha.addChangeListener(e -> {\n if (Game.world().environment() == null || Game.world().environment().getMap() == null || isChanging) {\n return;\n }\n\n Game.world().environment().getAmbientLight().setAlpha((int) spinnerAmbientAlpha.getValue());\n String hex = ColorHelper.encode(Game.world().environment().getAmbientLight().getColor());\n colorText.setText(hex);\n Game.world().environment().getMap().setValue(MapProperty.AMBIENTCOLOR, hex);\n\n });\n\n colorText = new JTextField();\n colorText.setHorizontalAlignment(SwingConstants.CENTER);\n colorText.setMinimumSize(new Dimension(70, 20));\n colorText.setMaximumSize(new Dimension(70, 50));\n colorText.setEnabled(false);\n\n colorButton.addActionListener(a -> {\n if (Game.world().environment() == null || Game.world().environment().getMap() == null || isChanging) {\n return;\n }\n\n Color color = null;\n if (colorText.getText() != null && !colorText.getText().isEmpty()) {\n Color solid = ColorHelper.decode(colorText.getText());\n color = new Color(solid.getRed(), solid.getGreen(), solid.getBlue(), (int) spinnerAmbientAlpha.getValue());\n }\n Color result = JColorChooser.showDialog(null, Resources.strings().get(\"panel_selectAmbientColor\"), color);\n if (result == null) {\n return;\n }\n\n spinnerAmbientAlpha.setValue(result.getAlpha());\n\n Game.world().environment().getMap().setValue(MapProperty.AMBIENTCOLOR, colorText.getText());\n Game.world().environment().getAmbientLight().setColor(result);\n String hex = ColorHelper.encode(Game.world().environment().getAmbientLight().getColor());\n colorText.setText(hex);\n });\n\n EditorScreen.instance().getMapComponent().onMapLoaded(map -> {\n isChanging = true;\n colorButton.setEnabled(map != null);\n spinnerAmbientAlpha.setEnabled(map != null);\n\n String colorValue = map.getStringValue(MapProperty.AMBIENTCOLOR, \"#00000000\");\n colorText.setText(colorValue);\n Color color = ColorHelper.decode(colorText.getText());\n if (color != null) {\n spinnerAmbientAlpha.setValue(color.getAlpha());\n }\n\n isChanging = false;\n });\n\n basicMenu.add(cr);\n basicMenu.add(op);\n basicMenu.add(sv);\n basicMenu.addSeparator();\n\n basicMenu.add(undo);\n basicMenu.add(redo);\n basicMenu.addSeparator();\n\n basicMenu.add(place);\n basicMenu.add(ed);\n basicMenu.add(mv);\n basicMenu.add(del);\n basicMenu.add(cop);\n basicMenu.add(paste);\n basicMenu.add(cut);\n basicMenu.addSeparator();\n\n basicMenu.add(colorButton);\n basicMenu.add(Box.createHorizontalStrut(5));\n basicMenu.add(colorText);\n basicMenu.add(Box.createHorizontalStrut(5));\n basicMenu.add(spinnerAmbientAlpha);\n\n return basicMenu;\n }", "private JToolBar getJToolBar() {\r\n\t\tif (jToolBar == null) {\r\n\t\t\tjToolBar = new JToolBar();\r\n\t\t\tjToolBar.setFloatable(false);\r\n\t\t\tjToolBar.add(getCmdAdd());\r\n\t\t\tjToolBar.add(getCmdDel());\r\n\t\t\tjToolBar.add(getCmdAddT());\r\n\t\t\tjToolBar.add(getCmdUrl());\r\n\t\t\tjToolBar.add(getCmdStart());\r\n\t\t\tjToolBar.add(getCmdPause());\r\n\t\t\tjToolBar.add(getCmdStop());\r\n\t\t\tjToolBar.add(getCmdExport());\r\n\t\t}\r\n\t\treturn jToolBar;\r\n\t}", "private void setupToolBar(){\n Toolbar toolbar = (Toolbar)findViewById(R.id.my_toolbar);\n setSupportActionBar(toolbar);\n\n getSupportActionBar().setHomeButtonEnabled(true);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }", "public JToolBar getToolBar() {\n return myToolBar;\n }", "void setToolbar(int toolbarTemp) {\n\n }", "@AutoGenerated\n\tprivate Panel buildPnToolbar() {\n\t\tpnToolbar = new Panel();\n\t\tpnToolbar.setImmediate(false);\n\t\tpnToolbar.setWidth(\"100.0%\");\n\t\tpnToolbar.setHeight(\"100.0%\");\n\t\t\n\t\t// hlToolbar\n\t\thlToolbar = buildHlToolbar();\n\t\tpnToolbar.setContent(hlToolbar);\n\t\t\n\t\treturn pnToolbar;\n\t}", "@Override\n public Component getToolbarPresenter() {\n return new FontPanel();\n }", "@AutoGenerated\n\tprivate HorizontalLayout buildHlToolbar() {\n\t\thlToolbar = new HorizontalLayout();\n\t\thlToolbar.setImmediate(false);\n\t\thlToolbar.setWidth(\"100.0%\");\n\t\thlToolbar.setHeight(\"100.0%\");\n\t\thlToolbar.setMargin(false);\n\t\t\n\t\t// btnFirstRegister\n\t\tbtnFirstRegister = new Button();\n\t\tbtnFirstRegister.setCaption(\"<<\");\n\t\tbtnFirstRegister.setImmediate(true);\n\t\tbtnFirstRegister.setWidth(\"-1px\");\n\t\tbtnFirstRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnFirstRegister);\n\t\t\n\t\t// btnPreviousRegister\n\t\tbtnPreviousRegister = new Button();\n\t\tbtnPreviousRegister.setCaption(\"<\");\n\t\tbtnPreviousRegister.setImmediate(true);\n\t\tbtnPreviousRegister.setWidth(\"-1px\");\n\t\tbtnPreviousRegister.setHeight(\"-1px\");\n\t\tbtnPreviousRegister.setTabIndex(1);\n\t\thlToolbar.addComponent(btnPreviousRegister);\n\t\t\n\t\t// lblCountRegister\n\t\tlblCountRegister = new Label();\n\t\tlblCountRegister.setStyleName(\"nav-toolbar-separator\");\n\t\tlblCountRegister.setImmediate(false);\n\t\tlblCountRegister.setWidth(\"50px\");\n\t\tlblCountRegister.setHeight(\"-1px\");\n\t\tlblCountRegister.setValue(\"1/1\");\n\t\thlToolbar.addComponent(lblCountRegister);\n\t\thlToolbar.setComponentAlignment(lblCountRegister, new Alignment(48));\n\t\t\n\t\t// btnNextRegister\n\t\tbtnNextRegister = new Button();\n\t\tbtnNextRegister.setCaption(\">\");\n\t\tbtnNextRegister.setImmediate(true);\n\t\tbtnNextRegister.setWidth(\"-1px\");\n\t\tbtnNextRegister.setHeight(\"-1px\");\n\t\tbtnNextRegister.setTabIndex(2);\n\t\thlToolbar.addComponent(btnNextRegister);\n\t\t\n\t\t// btnLastRegister\n\t\tbtnLastRegister = new Button();\n\t\tbtnLastRegister.setCaption(\">>\");\n\t\tbtnLastRegister.setImmediate(true);\n\t\tbtnLastRegister.setWidth(\"-1px\");\n\t\tbtnLastRegister.setHeight(\"-1px\");\n\t\tbtnLastRegister.setTabIndex(3);\n\t\thlToolbar.addComponent(btnLastRegister);\n\t\t\n\t\t// btnDownRegister\n\t\tbtnDownRegister = new Button();\n\t\tbtnDownRegister.setCaption(\"v\");\n\t\tbtnDownRegister.setImmediate(true);\n\t\tbtnDownRegister.setWidth(\"-1px\");\n\t\tbtnDownRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnDownRegister);\n\t\t\n\t\t// btnUpRegister\n\t\tbtnUpRegister = new Button();\n\t\tbtnUpRegister.setCaption(\"^\");\n\t\tbtnUpRegister.setImmediate(true);\n\t\tbtnUpRegister.setWidth(\"-1px\");\n\t\tbtnUpRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnUpRegister);\n\t\t\n\t\t// btnDisplayRegister\n\t\tbtnDisplayRegister = new Button();\n\t\tbtnDisplayRegister.setCaption(\"C\");\n\t\tbtnDisplayRegister.setImmediate(false);\n\t\tbtnDisplayRegister.setWidth(\"-1px\");\n\t\tbtnDisplayRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnDisplayRegister);\n\t\t\n\t\t// imgSeparator\n\t\timgSeparator = new Embedded();\n\t\timgSeparator.setImmediate(false);\n\t\timgSeparator.setWidth(\"-1px\");\n\t\timgSeparator.setHeight(\"-1px\");\n\t\timgSeparator.setSource(new ThemeResource(\n\t\t\t\t\"../konekti/images/separator.png\"));\n\t\timgSeparator.setType(1);\n\t\timgSeparator.setMimeType(\"image/png\");\n\t\thlToolbar.addComponent(imgSeparator);\n\t\t\n\t\t// btnRefreshRegister\n\t\tbtnRefreshRegister = new Button();\n\t\tbtnRefreshRegister.setCaption(\"R\");\n\t\tbtnRefreshRegister.setImmediate(true);\n\t\tbtnRefreshRegister.setWidth(\"-1px\");\n\t\tbtnRefreshRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnRefreshRegister);\n\t\t\n\t\t// btnAddRegister\n\t\tbtnAddRegister = new Button();\n\t\tbtnAddRegister.setCaption(\"A\");\n\t\tbtnAddRegister.setImmediate(true);\n\t\tbtnAddRegister.setWidth(\"-1px\");\n\t\tbtnAddRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnAddRegister);\n\t\t\n\t\t// btnEditRegister\n\t\tbtnEditRegister = new Button();\n\t\tbtnEditRegister.setCaption(\"U\");\n\t\tbtnEditRegister.setImmediate(true);\n\t\tbtnEditRegister.setWidth(\"-1px\");\n\t\tbtnEditRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnEditRegister);\n\t\t\n\t\t// btnDeleteRegister\n\t\tbtnDeleteRegister = new Button();\n\t\tbtnDeleteRegister.setCaption(\"D\");\n\t\tbtnDeleteRegister.setImmediate(true);\n\t\tbtnDeleteRegister.setWidth(\"-1px\");\n\t\tbtnDeleteRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnDeleteRegister);\n\t\t\n\t\t// imgSeparatorGroup\n\t\timgSeparatorGroup = new Embedded();\n\t\timgSeparatorGroup.setImmediate(false);\n\t\timgSeparatorGroup.setWidth(\"-1px\");\n\t\timgSeparatorGroup.setHeight(\"-1px\");\n\t\timgSeparatorGroup.setSource(new ThemeResource(\n\t\t\t\t\"../konekti/images/separator_group.png\"));\n\t\timgSeparatorGroup.setType(1);\n\t\timgSeparatorGroup.setMimeType(\"image/png\");\n\t\thlToolbar.addComponent(imgSeparatorGroup);\n\t\thlToolbar.setComponentAlignment(imgSeparatorGroup, new Alignment(48));\n\t\t\n\t\t// btnConfirmRegister\n\t\tbtnConfirmRegister = new Button();\n\t\tbtnConfirmRegister.setCaption(\"[]\");\n\t\tbtnConfirmRegister.setImmediate(true);\n\t\tbtnConfirmRegister.setWidth(\"-1px\");\n\t\tbtnConfirmRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnConfirmRegister);\n\t\t\n\t\t// btnCancelRegister\n\t\tbtnCancelRegister = new Button();\n\t\tbtnCancelRegister.setCaption(\"X\");\n\t\tbtnCancelRegister.setImmediate(true);\n\t\tbtnCancelRegister.setWidth(\"-1px\");\n\t\tbtnCancelRegister.setHeight(\"-1px\");\n\t\thlToolbar.addComponent(btnCancelRegister);\n\t\t\n\t\treturn hlToolbar;\n\t}", "private void configureToolbar(){\n Toolbar toolbar = (Toolbar) findViewById(R.id.mento_toolbar);\n //Set the toolbar\n setSupportActionBar(toolbar);\n // Get a support ActionBar corresponding to this toolbar\n ActionBar ab = getSupportActionBar();\n\n }", "public CoeusToolBarFactory(CoeusAppletMDIForm mdiForm) {\r\n super();\r\n this.mdiForm = mdiForm;\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n createToolBar();\r\n // rdias UCSD - Coeus personalization impl\r\n//\t AbstractController persnref = AbstractController.getPersonalizationControllerRef();\r\n//\t persnref.customize_module(null, getToolBar(),this, \"MAINFRAME\");\r\n\t //rdias UCSD \r\n }", "@Override\n public Component getToolbarPresenter() {\n \n fxPanel = new JFXPanel();\n \n Platform.setImplicitExit(false); //Ensure JavaFX thread does not close application\n Platform.runLater(()-> { //Create FX scene outside Swing Thread\n createFXScene();\n });\n\n return fxPanel;\n }", "private void createToolBarActions() {\r\n\t\t// create the action\r\n\t\tGetMessage<Transport> getMessage = new GetMessage<Transport>(new Transport());\r\n\t\tgetMessage.addParameter(IFilterTypes.TRANSPORT_TODO_FILTER, \"\");\r\n\r\n\t\t// add to the toolbar\r\n\t\tform.getToolBarManager().add(new RefreshViewAction<Transport>(getMessage));\r\n\t\tform.getToolBarManager().update(true);\r\n\t}", "C getRegisteredToolBar(ToolbarPosition position);", "private void setToolBar() {\r\n toolbar.setTitle(R.string.photo_details);\r\n ActionBar ab = getSupportActionBar();\r\n if (ab != null) {\r\n ab.setDisplayHomeAsUpEnabled(true);\r\n }\r\n toolbar.setNavigationIcon(R.drawable.ic_back);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n setTitle(\"JUltima Toolbar\");\n setAlwaysOnTop(true);\n setFocusable(false);\n setLocationByPlatform(true);\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, 192, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 123, Short.MAX_VALUE)\n );\n\n pack();\n }", "private void initToolBar(){\n toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n }", "private void createResponseToolbar ( ExpandableComposite parent ) {\n \t\trawAction = new ShowRawAction();\n \t\trawAction.setChecked(true);\n \t\tbrowserAction = new ShowInBrowserAction();\n \n \t\tToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);\n \t\tToolBar toolbar = toolBarManager.createControl(parent);\n \n \t\ttoolBarManager.add(new FileSaveAction());\n \t\ttoolBarManager.add(new OpenInXMLEditorAction());\n \t\ttoolBarManager.add(rawAction);\n \t\ttoolBarManager.add(browserAction);\n \n \t\ttoolBarManager.update(true);\n \n \t\tparent.setTextClient(toolbar);\n \t}", "public ToolBar(final Map<PaintTool, ToolAction> theMap, \n final List<PaintTool> theTools,\n final JFrame theFrame,\n final DrawingPanel thePanel) { \n\n myToolBar = new JToolBar();\n createToolButtons(theMap, theTools, theFrame);\n createUndoAndRedo(thePanel);\n myBar = theFrame.getJMenuBar();\n myBar.addPropertyChangeListener(this);\n myPcs = new PropertyChangeSupport(this);\n }", "public MainToolBar getMainToolBar()\n {\n return mainToolBar;\n }", "private void initComponents() {\n\n jSeparator1 = new javax.swing.JToolBar.Separator();\n buttonGroup1 = new javax.swing.ButtonGroup();\n btnPin = new javax.swing.JToggleButton();\n toolbar = new javax.swing.JToolBar();\n toolbar2 = new javax.swing.JToolBar();\n\n btnPin.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/org/piraso/ui/api/icons/pin_small.png\"))); // NOI18N\n org.openide.awt.Mnemonics.setLocalizedText(btnPin, org.openide.util.NbBundle.getMessage(BaseEntryViewTopComponent.class, \"BaseEntryViewTopComponent.btnPin.text\")); // NOI18N\n btnPin.setToolTipText(org.openide.util.NbBundle.getMessage(BaseEntryViewTopComponent.class, \"BaseEntryViewTopComponent.btnPin.toolTipText\")); // NOI18N\n btnPin.setFocusable(false);\n btnPin.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPin.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnPin.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPinActionPerformed(evt);\n }\n });\n\n setLayout(new java.awt.BorderLayout());\n\n toolbar.setBackground(new java.awt.Color(226, 226, 226));\n toolbar.setFloatable(false);\n toolbar.setRollover(true);\n add(toolbar, java.awt.BorderLayout.NORTH);\n\n toolbar2.setBackground(new java.awt.Color(226, 226, 226));\n toolbar2.setFloatable(false);\n toolbar2.setOrientation(1);\n toolbar2.setRollover(true);\n toolbar2.setVisible(false);\n add(toolbar2, java.awt.BorderLayout.WEST);\n }", "private void initializeToolBarElements() {\n mNavigationView = findViewById(R.id.nav_view);\n mNavigationView.setNavigationItemSelectedListener(this);\n //Remove all tint from Nav Drawer icons\n mNavigationView.setItemIconTintList(null);\n\n mToolBar = findViewById(R.id.toolbar);\n setSupportActionBar(mToolBar);\n\n mDrawerLayout = findViewById(R.id.drawer_layout);\n ActionBarDrawerToggle toggle = new ActionBarDrawerToggle(this, mDrawerLayout, mToolBar,\n R.string.navigation_drawer_open,\n R.string.navigation_drawer_close);\n mDrawerLayout.addDrawerListener(toggle);\n toggle.syncState();\n }", "public void initToolbar(){\n //check if toolbar is already inflated\n if(mToolbar == null){\n //if null, inflate the toolbar\n mToolbar = (Toolbar)findViewById(mHouseKeeper.getToolbarId());\n //set support for toolbar, onCreateOptionsMenu() will be called\n setSupportActionBar(mToolbar);\n }\n }", "private static ToolBar header(Stage stage) {\n\t\t// Main menu button on the right\n\t\tButton mainMenu = new Button(\"Main menu\");\n\t\tmainMenu.setOnAction(actionEvent -> mainMenu(stage));\n\t\t\n\t\t// Username on the left\n\t\tLabel usernameLabel = new Label(UserInterfaceLogic.getUsernameLabel());\n\t\t\n\t\tToolBar toolBar = new ToolBar();\n\t\ttoolBar.getItems().addAll(usernameLabel, new Separator(), mainMenu);\n\t\t\n\t\treturn toolBar;\n\t}", "public void initToolbar(){\n Toolbar toolbar = (Toolbar) findViewById(R.id.toolbar);\n setSupportActionBar(toolbar);\n if(getSupportActionBar()!=null) {\n getSupportActionBar().setTitle(\"\");\n }\n getSupportActionBar().setHomeAsUpIndicator(R.drawable.ic_launcher_white);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.LOLLIPOP) {\n Window window = getWindow();\n window.addFlags(WindowManager.LayoutParams.FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);\n window.setStatusBarColor(ContextCompat.getColor(this, R.color.colorPrimaryDarkest));\n }\n }", "public interface ToolbarOperation {\n Toolbar getToolbar();\n\n void modifyToolbarTitle(String title);\n\n float getToolbarHeight();\n}", "protected boolean isToolbarNeeded() {\n return true;\n }", "private void loadToolbar() {\n android.support.v7.widget.Toolbar toolbar = findViewById(R.id.toolbar_top);\n setSupportActionBar(toolbar);\n\n // add back arrow to toolbar\n if (getSupportActionBar() != null) {\n getSupportActionBar().setTitle(\"\");\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n }\n\n if(toolbar.getNavigationIcon() != null) {\n toolbar.getNavigationIcon().setColorFilter(this.getColor(R.color.white), PorterDuff.Mode.SRC_ATOP);\n }\n }", "private JToolBar getJToolBarEditorHTML() {\r\n\r\n\t\tif (jToolBarEditorHTML == null) {\r\n\t\t\tjToolBarEditorHTML = ekitCoreEditorHTMLPanel.getToolBar(true);\r\n\t\t\tjToolBarEditorHTML.setBounds(new Rectangle(1, 1, 617, 30));\r\n\t\t}\r\n\t\treturn jToolBarEditorHTML;\r\n\t}", "public ToolBarManager initTitle(String toolBarTitle,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }", "private void createRequestToolbar ( ExpandableComposite parent ) {\n \t\trawRequestAction = new ShowRawRequestAction();\n \t\trawRequestAction.setChecked(true);\n \t\ttreeAction = new ShowInTreeAction();\n \n \t\tToolBarManager toolBarManager = new ToolBarManager(SWT.FLAT);\n \t\tToolBar toolbar = toolBarManager.createControl(parent);\n \n \t\ttoolBarManager.add(rawRequestAction);\n \t\ttoolBarManager.add(treeAction);\n \n \t\ttoolBarManager.update(true);\n \n \t\tparent.setTextClient(toolbar);\n \t}", "void setupToolBar(String title, View.OnClickListener onClickListener) {\n setupToolBar(title, true, onClickListener);\n showToolbar();\n }", "public ToolBarManager initTitle(String toolBarTitle, int color,int start,int top,int end,int bottom){\n if(toolBarTitle!=null){\n mToolbar.setTitle(toolBarTitle);\n mToolbar.setTitleTextColor(color);\n mToolbar.setTitleMargin(start,top,end,bottom);\n }\n return instance;\n }", "private void renderToolBarCustomizingSection() {\n\t\tfinal SpinnerField spinner = new SpinnerField();\n\n\t\tspinner.setMaxValue(50);\n\t\tspinner.setMinValue(20);\n\t\tspinner.setValue(Constants.TASK_BAR_SIZE);\n\n\t\tspinner.addListener(Events.Change, new Listener<BaseEvent>() {\n\n\t\t\t@Override\n\t\t\tpublic void handleEvent(BaseEvent be) {\n\t\t\t\tGwosDesktop.getInstance().getTaskBar()\n\t\t\t\t\t\t.setBarSize(spinner.getValue().intValue());\n\t\t\t}\n\t\t});\n\n\t\tspinner.setFieldLabel(\"Task bar size (px)\");\n\n\t\t// 2. Task bar color\n\t\t// TODO\n\n\t\t// Add controls to the panel\n\t\ttoolbarSection.add(spinner);\n\t}", "private static void createGUI(){\n DrawingArea drawingArea = new DrawingArea();\n ToolSelect utilityBar = new ToolSelect();\n MenuBar menuBar = new MenuBar();\n JFrame.setDefaultLookAndFeelDecorated(true);\n JFrame frame = new JFrame(\"GUIMk1\");\n frame.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );\n frame.setLayout(new BorderLayout());\n frame.getContentPane().add(utilityBar, BorderLayout.WEST);\n frame.getContentPane().add(menuBar,BorderLayout.NORTH);\n frame.getContentPane().add(drawingArea);\n frame.setLocationRelativeTo( null );\n frame.setVisible(true);\n frame.pack();\n\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jToolBar1 = new javax.swing.JToolBar();\n btnDom = new javax.swing.JButton();\n btnBook = new javax.swing.JButton();\n btnTT = new javax.swing.JButton();\n btnPos = new javax.swing.JButton();\n btnTool = new javax.swing.JButton();\n btnNews = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jToolBar1.setRollover(true);\n\n btnDom.setText(\"DOM\");\n btnDom.setFocusable(false);\n btnDom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnDom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnDom.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDomActionPerformed(evt);\n }\n });\n jToolBar1.add(btnDom);\n\n btnBook.setText(\"Book\");\n btnBook.setFocusable(false);\n btnBook.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBook.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnBook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBookActionPerformed(evt);\n }\n });\n jToolBar1.add(btnBook);\n\n btnTT.setText(\"T&T\");\n btnTT.setFocusable(false);\n btnTT.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTT.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTTActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTT);\n\n btnPos.setText(\"Posição\");\n btnPos.setFocusable(false);\n btnPos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnPos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPosActionPerformed(evt);\n }\n });\n jToolBar1.add(btnPos);\n\n btnTool.setText(\"Ferramentas\");\n btnTool.setFocusable(false);\n btnTool.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTool.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTool.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnToolActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTool);\n\n btnNews.setText(\"Notícias\");\n btnNews.setFocusable(false);\n btnNews.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnNews.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnNews.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNewsActionPerformed(evt);\n }\n });\n jToolBar1.add(btnNews);\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(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 253, Short.MAX_VALUE))\n );\n\n pack();\n }", "public JToolBar createJToolBar(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 83 */ JToolBar result = new JToolBar();\n/* 84 */ List buttons = getStringList(name);\n/* */ \n/* 86 */ for (Object button : buttons) {\n/* 87 */ String s = (String)button;\n/* 88 */ if (s.equals(\"-\")) {\n/* 89 */ result.add(new JToolbarSeparator()); continue;\n/* */ } \n/* 91 */ result.add(createJButton(s));\n/* */ } \n/* */ \n/* 94 */ return result;\n/* */ }", "private void initToolbar() {\n setSupportActionBar(toolbar);\n if(getSupportActionBar() != null) {\n getSupportActionBar().setTitle(\"Timetable App\");\n }\n }", "public Toolbar() {\n setBorder(BorderFactory.createEtchedBorder());\n saveButton = new JButton();\n saveButton.setIcon(createIcon(\"/image/save16.gif\"));\n saveButton.setToolTipText(\"Save\");\n \n refreshButton = new JButton();\n refreshButton.setIcon(createIcon(\"/image/refresh16.gif\"));\n refreshButton.setToolTipText(\"Refresh\");\n\n saveButton.addActionListener(this);\n refreshButton.addActionListener(this);\n\n add(saveButton);\n addSeparator();\n add(refreshButton);\n }", "public void toolbarImplementacionIsmael() {\n\t\t// ToolBar Fuente\n\t\tbtnFuente = new JButton(\"Fuente\");\n\t\tbtnFuente.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnFuente.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnFuente);\n\n\t\tbtnSeleccionarTodo = new JButton(\"Selec.Todo\");\n\t\tbtnSeleccionarTodo.setEnabled(false);\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnSeleccionarTodo.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnSeleccionarTodo);\n\n\t\tbtnHora = new JButton(\"Hora\");\n\t\ttry {\n\t\t\timg = ImageIO.read(getClass().getResource(\"img/copy.png\"));\n\t\t\timg = img.getScaledInstance(20, 20, Image.SCALE_SMOOTH);\n\t\t\tbtnHora.setIcon(new ImageIcon(img));\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\ttoolbar.add(btnHora);\n\t}", "private void initComponents() {\n\n jButtonGroupTools = new javax.swing.ButtonGroup();\n jButtonGroupFill = new javax.swing.ButtonGroup();\n jSeparator2 = new javax.swing.JSeparator();\n jToolBarTools = new javax.swing.JToolBar();\n jButtonNew = new javax.swing.JButton();\n jButtonOpen = new javax.swing.JButton();\n jButtonSave = new javax.swing.JButton();\n jButtonDuplicate = new javax.swing.JButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n jToggleButtonPoint = new javax.swing.JToggleButton();\n jToggleButtonLine = new javax.swing.JToggleButton();\n jToggleButtonRectangle = new javax.swing.JToggleButton();\n jToggleButtonRoundRectangle = new javax.swing.JToggleButton();\n jToggleButtonArc = new javax.swing.JButton();\n jToggleButtonCurve = new javax.swing.JToggleButton();\n jToggleButtonPolyline = new javax.swing.JToggleButton();\n jToggleButtonPolygon = new javax.swing.JToggleButton();\n jToggleButtonEllipse = new javax.swing.JToggleButton();\n jToggleButtonMove = new javax.swing.JToggleButton();\n jToggleButtonText = new javax.swing.JToggleButton();\n jSeparator10 = new javax.swing.JToolBar.Separator();\n jButtonFont = new javax.swing.JButton();\n jSeparator4 = new javax.swing.JToolBar.Separator();\n jButtonColorChooserFront = new UI.ColorChooserButton(Color.BLACK);\n jButtonColorChooserBack = new UI.ColorChooserButton(Color.WHITE);\n jSeparator5 = new javax.swing.JToolBar.Separator();\n jPanelStroke = new UI.StrokeChooserComboBox();\n jSpinnerStroke = new javax.swing.JSpinner();\n jSeparator8 = new javax.swing.JToolBar.Separator();\n jToggleButtonNoFill = new javax.swing.JToggleButton();\n jToggleButtonSolidFill = new javax.swing.JToggleButton();\n jToggleButtonHorizontalFill = new javax.swing.JToggleButton();\n jToggleButtonVerticalFill = new javax.swing.JToggleButton();\n jToggleButtonRadialFill = new javax.swing.JToggleButton();\n jToggleButtonDiagonal1Fill = new javax.swing.JToggleButton();\n jToggleButtonDiagonal2Fill = new javax.swing.JToggleButton();\n jSeparator9 = new javax.swing.JToolBar.Separator();\n jToggleButtonAntialiasing = new javax.swing.JToggleButton();\n jSliderAlpha = new javax.swing.JSlider();\n jSeparator6 = new javax.swing.JToolBar.Separator();\n jToggleButtonRecord = new javax.swing.JToggleButton();\n jLabelRecordTime = new javax.swing.JLabel();\n jSeparator7 = new javax.swing.JToolBar.Separator();\n jButtonWebCam = new javax.swing.JButton();\n jButtonSnapShot = new javax.swing.JButton();\n jPanelCenter = new javax.swing.JPanel();\n jSplitPane1 = new javax.swing.JSplitPane();\n desktop = new javax.swing.JDesktopPane();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jListShapes = new javax.swing.JList<String>();\n jPanel2 = new javax.swing.JPanel();\n jButtonMoveUp = new javax.swing.JButton();\n jButtonMoveDown = new javax.swing.JButton();\n jToolBarImage = new javax.swing.JToolBar();\n jPanelImageBrightness = new javax.swing.JPanel();\n jSliderBrightness = new javax.swing.JSlider();\n jPanelImageFilter = new javax.swing.JPanel();\n jComboBoxFilter = new javax.swing.JComboBox<String>();\n jPanelImageContrast = new javax.swing.JPanel();\n jButtonConstrast = new javax.swing.JButton();\n jButtonConstrastBright = new javax.swing.JButton();\n jButtonContrastDark = new javax.swing.JButton();\n jPanelImageOperations = new javax.swing.JPanel();\n jButtonSinus = new javax.swing.JButton();\n jButtonSepia = new javax.swing.JButton();\n jButtonSobel = new javax.swing.JButton();\n jButtonTinted = new javax.swing.JButton();\n jButtonNegative = new javax.swing.JButton();\n jButtonGrayScale = new javax.swing.JButton();\n jButtonRandomBlack = new javax.swing.JButton();\n jPanelImageBinary = new javax.swing.JPanel();\n jButtonBinaryAdd = new javax.swing.JButton();\n jButtonBinarySubstract = new javax.swing.JButton();\n jButtonBinaryProduct = new javax.swing.JButton();\n jSliderBinaryOperations = new javax.swing.JSlider();\n jPanelUmbralization = new javax.swing.JPanel();\n jSliderUmbralization = new javax.swing.JSlider();\n jPanelStatusBar = new javax.swing.JPanel();\n jToolBarImageRotation = new javax.swing.JToolBar();\n jPanelImageRotate = new javax.swing.JPanel();\n jSliderRotate = new javax.swing.JSlider();\n jButtonRotate90 = new javax.swing.JButton();\n jButton180 = new javax.swing.JButton();\n jButtonRotate270 = new javax.swing.JButton();\n jPanelZoom = new javax.swing.JPanel();\n jButtonZoomMinus = new javax.swing.JButton();\n jButtonZoomPlus = new javax.swing.JButton();\n jStatusBarTool = new javax.swing.JLabel();\n jPanelCursorAndColor = new javax.swing.JPanel();\n jStatusBarCursor = new javax.swing.JLabel();\n jStatusBarColor = new javax.swing.JLabel();\n jMenuBar = new javax.swing.JMenuBar();\n jMenuFile = new javax.swing.JMenu();\n jMenuItemNew = new javax.swing.JMenuItem();\n jMenuOpen = new javax.swing.JMenuItem();\n jMenuSave = new javax.swing.JMenuItem();\n jSeparator1 = new javax.swing.JPopupMenu.Separator();\n jMenuItemExit = new javax.swing.JMenuItem();\n jMenuEdit = new javax.swing.JMenu();\n jMenuItemCut = new javax.swing.JMenuItem();\n jMenuItemCopy = new javax.swing.JMenuItem();\n jMenuItemPaste = new javax.swing.JMenuItem();\n jMenuView = new javax.swing.JMenu();\n jCheckBoxMenuItemToolBar = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemToolBarImageOperations = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemToolBarImageRotation = new javax.swing.JCheckBoxMenuItem();\n jCheckBoxMenuItemStatusBar = new javax.swing.JCheckBoxMenuItem();\n jMenuImage = new javax.swing.JMenu();\n jMenuItemChangeSize = new javax.swing.JMenuItem();\n jMenuItemDuplicateImage = new javax.swing.JMenuItem();\n jMenuItemHistogram = new javax.swing.JMenuItem();\n jMenuHelp = new javax.swing.JMenu();\n jMenuItemHelpAbout = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setMinimumSize(new java.awt.Dimension(600, 500));\n\n jToolBarTools.setRollover(true);\n\n jButtonNew.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_new.png\"))); // NOI18N\n jButtonNew.setToolTipText(\"Nueva imagen\");\n jButtonNew.setFocusable(false);\n jButtonNew.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonNew.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNewActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonNew);\n\n jButtonOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_open.png\"))); // NOI18N\n jButtonOpen.setToolTipText(\"Abrir\");\n jButtonOpen.setFocusable(false);\n jButtonOpen.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonOpen.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonOpenActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonOpen);\n\n jButtonSave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_save.png\"))); // NOI18N\n jButtonSave.setToolTipText(\"Guardar\");\n jButtonSave.setFocusable(false);\n jButtonSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSaveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonSave);\n\n jButtonDuplicate.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_duplicate.png\"))); // NOI18N\n jButtonDuplicate.setToolTipText(\"Duplicar\");\n jButtonDuplicate.setFocusable(false);\n jButtonDuplicate.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonDuplicate.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonDuplicate.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonDuplicateActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonDuplicate);\n jToolBarTools.add(jSeparator3);\n\n jButtonGroupTools.add(jToggleButtonPoint);\n jToggleButtonPoint.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_pencil.png\"))); // NOI18N\n jToggleButtonPoint.setSelected(true);\n jToggleButtonPoint.setToolTipText(\"Punto\");\n jToggleButtonPoint.setFocusable(false);\n jToggleButtonPoint.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPoint.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPoint.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPointActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPoint);\n\n jButtonGroupTools.add(jToggleButtonLine);\n jToggleButtonLine.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_line.png\"))); // NOI18N\n jToggleButtonLine.setToolTipText(\"Linea\");\n jToggleButtonLine.setFocusable(false);\n jToggleButtonLine.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonLine.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonLine.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonLineActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonLine);\n\n jButtonGroupTools.add(jToggleButtonRectangle);\n jToggleButtonRectangle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rectangle.png\"))); // NOI18N\n jToggleButtonRectangle.setToolTipText(\"Rectangulo\");\n jToggleButtonRectangle.setFocusable(false);\n jToggleButtonRectangle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRectangle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRectangle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRectangleActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRectangle);\n\n jButtonGroupTools.add(jToggleButtonRoundRectangle);\n jToggleButtonRoundRectangle.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_roundrectangle.png\"))); // NOI18N\n jToggleButtonRoundRectangle.setToolTipText(\"Rectangulo redondeado\");\n jToggleButtonRoundRectangle.setFocusable(false);\n jToggleButtonRoundRectangle.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRoundRectangle.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRoundRectangle.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRoundRectangleActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRoundRectangle);\n\n jToggleButtonArc.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_arc.png\"))); // NOI18N\n jToggleButtonArc.setToolTipText(\"Arco\");\n jButtonGroupTools.add(jToggleButtonArc);\n jToggleButtonArc.setFocusable(false);\n jToggleButtonArc.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonArc.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonArc.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonArcActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonArc);\n\n jButtonGroupTools.add(jToggleButtonCurve);\n jToggleButtonCurve.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_curve.png\"))); // NOI18N\n jToggleButtonCurve.setToolTipText(\"Curva\");\n jToggleButtonCurve.setFocusable(false);\n jToggleButtonCurve.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonCurve.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonCurve.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonCurveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonCurve);\n\n jButtonGroupTools.add(jToggleButtonPolyline);\n jToggleButtonPolyline.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_polygon.png\"))); // NOI18N\n jToggleButtonPolyline.setToolTipText(\"Polilínea\");\n jToggleButtonPolyline.setFocusable(false);\n jToggleButtonPolyline.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPolyline.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPolyline.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPolylineActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPolyline);\n\n jButtonGroupTools.add(jToggleButtonPolygon);\n jToggleButtonPolygon.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_polygon.png\"))); // NOI18N\n jToggleButtonPolygon.setToolTipText(\"Poligono\");\n jToggleButtonPolygon.setFocusable(false);\n jToggleButtonPolygon.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonPolygon.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonPolygon.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonPolygonActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonPolygon);\n\n jButtonGroupTools.add(jToggleButtonEllipse);\n jToggleButtonEllipse.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_ellipse.png\"))); // NOI18N\n jToggleButtonEllipse.setToolTipText(\"Elipse\");\n jToggleButtonEllipse.setFocusable(false);\n jToggleButtonEllipse.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonEllipse.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonEllipse.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonEllipseActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonEllipse);\n\n jButtonGroupTools.add(jToggleButtonMove);\n jToggleButtonMove.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_move.png\"))); // NOI18N\n jToggleButtonMove.setToolTipText(\"Mover\");\n jToggleButtonMove.setFocusable(false);\n jToggleButtonMove.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonMove.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonMove.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonMoveActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonMove);\n\n jButtonGroupTools.add(jToggleButtonText);\n jToggleButtonText.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_text.png\"))); // NOI18N\n jToggleButtonText.setToolTipText(\"Texto\");\n jToggleButtonText.setFocusable(false);\n jToggleButtonText.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonText.setPreferredSize(new java.awt.Dimension(24, 24));\n jToggleButtonText.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonText.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonTextActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonText);\n jToolBarTools.add(jSeparator10);\n\n jButtonFont.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_font.png\"))); // NOI18N\n jButtonFont.setToolTipText(\"Fuente\");\n jButtonFont.setFocusable(false);\n jButtonFont.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonFont.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonFont.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonFont.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonFontActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonFont);\n jToolBarTools.add(jSeparator4);\n\n jButtonColorChooserFront.setToolTipText(\"Color de borde\");\n jButtonColorChooserFront.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonColorChooserFront.setBorderPainted(false);\n jButtonColorChooserFront.setFocusable(false);\n jButtonColorChooserFront.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonColorChooserFront.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBarTools.add(jButtonColorChooserFront);\n\n jButtonColorChooserBack.setForeground(new java.awt.Color(255, 255, 255));\n jButtonColorChooserBack.setToolTipText(\"Color de fondo\");\n jButtonColorChooserBack.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jButtonColorChooserBack.setBorderPainted(false);\n jButtonColorChooserBack.setFocusable(false);\n jButtonColorChooserBack.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonColorChooserBack.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBarTools.add(jButtonColorChooserBack);\n jToolBarTools.add(jSeparator5);\n jToolBarTools.add(jPanelStroke);\n\n jSpinnerStroke.setModel(new javax.swing.SpinnerNumberModel(1, 1, 20, 1));\n jSpinnerStroke.setToolTipText(\"Grosor de linea\");\n jSpinnerStroke.setEditor(new javax.swing.JSpinner.NumberEditor(jSpinnerStroke, \"\"));\n jSpinnerStroke.setFocusable(false);\n jSpinnerStroke.setValue(1);\n jSpinnerStroke.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSpinnerStrokeStateChanged(evt);\n }\n });\n jToolBarTools.add(jSpinnerStroke);\n jToolBarTools.add(jSeparator8);\n\n jButtonGroupFill.add(jToggleButtonNoFill);\n jToggleButtonNoFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fillno.png\"))); // NOI18N\n jToggleButtonNoFill.setSelected(true);\n jToggleButtonNoFill.setToolTipText(\"Sin relleno\");\n jToggleButtonNoFill.setFocusable(false);\n jToggleButtonNoFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonNoFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonNoFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonNoFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonNoFill);\n\n jButtonGroupFill.add(jToggleButtonSolidFill);\n jToggleButtonSolidFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill.png\"))); // NOI18N\n jToggleButtonSolidFill.setToolTipText(\"Relleno sólido\");\n jToggleButtonSolidFill.setFocusable(false);\n jToggleButtonSolidFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonSolidFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonSolidFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonSolidFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonSolidFill);\n\n jButtonGroupFill.add(jToggleButtonHorizontalFill);\n jToggleButtonHorizontalFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill_horizontal.png\"))); // NOI18N\n jToggleButtonHorizontalFill.setToolTipText(\"Degradado horizontal\");\n jToggleButtonHorizontalFill.setFocusable(false);\n jToggleButtonHorizontalFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonHorizontalFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonHorizontalFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonHorizontalFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonHorizontalFill);\n\n jButtonGroupFill.add(jToggleButtonVerticalFill);\n jToggleButtonVerticalFill.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_fill_vertical.png\"))); // NOI18N\n jToggleButtonVerticalFill.setToolTipText(\"Degradado horizontal\");\n jToggleButtonVerticalFill.setFocusable(false);\n jToggleButtonVerticalFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonVerticalFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonVerticalFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonVerticalFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonVerticalFill);\n\n jButtonGroupFill.add(jToggleButtonRadialFill);\n jToggleButtonRadialFill.setText(\"R\");\n jToggleButtonRadialFill.setToolTipText(\"Degradado Radial\");\n jToggleButtonRadialFill.setFocusable(false);\n jToggleButtonRadialFill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRadialFill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRadialFill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRadialFillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRadialFill);\n\n jButtonGroupFill.add(jToggleButtonDiagonal1Fill);\n jToggleButtonDiagonal1Fill.setText(\"D1\");\n jToggleButtonDiagonal1Fill.setFocusable(false);\n jToggleButtonDiagonal1Fill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonDiagonal1Fill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonDiagonal1Fill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonDiagonal1FillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonDiagonal1Fill);\n\n jButtonGroupFill.add(jToggleButtonDiagonal2Fill);\n jToggleButtonDiagonal2Fill.setText(\"D2\");\n jToggleButtonDiagonal2Fill.setFocusable(false);\n jToggleButtonDiagonal2Fill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonDiagonal2Fill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonDiagonal2Fill.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonDiagonal2FillActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonDiagonal2Fill);\n jToolBarTools.add(jSeparator9);\n\n jToggleButtonAntialiasing.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_antialiasing.png\"))); // NOI18N\n jToggleButtonAntialiasing.setToolTipText(\"Suavizado\");\n jToggleButtonAntialiasing.setFocusable(false);\n jToggleButtonAntialiasing.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonAntialiasing.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonAntialiasing.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonAntialiasingActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonAntialiasing);\n\n jSliderAlpha.setPaintTicks(true);\n jSliderAlpha.setToolTipText(\"Transparencia\");\n jSliderAlpha.setValue(100);\n jSliderAlpha.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderAlphaStateChanged(evt);\n }\n });\n jToolBarTools.add(jSliderAlpha);\n jToolBarTools.add(jSeparator6);\n\n jToggleButtonRecord.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_record.png\"))); // NOI18N\n jToggleButtonRecord.setToolTipText(\"Grabar\");\n jToggleButtonRecord.setFocusable(false);\n jToggleButtonRecord.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButtonRecord.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToggleButtonRecord.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jToggleButtonRecordActionPerformed(evt);\n }\n });\n jToolBarTools.add(jToggleButtonRecord);\n\n jLabelRecordTime.setText(\"00:00\");\n jToolBarTools.add(jLabelRecordTime);\n jToolBarTools.add(jSeparator7);\n\n jButtonWebCam.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_webcam.png\"))); // NOI18N\n jButtonWebCam.setToolTipText(\"Abrir webcam\");\n jButtonWebCam.setFocusable(false);\n jButtonWebCam.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonWebCam.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonWebCam.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonWebCamActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonWebCam);\n\n jButtonSnapShot.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_snapshot.png\"))); // NOI18N\n jButtonSnapShot.setToolTipText(\"Tomar captura\");\n jButtonSnapShot.setFocusable(false);\n jButtonSnapShot.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonSnapShot.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonSnapShot.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSnapShotActionPerformed(evt);\n }\n });\n jToolBarTools.add(jButtonSnapShot);\n\n getContentPane().add(jToolBarTools, java.awt.BorderLayout.PAGE_START);\n\n jPanelCenter.setLayout(new java.awt.BorderLayout());\n\n desktop.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {\n public void mouseMoved(java.awt.event.MouseEvent evt) {\n desktopMouseMoved(evt);\n }\n });\n desktop.addVetoableChangeListener(new java.beans.VetoableChangeListener() {\n public void vetoableChange(java.beans.PropertyChangeEvent evt)throws java.beans.PropertyVetoException {\n desktopVetoableChange(evt);\n }\n });\n\n javax.swing.GroupLayout desktopLayout = new javax.swing.GroupLayout(desktop);\n desktop.setLayout(desktopLayout);\n desktopLayout.setHorizontalGroup(\n desktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n desktopLayout.setVerticalGroup(\n desktopLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 0, Short.MAX_VALUE)\n );\n\n jSplitPane1.setLeftComponent(desktop);\n\n jPanel1.setLayout(new java.awt.BorderLayout());\n\n jListShapes.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);\n jListShapes.setEnabled(false);\n jListShapes.addListSelectionListener(new javax.swing.event.ListSelectionListener() {\n public void valueChanged(javax.swing.event.ListSelectionEvent evt) {\n jListShapesValueChanged(evt);\n }\n });\n jScrollPane2.setViewportView(jListShapes);\n\n jPanel1.add(jScrollPane2, java.awt.BorderLayout.CENTER);\n\n jPanel2.setLayout(new java.awt.GridLayout(1, 0));\n\n jButtonMoveUp.setText(\"Hacia delante\");\n jButtonMoveUp.setToolTipText(\"Mover Arriba\");\n jButtonMoveUp.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMoveUpActionPerformed(evt);\n }\n });\n jPanel2.add(jButtonMoveUp);\n\n jButtonMoveDown.setText(\"Hacia el fondo\");\n jButtonMoveDown.setToolTipText(\"Mover Abajo\");\n jButtonMoveDown.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonMoveDownActionPerformed(evt);\n }\n });\n jPanel2.add(jButtonMoveDown);\n\n jPanel1.add(jPanel2, java.awt.BorderLayout.PAGE_START);\n\n jSplitPane1.setRightComponent(jPanel1);\n\n jPanelCenter.add(jSplitPane1, java.awt.BorderLayout.CENTER);\n\n jToolBarImage.setRollover(true);\n jToolBarImage.setMinimumSize(new java.awt.Dimension(544, 90));\n jToolBarImage.setPreferredSize(new java.awt.Dimension(722, 80));\n\n jPanelImageBrightness.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Brillo\"));\n jPanelImageBrightness.setDoubleBuffered(false);\n jPanelImageBrightness.setEnabled(false);\n jPanelImageBrightness.setLayout(new java.awt.GridLayout(1, 0));\n\n jSliderBrightness.setMaximum(255);\n jSliderBrightness.setMinimum(-255);\n jSliderBrightness.setValue(0);\n jSliderBrightness.setPreferredSize(new java.awt.Dimension(70, 29));\n jSliderBrightness.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderBrightnessStateChanged(evt);\n }\n });\n jSliderBrightness.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderBrightnessFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jSliderBrightnessFocusLost(evt);\n }\n });\n jPanelImageBrightness.add(jSliderBrightness);\n\n jToolBarImage.add(jPanelImageBrightness);\n\n jPanelImageFilter.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Filtro\"));\n jPanelImageFilter.setDoubleBuffered(false);\n jPanelImageFilter.setEnabled(false);\n jPanelImageFilter.setMinimumSize(new java.awt.Dimension(108, 70));\n jPanelImageFilter.setLayout(new java.awt.GridLayout(1, 0));\n\n jComboBoxFilter.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"--seleccione filtro--\", \"Emborronamiento media\", \"Emborronamiento binomial\", \"Enfoque\", \"Relieve\", \"Detector de fronteras laplaciano\" }));\n jComboBoxFilter.addItemListener(new java.awt.event.ItemListener() {\n public void itemStateChanged(java.awt.event.ItemEvent evt) {\n jComboBoxFilterItemStateChanged(evt);\n }\n });\n jComboBoxFilter.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jComboBoxFilterFocusGained(evt);\n }\n });\n jComboBoxFilter.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jComboBoxFilterActionPerformed(evt);\n }\n });\n jPanelImageFilter.add(jComboBoxFilter);\n\n jToolBarImage.add(jPanelImageFilter);\n\n jPanelImageContrast.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Constraste\"));\n jPanelImageContrast.setDoubleBuffered(false);\n jPanelImageContrast.setEnabled(false);\n jPanelImageContrast.setMinimumSize(new java.awt.Dimension(96, 70));\n jPanelImageContrast.setLayout(new java.awt.GridLayout(1, 3));\n\n jButtonConstrast.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_contrast.png\"))); // NOI18N\n jButtonConstrast.setToolTipText(\"Constraste\");\n jButtonConstrast.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConstrastActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonConstrast);\n\n jButtonConstrastBright.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_bright.png\"))); // NOI18N\n jButtonConstrastBright.setToolTipText(\"Brillante\");\n jButtonConstrastBright.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonConstrastBrightActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonConstrastBright);\n\n jButtonContrastDark.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_dark.png\"))); // NOI18N\n jButtonContrastDark.setToolTipText(\"Oscuro\");\n jButtonContrastDark.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonContrastDarkActionPerformed(evt);\n }\n });\n jPanelImageContrast.add(jButtonContrastDark);\n\n jToolBarImage.add(jPanelImageContrast);\n\n jPanelImageOperations.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Operaciones\"));\n jPanelImageOperations.setDoubleBuffered(false);\n jPanelImageOperations.setEnabled(false);\n jPanelImageOperations.setPreferredSize(new java.awt.Dimension(158, 64));\n jPanelImageOperations.setLayout(new java.awt.GridLayout(1, 3));\n\n jButtonSinus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sinusoidal.png\"))); // NOI18N\n jButtonSinus.setToolTipText(\"Seno\");\n jButtonSinus.setAlignmentX(10.0F);\n jButtonSinus.setAlignmentY(0.0F);\n jButtonSinus.setBorderPainted(false);\n jButtonSinus.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSinus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSinusActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSinus);\n\n jButtonSepia.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sepia_1.png\"))); // NOI18N\n jButtonSepia.setToolTipText(\"Sepia\");\n jButtonSepia.setAlignmentY(0.0F);\n jButtonSepia.setBorderPainted(false);\n jButtonSepia.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSepia.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSepiaActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSepia);\n\n jButtonSobel.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_gradient.png\"))); // NOI18N\n jButtonSobel.setToolTipText(\"Gradiente Sobel\");\n jButtonSobel.setAlignmentY(0.0F);\n jButtonSobel.setBorderPainted(false);\n jButtonSobel.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonSobel.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonSobelActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonSobel);\n\n jButtonTinted.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_tinted.png\"))); // NOI18N\n jButtonTinted.setToolTipText(\"Tintado\");\n jButtonTinted.setAlignmentY(0.0F);\n jButtonTinted.setBorderPainted(false);\n jButtonTinted.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonTinted.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonTintedActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonTinted);\n\n jButtonNegative.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_negative.png\"))); // NOI18N\n jButtonNegative.setToolTipText(\"Negativo\");\n jButtonNegative.setAlignmentY(0.0F);\n jButtonNegative.setBorderPainted(false);\n jButtonNegative.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonNegative.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonNegativeActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonNegative);\n\n jButtonGrayScale.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_gray.png\"))); // NOI18N\n jButtonGrayScale.setToolTipText(\"Escala de grises\");\n jButtonGrayScale.setAlignmentY(0.0F);\n jButtonGrayScale.setBorderPainted(false);\n jButtonGrayScale.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonGrayScale.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonGrayScaleActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonGrayScale);\n\n jButtonRandomBlack.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_sepia.png\"))); // NOI18N\n jButtonRandomBlack.setToolTipText(\"Propia\");\n jButtonRandomBlack.setAlignmentY(0.0F);\n jButtonRandomBlack.setBorderPainted(false);\n jButtonRandomBlack.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonRandomBlack.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRandomBlackActionPerformed(evt);\n }\n });\n jPanelImageOperations.add(jButtonRandomBlack);\n\n jToolBarImage.add(jPanelImageOperations);\n\n jPanelImageBinary.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Binarias\"));\n jPanelImageBinary.setDoubleBuffered(false);\n jPanelImageBinary.setEnabled(false);\n java.awt.GridBagLayout jPanelImageBinaryLayout = new java.awt.GridBagLayout();\n jPanelImageBinaryLayout.columnWidths = new int[] {10, 10, 10};\n jPanelImageBinaryLayout.rowHeights = new int[] {1};\n jPanelImageBinary.setLayout(jPanelImageBinaryLayout);\n\n jButtonBinaryAdd.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_add.png\"))); // NOI18N\n jButtonBinaryAdd.setToolTipText(\"suma binaria\");\n jButtonBinaryAdd.setMaximumSize(new java.awt.Dimension(20, 28));\n jButtonBinaryAdd.setMinimumSize(new java.awt.Dimension(24, 24));\n jButtonBinaryAdd.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinaryAdd.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinaryAddActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinaryAdd, new java.awt.GridBagConstraints());\n\n jButtonBinarySubstract.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_substract.png\"))); // NOI18N\n jButtonBinarySubstract.setToolTipText(\"resta binaria\");\n jButtonBinarySubstract.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinarySubstract.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinarySubstractActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinarySubstract, new java.awt.GridBagConstraints());\n\n jButtonBinaryProduct.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_product.png\"))); // NOI18N\n jButtonBinaryProduct.setToolTipText(\"multiplicacion binaria\");\n jButtonBinaryProduct.setMargin(new java.awt.Insets(0, 0, 0, 0));\n jButtonBinaryProduct.setMaximumSize(new java.awt.Dimension(20, 28));\n jButtonBinaryProduct.setMinimumSize(new java.awt.Dimension(24, 24));\n jButtonBinaryProduct.setPreferredSize(new java.awt.Dimension(24, 24));\n jButtonBinaryProduct.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonBinaryProductActionPerformed(evt);\n }\n });\n jPanelImageBinary.add(jButtonBinaryProduct, new java.awt.GridBagConstraints());\n\n jSliderBinaryOperations.setPreferredSize(new java.awt.Dimension(150, 29));\n jSliderBinaryOperations.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderBinaryOperationsStateChanged(evt);\n }\n });\n jSliderBinaryOperations.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderBinaryOperationsFocusGained(evt);\n }\n });\n jSliderBinaryOperations.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseExited(java.awt.event.MouseEvent evt) {\n jSliderBinaryOperationsMouseExited(evt);\n }\n });\n jPanelImageBinary.add(jSliderBinaryOperations, new java.awt.GridBagConstraints());\n\n jToolBarImage.add(jPanelImageBinary);\n\n jPanelUmbralization.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Umbralizacion\"));\n jPanelUmbralization.setDoubleBuffered(false);\n jPanelUmbralization.setEnabled(false);\n jPanelUmbralization.setLayout(new java.awt.GridLayout(1, 0));\n\n jSliderUmbralization.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderUmbralizationStateChanged(evt);\n }\n });\n jSliderUmbralization.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderUmbralizationFocusGained(evt);\n }\n public void focusLost(java.awt.event.FocusEvent evt) {\n jSliderUmbralizationFocusLost(evt);\n }\n });\n jPanelUmbralization.add(jSliderUmbralization);\n\n jToolBarImage.add(jPanelUmbralization);\n\n jPanelCenter.add(jToolBarImage, java.awt.BorderLayout.PAGE_END);\n\n getContentPane().add(jPanelCenter, java.awt.BorderLayout.CENTER);\n\n jPanelStatusBar.setLayout(new java.awt.BorderLayout());\n\n jToolBarImageRotation.setRollover(true);\n\n jPanelImageRotate.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Rotación\"));\n jPanelImageRotate.setPreferredSize(new java.awt.Dimension(300, 62));\n jPanelImageRotate.setLayout(new java.awt.GridLayout(1, 4));\n\n jSliderRotate.setMaximum(360);\n jSliderRotate.setMinorTickSpacing(90);\n jSliderRotate.setPaintTicks(true);\n jSliderRotate.setValue(0);\n jSliderRotate.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jSliderRotateStateChanged(evt);\n }\n });\n jSliderRotate.addFocusListener(new java.awt.event.FocusAdapter() {\n public void focusGained(java.awt.event.FocusEvent evt) {\n jSliderRotateFocusGained(evt);\n }\n });\n jPanelImageRotate.add(jSliderRotate);\n\n jButtonRotate90.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_90.png\"))); // NOI18N\n jButtonRotate90.setToolTipText(\"90 Grados\");\n jButtonRotate90.setFocusable(false);\n jButtonRotate90.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRotate90.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRotate90.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRotate90ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButtonRotate90);\n\n jButton180.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_180.png\"))); // NOI18N\n jButton180.setToolTipText(\"180 Grados\");\n jButton180.setFocusable(false);\n jButton180.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButton180.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButton180.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton180ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButton180);\n\n jButtonRotate270.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_rotate_270.png\"))); // NOI18N\n jButtonRotate270.setToolTipText(\"270 Grados\");\n jButtonRotate270.setFocusable(false);\n jButtonRotate270.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonRotate270.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonRotate270.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonRotate270ActionPerformed(evt);\n }\n });\n jPanelImageRotate.add(jButtonRotate270);\n\n jToolBarImageRotation.add(jPanelImageRotate);\n\n jPanelZoom.setBorder(javax.swing.BorderFactory.createTitledBorder(\"Escala\"));\n jPanelZoom.setLayout(new java.awt.GridLayout(1, 0));\n\n jButtonZoomMinus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_zoom_minus.png\"))); // NOI18N\n jButtonZoomMinus.setToolTipText(\"Reducir\");\n jButtonZoomMinus.setFocusable(false);\n jButtonZoomMinus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonZoomMinus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonZoomMinus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonZoomMinusActionPerformed(evt);\n }\n });\n jPanelZoom.add(jButtonZoomMinus);\n\n jButtonZoomPlus.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_zoom_plus.png\"))); // NOI18N\n jButtonZoomPlus.setToolTipText(\"Ampliar\");\n jButtonZoomPlus.setFocusable(false);\n jButtonZoomPlus.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jButtonZoomPlus.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jButtonZoomPlus.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButtonZoomPlusActionPerformed(evt);\n }\n });\n jPanelZoom.add(jButtonZoomPlus);\n\n jToolBarImageRotation.add(jPanelZoom);\n\n jPanelStatusBar.add(jToolBarImageRotation, java.awt.BorderLayout.NORTH);\n\n jStatusBarTool.setText(\"Barra Estado\");\n jStatusBarTool.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanelStatusBar.add(jStatusBarTool, java.awt.BorderLayout.WEST);\n\n jPanelCursorAndColor.setLayout(new java.awt.BorderLayout());\n\n jStatusBarCursor.setText(\"(x,y)\");\n jStatusBarCursor.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jPanelCursorAndColor.add(jStatusBarCursor, java.awt.BorderLayout.WEST);\n\n jStatusBarColor.setText(\"RGB\");\n jStatusBarColor.setOpaque(true);\n jPanelCursorAndColor.add(jStatusBarColor, java.awt.BorderLayout.EAST);\n\n jPanelStatusBar.add(jPanelCursorAndColor, java.awt.BorderLayout.EAST);\n\n getContentPane().add(jPanelStatusBar, java.awt.BorderLayout.SOUTH);\n\n jMenuFile.setText(\"Archivo\");\n\n jMenuItemNew.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_N, java.awt.event.InputEvent.META_MASK));\n jMenuItemNew.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_new.png\"))); // NOI18N\n jMenuItemNew.setText(\"Nuevo\");\n jMenuItemNew.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemNewActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuItemNew);\n\n jMenuOpen.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_open.png\"))); // NOI18N\n jMenuOpen.setText(\"Abrir\");\n jMenuOpen.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuOpenActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuOpen);\n\n jMenuSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.META_MASK));\n jMenuSave.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_save.png\"))); // NOI18N\n jMenuSave.setText(\"Guardar\");\n jMenuSave.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuSaveActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuSave);\n jMenuFile.add(jSeparator1);\n\n jMenuItemExit.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_exit.png\"))); // NOI18N\n jMenuItemExit.setText(\"Salir\");\n jMenuItemExit.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemExitActionPerformed(evt);\n }\n });\n jMenuFile.add(jMenuItemExit);\n\n jMenuBar.add(jMenuFile);\n\n jMenuEdit.setText(\"Editar\");\n\n jMenuItemCut.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_X, java.awt.event.InputEvent.META_MASK));\n jMenuItemCut.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_cut.png\"))); // NOI18N\n jMenuItemCut.setText(\"Cortar\");\n jMenuItemCut.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCutActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemCut);\n\n jMenuItemCopy.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_C, java.awt.event.InputEvent.META_MASK));\n jMenuItemCopy.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_copy.png\"))); // NOI18N\n jMenuItemCopy.setText(\"Copiar\");\n jMenuItemCopy.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemCopyActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemCopy);\n\n jMenuItemPaste.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_V, java.awt.event.InputEvent.META_MASK));\n jMenuItemPaste.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_paste.png\"))); // NOI18N\n jMenuItemPaste.setText(\"Pegar\");\n jMenuItemPaste.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemPasteActionPerformed(evt);\n }\n });\n jMenuEdit.add(jMenuItemPaste);\n\n jMenuBar.add(jMenuEdit);\n\n jMenuView.setText(\"Ver\");\n\n jCheckBoxMenuItemToolBar.setSelected(true);\n jCheckBoxMenuItemToolBar.setText(\"Barra de herramientas\");\n jCheckBoxMenuItemToolBar.setToolTipText(\"\");\n jCheckBoxMenuItemToolBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBar);\n\n jCheckBoxMenuItemToolBarImageOperations.setSelected(true);\n jCheckBoxMenuItemToolBarImageOperations.setText(\"Barra de imagen\");\n jCheckBoxMenuItemToolBarImageOperations.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarImageOperationsActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBarImageOperations);\n\n jCheckBoxMenuItemToolBarImageRotation.setSelected(true);\n jCheckBoxMenuItemToolBarImageRotation.setText(\"Barra de rotacion y escalado\");\n jCheckBoxMenuItemToolBarImageRotation.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemToolBarImageRotationActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemToolBarImageRotation);\n\n jCheckBoxMenuItemStatusBar.setSelected(true);\n jCheckBoxMenuItemStatusBar.setText(\"Barra de estado\");\n jCheckBoxMenuItemStatusBar.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jCheckBoxMenuItemStatusBarActionPerformed(evt);\n }\n });\n jMenuView.add(jCheckBoxMenuItemStatusBar);\n\n jMenuBar.add(jMenuView);\n\n jMenuImage.setText(\"Imagen\");\n\n jMenuItemChangeSize.setText(\"Cambiar tamaño\");\n jMenuItemChangeSize.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemChangeSizeActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemChangeSize);\n\n jMenuItemDuplicateImage.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_duplicate.png\"))); // NOI18N\n jMenuItemDuplicateImage.setText(\"Duplicar imagen\");\n jMenuItemDuplicateImage.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemDuplicateImageActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemDuplicateImage);\n\n jMenuItemHistogram.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/sm/images/icon_histogram.png\"))); // NOI18N\n jMenuItemHistogram.setText(\"Histograma\");\n jMenuItemHistogram.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemHistogramActionPerformed(evt);\n }\n });\n jMenuImage.add(jMenuItemHistogram);\n\n jMenuBar.add(jMenuImage);\n\n jMenuHelp.setText(\"Ayuda\");\n\n jMenuItemHelpAbout.setText(\"Acerca de...\");\n jMenuItemHelpAbout.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jMenuItemHelpAboutActionPerformed(evt);\n }\n });\n jMenuHelp.add(jMenuItemHelpAbout);\n\n jMenuBar.add(jMenuHelp);\n\n setJMenuBar(jMenuBar);\n\n pack();\n }", "public ToolBar(final List<AbstractAction> theToolActions) {\n super();\n myToolActions = theToolActions;\n\n setupButtons();\n\n }", "private void setToolBarInfo() {\n mToolbar = (Toolbar)findViewById(R.id.toolbar);\n mToolbar.setTitle(\"Chatアプリ\");\n mToolbar.setTitleTextColor(-1);\n mToolbar.setNavigationIcon(R.drawable.common_google_signin_btn_icon_light);\n //setActionBar(toolbar);\n mToolbar.inflateMenu(R.menu.main_menu);\n mToolbar.setOnMenuItemClickListener(new Toolbar.OnMenuItemClickListener() {\n @Override\n public boolean onMenuItemClick(MenuItem item) {\n // メニューのクリック処理\n switch (item.getItemId()) {\n case R.id.sign_out_menu:\n mFirebaseAuth.signOut();\n Intent intent = new Intent();\n intent.setClassName(D.packageRoot, D.packageRoot + \".MainActivity\");\n startActivity(intent);\n return true;\n }\n return true;\n }\n });\n //setSupportActionBar(toolbar);\n }", "private MenuBar setupMenu () {\n MenuBar mb = new MenuBar ();\n Menu fileMenu = new Menu (\"File\");\n openXn = makeMenuItem (\"Open Connection\", OPEN_CONNECTION);\n closeXn = makeMenuItem (\"Close Connection\", CLOSE_CONNECTION);\n closeXn.setEnabled (false);\n MenuItem exit = makeMenuItem (\"Exit\", EXIT_APPLICATION);\n fileMenu.add (openXn);\n fileMenu.add (closeXn);\n fileMenu.addSeparator ();\n fileMenu.add (exit);\n\n Menu twMenu = new Menu (\"Tw\");\n getWksp = makeMenuItem (\"Get Workspace\", GET_WORKSPACE);\n getWksp.setEnabled (false);\n twMenu.add (getWksp);\n\n mb.add (fileMenu);\n mb.add (twMenu);\n return mb;\n }", "protected void createContents() {\n setText(BUNDLE.getString(\"TranslationManagerShell.Application.Name\"));\n setSize(599, 505);\n\n final Composite cmpMain = new Composite(this, SWT.NONE);\n cmpMain.setLayout(new FormLayout());\n\n final Composite cmpControls = new Composite(cmpMain, SWT.NONE);\n final FormData fd_cmpControls = new FormData();\n fd_cmpControls.right = new FormAttachment(100, -5);\n fd_cmpControls.top = new FormAttachment(0, 5);\n fd_cmpControls.left = new FormAttachment(0, 5);\n cmpControls.setLayoutData(fd_cmpControls);\n cmpControls.setLayout(new FormLayout());\n\n final ToolBar modifyToolBar = new ToolBar(cmpControls, SWT.FLAT);\n\n tiSave = new ToolItem(modifyToolBar, SWT.PUSH);\n tiSave.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Save\"));\n tiSave.setEnabled(false);\n tiSave.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_save.gif\"));\n tiSave.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_save.gif\"));\n\n tiUndo = new ToolItem(modifyToolBar, SWT.PUSH);\n tiUndo.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Undo\"));\n tiUndo.setEnabled(false);\n tiUndo.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_reset.gif\"));\n tiUndo.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_reset.gif\"));\n\n tiDeleteSelected = new ToolItem(modifyToolBar, SWT.PUSH);\n tiDeleteSelected.setDisabledImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/d_remove.gif\"));\n tiDeleteSelected.setEnabled(false);\n tiDeleteSelected.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Delete\"));\n tiDeleteSelected.setImage(SWTResourceManager.getImage(TranslationManagerShell.class,\n \"/images/tools16x16/e_remove.gif\"));\n\n txtFilter = new LVSText(cmpControls, SWT.BORDER);\n final FormData fd_txtFilter = new FormData();\n fd_txtFilter.right = new FormAttachment(25, 0);\n fd_txtFilter.top = new FormAttachment(modifyToolBar, 0, SWT.CENTER);\n fd_txtFilter.left = new FormAttachment(modifyToolBar, 25, SWT.RIGHT);\n txtFilter.setLayoutData(fd_txtFilter);\n\n final ToolBar filterToolBar = new ToolBar(cmpControls, SWT.FLAT);\n final FormData fd_filterToolBar = new FormData();\n fd_filterToolBar.top = new FormAttachment(modifyToolBar, 0, SWT.TOP);\n fd_filterToolBar.left = new FormAttachment(txtFilter, 5, SWT.RIGHT);\n filterToolBar.setLayoutData(fd_filterToolBar);\n\n tiFilter = new ToolItem(filterToolBar, SWT.NONE);\n tiFilter.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_find.gif\"));\n tiFilter.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Filter\"));\n\n tiLocale = new ToolItem(filterToolBar, SWT.DROP_DOWN);\n tiLocale.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Locale\"));\n tiLocale.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_globe.png\"));\n\n menuLocale = new Menu(filterToolBar);\n addDropDown(tiLocale, menuLocale);\n\n lblSearchResults = new Label(cmpControls, SWT.NONE);\n lblSearchResults.setVisible(false);\n final FormData fd_lblSearchResults = new FormData();\n fd_lblSearchResults.top = new FormAttachment(filterToolBar, 0, SWT.CENTER);\n fd_lblSearchResults.left = new FormAttachment(filterToolBar, 5, SWT.RIGHT);\n lblSearchResults.setLayoutData(fd_lblSearchResults);\n lblSearchResults.setText(BUNDLE.getString(\"TranslationManagerShell.Label.Results\"));\n\n final ToolBar translateToolBar = new ToolBar(cmpControls, SWT.NONE);\n final FormData fd_translateToolBar = new FormData();\n fd_translateToolBar.top = new FormAttachment(filterToolBar, 0, SWT.TOP);\n fd_translateToolBar.right = new FormAttachment(100, 0);\n translateToolBar.setLayoutData(fd_translateToolBar);\n\n tiDebug = new ToolItem(translateToolBar, SWT.PUSH);\n tiDebug.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Debug\"));\n tiDebug.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/debug.png\"));\n\n new ToolItem(translateToolBar, SWT.SEPARATOR);\n\n tiAddBase = new ToolItem(translateToolBar, SWT.PUSH);\n tiAddBase.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.AddBase\"));\n tiAddBase.setImage(SWTResourceManager.getImage(TranslationManagerShell.class, \"/images/tools16x16/e_add.gif\"));\n\n tiTranslate = new ToolItem(translateToolBar, SWT.CHECK);\n tiTranslate.setToolTipText(BUNDLE.getString(\"TranslationManagerShell.ToolTip.Translate\"));\n tiTranslate.setImage(SWTResourceManager\n .getImage(TranslationManagerShell.class, \"/images/tools16x16/target.png\"));\n\n cmpTable = new Composite(cmpMain, SWT.NONE);\n cmpTable.setLayout(new FillLayout());\n final FormData fd_cmpTable = new FormData();\n fd_cmpTable.bottom = new FormAttachment(100, -5);\n fd_cmpTable.right = new FormAttachment(cmpControls, 0, SWT.RIGHT);\n fd_cmpTable.left = new FormAttachment(cmpControls, 0, SWT.LEFT);\n fd_cmpTable.top = new FormAttachment(cmpControls, 5, SWT.BOTTOM);\n cmpTable.setLayoutData(fd_cmpTable);\n\n final Menu menu = new Menu(this, SWT.BAR);\n setMenuBar(menu);\n\n final MenuItem menuItemFile = new MenuItem(menu, SWT.CASCADE);\n menuItemFile.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File\"));\n\n final Menu menuFile = new Menu(menuItemFile);\n menuItemFile.setMenu(menuFile);\n\n menuItemExit = new MenuItem(menuFile, SWT.NONE);\n menuItemExit.setAccelerator(SWT.ALT | SWT.F4);\n menuItemExit.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.File.Exit\"));\n\n final MenuItem menuItemHelp = new MenuItem(menu, SWT.CASCADE);\n menuItemHelp.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help\"));\n\n final Menu menuHelp = new Menu(menuItemHelp);\n menuItemHelp.setMenu(menuHelp);\n\n menuItemDebug = new MenuItem(menuHelp, SWT.NONE);\n menuItemDebug.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.Debug\"));\n\n new MenuItem(menuHelp, SWT.SEPARATOR);\n\n menuItemAbout = new MenuItem(menuHelp, SWT.NONE);\n menuItemAbout.setText(BUNDLE.getString(\"TranslationManagerShell.Menu.Help.About\"));\n //\n }", "public void initToolbar() {\r\n\r\n ((HomeActivity) getActivity()).setUpToolbar(getString(R.string.help), false, true, false,false);\r\n\r\n\r\n }", "public DebugToolbar() {\r\n\t\t// Swing setup\r\n\t\tthis.setLayout(new FlowLayout(FlowLayout.LEFT, 0, 0));\r\n\t\tsetBorder(FlowClient.EMPTY_BORDER);\r\n\r\n\t\t// Adds the buttons\r\n\t\taddSeparator();\r\n\t\tadd(new StartDebuggingButton());\r\n\t\tadd(new StepInButton());\r\n\t\tadd(new StepOverButton());\r\n\t\tadd(new StepOutButton());\r\n\r\n\t\tsetFloatable(false);\r\n\t\tsetRollover(true);\r\n\t}", "private void setupToolbar(){\n setSupportActionBar(toolbar);\n if(getSupportActionBar() != null){\n getSupportActionBar().setTitle(R.string.card_details_toolbar_title);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }\n }", "private void setupToolbar(boolean bringUpSearch, boolean bringUpNav, boolean bringUpBookmarks) {\n \t\t\n \t\t//toolbar openers\n \t\tButton openSearch = (Button) findViewById(R.id.open_search);\n \t\tButton openNav = (Button) findViewById(R.id.open_nav);\n \t\tButton openBookmarks = (Button) findViewById(R.id.open_bookmarks);\n \t\t\n \t\t//toolbar hider\n \t\tButton hide = (Button) findViewById(R.id.hide);\n \t\t\n \t\t//searh toolbar\n \t\tButton prevWord = (Button) findViewById(R.id.prev_word);\n \t\tButton nextWord = (Button) findViewById(R.id.next_word);\n \t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\n \t\t\n \t\t//integrate navigation and bookmarks\n \t\tButton upGuide = (Button) findViewById(R.id.up_guide);\n \t\tButton downGuide = (Button) findViewById(R.id.down_guide);\n \t\t\n \t\tTextView numMarks = (TextView) findViewById(R.id.num_of_marks);\n \t\tButton prevMark = (Button) findViewById(R.id.prev_mark);\n \t\tButton makeMark = (Button) findViewById(R.id.make_mark);\n \t\tButton nextMark = (Button) findViewById(R.id.next_mark);\n \t\t\n \t\t\n \t\t\n \t\t//If first time this is called, initiate setup\n \t\tif(isFirstTime)\n \t\t{\n \t\t\t//open search button\n \t\t\topenSearch.setText(\"Search\");\n \t\t\topenSearch.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(true, false, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//open navigation button\n \t\t\t//TODO: setup navigation functionality (divide the guide into ten parts and go up and down the guide ten percent)\n \t\t\topenNav.setText(\"Navigate\");\n \t\t\topenNav.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(false, true, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//open bookmarks button\n \t\t\t//TODO: setup bookmarks functionality (save the scroll location of a desired bookmark to local memory)\n \t\t\topenBookmarks.setText(\"Bookmarks\");\n \t\t\topenBookmarks.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\tsetupToolbar(false, false, true);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//hide bar button\n \t\t\thide.setText(\"Hide\");\n \t\t\thide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\tsetupToolbar(false, false, false);\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The previous button\n \t\t\tprevWord.setText(\"<\");\n \t\t\tprevWord.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t\t//Find the searchBar again\n \t\t\t\t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\t\t\tif(searchBar.getText().equals(\"\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchBar.setText(\"Please enter nonempty query\");\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchGuide(searchBar, false);\n \t\t\t\t\t}\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The forward button\n \t\t\tnextWord.setText(\">\");\n \t\t\tnextWord.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t\t//Find the searchBar again\n \t\t\t\t\tEditText searchBar = (EditText) findViewById(R.id.search_bar);\n \t\t\t\t\tif(searchBar.getText().equals(\"\"))\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchBar.setText(\"Please enter nonempty query\");\n \t\t\t\t\t}\n \t\t\t\t\telse\n \t\t\t\t\t{\n \t\t\t\t\t\tsearchGuide(searchBar, true);\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\t//The up page button\n \t\t\tupGuide.setText(\"Up ^\");\n \t\t\tupGuide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//The down page button\n \t\t\tdownGuide.setText(\"Down v\");\n \t\t\tdownGuide.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\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\t\n \t\t\t//The number of bookmarks page button\n \t\t\tnumMarks.setText(\"Number\");\n \t\t\tnumMarks.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\t//Go back a bookmark button\n \t\t\tprevMark.setText(\"<\");\n \t\t\tprevMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\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\t//set current scrollview scrollTo to this bookmark\n\t\t\tmakeMark.setText(\"Bookmark location\");\n \t\t\tmakeMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t//Go to next boormark button\n \t\t\tnextMark.setText(\"next >\");\n \t\t\tnextMark.setOnClickListener(new View.OnClickListener() {\n \t\t\t\t\n \t\t\t\t@Override\n \t\t\t\tpublic void onClick(View v) {\n \t\t\t\t\t//TODO: set up searching\n \t\t\t\t\t\n \t\t\t\t}\n \t\t\t});\n \t\t\t\n \t\t\tisFirstTime = false;\n \t\t}\n \t\t\n \t\t\n \t\tif(bringUpSearch)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//Bring up the search toolbar\n \t\t\tprevWord.setVisibility(View.VISIBLE);\n \t\t\tnextWord.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//The search bar\n \t\t\tsearchBar.setHint(\"Search guide\");\n \t\t\tsearchBar.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse if(bringUpNav)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\t//bring up navigation bar\n \t\t\tupGuide.setVisibility(View.VISIBLE);\n \t\t\tdownGuide.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse if(bringUpBookmarks)\n \t\t{\n \t\t\t//hide toolbar menu\n \t\t\topenSearch.setVisibility(View.GONE);\n \t\t\thide.setVisibility(View.VISIBLE);\n \t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.GONE);\n \t\t\t\n \t\t\t//bring up bookmarks bar\n \t\t\tnumMarks.setVisibility(View.VISIBLE);\n \t\t\tprevMark.setVisibility(View.VISIBLE);\n \t\t\tmakeMark.setVisibility(View.VISIBLE);\n \t\t\tnextMark.setVisibility(View.VISIBLE);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t//Bring up the regular toolbar menu\n\t\t\t// Hide non funtional features\n\t\t\topenSearch.setVisibility(View.GONE);\n\t\t\topenNav.setVisibility(View.GONE);\n \t\t\topenBookmarks.setVisibility(View.VISIBLE);\n \t\t\t\n \t\t\thide.setVisibility(View.GONE);\n \t\t\tprevWord.setVisibility(View.GONE);\n \t\t\tnextWord.setVisibility(View.GONE);\n \t\t\tsearchBar.setVisibility(View.GONE);\n \t\t\t\n \t\t\tupGuide.setVisibility(View.GONE);\n \t\t\tdownGuide.setVisibility(View.GONE);\n \t\t\t\n \t\t\tnumMarks.setVisibility(View.GONE);\n \t\t\tprevMark.setVisibility(View.GONE);\n \t\t\tmakeMark.setVisibility(View.GONE);\n \t\t\tnextMark.setVisibility(View.GONE);\n \t\t}\n \t}", "@Override\n public MToolBar getToolbar()\n {\n return null;\n }", "private void initComponents() {\n\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n miSave = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n miUndo = new javax.swing.JMenuItem();\n miRedo = new javax.swing.JMenuItem();\n bgMode = new javax.swing.ButtonGroup();\n bgStrength = new javax.swing.ButtonGroup();\n bgColor = new javax.swing.ButtonGroup();\n jToggleButton1 = new javax.swing.JToggleButton();\n jPanel1 = new javax.swing.JPanel();\n jToolBar1 = new javax.swing.JToolBar();\n btnSave = new javax.swing.JButton();\n jSeparator2 = new javax.swing.JToolBar.Separator();\n jToggleButton2 = new javax.swing.JToggleButton();\n jToggleButton3 = new javax.swing.JToggleButton();\n jToggleButton4 = new javax.swing.JToggleButton();\n jSeparator1 = new javax.swing.JToolBar.Separator();\n jToggleButton9 = new javax.swing.JToggleButton();\n jToggleButton5 = new javax.swing.JToggleButton();\n jToggleButton6 = new javax.swing.JToggleButton();\n jToggleButton7 = new javax.swing.JToggleButton();\n jToggleButton8 = new javax.swing.JToggleButton();\n jSeparator3 = new javax.swing.JToolBar.Separator();\n btnUndo = new javax.swing.JButton();\n btnRedo = new javax.swing.JButton();\n tbColor = new javax.swing.JToolBar();\n btnColor = new javax.swing.JButton();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenu1 = new javax.swing.JMenu();\n miSave = new javax.swing.JMenuItem();\n jMenu2 = new javax.swing.JMenu();\n miUndo = new javax.swing.JMenuItem();\n miRedo = new javax.swing.JMenuItem();\n\n jMenu1.setText(\"File\");\n\n miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n miSave.setText(\"Item\");\n jMenu1.add(miSave);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n miUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n miUndo.setText(\"Item\");\n jMenu2.add(miUndo);\n\n miRedo.setText(\"Item\");\n jMenu2.add(miRedo);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n bgMode.add(jToggleButton1);\n jToggleButton1.setText(\"\\u9078\\u629e\");\n jToggleButton1.setEnabled(false);\n jToggleButton1.setFocusable(false);\n jToggleButton1.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton1.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"\\u3089\\u3075\\u305f\\u3093\");\n\n jPanel1.setLayout(new java.awt.GridLayout(0, 1));\n\n jToolBar1.setRollover(true);\n\n btnSave.setText(\"\\u4fdd\\u5b58\");\n btnSave.setFocusable(false);\n btnSave.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnSave.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnSave);\n jToolBar1.add(jSeparator2);\n\n bgMode.add(jToggleButton2);\n jToggleButton2.setSelected(true);\n jToggleButton2.setText(\"\\u7dda\");\n jToggleButton2.setActionCommand(\"LINE\");\n jToggleButton2.setFocusable(false);\n jToggleButton2.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton2.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton2);\n\n bgMode.add(jToggleButton3);\n jToggleButton3.setText(\"\\u5857\\u308a\");\n jToggleButton3.setActionCommand(\"FILL\");\n jToggleButton3.setFocusable(false);\n jToggleButton3.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton3.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton3);\n\n bgMode.add(jToggleButton4);\n jToggleButton4.setText(\"\\u6d88\\u3057\\u30b4\\u30e0\");\n jToggleButton4.setActionCommand(\"ERASE\");\n jToggleButton4.setFocusable(false);\n jToggleButton4.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton4.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton4);\n jToolBar1.add(jSeparator1);\n\n bgStrength.add(jToggleButton9);\n jToggleButton9.setText(\"\\u6975\\u7d30\");\n jToggleButton9.setActionCommand(\"1\");\n jToggleButton9.setFocusable(false);\n jToggleButton9.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton9.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton9);\n\n bgStrength.add(jToggleButton5);\n jToggleButton5.setSelected(true);\n jToggleButton5.setText(\"\\u7d30\");\n jToggleButton5.setActionCommand(\"3\");\n jToggleButton5.setFocusable(false);\n jToggleButton5.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton5.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton5);\n\n bgStrength.add(jToggleButton6);\n jToggleButton6.setText(\"\\u4e2d\");\n jToggleButton6.setActionCommand(\"8\");\n jToggleButton6.setFocusable(false);\n jToggleButton6.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton6.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton6);\n\n bgStrength.add(jToggleButton7);\n jToggleButton7.setText(\"\\u592a\");\n jToggleButton7.setActionCommand(\"15\");\n jToggleButton7.setFocusable(false);\n jToggleButton7.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton7.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton7);\n\n bgStrength.add(jToggleButton8);\n jToggleButton8.setText(\"\\u6975\\u592a\");\n jToggleButton8.setActionCommand(\"32\");\n jToggleButton8.setFocusable(false);\n jToggleButton8.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n jToggleButton8.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(jToggleButton8);\n jToolBar1.add(jSeparator3);\n\n btnUndo.setText(\"\\u5143\\u306b\\u623b\\u3059\");\n btnUndo.setFocusable(false);\n btnUndo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnUndo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnUndo);\n\n btnRedo.setText(\"\\u518d\\u5b9f\\u884c\");\n btnRedo.setFocusable(false);\n btnRedo.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnRedo.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n jToolBar1.add(btnRedo);\n\n jPanel1.add(jToolBar1);\n\n tbColor.setRollover(true);\n\n btnColor.setText(\"\\u8272\");\n btnColor.setFocusable(false);\n btnColor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnColor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnColor.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnColorActionPerformed(evt);\n }\n });\n tbColor.add(btnColor);\n\n jPanel1.add(tbColor);\n\n getContentPane().add(jPanel1, java.awt.BorderLayout.NORTH);\n\n jMenu1.setText(\"File\");\n\n miSave.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_S, java.awt.event.InputEvent.CTRL_MASK));\n miSave.setText(\"Item\");\n jMenu1.add(miSave);\n\n jMenuBar1.add(jMenu1);\n\n jMenu2.setText(\"Edit\");\n\n miUndo.setAccelerator(javax.swing.KeyStroke.getKeyStroke(java.awt.event.KeyEvent.VK_Z, java.awt.event.InputEvent.CTRL_MASK));\n miUndo.setText(\"Item\");\n jMenu2.add(miUndo);\n\n miRedo.setText(\"Item\");\n jMenu2.add(miRedo);\n\n jMenuBar1.add(jMenu2);\n\n setJMenuBar(jMenuBar1);\n\n java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();\n setBounds((screenSize.width-622)/2, (screenSize.height-502)/2, 622, 502);\n }", "private void initToolbar() {\n toolbar = (Toolbar)findViewById(R.id.toolbar);\n\n setSupportActionBar(toolbar);\n getSupportActionBar().setTitle(\"Quick Pay\");\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setHomeButtonEnabled(true);\n }", "public Toolbar() {\n\t\tsuper();\n\t\tthis.setLayout(new FlowLayout(FlowLayout.CENTER));\n\t\tboxColor = new Color(230, 230, 184);\n\t\tbuttonColor = new Color(255, 255, 102);\n\t\t// graphBottomColor = new Color(108, 123, 139);\n\t\t// graphTopColor = new Color(159, 182, 205);\n\t\t// titleRectColor = new Color(184, 230, 92);\n\n\t\teventTypeLabel = new JLabel(\"Event Type:\");\n\t\teventTypeDropDown = new Choice();\n\n\t\tareaLabel = new JLabel(\"Area:\");\n\t\tareaDropDown = new Choice();\n\n\t\tnumberOfPmuLabel = new JLabel(\"Number of PMU:\");\n\t\tnumberOfPmuDropDown = new Choice();\n\n\t\tnoiseLabel = new JLabel(\"Varience of Noise:\");\n\t\tlowNoiseTextBox = new JTextField(5);\n\t\thighNoiseTextBox = new JTextField(5);\n\n\t\t// adding data to drop down\n\t\teventTypeDropDown.add(\"-----\");\n\t\teventTypeDropDown.add(\"Fault\");\n\t\teventTypeDropDown.add(\"Generation Loss\");\n\t\teventTypeDropDown.add(\"Load Switch Off\");\n\t\teventTypeDropDown.add(\"Load Switch On\");\n\t\teventTypeDropDown.add(\"Reactive Power Excluded\");\n\t\teventTypeDropDown.add(\"Reactive Power Introduced\");\n\t\teventTypeDropDown.add(\"Synchronous Motor Switching Off\");\n\t\teventTypeDropDown.add(\"Series Capacitor Switching Off\");\n\t\teventTypeDropDown.add(\"Series Capacitor Switching On\");\n\n\t\t// adding data to drop down\n\t\tareaDropDown.add(\"ALBERTA -- 54\");\n\t\tareaDropDown.add(\"ARIZONA -- 14\");\n\t\tareaDropDown.add(\"B.C. HYDRO -- 50\");\n\t\tareaDropDown.add(\"EL PASO -- 11\");\n\t\tareaDropDown.add(\"IDAHO -- 60\");\n\t\tareaDropDown.add(\"IMPERIALCA -- 21\");\n\t\tareaDropDown.add(\"LADWP -- 26\");\n\t\t// areaDropDown.add(\"MEXICO-CFE -- 20\");\n\t\tareaDropDown.add(\"MONTANA -- 62\");\n\t\tareaDropDown.add(\"NEVADA -- 18\");\n\t\tareaDropDown.add(\"NEW MEXICO -- 10\");\n\t\tareaDropDown.add(\"NORTHWEST -- 40\");\n\t\tareaDropDown.add(\"PACE -- 65\");\n\t\tareaDropDown.add(\"PG AND E -- 30\");\n\t\tareaDropDown.add(\"PSCOLORADO -- 70\");\n\t\tareaDropDown.add(\"SANDIEGO -- 22\");\n\t\tareaDropDown.add(\"SIERRA -- 64\");\n\t\tareaDropDown.add(\"SOCALIF -- 24\");\n\t\tareaDropDown.add(\"FORTISBC -- 52\");\n\t\tareaDropDown.add(\"WAPA R.M. -- 73\");\n\t\t// areaDropDown.add(\"WAPA U.M. -- 63\");\n\n\t\t// adding data to drop down\n\t\tnumberOfPmuDropDown.add(\"10\");\n\t\tnumberOfPmuDropDown.add(\"9\");\n\t\tnumberOfPmuDropDown.add(\"8\");\n\t\tnumberOfPmuDropDown.add(\"7\");\n\t\tnumberOfPmuDropDown.add(\"6\");\n\t\tnumberOfPmuDropDown.add(\"5\");\n\t\tnumberOfPmuDropDown.add(\"4\");\n\t\tnumberOfPmuDropDown.add(\"3\");\n\t\tnumberOfPmuDropDown.add(\"2\");\n\t\tnumberOfPmuDropDown.add(\"1\");\n\n\t\tstartButton = new JButton(\"Start\");\n\t\tstartButton.setFocusPainted(false);\n\t\tstopButton = new JButton(\"Stop\");\n\t\tstopButton.setFocusPainted(false);\n\t\tcreateEventButton = new JButton(\"Disturbance\");\n\t\tcreateEventButton.setFocusPainted(false);\n\t\tcreateEventButton.setEnabled(false);\n\t\tstopButton.setEnabled(false);\n\n\t\teventTypeDropDown.setBackground(boxColor);\n\t\tareaDropDown.setBackground(boxColor);\n\t\tnumberOfPmuDropDown.setBackground(boxColor);\n\n\t\tstartButton.setBackground(Color.green);\n\t\tstopButton.setBackground(Color.red);\n\t\tcreateEventButton.setBackground(buttonColor);\n\n\t\tstartButton.setForeground(Color.black);\n\t\tstopButton.setForeground(Color.black);\n\n\t\t// adding components to the panel\n\t\tthis.add(eventTypeLabel);\n\t\tthis.add(eventTypeDropDown);\n\n\t\tthis.add(areaLabel);\n\t\tthis.add(areaDropDown);\n\n\t\tthis.add(numberOfPmuLabel);\n\t\tthis.add(numberOfPmuDropDown);\n\n\t\tthis.add(noiseLabel);\n\t\tthis.add(lowNoiseTextBox);\n\t\tthis.add(highNoiseTextBox);\n\n\t\tthis.add(startButton);\n\t\tthis.add(stopButton);\n\t\tthis.add(createEventButton);\n\n\t\t// listeners get initialized here so that when the toolbar is\n\t\t// constructed there in only one instance of the listeners\n\t\tstartButton.addActionListener(new ToolbarListener(\n\t\t\t\tToolbarListener.START_BUTTON, tools));\n\t\tstopButton.addActionListener(new ToolbarListener(\n\t\t\t\tToolbarListener.STOP_BUTTON, tools));\n\t\tcreateEventButton.addActionListener(new ToolbarListener(\n\t\t\t\tToolbarListener.CREATE_EVENT_BUTTON, tools));\n\n\t}", "public ToolsPaletteWindow()\n {\n super( TOOLS, false, false );\n setContentPane( this.content );\n createUI();\n }", "private ActionToolbar createActionsToolbar() {\n DefaultActionGroup actions = new DefaultActionGroup();\n\n actions.add(EditorActionsFactory.create(BOLD));\n actions.add(EditorActionsFactory.create(ITALIC));\n actions.add(EditorActionsFactory.create(UNDERLINE));\n actions.addSeparator();\n actions.add(EditorActionsFactory.create(ALIGN_LEFT));\n actions.add(EditorActionsFactory.create(ALIGN_CENTER));\n actions.add(EditorActionsFactory.create(ALIGN_RIGHT));\n\n final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.EDITOR_TAB, actions, true);\n actionToolbar.setMinimumButtonSize(ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);\n return actionToolbar;\n }", "public ToolBarManager initTitle(String toolBarTitle){\n return initTitle(toolBarTitle,0xFFFFFFFF);\n }", "private void setupSystemUI() {\r\n toolbar.animate().translationY(Measure.getStatusBarHeight(getResources())).setInterpolator(new DecelerateInterpolator())\r\n .setDuration(0).start();\r\n getWindow().getDecorView().setSystemUiVisibility(\r\n View.SYSTEM_UI_FLAG_LAYOUT_STABLE\r\n | View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION\r\n | View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN);\r\n }", "public JComponent getToolbarComponent()\n {\n return _box;\n }", "public MainToolBar(final Shell parent, final Controller controller, List<MainMenuItem> items) {\n super(controller);\n toolbar = new ToolBar(parent, SWT.FLAT);\n toolbar.setLayoutData(SWTUtil.createFillHorizontallyGridData());\n\n // Create items\n this.createItems(toolbar, items, \"\"); //$NON-NLS-1$\n this.createLabels();\n\n // Pack\n toolbar.pack();\n \n // Initialize\n this.update(new ModelEvent(this, ModelPart.MODEL, null));\n \n }", "public void build()\n\t{\n\t\t// TODO: Is the order okay?\n\n\t\t// Frame\n\t\tthis.setDefaultCloseOperation(HIDE_ON_CLOSE);\n\t\tthis.contentPane = new JPanel();\n\t\tthis.contentPane.setLayout(new BorderLayout(0, 0));\n\t\tthis.setContentPane(contentPane);\n\n\t\t// Split pane\n\t\tthis.splitPane = new JSplitPane();\n\t\tthis.splitPane.setBorder(new EmptyBorder(0, 5, 5, 5));\n\t\tthis.contentPane.add(splitPane, BorderLayout.CENTER);\n\n\t\t// tree pane (left side)\n\t\tJPanel panel = new JPanel();\n\t\tthis.splitPane.setLeftComponent(panel);\n\t\tpanel.setLayout(new BoxLayout(panel, BoxLayout.X_AXIS));\n\n\t\tthis.treePane = new JScrollPane();\n\t\tpanel.add(treePane);\n\n\t\t// Context pane (right side)\n\t\tJPanel panel_1 = new JPanel();\n\t\tthis.splitPane.setRightComponent(panel_1);\n\t\tpanel_1.setLayout(new BoxLayout(panel_1, BoxLayout.X_AXIS));\n\n\t\tthis.contextPane = new JScrollPane();\n\t\tpanel_1.add(contextPane);\n\n\t\tJPanel buttonPanel = createButtonPanel();\n\t\tthis.add(buttonPanel, BorderLayout.SOUTH);\n\n\t\tthis.splitPane.setDividerLocation(DEFAULT_DIVIDER_LOCATION);\n\n\t\t// Menu bar\n\t\tthis.menuBar = new StyleEditorMenuBar(this.guiController);\n\t\tthis.setJMenuBar(menuBar);\n\n\t\t// Tool bar\n\t\tthis.styleEditorToolBar = new StyleEditorToolBar(this.guiController);\n\t\tthis.add(styleEditorToolBar, BorderLayout.NORTH);\n\n\t\t// Combo box (from tool bar)\n\t\tthis.styleComboBox = this.styleEditorToolBar.getComboBox();\n\n\t\t// Create style tree(s):\n\t\tsynchronizeStyles();\n\n\t\t// Tree object\n\t\tthis.treePane.setViewportView(getCurrentStyleTree());\n\t\tgetCurrentStyleTree().updateTree();\n\n\t\tthis.contextPane.setViewportView(getCurrentStyleTree().getRoot().getPanel());\n\t\tthis.contextPane.getVerticalScrollBar().setUnitIncrement(10);\n\t\tthis.synchronizeStyles();\n\n\t\tthis.pack();\n\n\t\tthis.built = true;\n\t}", "private void setupToolbar() {\n Toolbar toolbar = (Toolbar) findViewById(R.id.edit_task_toolbar);\n setSupportActionBar(toolbar);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n }", "private void initFileToolbar() {\n fileToolbarPane = new FlowPane();\n\n // HERE ARE OUR FILE TOOLBAR BUTTONS, NOTE THAT SOME WILL\n // START AS ENABLED (false), WHILE OTHERS DISABLED (true)\n newDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.NEW_DRAFT_ICON, DraftKit_PropertyType.NEW_DRAFT_TOOLTIP, false);\n loadDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.LOAD_DRAFT_ICON, DraftKit_PropertyType.LOAD_DRAFT_TOOLTIP, false);\n saveDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.SAVE_DRAFT_ICON, DraftKit_PropertyType.SAVE_DRAFT_TOOLTIP, true);\n exportDraftButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.EXPORT_DRAFT_ICON, DraftKit_PropertyType.EXPORT_DRAFT_TOOLTIP, true);\n exitButton = initChildButton(fileToolbarPane, DraftKit_PropertyType.EXIT_ICON, DraftKit_PropertyType.EXIT_TOOLTIP, false);\n }", "void inittoolbar() {\n toolbar = (Toolbar) findViewById(R.id.toolbar);\r\n setSupportActionBar(toolbar);\r\n if (getSupportActionBar() != null) {\r\n getSupportActionBar().setDisplayShowTitleEnabled(false);\r\n }\r\n TextView mTitle = (TextView) toolbar.findViewById(R.id.toolbar_title);\r\n ImageView back = (ImageView) toolbar.findViewById(R.id.back);\r\n mTitle.setText(getResources().getString(R.string.scanQr));\r\n\r\n back.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n onBackPressed();\r\n }\r\n });\r\n }", "void setupToolBar(String title, boolean showNavigationBtn) {\n setupToolBar(title, showNavigationBtn, new View.OnClickListener() {\n @Override\n public void onClick(View view) {\n// finish();\n onBackPressed();\n }\n });\n }", "void ToolBarFileIOHook() {\n\t\ttoolBar.add(newButton = new JButton(new ImageIcon(this.getClass().getResource(\"images/new.gif\"))));\n\t\ttoolBar.add(openButton = new JButton(new ImageIcon(this.getClass().getResource(\"images/open.gif\"))));\n\t\ttoolBar.add(saveButton = new JButton(new ImageIcon(this.getClass().getResource(\"images/save.gif\"))));\n\t\ttoolBar.add(saveAsButton= new JButton(new ImageIcon(this.getClass().getResource(\"images/saveAs.gif\"))));\n\t\ttoolBar.addSeparator();\n\n\t\t//adding a tool tip text to the button for descriping the image icon.\n\t\tnewButton.setToolTipText(\"New\");\n\t\topenButton.setToolTipText(\"Open\");\n\t\tsaveButton.setToolTipText(\"Save\");\n\t\tsaveAsButton.setToolTipText(\"Save As\");\n}", "private void initToolbar() {\n setSupportActionBar(toolbar);\n if (getSupportActionBar() != null) {\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n getSupportActionBar().setDisplayShowHomeEnabled(true);\n checkUserData();\n initDrawerView();\n }\n }", "private void addToolsAndCommands() {\n this.selectTargetCadastreObjectTool\n = new CadastreChangeSelectCadastreObjectTool(this.getPojoDataAccess());\n this.selectTargetCadastreObjectTool.setTargetParcelsLayer(targetParcelsLayer);\n this.selectTargetCadastreObjectTool.setCadastreObjectType(CadastreObjectTypeBean.CODE_PARCEL);\n this.getMap().addTool(this.selectTargetCadastreObjectTool, this.getToolbar(), true);\n }", "private void setupToolBar(String title, boolean showNavigationBtn, View.OnClickListener onClickListener) {\n Toolbar toolbar = findViewById(R.id.toolbar);\n toolbar.setTitle(\"\");\n setSupportActionBar(toolbar);\n\n toolbarTitleTxtView = findViewById(R.id.toolbar_title);\n ImageView ivBackButton = findViewById(R.id.iv_back_button);\n if (title != null) {\n toolbarTitleTxtView.setText(title);\n toolbarTitleTxtView.setVisibility(View.VISIBLE);\n } else {\n toolbarTitleTxtView.setVisibility(View.GONE);\n }\n ivBackButton.setOnClickListener(onClickListener);\n if (!showNavigationBtn) {\n ivBackButton.setVisibility(View.GONE);\n }\n }" ]
[ "0.74376154", "0.7346047", "0.7286061", "0.72442883", "0.7178089", "0.71718585", "0.7073056", "0.70262957", "0.70146996", "0.7001062", "0.69278353", "0.68461376", "0.68301964", "0.6795383", "0.6699676", "0.6655533", "0.66083753", "0.65877324", "0.6583752", "0.6514449", "0.6466682", "0.64556974", "0.64527166", "0.64346987", "0.64075506", "0.6398437", "0.6393878", "0.6344386", "0.6307408", "0.62732065", "0.62676024", "0.61949384", "0.61919713", "0.61893374", "0.6132874", "0.61093843", "0.61084354", "0.60980904", "0.60908884", "0.60845053", "0.6077981", "0.6041228", "0.6034739", "0.6029547", "0.6027753", "0.6025629", "0.60213155", "0.6020222", "0.60194045", "0.60179937", "0.6016165", "0.6006949", "0.59857273", "0.5974031", "0.5935931", "0.59251845", "0.5906875", "0.5883817", "0.5869727", "0.5861428", "0.5851029", "0.5848901", "0.5840727", "0.58349323", "0.58257294", "0.58208036", "0.58148026", "0.58101594", "0.5795904", "0.57938576", "0.5783345", "0.57797706", "0.5773143", "0.5770429", "0.5761564", "0.5760633", "0.57186407", "0.5718576", "0.57103443", "0.5703614", "0.5702737", "0.5694217", "0.5684295", "0.56760925", "0.5672691", "0.5671818", "0.56703925", "0.56618845", "0.56548", "0.5639067", "0.56360656", "0.56280845", "0.5606986", "0.5603033", "0.55930823", "0.5588225", "0.5558967", "0.555235", "0.5547881", "0.5543168" ]
0.7613518
0
Creates and returns a JButton configured for use in a JToolBar. This is a simplified method that is overriden by the Looks Demo. The full code uses the JGoodies UI framework's ToolBarButton that better handles platform differences.
protected AbstractButton createToolBarButton(String iconName, String toolTipText) { JButton button = new JButton(readImageIcon(iconName)); button.setToolTipText(toolTipText); button.setFocusable(false); return button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public JButton createJButton(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 111 */ return this.buttonFactory.createJToolbarButton(name);\n/* */ }", "public Component createNewToolItem() {\r\n Button button = new Button();\r\n gwtToolbarItem.addClasses(button);\r\n button.addStyleName(\"action-bar-tool-item\");\r\n return button;\r\n }", "public JToolBar createJToolBar(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 83 */ JToolBar result = new JToolBar();\n/* 84 */ List buttons = getStringList(name);\n/* */ \n/* 86 */ for (Object button : buttons) {\n/* 87 */ String s = (String)button;\n/* 88 */ if (s.equals(\"-\")) {\n/* 89 */ result.add(new JToolbarSeparator()); continue;\n/* */ } \n/* 91 */ result.add(createJButton(s));\n/* */ } \n/* */ \n/* 94 */ return result;\n/* */ }", "private Component buildToolBar() {\r\n DToolBar toolBar = new DToolBar();\r\n// toolBar.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n toolBar.setFloatable(true);\r\n toolBar.putClientProperty(\"JToolBar.isRollover\", Boolean.TRUE);\r\n // Swing\r\n toolBar.putClientProperty(\r\n Options.HEADER_STYLE_KEY,\r\n settings.getToolBarHeaderStyle());\r\n toolBar.putClientProperty(\r\n PlasticLookAndFeel.BORDER_STYLE_KEY,\r\n settings.getToolBarPlasticBorderStyle());\r\n toolBar.putClientProperty(\r\n WindowsLookAndFeel.BORDER_STYLE_KEY,\r\n settings.getToolBarWindowsBorderStyle());\r\n toolBar.putClientProperty(\r\n PlasticLookAndFeel.IS_3D_KEY,\r\n settings.getToolBar3DHint());\r\n\r\n AbstractButton button;\r\n/*\r\n toolBar.add(createToolBarButton(\"backward.gif\", \"Back\"));\r\n button = createToolBarButton(\"forward.gif\", \"Next\");\r\n button.setEnabled(false);\r\n toolBar.add(button);*/\r\n \r\n button = createToolBarButton(\"home.gif\", ResourceUtil.getString(\"HOME\"));\r\n toolBar.add(button);\r\n button.addActionListener(this);\r\n button.setActionCommand(\"home\");\r\n// toolBar.addSeparator();\r\n \r\n button = createToolBarButton(\"preference16.gif\", ResourceUtil.getString(\"PREFERENCES\"));\r\n toolBar.add(button);\r\n button.setRolloverIcon(readImageIcon(\"preference16_over.gif\"));\r\n button.addActionListener(this);\r\n button.setActionCommand(\"Preferences\");\r\n toolBar.addSeparator();\r\n\r\n button = createToolBarButton(\"new16.gif\", ResourceUtil.getString(\"NEW\"));\r\n button.setActionCommand(\"new\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"save_edit.gif\", ResourceUtil.getString(\"SAVE\"));\r\n button.setActionCommand(\"save\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"delete16.gif\", ResourceUtil.getString(\"DELETE\"));\r\n button.setActionCommand(\"delete\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"print.gif\", ResourceUtil.getString(\"PRINT\"));\r\n button.setActionCommand(\"print\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n/* \r\n toolBar.add(createToolBarButton(\"print.gif\", \"Print\"));\r\n toolBar.add(createToolBarButton(\"refresh.gif\", \"Update\"));\r\n toolBar.addSeparator();\r\n\r\n ButtonGroup group = new ButtonGroup();\r\n button = createToolBarRadioButton(\"pie_mode.png\", \"Pie Chart\");\r\n button.setSelectedIcon(readImageIcon(\"pie_mode_selected.gif\"));\r\n group.add(button);\r\n button.setSelected(true);\r\n toolBar.add(button);\r\n\r\n button = createToolBarRadioButton(\"bar_mode.png\", \"Bar Chart\");\r\n button.setSelectedIcon(readImageIcon(\"bar_mode_selected.gif\"));\r\n group.add(button);\r\n toolBar.add(button);\r\n\r\n button = createToolBarRadioButton(\"table_mode.png\", \"Table\");\r\n button.setSelectedIcon(readImageIcon(\"table_mode_selected.gif\"));\r\n group.add(button);\r\n toolBar.add(button);\r\n toolBar.addSeparator();\r\n\r\n button = createToolBarButton(\"help.gif\", \"Open Help\");\r\n button.addActionListener(createHelpActionListener());\r\n toolBar.add(button);*/\r\n\r\n return toolBar;\r\n }", "public JMTToolBar createToolbar() {\r\n \t\tJMTToolBar toolbar = new JMTToolBar(JMTImageLoader.getImageLoader());\r\n \t\t// Builds an array with all actions to be put in the toolbar\r\n \t\tAbstractJmodelAction[] actions = new AbstractJmodelAction[] { newModel, openModel, saveModel, null,\r\n \t\t\t\t// editUndo, editRedo, null,\r\n \t\t\t\tactionCut, actionCopy, actionPaste, null, editUserClasses, editMeasures, editSimParams, editPAParams, null, switchToExactSolver,\r\n \t\t\t\tnull, simulate, pauseSimulation, stopSimulation, showResults, null, editDefaults, openHelp };\r\n \t\ttoolbar.populateToolbar(actions);\r\n \t\treturn toolbar;\r\n \t}", "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsToolBar.add(getColorButton());\r\n\t\t\ttoolsToolBar.add(getLinkButton());\r\n\t\t\ttoolsToolBar.add(getIcoButton());\r\n\t\t}\r\n\t\treturn toolsToolBar;\r\n\t}", "public MainToolbar createToolbar()\r\n {\n WbSwingUtilities.invoke(this::_createToolbar);\r\n return toolbar;\r\n }", "private Component createToolBar()\n {\n Component toolbarPanel = null;\n\n mainToolBar = new MainToolBar(this);\n\n boolean chatToolbarVisible\n = ConfigurationUtils.isChatToolbarVisible();\n\n if (OSUtils.IS_MAC)\n {\n UnifiedToolBar macToolbarPanel = new UnifiedToolBar();\n\n MacUtils.makeWindowLeopardStyle(getRootPane());\n\n macToolbarPanel.addComponentToLeft(mainToolBar);\n macToolbarPanel.addComponentToRight(contactPhotoPanel);\n macToolbarPanel.disableBackgroundPainter();\n macToolbarPanel.installWindowDraggerOnWindow(this);\n macToolbarPanel.getComponent()\n .setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\n macToolbarPanel.getComponent().setVisible(chatToolbarVisible);\n\n toolbarPanel = macToolbarPanel.getComponent();\n }\n else\n {\n ToolbarPanel panel = new ToolbarPanel(new BorderLayout());\n\n panel.setBorder(BorderFactory.createEmptyBorder(3, 0, 3, 0));\n panel.add(mainToolBar, BorderLayout.CENTER);\n panel.add(contactPhotoPanel, BorderLayout.EAST);\n panel.setVisible(chatToolbarVisible);\n\n toolbarPanel = panel;\n }\n\n return toolbarPanel;\n }", "public ToolButton createToolButton(String path, String toolName, Tool tool);", "private void setupToolBar() {\n\t\tJPanel buttons = new JPanel(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\ttoolBar = new JToolBar(\"Buttons\");\n\t\ttoolBar.setFloatable(false);\n\t\ttoolBar.setOrientation(SwingConstants.VERTICAL);\n\t\tbuttons.add(toolBar, c);\n\t\tadd(buttons, BorderLayout.EAST);\n\t}", "private JToolBar getJToolBar() {\r\n\t\tif (jToolBar == null) {\r\n\t\t\tjToolBar = new JToolBar();\r\n\t\t\tjToolBar.setFloatable(false);\r\n\t\t\tjToolBar.add(getCmdAdd());\r\n\t\t\tjToolBar.add(getCmdDel());\r\n\t\t\tjToolBar.add(getCmdAddT());\r\n\t\t\tjToolBar.add(getCmdUrl());\r\n\t\t\tjToolBar.add(getCmdStart());\r\n\t\t\tjToolBar.add(getCmdPause());\r\n\t\t\tjToolBar.add(getCmdStop());\r\n\t\t\tjToolBar.add(getCmdExport());\r\n\t\t}\r\n\t\treturn jToolBar;\r\n\t}", "protected abstract JToolBar getNorthToolbar();", "public JToolBar gameToolbar() {\n\t\tthis.gameToolbar = new JToolBar();\n\t\t//this.gameToolbar.setPreferredSize(size);\n\t\tFlowLayout tbLayout = new FlowLayout();\n\t\tthis.gameToolbar.setLayout(tbLayout);\n\t\ttbLayout.setAlignment(FlowLayout.CENTER);\n\t\tthis.gameToolbar.setRollover(true);\n\t\tthis.dealButton = new JButton(\"DEAL\");\n\t\tthis.dealButton.addActionListener(this);\n\t\tthis.placeBetButton = new JButton(\"PLACE BET\");\n\t\tthis.placeBetButton.addActionListener(this);\n\t\tthis.resultsButton = new JButton(\"VIEW RESULTS\");\n\t\tthis.resultsButton.addActionListener(this);\n\t\tthis.gameToolbar.add(this.dealButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.placeBetButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.resultsButton);\n\t\treturn this.gameToolbar;\n\t\t\n\t}", "private void createToolbars() {\n\t\tJToolBar toolBar = new JToolBar(\"Tools\");\n\t\ttoolBar.setFloatable(true);\n\n\t\ttoolBar.add(new JButton(new ActionNewDocument(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionOpen(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSave(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSaveAs(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionCut(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionCopy(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionPaste(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionStatistics(flp, this)));\n\n\t\tthis.getContentPane().add(toolBar, BorderLayout.PAGE_START);\n\t}", "private JToolButton getToggleButton(Tool tool, String toolId) {\n String name = tool.getName();\n JToolButton button = new JToolButton(name, tool instanceof ToolGroup);\n\n String displayName = name;\n // wrap the title\n if (!name.startsWith(\"<html>\")) {\n displayName = \"<html><div align='center'>\" + name + \"</div></html>\";\n }\n\n if (displayHoverover) {\n String hoveroverText = generateHoverover(tool);\n button.setToolTipText(hoveroverText);\n }\n \n button.setPreferredSize(\n new Dimension(\n iconSize.width, \n iconSize.height + TEXT_SPACE_SIZE));\n \n button.setBorderPainted(true);\n button.setBorder(BorderFactory.createEmptyBorder(0 ,0, 0, 0));\n button.setContentAreaFilled(false);\n\n button.setRolloverEnabled(true);\n button.setActionCommand(toolId);\n button.setText(displayName);\n button.setFont(FontColorUtils.getSmallFont());\n button.setVerticalTextPosition(AbstractButton.BOTTOM);\n button.setHorizontalTextPosition(AbstractButton.CENTER);\n button.setVerticalAlignment(AbstractButton.TOP);\n button.setHorizontalAlignment(AbstractButton.CENTER);\n button.setMargin(ICON_MARGIN);\n button.setEnabled(areEnabled);\n\n // assign the loading image\n buttonGroup.add(button);\n \n if (toolIdToButtonMap.containsKey(toolId)) {\n JToolButton tempButton = toolIdToButtonMap.get(toolId);\n remove(tempButton);\n buttonGroup.remove(tempButton);\n }\n add(button);\n\n return button;\n }", "public JButton createButton(String name, String toolTip) {\r\n\r\n // load the image\r\n String imagePath = \"./resources/\" + name + \".png\";\r\n ImageIcon iconRollover = new ImageIcon(imagePath);\r\n int w = iconRollover.getIconWidth();\r\n int h = iconRollover.getIconHeight();\r\n\r\n // get the cursor for this button\r\n Cursor cursor =\r\n Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);\r\n\r\n // make translucent default image\r\n Image image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n Graphics2D g = (Graphics2D)image.getGraphics();\r\n Composite alpha = AlphaComposite.getInstance(\r\n AlphaComposite.SRC_OVER, .5f);\r\n g.setComposite(alpha);\r\n g.drawImage(iconRollover.getImage(), 0, 0, null);\r\n g.dispose();\r\n ImageIcon iconDefault = new ImageIcon(image);\r\n\r\n // make a pressed image\r\n image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n g = (Graphics2D)image.getGraphics();\r\n g.drawImage(iconRollover.getImage(), 2, 2, null);\r\n g.dispose();\r\n ImageIcon iconPressed = new ImageIcon(image);\r\n\r\n // create the button\r\n JButton button = new JButton();\r\n button.addActionListener(this);\r\n button.setIgnoreRepaint(true);\r\n button.setFocusable(false);\r\n button.setToolTipText(toolTip);\r\n button.setBorder(null);\r\n button.setContentAreaFilled(false);\r\n button.setCursor(cursor);\r\n button.setIcon(iconDefault);\r\n button.setRolloverIcon(iconRollover);\r\n button.setPressedIcon(iconPressed);\r\n\r\n return button;\r\n }", "@Override\n\tpublic Toolbar createToolbar() {\n\t\tLightVisualThemeToolbar lightVisualThemeToolbar = new LightVisualThemeToolbar();\n\t\treturn lightVisualThemeToolbar;\n\t}", "public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }", "private void setupToolBar() {\n\t\tbOk = ConfirmPanel.createOKButton(false);\n\t\tbOk.addActionListener(this);\n\t\tbSearch = ConfirmPanel.createRefreshButton(true);\n\t\tbSearch.addActionListener(this);\n\t\tbCancel = ConfirmPanel.createCancelButton(false);\n\t\tbCancel.addActionListener(this);\n\t\tbZoom = ConfirmPanel.createZoomButton(true);\n\t\tbZoom.addActionListener(this);\n\t\tbExport = ConfirmPanel.createExportButton(true);\n\t\tbExport.addActionListener(this);\n\t\tbDelete = ConfirmPanel.createDeleteButton(true);\n\t\tbDelete.addActionListener(this);\n\t\tAppsAction selectAllAction = new AppsAction(\"SelectAll\", null, Msg.getMsg(Env.getCtx(),\"SelectAll\"));\n\t\tselectAllAction.setDelegate(this);\n\t\tbSelectAll = (CButton) selectAllAction.getButton();\n\t\ttoolsBar = new javax.swing.JToolBar();\n\t}", "private void createToolBar() {\r\n toolbar = new JToolBar();\r\n inbox = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.INBOX_ICON)), \"Maintain Inbox\", \"Maintain Inbox\");\r\n awards = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.AWARDS_ICON)), \"Maintain Awards\", \"Maintain Awards\");\r\n proposal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_ICON)), \"Maintain InstituteProposals\", \"Maintain Institute Proposals\");\r\n proposalDevelopment = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_DEVELOPMENT_ICON)), \"Maintain ProposalDevelopment\", \"Maintain Proposal Development\");\r\n rolodex = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.ROLODEX_ICON)), \"Maintain Rolodex\", \"Maintain Rolodex\");\r\n sponsor = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SPONSOR_ICON)), \"Maintain Sponsor\", \"Maintain Sponsor\");\r\n subContract = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SUBCONTRACT_ICON)), \"Maintain SubContract\", \"Maintain Subcontract\");\r\n negotiations = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.NEGOTIATIONS_ICON)), \"Maintain Negotiations\", \"Maintain Negotiations\");\r\n buisnessRules = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.BUSINESS_RULES_ICON)), \"Maintain BusinessRules\", \"Maintain Business Rules\");\r\n map = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.MAP_ICON)), \"Maintain Map\", \"Maintain Map\");\r\n personnal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PERSONNAL_ICON)), \"Maintain Personal\", \"Maintain Personnel\");\r\n users = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.USERS_ICON)), \"Maintain Users\", \"Maintain Users\");\r\n unitHierarchy = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.UNIT_HIERARCHY_ICON)), \"Maintain UnitHierarchy\", \"Maintain Unit Hierarchy\");\r\n cascade = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.CASCADE_ICON)), \"Cascade\", \"Cascade\");\r\n tileHorizontal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_HORIZONTAL_ICON)), \"Tile Horizontal\", \"Tile Horizontal\");\r\n tileVertical = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_VERTICAL_ICON)), \"Tile Vertical\", \"Tile Vertical\");\r\n layer = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.LAYER_ICON)), \"Layer\", \"Layer\");\r\n \r\n /*Added Icons are Committe,Protocol,Shedule. The Icons are different.Non-availability of standard Icon - Chandrashekar*/\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n /* JM 05-02-2013\r\n irbProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_ICON)), \"Protocol\", \"IRB Protocol\");\r\n \r\n irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n /* JM 05-02-2013\r\n schedule = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SCHEDULE_ICON)), \"Schedule\", \"Schedule\");\r\n committee = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.COMMITTEE_ICON)), \"Committee\", \"Committee\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n //irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n // getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n iacucProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_ICON)), \"Protocol\", \"IACUC Protocol\");\r\n \r\n iacucProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IACUC Protocol Submission\");\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.HELP_ICON)), \"Contact Coeus Help\", \"Contact Coeus Help\");\r\n /* JM END */\r\n \r\n exit = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.EXIT_ICON)), \"Exit\", \"Exit\");\r\n \r\n \r\n toolbar.add(inbox);\r\n toolbar.addSeparator();\r\n toolbar.add(awards);\r\n toolbar.add(proposal);\r\n toolbar.add(proposalDevelopment);\r\n toolbar.add(rolodex);\r\n toolbar.add(sponsor);\r\n toolbar.add(subContract);\r\n toolbar.add(negotiations);\r\n toolbar.add(buisnessRules);\r\n toolbar.add(map);\r\n toolbar.add(personnal);\r\n toolbar.add(users);\r\n toolbar.add(unitHierarchy);\r\n \r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n toolbar.add(irbProtocol);\r\n toolbar.add(irbProtocolSubmission);\r\n \r\n toolbar.add(schedule);\r\n toolbar.add(committee);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n toolbar.add(iacucProtocol);\r\n toolbar.add(iacucProtocolSubmission);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n toolbar.addSeparator();\r\n toolbar.add(cascade);\r\n toolbar.add(tileHorizontal);\r\n toolbar.add(tileVertical);\r\n toolbar.add(layer);\r\n toolbar.addSeparator();\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n toolbar.add(contactCoeusHelp);\r\n toolbar.addSeparator();\r\n /* JM END */\r\n \r\n toolbar.add(exit);\r\n \r\n toolbar.setFloatable(false);\r\n setTextLabels(false);\r\n MouseListener pl = new PopupListener();\r\n cpm = new CoeusPopupMenu();\r\n toolbar.addMouseListener(pl);\r\n \r\n inbox.addActionListener(this);\r\n awards.addActionListener(this);\r\n proposal.addActionListener(this);\r\n proposalDevelopment.addActionListener(this);\r\n rolodex.addActionListener(this);\r\n sponsor.addActionListener(this);\r\n subContract.addActionListener(this);\r\n negotiations.addActionListener(this);\r\n buisnessRules.addActionListener(this);\r\n map.addActionListener(this);\r\n personnal.addActionListener(this);\r\n users.addActionListener(this);\r\n unitHierarchy.addActionListener(this);\r\n cascade.addActionListener(this);\r\n tileHorizontal.addActionListener(this);\r\n tileVertical.addActionListener(this);\r\n layer.addActionListener(this);\r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n irbProtocol.addActionListener(this);\r\n schedule.addActionListener(this);\r\n committee.addActionListener(this);\r\n irbProtocolSubmission.addActionListener(this);\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n iacucProtocol.addActionListener(this);\r\n iacucProtocolSubmission.addActionListener(this); */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp.addActionListener(this);\r\n /* JM END */\r\n \r\n exit.addActionListener(this);\r\n }", "private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setBounds(new Rectangle(172, 11, 71, 26));\r\n\t\t\tjButton.setText(\"Button\");\r\n\t\t\tjButton.addActionListener(new MultiHighlight(jTextArea, \"aeiouAEIOU\"));\r\n\t\t}\r\n\t\treturn jButton;\r\n\t}", "public JToolBar getToolBar() {\n return myToolBar;\n }", "Button new_button (String title, ActionListener action, String tooltip) {\n Button b = new Button(title);\n b.setBackground(Color.white);\n b.setForeground(Color.blue);\n if (action != null)\n b.addActionListener(action);\n if (tooltip != null)\n b.setToolTipText(tooltip);\n return b;\n }", "public ToolButton createToolButton(Icon icon, Icon selectedIcon,\n String toolName, Tool tool);", "private void createToolbar() {\n\t\ttoolbarPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\n\t\tString iconsDir = \"icons/\";\n\n\t\tfileToolbar = new JToolBar();\n\t\tfileToolbar.setName(\"File\");\n\n\t\t// Componentes da barra de ferramentas de arquivo\n\t\tIcon newFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"new.png\"));\n\t\tnewFileButton = new JButton(newFileIcon);\n\t\tnewFileButton.setToolTipText(\"Novo arquivo\");\n\n\t\tIcon openFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"open.png\"));\n\t\topenFileButton = new JButton(openFileIcon);\n\t\topenFileButton.setToolTipText(\"Abrir arquivo\");\n\t\topenFileButton.addActionListener(new OpenFileHandler());\n\n\t\tIcon saveFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"save.png\"));\n\t\tsaveFileButton = new JButton(saveFileIcon);\n\t\tsaveFileButton.setToolTipText(\"Salvar arquivo\");\n\n\t\t// fileToolbar.add(newFileButton);\n\t\tfileToolbar.add(openFileButton);\n\t\t// fileToolbar.add(saveFileButton);\n\n\t\t// Componentes da barra de ferramentas de rede\n\t\tnetworkComponentsToolbar = new JToolBar();\n\t\tnetworkComponentsToolbar.setName(\"Network components\");\n\n\t\tIcon newPlaceIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"circle_stroked.png\"));\n\t\taddPlaceButton = new JButton(newPlaceIcon);\n\t\taddPlaceButton.setToolTipText(\"Adicionar lugar\");\n\n\t\tIcon newTransitionIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"pipe.png\"));\n\t\taddTransitionButton = new JButton(newTransitionIcon);\n\t\taddTransitionButton.setToolTipText(\"Adicionar transição\");\n\n\t\tIcon newEdgeIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"arrow_alt_right.png\"));\n\t\taddEdgeButton = new JButton(newEdgeIcon);\n\t\taddEdgeButton.setToolTipText(\"Adicionar aresta\");\n\n\t\tnetworkComponentsToolbar.add(addPlaceButton);\n\t\tnetworkComponentsToolbar.add(addTransitionButton);\n\t\tnetworkComponentsToolbar.add(addEdgeButton);\n\n\t\ttoolbarPanel.add(fileToolbar);\n\t\t// toolbarPanel.add(networkComponentsToolbar);\n\n\t\tthis.add(toolbarPanel, BorderLayout.NORTH);\n\t}", "protected JButton createAddButton() {\n JButton butAdd = new JButton();\n butAdd.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/add.jpg\")));\n butAdd.setToolTipText(\"Add a new item\");\n butAdd.addActionListener(new AddItemListener());\n return butAdd;\n }", "JButton createTranslateButton(ParagraphTranslateGUI app) {\n ImageIcon translateIcon = new ImageIcon(\"resources/TranslateButton.png\");\n translateButton = new JButton(resizeIcon(translateIcon, this.width, this.height));\n translateButton.setBounds(this.posX, this.posY, this.width, this.height);\n\n addMouseListener(app);\n\n return translateButton;\n }", "public JToolBar getToolBar(){\r\n return toolbar;\r\n }", "private JButton getJbtnHelp() {\n\t\tif (jbtnHelp == null) {\n\t\t\tjbtnHelp = new JButton();\n\t\t\tjbtnHelp.setText(\"Help\");\n\t\t\tjbtnHelp.setLocation(new Point(572, 576));\n\t\t\tjbtnHelp.setSize(new Dimension(178, 34));\n\t\t\tjbtnHelp.setEnabled(false);\n\t\t\tjbtnHelp.setForeground(Color.blue);\n\t\t}\n\t\treturn jbtnHelp;\n\t}", "private void createToolbars() {\r\n\t\tJToolBar toolBar = new JToolBar(\"Tool bar\");\r\n\t\ttoolBar.add(createBlankDocument);\r\n\t\ttoolBar.add(openDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAsAction);\r\n\t\ttoolBar.add(closeCurrentTabAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(copyAction);\r\n\t\ttoolBar.add(cutAction);\r\n\t\ttoolBar.add(pasteAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(getStatsAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(exitAction);\r\n\t\t\r\n\t\tgetContentPane().add(toolBar, BorderLayout.PAGE_START);\r\n\t}", "protected ToolButton createToolButton(String iconName, String toolName, Tool tool) {\n return new ToolButton(this, iconName, toolName, tool);\n }", "@Override\n public Button createButton() {\n return new WindowsButton();\n }", "private Button initHBoxButton(HBox toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }", "public JToolBar getToolBar() {\n return toolBar;\n }", "protected AbstractButton createToolBarRadioButton(String iconName, String toolTipText) {\r\n JToggleButton button = new JToggleButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }", "public ToolBarView() {\r\n\t\tbuttonsToolbar = new JButton[14];\r\n\t\tfor (int i = 0; i < imagesToolbar.length; i++) {\r\n\t\t\tif (i == 2 || i == 3 || i == 8 || i == 10 || i == 11 || i == 12 ) {\r\n /* adding separator to the toolbar */\r\n\t\t\t\taddSeparator();\r\n } \r\n /* adding the buttons to toolbar */\r\n\t\t\tadd(buttonsToolbar[i] = new JButton(new ImageIcon(ClassLoader.getSystemResource(imagesToolbar[i]))));\r\n\t\t\t/* setting the ToolTipText to the buttons of toolbar */\r\n\t\t\tbuttonsToolbar[i].setToolTipText(tipText[i]);\r\n\t\t}\r\n\t}", "private void createToolbar() {\r\n // the visible toolbar is actually a toolbar next to a combobox.\r\n // That is why we need this extra composite, layout and numColums = 2.\r\n final Composite parent = new Composite(SHELL, SWT.FILL);\r\n final GridLayout layout = new GridLayout();\r\n layout.numColumns = 2;\r\n parent.setLayout(layout);\r\n\r\n final ToolBar bar = new ToolBar(parent, SWT.NONE);\r\n final GridData data = new GridData();\r\n data.heightHint = 55;\r\n data.grabExcessVerticalSpace = false;\r\n bar.setLayoutData(data);\r\n bar.setLayout(new GridLayout());\r\n\r\n createOpenButton(bar);\r\n\r\n createGenerateButton(bar);\r\n\r\n createSaveButton(bar);\r\n\r\n createSolveButton(bar);\r\n\r\n createAboutButton(bar);\r\n\r\n algorithmCombo = new AlgorithmCombo(parent);\r\n }", "private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }", "private ActionToolbar createActionsToolbar() {\n DefaultActionGroup actions = new DefaultActionGroup();\n\n actions.add(EditorActionsFactory.create(BOLD));\n actions.add(EditorActionsFactory.create(ITALIC));\n actions.add(EditorActionsFactory.create(UNDERLINE));\n actions.addSeparator();\n actions.add(EditorActionsFactory.create(ALIGN_LEFT));\n actions.add(EditorActionsFactory.create(ALIGN_CENTER));\n actions.add(EditorActionsFactory.create(ALIGN_RIGHT));\n\n final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.EDITOR_TAB, actions, true);\n actionToolbar.setMinimumButtonSize(ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);\n return actionToolbar;\n }", "public CreateToolBar(final String theName, final List<ToolAction> theToolActions) {\n myToolBar = new JToolBar(theName);\n final ButtonGroup group = new ButtonGroup();\n \n for (final ToolAction currentTool : theToolActions) {\n final JToggleButton item = new JToggleButton(currentTool);\n group.add(item);\n myToolBar.add(item);\n }\n }", "@Override\n\tpublic Button createButton() {\n\t\treturn new HtmlButton();\n\t}", "private JButton getLinkButton() {\r\n\t\tif (linkButton == null) {\r\n\t\t\tlinkButton = new JButton(); \r\n\t\t\tlinkButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/discrete_attribute.gif\")));\r\n\t\t\tlinkButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tlinkButton.setBounds(new Rectangle(44, 1, 23, 20));\r\n\t\t\tlinkButton.setToolTipText(\"超链接编辑\");\r\n\t\t\tlinkButton.setActionCommand(\"linkButton\");\r\n\t\t\tlinkButton.addActionListener(this.buttonAction);\r\n\t\t\t\r\n\t\t}\r\n\t\treturn linkButton;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jToolBar1 = new javax.swing.JToolBar();\n btnDom = new javax.swing.JButton();\n btnBook = new javax.swing.JButton();\n btnTT = new javax.swing.JButton();\n btnPos = new javax.swing.JButton();\n btnTool = new javax.swing.JButton();\n btnNews = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jToolBar1.setRollover(true);\n\n btnDom.setText(\"DOM\");\n btnDom.setFocusable(false);\n btnDom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnDom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnDom.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDomActionPerformed(evt);\n }\n });\n jToolBar1.add(btnDom);\n\n btnBook.setText(\"Book\");\n btnBook.setFocusable(false);\n btnBook.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBook.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnBook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBookActionPerformed(evt);\n }\n });\n jToolBar1.add(btnBook);\n\n btnTT.setText(\"T&T\");\n btnTT.setFocusable(false);\n btnTT.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTT.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTTActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTT);\n\n btnPos.setText(\"Posição\");\n btnPos.setFocusable(false);\n btnPos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnPos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPosActionPerformed(evt);\n }\n });\n jToolBar1.add(btnPos);\n\n btnTool.setText(\"Ferramentas\");\n btnTool.setFocusable(false);\n btnTool.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTool.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTool.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnToolActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTool);\n\n btnNews.setText(\"Notícias\");\n btnNews.setFocusable(false);\n btnNews.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnNews.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnNews.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNewsActionPerformed(evt);\n }\n });\n jToolBar1.add(btnNews);\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(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 253, Short.MAX_VALUE))\n );\n\n pack();\n }", "protected JButton makeNavigationButton(String imageName, String actionCommand, String toolTipText, String altText) {\n\t\tString imgLocation = \"/images/\" + imageName;\n\t\tURL imageURL = getClass().getResource(imgLocation);\n\n\t\t// Create and initialize the button.\n\t\tJButton button = new JButton();\n\t\tbutton.setActionCommand(actionCommand);\n\t\tbutton.setToolTipText(toolTipText);\n\t\tbutton.addActionListener(this);\n\n\t\tif (imageURL != null) { // image found\n\t\t\tbutton.setIcon(new ImageIcon(imageURL, altText));\n\t\t} else { // no image found\n\t\t\tbutton.setText(altText);\n\t\t}\n\n\t\treturn button;\n\t}", "private JToolBar getJToolBarEditorHTML() {\r\n\r\n\t\tif (jToolBarEditorHTML == null) {\r\n\t\t\tjToolBarEditorHTML = ekitCoreEditorHTMLPanel.getToolBar(true);\r\n\t\t\tjToolBarEditorHTML.setBounds(new Rectangle(1, 1, 617, 30));\r\n\t\t}\r\n\t\treturn jToolBarEditorHTML;\r\n\t}", "protected JButton createRefreshButton() {\n JButton butRefresh = new JButton();\n butRefresh.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/refresh3.png\")));\n butRefresh.setToolTipText(\"Refresh All\");\n butRefresh.addActionListener(new refreshListener());\n return butRefresh;\n }", "private static JButton buttonMaker(String s){\n final JButton button;\n button = new JButton(new ImageIcon(iconMaker(s)));\n button.setFocusPainted(false);\n return button;\n }", "public static JButton createIconButton(String tooltip, Icon icon) {\n JButton ret = new JButton(icon);\n ret.setMargin(new Insets(0, 0, 0, 0));\n ret.setBorderPainted(false);\n ret.setBorder(null);\n ret.setFocusable(false);\n ret.setIconTextGap(0);\n if (tooltip != null)\n attachToolTip(ret, tooltip, SwingConstants.RIGHT, SwingConstants.TOP);\n//TODO combine FrameworkIcon and LazyIcon into one class\n// if (icon instanceof FrameworkIcon) {\n// FrameworkIcon ficon = (FrameworkIcon)icon;\n// ret.setDisabledIcon(ficon);\n// }\n// else if (icon instanceof LazyIcon) {\n// LazyIcon licon = (LazyIcon)icon;\n// ret.setDisabledIcon(licon);\n// }\n return ret;\n }", "private JToolBar getTlbNavigate() {\r\n\t\tif (tlbNavigate == null) {\r\n\t\t\ttlbNavigate = new JToolBar();\r\n\t\t\ttlbNavigate.setLayout(new BoxLayout(getTlbNavigate(), BoxLayout.X_AXIS));\r\n\t\t\ttlbNavigate.add(getBtnBack());\r\n\t\t\ttlbNavigate.add(getBtnForward());\r\n\t\t\ttlbNavigate.add(getBtnHome());\r\n\t\t\ttlbNavigate.add(getTxtAddress());\r\n\t\t\ttlbNavigate.add(getBtnGo());\r\n\t\t}\r\n\t\treturn tlbNavigate;\r\n\t}", "C getRegisteredToolBar(ToolbarPosition position);", "private Button initChildButton(Pane toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }", "private JButton getColorButton() {\r\n\t\tif (colorButton == null) {\r\n\t\t\tcolorButton = new JButton(); \r\n\t\t\tcolorButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/rtf_choosecolor.gif\")));\r\n\t\t\tcolorButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tcolorButton.setBounds(new Rectangle(16, 1, 23, 20));\r\n\t\t\tcolorButton.setToolTipText(\"颜色编辑\");\r\n\t\t\tcolorButton.setActionCommand(\"colorButton\");\r\n\t\t\tcolorButton.addActionListener(this.buttonAction);\r\n\t\t}\r\n\t\treturn colorButton;\r\n\t}", "private JButton makeButton(String action, String label, int x, int y, int width, int height,\r\n float alignment, String soundName) {\r\n JButton button = new JButton(label);\r\n button.setBounds(x, y, width, height);\r\n button.setAlignmentX(alignment);\r\n button.setBackground(Color.ORANGE);\r\n clickActionListener(button, action, soundName);\r\n return button;\r\n }", "private JButton getJButton() {\n\t\tif (jButton == null) {\n\t\t\tjButton = new JButton();\n\t\t\tjButton.setBounds(new Rectangle(57, 80, 34, 45));\n\t\t}\n\t\treturn jButton;\n\t}", "private JButton getJButton2() {\n\t\tif (import_button == null) {\n\t\t\timport_button = new JButton();\n\t\t\timport_button.setText(Locale.getString(\"IMPORT\"));\n\t\t\timport_button.setMnemonic(java.awt.event.KeyEvent.VK_I);\n\t\t}\n\t\treturn import_button;\n\t}", "private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }", "protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}", "public JButton getJbMenu() {\n\t\tif(jbMenu==null){\n\t\t\tjbMenu = new JButton(\"Menu\");\n\t\t\tDimension dim = new Dimension(150,30);\n\t\t\tjbMenu.setPreferredSize(dim);\n\t\t\tjbMenu.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\tjbMenu.addMouseListener(new MouseListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tjbMenu.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tjbMenu.setBackground(ColorProject.COLOR_BLUE.getCol().brighter());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t}\n\t\t\t});\n\t\t\tjbMenu.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJFrameproject05 fen = (JFrameproject05)SwingUtilities.getAncestorOfClass(JFrameproject05.class, PanelAdminButton.this);\n\t\t\t\t\tfen.getjPanelCartes().getCl().show(fen.getjPanelCartes(), \"Menu\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jbMenu;\n\t}", "private javax.swing.JButton getJButtonAceptar() {\n\t\tif(jButtonAceptar == null) {\n\t\t\tjButtonAceptar = new JHighlightButton();\n\t\t\tjButtonAceptar.setText(\"Aceptar\");\n\t\t\tjButtonAceptar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonAceptar.setIcon(new ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/check2.png\")));\n\t\t}\n\t\treturn jButtonAceptar;\n\t}", "private JButton getJButtonInto() {\r\n\t\tif (jButtonInto == null) {\r\n\t\t\tjButtonInto = new JButton();\r\n\t\t\tjButtonInto.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonInto.setText(\"数据入库\");\r\n\t\t\tjButtonInto.setBounds(new Rectangle(512, 517, 70, 23));\r\n\t\t\tjButtonInto.addMouseListener(new MouseAdapter() {\r\n\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\r\n\t\t\t\t\tDataIntoGui.this.setVisible(false);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonInto;\r\n\t}", "@Override\r\n\tprotected ToolBarManager createToolBarManager(int style) {\r\n\t\tToolBarManager toolBarManager = new ToolBarManager(style);\r\n\t\treturn toolBarManager;\r\n\t}", "private JButton getJButton() {\n\t\tif (new_button == null) {\n\t\t\tnew_button = new JButton();\n\t\t\tnew_button.setText(Locale.getString(\"NEW\"));\n\t\t\tnew_button.setMnemonic(java.awt.event.KeyEvent.VK_N);\n\t\t\tnew_button.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn new_button;\n\t}", "private JButton getJButtonVisualizar() {\r\n\t\tif (jButtonVisualizar == null) {\r\n\t\t\tjButtonVisualizar = new JButton();\r\n\t\t\tjButtonVisualizar.setText(\"Visualizar\");\r\n\t\t\tjButtonVisualizar.setIcon(new ImageIcon(getClass().getResource(\"img\" + File.separator + \"run.gif\")));\r\n\t\t\tjButtonVisualizar.addActionListener(this);\r\n\t\t}\r\n\t\treturn jButtonVisualizar;\r\n\t}", "private javax.swing.JButton getJButton11() {\n\t\tif(jButton11 == null) {\n\t\t\tjButton11 = new javax.swing.JButton();\n\t\t\tjButton11.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton11.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton11.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton11.setText(\"F11 Bloquear\");\n\t\t\tjButton11.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton11.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton11.setEnabled(false);\n\t\t}\n\t\treturn jButton11;\n\t}", "private JButton createButton(final Box addTo, final String label) {\n JButton button = new JButton(label);\n button.setActionCommand(label);\n button.addActionListener(this);\n addTo.add(button);\n return button;\n }", "private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setText(\"Close\");\r\n\t\t\tjButton.setSize(new Dimension(90,30));\r\n\t\t\tjButton.setLocation(new Point(660, 520));\r\n\t\t\tjButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tsetVisible(false);\r\n\t\t\t\t\t_parent.addSelectFields(PageSelectDialog.this);\r\n\t\t\t\t\tUtils.removeWindow(PageSelectDialog.this);\r\n\t\t\t\t\t_parent.setVisible(true);\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButton;\r\n\t}", "protected void addActivePathToolbarButton ()\n {\n\n }", "AbstractButton createFor(String graphicsResource, String tooltip, final JMenuItem inMenu, boolean toggle) {\r\n\t\tAbstractButton result = toggle ? new JToggleButton() : new JButton();\r\n\t\tURL res = getClass().getResource(graphicsResource);\r\n\t\tif (res != null) {\r\n\t\t\tresult.setIcon(new ImageIcon(res));\r\n\t\t}\r\n\t\tresult.setToolTipText(tooltip);\r\n\t\tresult.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tinMenu.doClick();\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn result;\r\n\t}", "private JButton getJButton1() {\n\t\tif (edit_button == null) {\n\t\t\tedit_button = new JButton();\n\t\t\tedit_button.setMnemonic(java.awt.event.KeyEvent.VK_E);\n\t\t\tedit_button.setText(Locale.getString(\"EDIT\"));\n\t\t}\n\t\treturn edit_button;\n\t}", "@Override\n\tprotected ToolBarManager createToolBarManager(int style) {\n\t\treturn null;\n\t}", "Button createButton();", "private JButton getLaunchButton() {\r\n\t\tif (launchButton == null) {\r\n\t\t\tlaunchButton = new JButton();\r\n\t\t\tlaunchButton.setText(Message.getMessage(\"reportmaker.process.label\"));\r\n\t\t\tlaunchButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tReportMakerController.instance.process();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn launchButton;\r\n\t}", "private JButton addButton(String name) {\n JButton button = new JButton(name);\n button.setActionCommand(name);\n buttonsPanel.add(button);\n return button;\n }", "private JButton getAddButton() {\n if (addButton == null) {\n addButton = new JButton();\n addButton.setText(\"Add\");\n addButton.setToolTipText(\"Add new notification settings for a site\");\n addButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n addBalloonSettings();\n }\n });\n }\n return addButton;\n }", "public void createToolsButton(final Action theAction) {\n final JToggleButton toolButton = new JToggleButton(theAction);\n \n myButtonGroup.add(toolButton);\n myButtonGroup.clearSelection();\n \n add(toolButton);\n }", "public CoeusToolBarFactory(CoeusAppletMDIForm mdiForm) {\r\n super();\r\n this.mdiForm = mdiForm;\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n createToolBar();\r\n // rdias UCSD - Coeus personalization impl\r\n//\t AbstractController persnref = AbstractController.getPersonalizationControllerRef();\r\n//\t persnref.customize_module(null, getToolBar(),this, \"MAINFRAME\");\r\n\t //rdias UCSD \r\n }", "protected abstract ToolbarEngine getInstanceOfToolbar();", "@Override\n\tprotected void createCompButtons() {\n\t\tbtnExcelReport = new Button(getCompButtons(), SWT.NONE);\n\t\tbtnExcelReport.setText(\"Excel Report\");\n\t\tbtnExcelReport.setFont(ResourceUtils.getFont(iDartFont.VERASANS_8));\n\t\tbtnExcelReport\n\t\t.addSelectionListener(new org.eclipse.swt.events.SelectionAdapter() {\n\t\t\t@Override\n\t\t\tpublic void widgetSelected(\n\t\t\t\t\torg.eclipse.swt.events.SelectionEvent e) {\n\t\t\t\tcmdExcelReportWidgetSelected();\n\t\t\t}\n\t\t});\n\t}", "private JButton getIcoButton() {\r\n\t\tif (icoButton == null) {\r\n\t\t\ticoButton = new JButton();\r\n\t\t\ticoButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/tileimg.png\")));\r\n\t\t\ticoButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setLocation(new Point(72, 1));\r\n\t\t\ticoButton.setSize(new Dimension(23, 23));\r\n\t\t\ticoButton.setToolTipText(\"图片编辑\");\r\n\t\t\ticoButton.setActionCommand(\"icoButton\");\r\n\t\t\tbuttonAction = new ButtonAction(this);\r\n\t\t\ticoButton.addActionListener(buttonAction);\r\n\t\t}\r\n\t\treturn icoButton;\r\n\t}", "private void createToolButtons(final Map<PaintTool, ToolAction> theMap, \n final List<PaintTool> theTools,\n final JFrame theFrame) {\n \n final ButtonGroup toolBarGroup = new ButtonGroup();\n for (final PaintTool aT : theTools) {\n final JToggleButton button = new JToggleButton(aT.getDescription());\n toolBarGroup.add(button);\n aT.addPropertyChangeListener(this);\n button.setAction(theMap.get(aT));\n myToolBar.add(button);\n myToolBar.addSeparator();\n }\n theFrame.add(myToolBar, BorderLayout.PAGE_END);\n }", "private JButton createBookButton() {\n\t\tfinal JButton bookButton = new JButton(\"Create Booking\");\n\n\t\tbookButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(final ActionEvent e) {\n\t\t\t\thandleBooking();\n\t\t\t}\n\t\t});\n\n\t\treturn bookButton;\n\t}", "private javax.swing.JButton getJButton7() {\n\t\tif(jButton7 == null) {\n\t\t\tjButton7 = new javax.swing.JButton();\n\t\t\tjButton7.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton7.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton7.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton7.setText(\"F7 Cerrar Lista\");\n\t\t\tjButton7.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton7.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t}\n\t\treturn jButton7;\n\t}", "private void createOpenButton(final ToolBar bar) {\r\n // image's source:\r\n // https://openclipart.org/detail/119905/load-cedric-bosdonnat-01-by-anonymous\r\n createButton(bar, \"images/load_cedric_bosdonnat_01.png\", \"Open\",\r\n new SelectionOpenListener());\r\n }", "private javax.swing.JButton getJButton8() {\n\t\tif(jButton8 == null) {\n\t\t\tjButton8 = new javax.swing.JButton();\n\t\t\tjButton8.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton8.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton8.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton8.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton8.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton8.setText(\"F8 Anular Lista\");\n\t\t}\n\t\treturn jButton8;\n\t}", "private JComponent getButtonPanel() {\n JPanel buttonPanel = new JPanel();\n // Open\n OpenAction openAction = new OpenAction();\n buttonPanel.add(new JButton(openAction));\n // Save\n SaveAction saveAction = new SaveAction();\n buttonPanel.add(new JButton(saveAction));\n // Save as\n SaveAsAction saveAsAction = new SaveAsAction(saveAction);\n buttonPanel.add(new JButton(saveAsAction));\n return buttonPanel;\n }", "private JToolBar createToolBar() {\n JToolBar toolbar = new JToolBar();\n Insets margins = new Insets(0, 0, 0, 0);\n\n ButtonGroup group1 = new ButtonGroup();\n\n ToolBarButton edit = new ToolBarButton(\"images/E.gif\");\n edit.setToolTipText(\"Edit motes\");\n edit.setMargin(margins);\n edit.setActionCommand(\"edit\");\n edit.setSelected(true);\n edit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n add.enable();\n remove.enable();\n auto.enable();\n add.setSelected(true);\n }\n });\n group1.add(edit);\n toolbar.add(edit);\n\n ToolBarButton vis = new ToolBarButton(\"images/V.gif\");\n vis.setToolTipText(\"Visualize mote network\");\n vis.setMargin(margins);\n vis.setActionCommand(\"visualize\");\n vis.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n// AKD setMode(VIZ_MODE);\n add.setSelected(false);\n remove.setSelected(false);\n auto.setSelected(false);\n add.disable();\n remove.disable();\n auto.disable();\n }\n });\n group1.add(vis);\n toolbar.add(vis);\n\n toolbar.addSeparator();\n\n ButtonGroup group2 = new ButtonGroup();\n\n ToolBarButton pan = new ToolBarButton(\"images/P.gif\");\n pan.setToolTipText(\"Pan view\");\n pan.setMargin(margins);\n pan.setActionCommand(\"pan\");\n pan.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(PAN_MODE);\n }\n });\n group2.add(pan);\n toolbar.add(pan);\n\n add = new ToolBarButton(\"images/A.gif\");\n add.setToolTipText(\"Add mote\");\n add.setMargin(margins);\n add.setActionCommand(\"add\");\n add.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n }\n });\n group2.add(add);\n toolbar.add(add);\n\n remove = new ToolBarButton(\"images/R.gif\");\n remove.setToolTipText(\"Remove mote\");\n remove.setMargin(margins);\n remove.setActionCommand(\"pan\");\n remove.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(REMOVE_MODE);\n }\n });\n group2.add(remove);\n toolbar.add(remove);\n\n auto = new ToolBarButton(\"images/T.gif\");\n auto.setToolTipText(\"Automatic mode\");\n auto.setMargin(margins);\n auto.setActionCommand(\"auto\");\n auto.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(AUTO_MODE);\n }\n });\n group2.add(auto);\n toolbar.add(auto);\n\n toolbar.setFloatable(true);\n return toolbar;\n }", "private JButton getJButtonBrowser() {\r\n\t\tif (jButtonBrowser == null) {\r\n\t\t\tjButtonBrowser = new JButton();\r\n\t\t\tjButtonBrowser.setBounds(new Rectangle(510, 86, 50, 23));\r\n\t\t\tjButtonBrowser.setMargin(new Insets(2, 5, 2, 5));\r\n\t\t\tjButtonBrowser.setText(\"浏览\");\r\n\t\t\tjButtonBrowser.addMouseListener(new MouseAdapter() {\r\n\t\t\t\tpublic void mouseClicked(java.awt.event.MouseEvent e) {\r\n\t\t\t\t\tJFileChooser jc = new JFileChooser\r\n\t\t\t\t\t(new File(Const.APP_PATH));\r\n\t\t\t\t\tjc.setBackground(Color.WHITE);\r\n\t\t\t\t\tjc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY);\r\n\t\t\t\t\tjc.showOpenDialog(DataIntoGui.this);\r\n\t\t\t\t\tFile f = jc.getSelectedFile();\r\n\t\t\t\t\tif( f == null )return ;\r\n\t\t\t\t\tDataIntoGui.this.jTextFieldSqlPath.setText(f.getAbsolutePath());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonBrowser;\r\n\t}", "private void createToolBarActions() {\r\n\t\t// create the action\r\n\t\tGetMessage<Transport> getMessage = new GetMessage<Transport>(new Transport());\r\n\t\tgetMessage.addParameter(IFilterTypes.TRANSPORT_TODO_FILTER, \"\");\r\n\r\n\t\t// add to the toolbar\r\n\t\tform.getToolBarManager().add(new RefreshViewAction<Transport>(getMessage));\r\n\t\tform.getToolBarManager().update(true);\r\n\t}", "private javax.swing.JButton getJButton2() {\n\t\tif(jButton2 == null) {\n\t\t\tjButton2 = new javax.swing.JButton();\n\t\t\tjButton2.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton2.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton2.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton2.setText(\"F2 Eliminar Producto\");\n\t\t\tjButton2.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton2.setMargin(new Insets(1,2,1,1));\n\t\t}\n\t\treturn jButton2;\n\t}", "private JToolBar getTlbKeypad() {\r\n\t\tif (tlbKeypad == null) {\r\n\t\t\ttlbKeypad = new JToolBar();\r\n\t\t\ttlbKeypad.setOrientation(JToolBar.VERTICAL);\r\n\t\t\ttlbKeypad.setVisible(false);\r\n\t\t\ttlbKeypad.add(getPnlKeypad());\r\n\t\t}\r\n\t\treturn tlbKeypad;\r\n\t}", "private JButton makePrgRunButton() {\r\n\t\tJButton tprgRunButton = new JButton();\r\n\t\ttprgRunButton.setBackground(new Color(250, 250, 250));\r\n\t\ttprgRunButton.setForeground(new Color(51, 51, 51));\r\n\t\ttprgRunButton.setIcon(new ImageIcon(getClass().getResource(\"/org/colombbus/tangara/control_play_blue.png\"))); //$NON-NLS-1$\r\n\t\ttprgRunButton.setFont(new Font(\"Lucida Grande\", Font.PLAIN, 13)); //$NON-NLS-1$\r\n\t\ttprgRunButton.setPreferredSize(new Dimension(120, 30));\r\n\t\ttprgRunButton.setText(Messages.getString(\"EditorFrame.button.execute\")); //$NON-NLS-1$\r\n\t\ttprgRunButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\tparentFrame.executeProgram(getCurrentPane().getText(), getSelectedIndex());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\treturn tprgRunButton;\r\n\t}", "@NotNull\n TBItemButton addButton() {\n @NotNull TBItemButton butt = new TBItemButton(myItemListener, myStats != null ? myStats.getActionStats(\"simple_button\") : null);\n myItems.addItem(butt);\n return butt;\n }", "public ToolBar(final ColorPicker theAction) {\n super();\n myButtonGroup = new ButtonGroup();\n final JButton colorSwatchButton = new JButton(theAction);\n \n //remove the weird selected border of the color button so it doesn't obscure the icon.\n colorSwatchButton.setFocusPainted(false);\n \n colorSwatchButton.setIcon(theAction.getIcon());\n add(colorSwatchButton);\n addSeparator();\n }", "protected JButton makeImageButton(String imageName, String action, String tooltip, String alt) {\n String imgLocation = \"/Rewind24.gif\";\n URL imageURL = Menu.class.getResource(\"/home/jon/Desktop/boner.desktop\");\n\n\n\n JButton button = new JButton();\n // button.setAction(action);\n button.setToolTipText(tooltip);\n // button.addActionListener(this);\n\n button.setIcon(new ImageIcon(imageURL, alt));\n\n return button;\n }", "private JButton getJButtonCrearCuentaAdmin() {\r\n\t\tif (jButtonCrearCuentaAdmin == null) {\r\n\t\t\tjButtonCrearCuentaAdmin = new JButton();\r\n\t\t\tjButtonCrearCuentaAdmin.setText(BOTONCREARADMIN);\r\n\t\t\tjButtonCrearCuentaAdmin\r\n\t\t\t\t\t.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t\t\tcrearAdmin();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t});\r\n\t\t}\r\n\t\treturn jButtonCrearCuentaAdmin;\r\n\t}", "private void createButton() {\n\t\tbtnAddTask = new JButton(\"Add Task\");\n\t\tbtnSave = new JButton(\"Save\");\n\t\tbtnCancel = new JButton(\"Cancel\");\n\n\t\tbtnAddTask.addActionListener(new ToDoAction());\n\t\tbtnSave.addActionListener(new ToDoAction());\n\t\tbtnCancel.addActionListener(new ToDoAction());\n\t}", "private void addButton()\n {\n JButton button = new JButton();\n button.setSize(200, 30);\n button.setName(\"login\");\n button.setAction(new CreateUserAction());\n add(button);\n button.setText(\"Login\");\n }", "private JButton getBrowseButton() {\n if (browseButton == null) {\n browseButton = new JButton();\n browseButton.setText(\"Browse\");\n browseButton.setIcon(IntroduceLookAndFeel.getBrowseIcon());\n browseButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n browse();\n }\n });\n }\n return browseButton;\n }", "private JButton createButtonAddProduct() {\n\n JButton btn = new JButton(\"Add Product\");\n btn.setEnabled(false);\n btn.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n\n // new NewProductDialog(DemonstrationApplication.this);\n }\n });\n\n return btn;\n }", "@Override\n public Component getToolbarPresenter() {\n \n fxPanel = new JFXPanel();\n \n Platform.setImplicitExit(false); //Ensure JavaFX thread does not close application\n Platform.runLater(()-> { //Create FX scene outside Swing Thread\n createFXScene();\n });\n\n return fxPanel;\n }" ]
[ "0.7663794", "0.75106657", "0.7414019", "0.7371093", "0.7276295", "0.7121832", "0.6970985", "0.6925961", "0.68781346", "0.6835889", "0.67926294", "0.6790883", "0.67334497", "0.67029", "0.67002875", "0.6661244", "0.6616312", "0.6615931", "0.66127783", "0.6564825", "0.654377", "0.65387607", "0.65237707", "0.6491054", "0.648338", "0.6473907", "0.6460525", "0.645753", "0.64517474", "0.64513946", "0.64080536", "0.6384434", "0.63806015", "0.6375231", "0.6363271", "0.63329434", "0.6322628", "0.6315899", "0.630235", "0.63014793", "0.6285531", "0.62715685", "0.6270374", "0.6257682", "0.6240934", "0.6237439", "0.6213097", "0.6212072", "0.62095165", "0.620069", "0.617875", "0.61784095", "0.6173683", "0.61727315", "0.6135345", "0.60889417", "0.60639566", "0.6061643", "0.605098", "0.60276014", "0.6015546", "0.60130435", "0.6007973", "0.6004846", "0.5979985", "0.5973269", "0.5971563", "0.5970371", "0.59624887", "0.5959165", "0.59522593", "0.59512615", "0.59463775", "0.5943342", "0.5938069", "0.5921848", "0.5920285", "0.59171176", "0.59036434", "0.5899098", "0.589281", "0.5892485", "0.5887762", "0.58829767", "0.5865349", "0.5862423", "0.5861962", "0.5857674", "0.58548415", "0.58376616", "0.5837505", "0.5826553", "0.5815899", "0.5813349", "0.58062863", "0.580333", "0.5801854", "0.5785152", "0.5774456", "0.57736933" ]
0.7509161
2
Creates and returns a JToggleButton configured for use in a JToolBar. This is a simplified method that is overriden by the Looks Demo. The full code uses the JGoodies UI framework's ToolBarButton that better handles platform differences.
protected AbstractButton createToolBarRadioButton(String iconName, String toolTipText) { JToggleButton button = new JToggleButton(readImageIcon(iconName)); button.setToolTipText(toolTipText); button.setFocusable(false); return button; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private JToolBar getToolsToolBar() {\r\n\t\tif (toolsToolBar == null) {\r\n\t\t\ttoolsToolBar = new JToolBar();\r\n\t\t\ttoolsToolBar.setPreferredSize(new Dimension(87, 24));\r\n\t\t\tif(flag){\r\n\t\t\t\ttoolsToolBar.add(getOpenButton());\r\n\t\t\t\ttoolsToolBar.add(getSaveButton());\r\n\t\t\t}\r\n\t\t\ttoolsToolBar.add(getColorButton());\r\n\t\t\ttoolsToolBar.add(getLinkButton());\r\n\t\t\ttoolsToolBar.add(getIcoButton());\r\n\t\t}\r\n\t\treturn toolsToolBar;\r\n\t}", "private JToolButton getToggleButton(Tool tool, String toolId) {\n String name = tool.getName();\n JToolButton button = new JToolButton(name, tool instanceof ToolGroup);\n\n String displayName = name;\n // wrap the title\n if (!name.startsWith(\"<html>\")) {\n displayName = \"<html><div align='center'>\" + name + \"</div></html>\";\n }\n\n if (displayHoverover) {\n String hoveroverText = generateHoverover(tool);\n button.setToolTipText(hoveroverText);\n }\n \n button.setPreferredSize(\n new Dimension(\n iconSize.width, \n iconSize.height + TEXT_SPACE_SIZE));\n \n button.setBorderPainted(true);\n button.setBorder(BorderFactory.createEmptyBorder(0 ,0, 0, 0));\n button.setContentAreaFilled(false);\n\n button.setRolloverEnabled(true);\n button.setActionCommand(toolId);\n button.setText(displayName);\n button.setFont(FontColorUtils.getSmallFont());\n button.setVerticalTextPosition(AbstractButton.BOTTOM);\n button.setHorizontalTextPosition(AbstractButton.CENTER);\n button.setVerticalAlignment(AbstractButton.TOP);\n button.setHorizontalAlignment(AbstractButton.CENTER);\n button.setMargin(ICON_MARGIN);\n button.setEnabled(areEnabled);\n\n // assign the loading image\n buttonGroup.add(button);\n \n if (toolIdToButtonMap.containsKey(toolId)) {\n JToolButton tempButton = toolIdToButtonMap.get(toolId);\n remove(tempButton);\n buttonGroup.remove(tempButton);\n }\n add(button);\n\n return button;\n }", "public Component createNewToolItem() {\r\n Button button = new Button();\r\n gwtToolbarItem.addClasses(button);\r\n button.addStyleName(\"action-bar-tool-item\");\r\n return button;\r\n }", "public JToolBar createJToolBar(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 83 */ JToolBar result = new JToolBar();\n/* 84 */ List buttons = getStringList(name);\n/* */ \n/* 86 */ for (Object button : buttons) {\n/* 87 */ String s = (String)button;\n/* 88 */ if (s.equals(\"-\")) {\n/* 89 */ result.add(new JToolbarSeparator()); continue;\n/* */ } \n/* 91 */ result.add(createJButton(s));\n/* */ } \n/* */ \n/* 94 */ return result;\n/* */ }", "private Component buildToolBar() {\r\n DToolBar toolBar = new DToolBar();\r\n// toolBar.applyComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);\r\n toolBar.setFloatable(true);\r\n toolBar.putClientProperty(\"JToolBar.isRollover\", Boolean.TRUE);\r\n // Swing\r\n toolBar.putClientProperty(\r\n Options.HEADER_STYLE_KEY,\r\n settings.getToolBarHeaderStyle());\r\n toolBar.putClientProperty(\r\n PlasticLookAndFeel.BORDER_STYLE_KEY,\r\n settings.getToolBarPlasticBorderStyle());\r\n toolBar.putClientProperty(\r\n WindowsLookAndFeel.BORDER_STYLE_KEY,\r\n settings.getToolBarWindowsBorderStyle());\r\n toolBar.putClientProperty(\r\n PlasticLookAndFeel.IS_3D_KEY,\r\n settings.getToolBar3DHint());\r\n\r\n AbstractButton button;\r\n/*\r\n toolBar.add(createToolBarButton(\"backward.gif\", \"Back\"));\r\n button = createToolBarButton(\"forward.gif\", \"Next\");\r\n button.setEnabled(false);\r\n toolBar.add(button);*/\r\n \r\n button = createToolBarButton(\"home.gif\", ResourceUtil.getString(\"HOME\"));\r\n toolBar.add(button);\r\n button.addActionListener(this);\r\n button.setActionCommand(\"home\");\r\n// toolBar.addSeparator();\r\n \r\n button = createToolBarButton(\"preference16.gif\", ResourceUtil.getString(\"PREFERENCES\"));\r\n toolBar.add(button);\r\n button.setRolloverIcon(readImageIcon(\"preference16_over.gif\"));\r\n button.addActionListener(this);\r\n button.setActionCommand(\"Preferences\");\r\n toolBar.addSeparator();\r\n\r\n button = createToolBarButton(\"new16.gif\", ResourceUtil.getString(\"NEW\"));\r\n button.setActionCommand(\"new\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"save_edit.gif\", ResourceUtil.getString(\"SAVE\"));\r\n button.setActionCommand(\"save\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"delete16.gif\", ResourceUtil.getString(\"DELETE\"));\r\n button.setActionCommand(\"delete\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n \r\n button = createToolBarButton(\"print.gif\", ResourceUtil.getString(\"PRINT\"));\r\n button.setActionCommand(\"print\");\r\n button.addActionListener(this);\r\n toolBar.add(button);\r\n/* \r\n toolBar.add(createToolBarButton(\"print.gif\", \"Print\"));\r\n toolBar.add(createToolBarButton(\"refresh.gif\", \"Update\"));\r\n toolBar.addSeparator();\r\n\r\n ButtonGroup group = new ButtonGroup();\r\n button = createToolBarRadioButton(\"pie_mode.png\", \"Pie Chart\");\r\n button.setSelectedIcon(readImageIcon(\"pie_mode_selected.gif\"));\r\n group.add(button);\r\n button.setSelected(true);\r\n toolBar.add(button);\r\n\r\n button = createToolBarRadioButton(\"bar_mode.png\", \"Bar Chart\");\r\n button.setSelectedIcon(readImageIcon(\"bar_mode_selected.gif\"));\r\n group.add(button);\r\n toolBar.add(button);\r\n\r\n button = createToolBarRadioButton(\"table_mode.png\", \"Table\");\r\n button.setSelectedIcon(readImageIcon(\"table_mode_selected.gif\"));\r\n group.add(button);\r\n toolBar.add(button);\r\n toolBar.addSeparator();\r\n\r\n button = createToolBarButton(\"help.gif\", \"Open Help\");\r\n button.addActionListener(createHelpActionListener());\r\n toolBar.add(button);*/\r\n\r\n return toolBar;\r\n }", "protected abstract JToolBar getNorthToolbar();", "public JMTToolBar createToolbar() {\r\n \t\tJMTToolBar toolbar = new JMTToolBar(JMTImageLoader.getImageLoader());\r\n \t\t// Builds an array with all actions to be put in the toolbar\r\n \t\tAbstractJmodelAction[] actions = new AbstractJmodelAction[] { newModel, openModel, saveModel, null,\r\n \t\t\t\t// editUndo, editRedo, null,\r\n \t\t\t\tactionCut, actionCopy, actionPaste, null, editUserClasses, editMeasures, editSimParams, editPAParams, null, switchToExactSolver,\r\n \t\t\t\tnull, simulate, pauseSimulation, stopSimulation, showResults, null, editDefaults, openHelp };\r\n \t\ttoolbar.populateToolbar(actions);\r\n \t\treturn toolbar;\r\n \t}", "private JToolBar getJToolBar() {\r\n\t\tif (jToolBar == null) {\r\n\t\t\tjToolBar = new JToolBar();\r\n\t\t\tjToolBar.setFloatable(false);\r\n\t\t\tjToolBar.add(getCmdAdd());\r\n\t\t\tjToolBar.add(getCmdDel());\r\n\t\t\tjToolBar.add(getCmdAddT());\r\n\t\t\tjToolBar.add(getCmdUrl());\r\n\t\t\tjToolBar.add(getCmdStart());\r\n\t\t\tjToolBar.add(getCmdPause());\r\n\t\t\tjToolBar.add(getCmdStop());\r\n\t\t\tjToolBar.add(getCmdExport());\r\n\t\t}\r\n\t\treturn jToolBar;\r\n\t}", "private JToggleButton createJToggleButton(String name, ImageIcon image) {\n\t\t// Create new JToggleButton.\n\t\tJToggleButton button = new JToggleButton();\n\t\tbutton.setName(name);\n\n\t\t// Set action command of the new JToggleButton to be name.\n\t\tbutton.setActionCommand(name);\n\t\tbutton.setToolTipText(name);\n\n\t\t// Set icon of the action.\n\t\tbutton.setIcon(image);\n\t\tif (image != null) {\n\t\t\tDimension preferredSize = new Dimension(image.getIconWidth() + 4,\n\t\t\t\t\timage.getIconHeight() + 4);\n\t\t\tbutton.setPreferredSize(preferredSize);\n\t\t}\n\n\t\t// Add listener into the button.\n\t\tbutton.addActionListener(listener);\n\n\t\t// Put the name and button pair into the member buttonsMap;\n\t\tbuttonsMap.put(name, button);\n\n\t\t// Return the button.\n\t\treturn button;\n\t}", "public ToolButton createToolButton(String path, String toolName, Tool tool);", "private Component createToolBar()\n {\n Component toolbarPanel = null;\n\n mainToolBar = new MainToolBar(this);\n\n boolean chatToolbarVisible\n = ConfigurationUtils.isChatToolbarVisible();\n\n if (OSUtils.IS_MAC)\n {\n UnifiedToolBar macToolbarPanel = new UnifiedToolBar();\n\n MacUtils.makeWindowLeopardStyle(getRootPane());\n\n macToolbarPanel.addComponentToLeft(mainToolBar);\n macToolbarPanel.addComponentToRight(contactPhotoPanel);\n macToolbarPanel.disableBackgroundPainter();\n macToolbarPanel.installWindowDraggerOnWindow(this);\n macToolbarPanel.getComponent()\n .setBorder(BorderFactory.createEmptyBorder(3, 3, 3, 3));\n macToolbarPanel.getComponent().setVisible(chatToolbarVisible);\n\n toolbarPanel = macToolbarPanel.getComponent();\n }\n else\n {\n ToolbarPanel panel = new ToolbarPanel(new BorderLayout());\n\n panel.setBorder(BorderFactory.createEmptyBorder(3, 0, 3, 0));\n panel.add(mainToolBar, BorderLayout.CENTER);\n panel.add(contactPhotoPanel, BorderLayout.EAST);\n panel.setVisible(chatToolbarVisible);\n\n toolbarPanel = panel;\n }\n\n return toolbarPanel;\n }", "public JButton createJButton(String name) throws MissingResourceException, ResourceFormatException, MissingListenerException {\n/* 111 */ return this.buttonFactory.createJToolbarButton(name);\n/* */ }", "public MainToolbar createToolbar()\r\n {\n WbSwingUtilities.invoke(this::_createToolbar);\r\n return toolbar;\r\n }", "protected AbstractButton createToolBarButton(String iconName, String toolTipText) {\r\n JButton button = new JButton(readImageIcon(iconName));\r\n button.setToolTipText(toolTipText);\r\n button.setFocusable(false);\r\n return button;\r\n }", "private JToggleButton getDetailsToggleButton() {\r\n\t\tif (detailsToggleButton == null) {\r\n\t\t\ttry {\r\n\t\t\t\tdetailsToggleButton = new JToggleButton();\r\n\t\t\t\tdetailsToggleButton.setText(\"Vis detaljer\");\r\n\t\t\t\tdetailsToggleButton.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\t\tif (detailsToggleButton.isSelected()) {\r\n\t\t\t\t\t\t\tdetailsToggleButton.setText(\"Gjem detaljer\");\r\n\t\t\t\t\t\t\ttestAreaScrollPane.setVisible(true);\r\n\t\t\t\t\t\t\tpack();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\telse {\r\n\t\t\t\t\t\t\tdetailsToggleButton.setText(\"Vis detaljer\");\r\n\t\t\t\t\t\t\ttestAreaScrollPane.setVisible(false);\r\n\t\t\t\t\t\t\tpack();\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} catch (java.lang.Throwable e) {\r\n\t\t\t\t// TODO: Something\r\n\t\t\t}\r\n\t\t}\r\n\t\treturn detailsToggleButton;\r\n\t}", "public JToolBar getToolBar() {\n return myToolBar;\n }", "@Override\n\tpublic Toolbar createToolbar() {\n\t\tLightVisualThemeToolbar lightVisualThemeToolbar = new LightVisualThemeToolbar();\n\t\treturn lightVisualThemeToolbar;\n\t}", "public void createToolsButton(final Action theAction) {\n final JToggleButton toolButton = new JToggleButton(theAction);\n \n myButtonGroup.add(toolButton);\n myButtonGroup.clearSelection();\n \n add(toolButton);\n }", "private JButton getJbtnHelp() {\n\t\tif (jbtnHelp == null) {\n\t\t\tjbtnHelp = new JButton();\n\t\t\tjbtnHelp.setText(\"Help\");\n\t\t\tjbtnHelp.setLocation(new Point(572, 576));\n\t\t\tjbtnHelp.setSize(new Dimension(178, 34));\n\t\t\tjbtnHelp.setEnabled(false);\n\t\t\tjbtnHelp.setForeground(Color.blue);\n\t\t}\n\t\treturn jbtnHelp;\n\t}", "public JToolBar getToolBar(){\r\n return toolbar;\r\n }", "AbstractButton createFor(String graphicsResource, String tooltip, final JMenuItem inMenu, boolean toggle) {\r\n\t\tAbstractButton result = toggle ? new JToggleButton() : new JButton();\r\n\t\tURL res = getClass().getResource(graphicsResource);\r\n\t\tif (res != null) {\r\n\t\t\tresult.setIcon(new ImageIcon(res));\r\n\t\t}\r\n\t\tresult.setToolTipText(tooltip);\r\n\t\tresult.addActionListener(new Act() {\r\n\t\t\t@Override\r\n\t\t\tpublic void act() {\r\n\t\t\t\tinMenu.doClick();\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn result;\r\n\t}", "private void setupToolBar() {\n\t\tJPanel buttons = new JPanel(new GridBagLayout());\n\t\tGridBagConstraints c = new GridBagConstraints();\n\t\tc.fill = GridBagConstraints.HORIZONTAL;\n\t\ttoolBar = new JToolBar(\"Buttons\");\n\t\ttoolBar.setFloatable(false);\n\t\ttoolBar.setOrientation(SwingConstants.VERTICAL);\n\t\tbuttons.add(toolBar, c);\n\t\tadd(buttons, BorderLayout.EAST);\n\t}", "public JToolBar getToolBar() {\n return toolBar;\n }", "public CreateToolBar(final String theName, final List<ToolAction> theToolActions) {\n myToolBar = new JToolBar(theName);\n final ButtonGroup group = new ButtonGroup();\n \n for (final ToolAction currentTool : theToolActions) {\n final JToggleButton item = new JToggleButton(currentTool);\n group.add(item);\n myToolBar.add(item);\n }\n }", "private void setupToolBar() {\n\t\tbOk = ConfirmPanel.createOKButton(false);\n\t\tbOk.addActionListener(this);\n\t\tbSearch = ConfirmPanel.createRefreshButton(true);\n\t\tbSearch.addActionListener(this);\n\t\tbCancel = ConfirmPanel.createCancelButton(false);\n\t\tbCancel.addActionListener(this);\n\t\tbZoom = ConfirmPanel.createZoomButton(true);\n\t\tbZoom.addActionListener(this);\n\t\tbExport = ConfirmPanel.createExportButton(true);\n\t\tbExport.addActionListener(this);\n\t\tbDelete = ConfirmPanel.createDeleteButton(true);\n\t\tbDelete.addActionListener(this);\n\t\tAppsAction selectAllAction = new AppsAction(\"SelectAll\", null, Msg.getMsg(Env.getCtx(),\"SelectAll\"));\n\t\tselectAllAction.setDelegate(this);\n\t\tbSelectAll = (CButton) selectAllAction.getButton();\n\t\ttoolsBar = new javax.swing.JToolBar();\n\t}", "private JToggleButton getTglKeypad() {\r\n\t\tif (tglKeypad == null) {\r\n\t\t\ttglKeypad = new JToggleButton();\r\n\t\t\ttglKeypad.setText(\" # \");\r\n\t\t\ttglKeypad.addActionListener(new java.awt.event.ActionListener() {\r\n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) {\r\n\t\t\t\t\ttlbKeypad.setVisible(tglKeypad.isSelected());\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t}\r\n\t\treturn tglKeypad;\r\n\t}", "public ToolButton createToolButton(Icon icon, Icon selectedIcon,\n String toolName, Tool tool);", "@Override\r\n\tprotected ToolBarManager createToolBarManager(int style) {\r\n\t\tToolBarManager toolBarManager = new ToolBarManager(style);\r\n\t\treturn toolBarManager;\r\n\t}", "public static JToggleButton createToggleButton(Icon default_icon, String tooltip, ActionListener listener) {\n JToggleButton ret = new JToggleButton(default_icon);\n WidgetUtil.attachToolTip(ret, tooltip, SwingConstants.LEFT, SwingConstants.BOTTOM);\n ret.setBorderPainted(false);\n if (listener != null)\n ret.addActionListener(listener);\n return ret;\n }", "@Override\n\tprotected ToolBarManager createToolBarManager(int style) {\n\t\treturn null;\n\t}", "private void createToolbars() {\n\t\tJToolBar toolBar = new JToolBar(\"Tools\");\n\t\ttoolBar.setFloatable(true);\n\n\t\ttoolBar.add(new JButton(new ActionNewDocument(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionOpen(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSave(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionSaveAs(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionCut(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionCopy(flp, this)));\n\t\ttoolBar.add(new JButton(new ActionPaste(flp, this)));\n\t\ttoolBar.addSeparator();\n\t\ttoolBar.add(new JButton(new ActionStatistics(flp, this)));\n\n\t\tthis.getContentPane().add(toolBar, BorderLayout.PAGE_START);\n\t}", "@Override\n public Button createButton() {\n return new WindowsButton();\n }", "@Override\n public void addToggleButton(Component button)\n {\n button.addFeature(new AddToggleButtonFeature(this, button));\n }", "private void createToolBar() {\r\n toolbar = new JToolBar();\r\n inbox = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.INBOX_ICON)), \"Maintain Inbox\", \"Maintain Inbox\");\r\n awards = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.AWARDS_ICON)), \"Maintain Awards\", \"Maintain Awards\");\r\n proposal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_ICON)), \"Maintain InstituteProposals\", \"Maintain Institute Proposals\");\r\n proposalDevelopment = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROPOSAL_DEVELOPMENT_ICON)), \"Maintain ProposalDevelopment\", \"Maintain Proposal Development\");\r\n rolodex = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.ROLODEX_ICON)), \"Maintain Rolodex\", \"Maintain Rolodex\");\r\n sponsor = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SPONSOR_ICON)), \"Maintain Sponsor\", \"Maintain Sponsor\");\r\n subContract = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SUBCONTRACT_ICON)), \"Maintain SubContract\", \"Maintain Subcontract\");\r\n negotiations = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.NEGOTIATIONS_ICON)), \"Maintain Negotiations\", \"Maintain Negotiations\");\r\n buisnessRules = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.BUSINESS_RULES_ICON)), \"Maintain BusinessRules\", \"Maintain Business Rules\");\r\n map = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.MAP_ICON)), \"Maintain Map\", \"Maintain Map\");\r\n personnal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PERSONNAL_ICON)), \"Maintain Personal\", \"Maintain Personnel\");\r\n users = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.USERS_ICON)), \"Maintain Users\", \"Maintain Users\");\r\n unitHierarchy = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.UNIT_HIERARCHY_ICON)), \"Maintain UnitHierarchy\", \"Maintain Unit Hierarchy\");\r\n cascade = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.CASCADE_ICON)), \"Cascade\", \"Cascade\");\r\n tileHorizontal = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_HORIZONTAL_ICON)), \"Tile Horizontal\", \"Tile Horizontal\");\r\n tileVertical = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.TILE_VERTICAL_ICON)), \"Tile Vertical\", \"Tile Vertical\");\r\n layer = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.LAYER_ICON)), \"Layer\", \"Layer\");\r\n \r\n /*Added Icons are Committe,Protocol,Shedule. The Icons are different.Non-availability of standard Icon - Chandrashekar*/\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n /* JM 05-02-2013\r\n irbProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_ICON)), \"Protocol\", \"IRB Protocol\");\r\n \r\n irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n /* JM 05-02-2013\r\n schedule = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.SCHEDULE_ICON)), \"Schedule\", \"Schedule\");\r\n committee = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.COMMITTEE_ICON)), \"Committee\", \"Committee\");\r\n */\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - Start\r\n //irbProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n // getClass().getClassLoader().getResource(CoeusGuiConstants.PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IRB Protocol Submission\");\r\n //Added for COEUSQA-2580_Change menu item name from \"Protocol\" to \"IRB Protocol\" on Maintain menu in Premium - End\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n iacucProtocol = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_ICON)), \"Protocol\", \"IACUC Protocol\");\r\n \r\n iacucProtocolSubmission = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.IACUC_PROTOCOL_SUBMISSION_BASE_ICON)),\"Protocol Submission\",\"IACUC Protocol Submission\");\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.HELP_ICON)), \"Contact Coeus Help\", \"Contact Coeus Help\");\r\n /* JM END */\r\n \r\n exit = new CoeusToolBarButton(new ImageIcon(\r\n getClass().getClassLoader().getResource(CoeusGuiConstants.EXIT_ICON)), \"Exit\", \"Exit\");\r\n \r\n \r\n toolbar.add(inbox);\r\n toolbar.addSeparator();\r\n toolbar.add(awards);\r\n toolbar.add(proposal);\r\n toolbar.add(proposalDevelopment);\r\n toolbar.add(rolodex);\r\n toolbar.add(sponsor);\r\n toolbar.add(subContract);\r\n toolbar.add(negotiations);\r\n toolbar.add(buisnessRules);\r\n toolbar.add(map);\r\n toolbar.add(personnal);\r\n toolbar.add(users);\r\n toolbar.add(unitHierarchy);\r\n \r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n toolbar.add(irbProtocol);\r\n toolbar.add(irbProtocolSubmission);\r\n \r\n toolbar.add(schedule);\r\n toolbar.add(committee);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n /* JM 05-02-2013\r\n toolbar.add(iacucProtocol);\r\n toolbar.add(iacucProtocolSubmission);\r\n */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n toolbar.addSeparator();\r\n toolbar.add(cascade);\r\n toolbar.add(tileHorizontal);\r\n toolbar.add(tileVertical);\r\n toolbar.add(layer);\r\n toolbar.addSeparator();\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n toolbar.add(contactCoeusHelp);\r\n toolbar.addSeparator();\r\n /* JM END */\r\n \r\n toolbar.add(exit);\r\n \r\n toolbar.setFloatable(false);\r\n setTextLabels(false);\r\n MouseListener pl = new PopupListener();\r\n cpm = new CoeusPopupMenu();\r\n toolbar.addMouseListener(pl);\r\n \r\n inbox.addActionListener(this);\r\n awards.addActionListener(this);\r\n proposal.addActionListener(this);\r\n proposalDevelopment.addActionListener(this);\r\n rolodex.addActionListener(this);\r\n sponsor.addActionListener(this);\r\n subContract.addActionListener(this);\r\n negotiations.addActionListener(this);\r\n buisnessRules.addActionListener(this);\r\n map.addActionListener(this);\r\n personnal.addActionListener(this);\r\n users.addActionListener(this);\r\n unitHierarchy.addActionListener(this);\r\n cascade.addActionListener(this);\r\n tileHorizontal.addActionListener(this);\r\n tileVertical.addActionListener(this);\r\n layer.addActionListener(this);\r\n /*Added Icons are Committe,Protocol,Shedule - Chandrashekar*/\r\n /* JM 05-02-2013\r\n irbProtocol.addActionListener(this);\r\n schedule.addActionListener(this);\r\n committee.addActionListener(this);\r\n irbProtocolSubmission.addActionListener(this);\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium start\r\n iacucProtocol.addActionListener(this);\r\n iacucProtocolSubmission.addActionListener(this); */\r\n //Added for case id COEUSQA-2717 icons for IACUC to Coeus Premium end\r\n \r\n /* JM 4-25-2016 adding new Contact Coeus Help button */\r\n contactCoeusHelp.addActionListener(this);\r\n /* JM END */\r\n \r\n exit.addActionListener(this);\r\n }", "private Button initHBoxButton(HBox toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }", "private JButton getJButton() {\r\n\t\tif (jButton == null) {\r\n\t\t\tjButton = new JButton();\r\n\t\t\tjButton.setBounds(new Rectangle(172, 11, 71, 26));\r\n\t\t\tjButton.setText(\"Button\");\r\n\t\t\tjButton.addActionListener(new MultiHighlight(jTextArea, \"aeiouAEIOU\"));\r\n\t\t}\r\n\t\treturn jButton;\r\n\t}", "private void createToolButtons(final Map<PaintTool, ToolAction> theMap, \n final List<PaintTool> theTools,\n final JFrame theFrame) {\n \n final ButtonGroup toolBarGroup = new ButtonGroup();\n for (final PaintTool aT : theTools) {\n final JToggleButton button = new JToggleButton(aT.getDescription());\n toolBarGroup.add(button);\n aT.addPropertyChangeListener(this);\n button.setAction(theMap.get(aT));\n myToolBar.add(button);\n myToolBar.addSeparator();\n }\n theFrame.add(myToolBar, BorderLayout.PAGE_END);\n }", "public ToggleButton getCreateButton() {\n\t\treturn myCreateWorkSpaceButton;\n\t}", "public JToolBar gameToolbar() {\n\t\tthis.gameToolbar = new JToolBar();\n\t\t//this.gameToolbar.setPreferredSize(size);\n\t\tFlowLayout tbLayout = new FlowLayout();\n\t\tthis.gameToolbar.setLayout(tbLayout);\n\t\ttbLayout.setAlignment(FlowLayout.CENTER);\n\t\tthis.gameToolbar.setRollover(true);\n\t\tthis.dealButton = new JButton(\"DEAL\");\n\t\tthis.dealButton.addActionListener(this);\n\t\tthis.placeBetButton = new JButton(\"PLACE BET\");\n\t\tthis.placeBetButton.addActionListener(this);\n\t\tthis.resultsButton = new JButton(\"VIEW RESULTS\");\n\t\tthis.resultsButton.addActionListener(this);\n\t\tthis.gameToolbar.add(this.dealButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.placeBetButton);\n\t\tthis.gameToolbar.addSeparator();\n\t\tthis.gameToolbar.add(this.resultsButton);\n\t\treturn this.gameToolbar;\n\t\t\n\t}", "private JToolBar getTlbKeypad() {\r\n\t\tif (tlbKeypad == null) {\r\n\t\t\ttlbKeypad = new JToolBar();\r\n\t\t\ttlbKeypad.setOrientation(JToolBar.VERTICAL);\r\n\t\t\ttlbKeypad.setVisible(false);\r\n\t\t\ttlbKeypad.add(getPnlKeypad());\r\n\t\t}\r\n\t\treturn tlbKeypad;\r\n\t}", "private static JToolBar initToolBar() {\n JToolBar basicMenu = new JToolBar();\n\n JButton cr = initButton(Icons.CREATE, a -> EditorScreen.instance().create());\n JButton op = initButton(Icons.LOAD, a -> EditorScreen.instance().load());\n JButton sv = initButton(Icons.SAVE, a -> EditorScreen.instance().save(false));\n JButton undo = initButton(Icons.UNDO, a -> UndoManager.instance().undo());\n JButton redo = initButton(Icons.REDO, a -> UndoManager.instance().redo());\n undo.setEnabled(false);\n redo.setEnabled(false);\n\n JToggleButton place = new JToggleButton();\n place.setIcon(Icons.PLACEOBJECT);\n requestFocusOnMouseDown(place);\n\n JToggleButton ed = new JToggleButton();\n ed.setIcon(Icons.EDIT);\n ed.setSelected(true);\n requestFocusOnMouseDown(ed);\n\n JToggleButton mv = new JToggleButton();\n mv.setIcon(Icons.MOVE);\n mv.setEnabled(false);\n requestFocusOnMouseDown(mv);\n\n ed.addActionListener(a -> {\n ed.setSelected(true);\n place.setSelected(false);\n mv.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_EDIT);\n isChanging = false;\n\n Game.window().getRenderComponent().setCursor(Cursors.DEFAULT, 0, 0);\n });\n\n place.addActionListener(a -> {\n addPopupMenu.show(place, 0, place.getHeight());\n place.setSelected(true);\n ed.setSelected(false);\n mv.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_CREATE);\n isChanging = false;\n });\n\n mv.addActionListener(a -> {\n mv.setSelected(true);\n ed.setSelected(false);\n place.setSelected(false);\n isChanging = true;\n EditorScreen.instance().getMapComponent().setEditMode(MapComponent.EDITMODE_MOVE);\n isChanging = false;\n\n Game.window().getRenderComponent().setCursor(Cursors.MOVE, 0, 0);\n });\n\n EditorScreen.instance().getMapComponent().onEditModeChanged(i -> {\n if (isChanging) {\n return;\n }\n\n if (i == MapComponent.EDITMODE_CREATE) {\n ed.setSelected(false);\n mv.setSelected(false);\n place.setSelected(true);\n place.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.ADD, 0, 0);\n }\n\n if (i == MapComponent.EDITMODE_EDIT) {\n place.setSelected(false);\n mv.setSelected(false);\n ed.setSelected(true);\n ed.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.DEFAULT, 0, 0);\n }\n\n if (i == MapComponent.EDITMODE_MOVE) {\n if (!mv.isEnabled()) {\n return;\n }\n\n ed.setSelected(false);\n place.setSelected(false);\n mv.setSelected(true);\n mv.requestFocus();\n Game.window().getRenderComponent().setCursor(Cursors.MOVE, 0, 0);\n }\n });\n\n JButton del = new JButton();\n del.setIcon(Icons.DELETE);\n del.setEnabled(false);\n del.addActionListener(a -> EditorScreen.instance().getMapComponent().delete());\n\n // copy\n JButton cop = new JButton();\n cop.setIcon(Icons.COPY);\n cop.setEnabled(false);\n ActionListener copyAction = a -> EditorScreen.instance().getMapComponent().copy();\n cop.addActionListener(copyAction);\n cop.getModel().setMnemonic('C');\n KeyStroke keyStroke = KeyStroke.getKeyStroke('C', Event.CTRL_MASK, false);\n cop.registerKeyboardAction(copyAction, keyStroke, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n // paste\n JButton paste = new JButton();\n paste.setIcon(Icons.PASTE);\n\n ActionListener pasteAction = a -> EditorScreen.instance().getMapComponent().paste();\n paste.addActionListener(pasteAction);\n paste.getModel().setMnemonic('V');\n KeyStroke keyStrokePaste = KeyStroke.getKeyStroke('V', Event.CTRL_MASK, false);\n paste.registerKeyboardAction(pasteAction, keyStrokePaste, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n // cut\n JButton cut = new JButton();\n cut.setIcon(Icons.CUT);\n cut.setEnabled(false);\n ActionListener cutAction = a -> EditorScreen.instance().getMapComponent().cut();\n cut.addActionListener(cutAction);\n cut.getModel().setMnemonic('X');\n KeyStroke keyStrokeCut = KeyStroke.getKeyStroke('X', Event.CTRL_MASK, false);\n cut.registerKeyboardAction(cutAction, keyStrokeCut, JComponent.WHEN_IN_FOCUSED_WINDOW);\n\n EditorScreen.instance().getMapComponent().onFocusChanged(mo -> {\n if (mv.isSelected()) {\n mv.setSelected(false);\n ed.setSelected(true);\n }\n\n mv.setEnabled(mo != null);\n del.setEnabled(mo != null);\n cop.setEnabled(mo != null);\n cut.setEnabled(mo != null);\n undo.setEnabled(UndoManager.instance().canUndo());\n redo.setEnabled(UndoManager.instance().canRedo());\n paste.setEnabled(EditorScreen.instance().getMapComponent().getCopiedBlueprint() != null);\n });\n\n EditorScreen.instance().getMapComponent().onEditModeChanged(mode -> paste.setEnabled(EditorScreen.instance().getMapComponent().getCopiedBlueprint() != null));\n\n UndoManager.onUndoStackChanged(manager -> {\n EditorScreen.instance().getMapComponent().updateTransformControls();\n undo.setEnabled(manager.canUndo());\n redo.setEnabled(manager.canRedo());\n });\n\n JButton colorButton = new JButton();\n colorButton.setIcon(Icons.COLOR);\n colorButton.setEnabled(false);\n\n JSpinner spinnerAmbientAlpha = new JSpinner();\n spinnerAmbientAlpha.setToolTipText(\"Adjust ambient alpha.\");\n spinnerAmbientAlpha.setModel(new SpinnerNumberModel(0, 0, 255, 1));\n spinnerAmbientAlpha.setMaximumSize(new Dimension(50, 50));\n spinnerAmbientAlpha.setEnabled(true);\n spinnerAmbientAlpha.addChangeListener(e -> {\n if (Game.world().environment() == null || Game.world().environment().getMap() == null || isChanging) {\n return;\n }\n\n Game.world().environment().getAmbientLight().setAlpha((int) spinnerAmbientAlpha.getValue());\n String hex = ColorHelper.encode(Game.world().environment().getAmbientLight().getColor());\n colorText.setText(hex);\n Game.world().environment().getMap().setValue(MapProperty.AMBIENTCOLOR, hex);\n\n });\n\n colorText = new JTextField();\n colorText.setHorizontalAlignment(SwingConstants.CENTER);\n colorText.setMinimumSize(new Dimension(70, 20));\n colorText.setMaximumSize(new Dimension(70, 50));\n colorText.setEnabled(false);\n\n colorButton.addActionListener(a -> {\n if (Game.world().environment() == null || Game.world().environment().getMap() == null || isChanging) {\n return;\n }\n\n Color color = null;\n if (colorText.getText() != null && !colorText.getText().isEmpty()) {\n Color solid = ColorHelper.decode(colorText.getText());\n color = new Color(solid.getRed(), solid.getGreen(), solid.getBlue(), (int) spinnerAmbientAlpha.getValue());\n }\n Color result = JColorChooser.showDialog(null, Resources.strings().get(\"panel_selectAmbientColor\"), color);\n if (result == null) {\n return;\n }\n\n spinnerAmbientAlpha.setValue(result.getAlpha());\n\n Game.world().environment().getMap().setValue(MapProperty.AMBIENTCOLOR, colorText.getText());\n Game.world().environment().getAmbientLight().setColor(result);\n String hex = ColorHelper.encode(Game.world().environment().getAmbientLight().getColor());\n colorText.setText(hex);\n });\n\n EditorScreen.instance().getMapComponent().onMapLoaded(map -> {\n isChanging = true;\n colorButton.setEnabled(map != null);\n spinnerAmbientAlpha.setEnabled(map != null);\n\n String colorValue = map.getStringValue(MapProperty.AMBIENTCOLOR, \"#00000000\");\n colorText.setText(colorValue);\n Color color = ColorHelper.decode(colorText.getText());\n if (color != null) {\n spinnerAmbientAlpha.setValue(color.getAlpha());\n }\n\n isChanging = false;\n });\n\n basicMenu.add(cr);\n basicMenu.add(op);\n basicMenu.add(sv);\n basicMenu.addSeparator();\n\n basicMenu.add(undo);\n basicMenu.add(redo);\n basicMenu.addSeparator();\n\n basicMenu.add(place);\n basicMenu.add(ed);\n basicMenu.add(mv);\n basicMenu.add(del);\n basicMenu.add(cop);\n basicMenu.add(paste);\n basicMenu.add(cut);\n basicMenu.addSeparator();\n\n basicMenu.add(colorButton);\n basicMenu.add(Box.createHorizontalStrut(5));\n basicMenu.add(colorText);\n basicMenu.add(Box.createHorizontalStrut(5));\n basicMenu.add(spinnerAmbientAlpha);\n\n return basicMenu;\n }", "public native static MenuItemToggle create();", "private Button initChildButton(Pane toolbar, DraftKit_PropertyType icon, DraftKit_PropertyType tooltip, boolean disabled) {\n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(icon.toString());\n Image buttonImage = new Image(imagePath);\n Button button = new Button();\n button.setDisable(disabled);\n button.setGraphic(new ImageView(buttonImage));\n Tooltip buttonTooltip = new Tooltip(props.getProperty(tooltip.toString()));\n button.setTooltip(buttonTooltip);\n toolbar.getChildren().add(button);\n return button;\n }", "public JButton getJbMenu() {\n\t\tif(jbMenu==null){\n\t\t\tjbMenu = new JButton(\"Menu\");\n\t\t\tDimension dim = new Dimension(150,30);\n\t\t\tjbMenu.setPreferredSize(dim);\n\t\t\tjbMenu.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\tjbMenu.addMouseListener(new MouseListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseReleased(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mousePressed(MouseEvent e) {\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseExited(MouseEvent e) {\n\t\t\t\t\tjbMenu.setBackground(ColorProject.COLOR_BLUE.getCol());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseEntered(MouseEvent e) {\n\t\t\t\t\tjbMenu.setBackground(ColorProject.COLOR_BLUE.getCol().brighter());\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void mouseClicked(MouseEvent e) {\n\t\t\t\t}\n\t\t\t});\n\t\t\tjbMenu.addActionListener(new ActionListener() {\n\t\t\t\t\n\t\t\t\t@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJFrameproject05 fen = (JFrameproject05)SwingUtilities.getAncestorOfClass(JFrameproject05.class, PanelAdminButton.this);\n\t\t\t\t\tfen.getjPanelCartes().getCl().show(fen.getjPanelCartes(), \"Menu\");\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn jbMenu;\n\t}", "@Override\n public Component getToolbarPresenter() {\n \n fxPanel = new JFXPanel();\n \n Platform.setImplicitExit(false); //Ensure JavaFX thread does not close application\n Platform.runLater(()-> { //Create FX scene outside Swing Thread\n createFXScene();\n });\n\n return fxPanel;\n }", "@Override\n\tpublic JToggleButton getToggleButton() {\n\t\treturn null;\n\t}", "private JToolBar getJToolBarEditorHTML() {\r\n\r\n\t\tif (jToolBarEditorHTML == null) {\r\n\t\t\tjToolBarEditorHTML = ekitCoreEditorHTMLPanel.getToolBar(true);\r\n\t\t\tjToolBarEditorHTML.setBounds(new Rectangle(1, 1, 617, 30));\r\n\t\t}\r\n\t\treturn jToolBarEditorHTML;\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jToolBar1 = new javax.swing.JToolBar();\n btnDom = new javax.swing.JButton();\n btnBook = new javax.swing.JButton();\n btnTT = new javax.swing.JButton();\n btnPos = new javax.swing.JButton();\n btnTool = new javax.swing.JButton();\n btnNews = new javax.swing.JButton();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jToolBar1.setRollover(true);\n\n btnDom.setText(\"DOM\");\n btnDom.setFocusable(false);\n btnDom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnDom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnDom.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnDomActionPerformed(evt);\n }\n });\n jToolBar1.add(btnDom);\n\n btnBook.setText(\"Book\");\n btnBook.setFocusable(false);\n btnBook.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnBook.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnBook.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnBookActionPerformed(evt);\n }\n });\n jToolBar1.add(btnBook);\n\n btnTT.setText(\"T&T\");\n btnTT.setFocusable(false);\n btnTT.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTT.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTT.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnTTActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTT);\n\n btnPos.setText(\"Posição\");\n btnPos.setFocusable(false);\n btnPos.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnPos.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnPos.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnPosActionPerformed(evt);\n }\n });\n jToolBar1.add(btnPos);\n\n btnTool.setText(\"Ferramentas\");\n btnTool.setFocusable(false);\n btnTool.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnTool.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnTool.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnToolActionPerformed(evt);\n }\n });\n jToolBar1.add(btnTool);\n\n btnNews.setText(\"Notícias\");\n btnNews.setFocusable(false);\n btnNews.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);\n btnNews.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);\n btnNews.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n btnNewsActionPerformed(evt);\n }\n });\n jToolBar1.add(btnNews);\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(jToolBar1, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jToolBar1, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 253, Short.MAX_VALUE))\n );\n\n pack();\n }", "private JToolBar getTlbNavigate() {\r\n\t\tif (tlbNavigate == null) {\r\n\t\t\ttlbNavigate = new JToolBar();\r\n\t\t\ttlbNavigate.setLayout(new BoxLayout(getTlbNavigate(), BoxLayout.X_AXIS));\r\n\t\t\ttlbNavigate.add(getBtnBack());\r\n\t\t\ttlbNavigate.add(getBtnForward());\r\n\t\t\ttlbNavigate.add(getBtnHome());\r\n\t\t\ttlbNavigate.add(getTxtAddress());\r\n\t\t\ttlbNavigate.add(getBtnGo());\r\n\t\t}\r\n\t\treturn tlbNavigate;\r\n\t}", "C getRegisteredToolBar(ToolbarPosition position);", "public JButton createButton(String name, String toolTip) {\r\n\r\n // load the image\r\n String imagePath = \"./resources/\" + name + \".png\";\r\n ImageIcon iconRollover = new ImageIcon(imagePath);\r\n int w = iconRollover.getIconWidth();\r\n int h = iconRollover.getIconHeight();\r\n\r\n // get the cursor for this button\r\n Cursor cursor =\r\n Cursor.getPredefinedCursor(Cursor.HAND_CURSOR);\r\n\r\n // make translucent default image\r\n Image image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n Graphics2D g = (Graphics2D)image.getGraphics();\r\n Composite alpha = AlphaComposite.getInstance(\r\n AlphaComposite.SRC_OVER, .5f);\r\n g.setComposite(alpha);\r\n g.drawImage(iconRollover.getImage(), 0, 0, null);\r\n g.dispose();\r\n ImageIcon iconDefault = new ImageIcon(image);\r\n\r\n // make a pressed image\r\n image = createCompatibleImage(w, h,\r\n Transparency.TRANSLUCENT);\r\n g = (Graphics2D)image.getGraphics();\r\n g.drawImage(iconRollover.getImage(), 2, 2, null);\r\n g.dispose();\r\n ImageIcon iconPressed = new ImageIcon(image);\r\n\r\n // create the button\r\n JButton button = new JButton();\r\n button.addActionListener(this);\r\n button.setIgnoreRepaint(true);\r\n button.setFocusable(false);\r\n button.setToolTipText(toolTip);\r\n button.setBorder(null);\r\n button.setContentAreaFilled(false);\r\n button.setCursor(cursor);\r\n button.setIcon(iconDefault);\r\n button.setRolloverIcon(iconRollover);\r\n button.setPressedIcon(iconPressed);\r\n\r\n return button;\r\n }", "private void setupButtons() {\n final ButtonGroup btngrp = new ButtonGroup();\n\n for (final AbstractAction actn : myToolActions) {\n final JToggleButton btn = new JToggleButton(actn);\n btn.addActionListener(actn);\n btngrp.add(btn);\n add(btn);\n }\n\n btngrp.clearSelection();\n btngrp.getElements().nextElement().setSelected(true);\n\n }", "private JToolBar createToolBar() {\n JToolBar toolbar = new JToolBar();\n Insets margins = new Insets(0, 0, 0, 0);\n\n ButtonGroup group1 = new ButtonGroup();\n\n ToolBarButton edit = new ToolBarButton(\"images/E.gif\");\n edit.setToolTipText(\"Edit motes\");\n edit.setMargin(margins);\n edit.setActionCommand(\"edit\");\n edit.setSelected(true);\n edit.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n add.enable();\n remove.enable();\n auto.enable();\n add.setSelected(true);\n }\n });\n group1.add(edit);\n toolbar.add(edit);\n\n ToolBarButton vis = new ToolBarButton(\"images/V.gif\");\n vis.setToolTipText(\"Visualize mote network\");\n vis.setMargin(margins);\n vis.setActionCommand(\"visualize\");\n vis.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n// AKD setMode(VIZ_MODE);\n add.setSelected(false);\n remove.setSelected(false);\n auto.setSelected(false);\n add.disable();\n remove.disable();\n auto.disable();\n }\n });\n group1.add(vis);\n toolbar.add(vis);\n\n toolbar.addSeparator();\n\n ButtonGroup group2 = new ButtonGroup();\n\n ToolBarButton pan = new ToolBarButton(\"images/P.gif\");\n pan.setToolTipText(\"Pan view\");\n pan.setMargin(margins);\n pan.setActionCommand(\"pan\");\n pan.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(PAN_MODE);\n }\n });\n group2.add(pan);\n toolbar.add(pan);\n\n add = new ToolBarButton(\"images/A.gif\");\n add.setToolTipText(\"Add mote\");\n add.setMargin(margins);\n add.setActionCommand(\"add\");\n add.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(ADD_MODE);\n }\n });\n group2.add(add);\n toolbar.add(add);\n\n remove = new ToolBarButton(\"images/R.gif\");\n remove.setToolTipText(\"Remove mote\");\n remove.setMargin(margins);\n remove.setActionCommand(\"pan\");\n remove.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(REMOVE_MODE);\n }\n });\n group2.add(remove);\n toolbar.add(remove);\n\n auto = new ToolBarButton(\"images/T.gif\");\n auto.setToolTipText(\"Automatic mode\");\n auto.setMargin(margins);\n auto.setActionCommand(\"auto\");\n auto.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent ae) {\n setMode(AUTO_MODE);\n }\n });\n group2.add(auto);\n toolbar.add(auto);\n\n toolbar.setFloatable(true);\n return toolbar;\n }", "private void createToolbars() {\r\n\t\tJToolBar toolBar = new JToolBar(\"Tool bar\");\r\n\t\ttoolBar.add(createBlankDocument);\r\n\t\ttoolBar.add(openDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAction);\r\n\t\ttoolBar.add(saveDocumentAsAction);\r\n\t\ttoolBar.add(closeCurrentTabAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(copyAction);\r\n\t\ttoolBar.add(cutAction);\r\n\t\ttoolBar.add(pasteAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(getStatsAction);\r\n\t\t\r\n\t\ttoolBar.addSeparator();\r\n\t\ttoolBar.add(exitAction);\r\n\t\t\r\n\t\tgetContentPane().add(toolBar, BorderLayout.PAGE_START);\r\n\t}", "public ToolBarView() {\r\n\t\tbuttonsToolbar = new JButton[14];\r\n\t\tfor (int i = 0; i < imagesToolbar.length; i++) {\r\n\t\t\tif (i == 2 || i == 3 || i == 8 || i == 10 || i == 11 || i == 12 ) {\r\n /* adding separator to the toolbar */\r\n\t\t\t\taddSeparator();\r\n } \r\n /* adding the buttons to toolbar */\r\n\t\t\tadd(buttonsToolbar[i] = new JButton(new ImageIcon(ClassLoader.getSystemResource(imagesToolbar[i]))));\r\n\t\t\t/* setting the ToolTipText to the buttons of toolbar */\r\n\t\t\tbuttonsToolbar[i].setToolTipText(tipText[i]);\r\n\t\t}\r\n\t}", "private ActionToolbar createActionsToolbar() {\n DefaultActionGroup actions = new DefaultActionGroup();\n\n actions.add(EditorActionsFactory.create(BOLD));\n actions.add(EditorActionsFactory.create(ITALIC));\n actions.add(EditorActionsFactory.create(UNDERLINE));\n actions.addSeparator();\n actions.add(EditorActionsFactory.create(ALIGN_LEFT));\n actions.add(EditorActionsFactory.create(ALIGN_CENTER));\n actions.add(EditorActionsFactory.create(ALIGN_RIGHT));\n\n final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.EDITOR_TAB, actions, true);\n actionToolbar.setMinimumButtonSize(ActionToolbar.NAVBAR_MINIMUM_BUTTON_SIZE);\n return actionToolbar;\n }", "protected ToolButton createToolButton(String iconName, String toolName, Tool tool) {\n return new ToolButton(this, iconName, toolName, tool);\n }", "private void createToolbar() {\r\n // the visible toolbar is actually a toolbar next to a combobox.\r\n // That is why we need this extra composite, layout and numColums = 2.\r\n final Composite parent = new Composite(SHELL, SWT.FILL);\r\n final GridLayout layout = new GridLayout();\r\n layout.numColumns = 2;\r\n parent.setLayout(layout);\r\n\r\n final ToolBar bar = new ToolBar(parent, SWT.NONE);\r\n final GridData data = new GridData();\r\n data.heightHint = 55;\r\n data.grabExcessVerticalSpace = false;\r\n bar.setLayoutData(data);\r\n bar.setLayout(new GridLayout());\r\n\r\n createOpenButton(bar);\r\n\r\n createGenerateButton(bar);\r\n\r\n createSaveButton(bar);\r\n\r\n createSolveButton(bar);\r\n\r\n createAboutButton(bar);\r\n\r\n algorithmCombo = new AlgorithmCombo(parent);\r\n }", "Button new_button (String title, ActionListener action, String tooltip) {\n Button b = new Button(title);\n b.setBackground(Color.white);\n b.setForeground(Color.blue);\n if (action != null)\n b.addActionListener(action);\n if (tooltip != null)\n b.setToolTipText(tooltip);\n return b;\n }", "protected void createButtons(Composite parent) {\n\t\tcomRoot = new Composite(parent, SWT.BORDER);\n\t\tcomRoot.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false));\n\t\tcomRoot.setLayout(new GridLayout(2, false));\n\n\t\ttbTools = new ToolBar(comRoot, SWT.WRAP | SWT.RIGHT | SWT.FLAT);\n\t\ttbTools.setLayout(new GridLayout());\n\t\ttbTools.setLayoutData(new GridData(SWT.RIGHT, SWT.BOTTOM, true, false));\n\n\t\tfinal ToolItem btnSettings = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnSettings.setText(Messages.btnAdvancedSettings);\n\t\tbtnSettings.setToolTipText(Messages.tipAdvancedSettings);\n\t\tbtnSettings.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tPerformanceSettingsDialog dialog = new PerformanceSettingsDialog(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig());\n\t\t\t\tdialog.open();\n\t\t\t}\n\t\t});\n\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tbtnPreviewDDL = new ToolItem(tbTools, SWT.CHECK);\n\t\tbtnPreviewDDL.setSelection(false);\n\t\tbtnPreviewDDL.setText(Messages.btnPreviewDDL);\n\t\tbtnPreviewDDL.setToolTipText(Messages.tipPreviewDDL);\n\t\tbtnPreviewDDL.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tboolean flag = btnPreviewDDL.getSelection();\n\t\t\t\tswitchText(flag);\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\n\t\tfinal ToolItem btnExportScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnExportScript.setText(Messages.btnExportScript);\n\t\tbtnExportScript.setToolTipText(Messages.tipSaveScript);\n\t\tbtnExportScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\texportScriptToFile();\n\t\t\t}\n\t\t});\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnUpdateScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnUpdateScript.setText(Messages.btnUpdateScript);\n\t\tbtnUpdateScript.setToolTipText(Messages.tipUpdateScript);\n\t\tbtnUpdateScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tgetMigrationWizard().saveMigrationScript(false, isSaveSchema());\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t\tbtnUpdateScript\n\t\t\t\t.setEnabled(getMigrationWizard().getMigrationScript() != null);\n\t\tnew ToolItem(tbTools, SWT.SEPARATOR);\n\t\tfinal ToolItem btnNewScript = new ToolItem(tbTools, SWT.NONE);\n\t\tbtnNewScript.setText(Messages.btnCreateNewScript);\n\t\tbtnNewScript.setToolTipText(Messages.tipCreateNewScript);\n\t\tbtnNewScript.addSelectionListener(new SelectionAdapter() {\n\n\t\t\tpublic void widgetSelected(final SelectionEvent event) {\n\t\t\t\tprepare4SaveScript();\n\t\t\t\tString name = EditScriptDialog.getMigrationScriptName(\n\t\t\t\t\t\tgetShell(), getMigrationWizard().getMigrationConfig()\n\t\t\t\t\t\t\t\t.getName());\n\t\t\t\tif (StringUtils.isBlank(name)) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tgetMigrationWizard().getMigrationConfig().setName(name);\n\t\t\t\tgetMigrationWizard().saveMigrationScript(true, isSaveSchema());\n\t\t\t\tbtnUpdateScript.setEnabled(getMigrationWizard()\n\t\t\t\t\t\t.getMigrationScript() != null);\n\t\t\t\tMessageDialog.openInformation(PlatformUI.getWorkbench()\n\t\t\t\t\t\t.getDisplay().getActiveShell(),\n\t\t\t\t\t\tMessages.msgInformation, Messages.setOptionPageOKMsg);\n\t\t\t}\n\t\t});\n\t}", "public ToggleButton()\n {\n this(true);\n }", "public JButtonOperator btBrowse() {\n if (_btBrowse==null) {\n _btBrowse = new JButtonOperator(this, \"Browse...\");//TODO I18N + another panel?\n }\n return _btBrowse;\n }", "protected abstract ToolbarEngine getInstanceOfToolbar();", "public static JToggleButton createDropDownToggleButton( Icon icon, JPopupMenu dropDownMenu ) {\n return new DropDownToggleButton( icon, dropDownMenu );\n }", "public ButtonBar() {\n scrollPane = new JScrollPane();\n scrollPane.setBorder(null);\n scrollPane.setHorizontalScrollBarPolicy(ScrollPaneConstants\n .HORIZONTAL_SCROLLBAR_NEVER);\n scrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants\n .VERTICAL_SCROLLBAR_AS_NEEDED);\n scrollPane.setMinimumSize(new Dimension(0,buttonHeight\n + ((int) PlatformDefaults.getUnitValueX(\"related\").getValue()) * 2));\n \n buttons = Collections.synchronizedMap(new TreeMap<FrameContainer<?>,\n JToggleButton>(new FrameContainerComparator()));\n position = FramemanagerPosition.getPosition(\n IdentityManager.getGlobalConfig().getOption(\"ui\",\n \"framemanagerPosition\"));\n \n if (position.isHorizontal()) {\n buttonPanel = new ButtonPanel(new MigLayout(\"ins rel, fill, flowx\"),\n this);\n } else {\n buttonPanel = new ButtonPanel(new MigLayout(\"ins rel, fill, flowy\"),\n this);\n }\n scrollPane.getViewport().add(buttonPanel);\n }", "public Component setupControl(boolean bEditableControl)\n {\n if (this.getScreenField().getParentScreen() == null)\n return null;\n boolean bSuccess = this.getScreenField().getParentScreen().removeSField(this.getScreenField()); // Note: doesn't remove me because m_Control = null\n int iSFieldCount = this.getScreenField().getParentScreen().getSFieldCount();\n int iToolbarOrder = iSFieldCount;\n if (this.getScreenField().getScreenLocation().getLocationConstant() != ScreenConstants.LAST_LOCATION)\n {\n\t for (iToolbarOrder = 0; iToolbarOrder < iSFieldCount; iToolbarOrder++)\n\t {\n\t if (!(this.getScreenField().getParentScreen().getSField(iToolbarOrder) instanceof ToolScreen))\n\t break; // Last toolbar\n\t }\n }\n if (bSuccess)\n this.getScreenField().getParentScreen().addSField(this.getScreenField(), iToolbarOrder); // Add this control after the other toolbars, before the screen controls\n \n JToolBar control = new JToolBar();\n control.setAlignmentX(Component.LEFT_ALIGNMENT);\n control.setAlignmentY(Component.TOP_ALIGNMENT);\n control.setFloatable(false);\n control.setOpaque(false);\n\n control.setMargin(new Insets(0,0,0,0));\n return control;\n }", "public ToolBar(final ColorPicker theAction) {\n super();\n myButtonGroup = new ButtonGroup();\n final JButton colorSwatchButton = new JButton(theAction);\n \n //remove the weird selected border of the color button so it doesn't obscure the icon.\n colorSwatchButton.setFocusPainted(false);\n \n colorSwatchButton.setIcon(theAction.getIcon());\n add(colorSwatchButton);\n addSeparator();\n }", "private JButton getBrowseButton() {\n if (browseButton == null) {\n browseButton = new JButton();\n browseButton.setText(\"Browse\");\n browseButton.setIcon(IntroduceLookAndFeel.getBrowseIcon());\n browseButton.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent e) {\n browse();\n }\n });\n }\n return browseButton;\n }", "private void defineToolBar() {\r\n //ARREGLO CON LOS BOTONES ORDENADOS POR POSICION\r\n tools = new ImageView[]{im_tool1,im_tool2,im_tool3,im_tool4,im_tool5,im_tool6,im_tool7,im_tool8,im_tool9,im_tool10,im_tool11,im_tool12}; \r\n //CARGA DE LA BD LA CONFIGURACION DE USUARIO PARA LA PANTALLA\r\n toolsConfig = Ln.getInstance().loadToolBar();\r\n // arreglo con cada etiqueta, ordenado por boton\r\n tooltips = new String[]{\r\n \"Nueva \" + ScreenName + \" \",\r\n \"Editar \" + ScreenName + \" \",\r\n \"Guardar \" + ScreenName + \" \",\r\n \"Cambiar Status de \" + ScreenName + \" \",\r\n \"Imprimir \" + ScreenName + \" \",\r\n \"Cancelar \",\r\n \"Sin Asignar \",\r\n \"Faltante en \" + ScreenName + \" \",\r\n \"Devolución en \" + ScreenName + \" \",\r\n \"Sin Asignar\",\r\n \"Sin Asignar\",\r\n \"Buscar \" + ScreenName + \" \"\r\n };\r\n //se asigna la etiqueta a su respectivo boton\r\n for (int i = 0; i < tools.length; i++) { \r\n Tooltip tip_tool = new Tooltip(tooltips[i]);\r\n Tooltip.install(tools[i], tip_tool);\r\n }\r\n \r\n im_tool7.setVisible(false);\r\n im_tool8.setVisible(false);\r\n im_tool9.setVisible(false);\r\n im_tool10.setVisible(false);\r\n im_tool11.setVisible(false);\r\n }", "private void CreateToolBars(){\n toolBar = new ToolBar();\n btoolBar = new ToolBar();\n login=new Button(\"Login\");\n simulate=new Button(\"Simulate\");\n scoreBoardButton=new Button(\"ScoreBoard\");\n viewBracket= new Button(\"view Bracket\");\n clearButton=new Button(\"Clear\");\n resetButton=new Button(\"Reset\");\n finalizeButton=new Button(\"Finalize\");\n toolBar.getItems().addAll(\n createSpacer(),\n login,\n simulate,\n scoreBoardButton,\n viewBracket,\n createSpacer()\n );\n btoolBar.getItems().addAll(\n createSpacer(),\n clearButton,\n resetButton,\n finalizeButton,\n createSpacer()\n );\n }", "private void createToolbar() {\n\t\ttoolbarPanel = new JPanel(new FlowLayout(FlowLayout.LEFT));\n\n\t\tString iconsDir = \"icons/\";\n\n\t\tfileToolbar = new JToolBar();\n\t\tfileToolbar.setName(\"File\");\n\n\t\t// Componentes da barra de ferramentas de arquivo\n\t\tIcon newFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"new.png\"));\n\t\tnewFileButton = new JButton(newFileIcon);\n\t\tnewFileButton.setToolTipText(\"Novo arquivo\");\n\n\t\tIcon openFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"open.png\"));\n\t\topenFileButton = new JButton(openFileIcon);\n\t\topenFileButton.setToolTipText(\"Abrir arquivo\");\n\t\topenFileButton.addActionListener(new OpenFileHandler());\n\n\t\tIcon saveFileIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"save.png\"));\n\t\tsaveFileButton = new JButton(saveFileIcon);\n\t\tsaveFileButton.setToolTipText(\"Salvar arquivo\");\n\n\t\t// fileToolbar.add(newFileButton);\n\t\tfileToolbar.add(openFileButton);\n\t\t// fileToolbar.add(saveFileButton);\n\n\t\t// Componentes da barra de ferramentas de rede\n\t\tnetworkComponentsToolbar = new JToolBar();\n\t\tnetworkComponentsToolbar.setName(\"Network components\");\n\n\t\tIcon newPlaceIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"circle_stroked.png\"));\n\t\taddPlaceButton = new JButton(newPlaceIcon);\n\t\taddPlaceButton.setToolTipText(\"Adicionar lugar\");\n\n\t\tIcon newTransitionIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"pipe.png\"));\n\t\taddTransitionButton = new JButton(newTransitionIcon);\n\t\taddTransitionButton.setToolTipText(\"Adicionar transição\");\n\n\t\tIcon newEdgeIcon = new ImageIcon(getClass().getClassLoader().getResource(iconsDir + \"arrow_alt_right.png\"));\n\t\taddEdgeButton = new JButton(newEdgeIcon);\n\t\taddEdgeButton.setToolTipText(\"Adicionar aresta\");\n\n\t\tnetworkComponentsToolbar.add(addPlaceButton);\n\t\tnetworkComponentsToolbar.add(addTransitionButton);\n\t\tnetworkComponentsToolbar.add(addEdgeButton);\n\n\t\ttoolbarPanel.add(fileToolbar);\n\t\t// toolbarPanel.add(networkComponentsToolbar);\n\n\t\tthis.add(toolbarPanel, BorderLayout.NORTH);\n\t}", "protected void addActivePathToolbarButton ()\n {\n\n }", "private javax.swing.JButton getJButton11() {\n\t\tif(jButton11 == null) {\n\t\t\tjButton11 = new javax.swing.JButton();\n\t\t\tjButton11.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton11.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton11.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton11.setText(\"F11 Bloquear\");\n\t\t\tjButton11.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton11.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton11.setEnabled(false);\n\t\t}\n\t\treturn jButton11;\n\t}", "private void setupToolBar(){\n Toolbar toolbar = (Toolbar)findViewById(R.id.my_toolbar);\n setSupportActionBar(toolbar);\n\n getSupportActionBar().setHomeButtonEnabled(true);\n getSupportActionBar().setDisplayHomeAsUpEnabled(true);\n }", "private void addButton(final FrameContainer<?> source) {\n final JToggleButton button = new JToggleButton(source.toString(),\n IconManager.getIconManager().getIcon(source.getIcon()));\n button.addActionListener(this);\n button.setHorizontalAlignment(SwingConstants.LEFT);\n button.setMinimumSize(new Dimension(0,buttonHeight));\n button.setMargin(new Insets(0, 0, 0, 0));\n buttons.put(source, button);\n }", "public JToggleButton getDetailsToggleButton() {\n return getToggleButton(1);\n }", "private JButton getJButton2() {\n\t\tif (import_button == null) {\n\t\t\timport_button = new JButton();\n\t\t\timport_button.setText(Locale.getString(\"IMPORT\"));\n\t\t\timport_button.setMnemonic(java.awt.event.KeyEvent.VK_I);\n\t\t}\n\t\treturn import_button;\n\t}", "private JButton getJbChangeEnquirer() {\r\n if (this.jbChangeEnquirer == null) {\r\n this.jbChangeEnquirer = new JButton();\r\n this.jbChangeEnquirer.setText(\"Change\");\r\n this.jbChangeEnquirer.setSize(new Dimension(140, 15));\r\n this.jbChangeEnquirer.addActionListener(new java.awt.event.ActionListener() {\r\n public void actionPerformed(java.awt.event.ActionEvent e) {\r\n getNewEnquirer();\r\n }\r\n });\r\n }\r\n return this.jbChangeEnquirer;\r\n }", "public CoeusToolBarFactory(CoeusAppletMDIForm mdiForm) {\r\n super();\r\n this.mdiForm = mdiForm;\r\n coeusMessageResources = CoeusMessageResources.getInstance();\r\n createToolBar();\r\n // rdias UCSD - Coeus personalization impl\r\n//\t AbstractController persnref = AbstractController.getPersonalizationControllerRef();\r\n//\t persnref.customize_module(null, getToolBar(),this, \"MAINFRAME\");\r\n\t //rdias UCSD \r\n }", "private JButton getJButton() {\n\t\tif (jButton == null) {\n\t\t\tjButton = new JButton();\n\t\t\tjButton.setBounds(new Rectangle(57, 80, 34, 45));\n\t\t}\n\t\treturn jButton;\n\t}", "public JButton getSettle(){\n\t\treturn btnSettle;\n\t}", "private void createOpenButton(final ToolBar bar) {\r\n // image's source:\r\n // https://openclipart.org/detail/119905/load-cedric-bosdonnat-01-by-anonymous\r\n createButton(bar, \"images/load_cedric_bosdonnat_01.png\", \"Open\",\r\n new SelectionOpenListener());\r\n }", "@Override\n public Component getToolbarPresenter() {\n return new FontPanel();\n }", "private JButton getJButton1() {\n\t\tif (edit_button == null) {\n\t\t\tedit_button = new JButton();\n\t\t\tedit_button.setMnemonic(java.awt.event.KeyEvent.VK_E);\n\t\t\tedit_button.setText(Locale.getString(\"EDIT\"));\n\t\t}\n\t\treturn edit_button;\n\t}", "@Override\n\tpublic boolean requiresToggleButton() {\n\t\treturn false;\n\t}", "private void createButton() {\n this.setIcon(images.getImageIcon(fileName + \"-button\"));\n this.setActionCommand(command);\n this.setPreferredSize(new Dimension(width, height));\n this.setMaximumSize(new Dimension(width, height));\n }", "public JComponent getToolbarComponent()\n {\n return _box;\n }", "private JButton getColorButton() {\r\n\t\tif (colorButton == null) {\r\n\t\t\tcolorButton = new JButton(); \r\n\t\t\tcolorButton.setIcon(new ImageIcon(getClass().getResource(\"/img/icon/rtf_choosecolor.gif\")));\r\n\t\t\tcolorButton.setPreferredSize(new Dimension(23, 23));\r\n\t\t\tcolorButton.setBounds(new Rectangle(16, 1, 23, 20));\r\n\t\t\tcolorButton.setToolTipText(\"颜色编辑\");\r\n\t\t\tcolorButton.setActionCommand(\"colorButton\");\r\n\t\t\tcolorButton.addActionListener(this.buttonAction);\r\n\t\t}\r\n\t\treturn colorButton;\r\n\t}", "private JButton getJButton() {\n\t\tif (new_button == null) {\n\t\t\tnew_button = new JButton();\n\t\t\tnew_button.setText(Locale.getString(\"NEW\"));\n\t\t\tnew_button.setMnemonic(java.awt.event.KeyEvent.VK_N);\n\t\t\tnew_button.addActionListener(new java.awt.event.ActionListener() { \n\t\t\t\tpublic void actionPerformed(java.awt.event.ActionEvent e) { \n\t\t\t\t\tSystem.out.println(\"actionPerformed()\"); // TODO Auto-generated Event stub actionPerformed()\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn new_button;\n\t}", "private void toggleToolBarState() {\n Log.d(TAG, \"toggleToolBarState: toggling AppBarState.\");\n if (mAppBarState == STANDARD_APPBAR) {\n setAppBaeState(SEARCH_APPBAR);\n } else {\n setAppBaeState(STANDARD_APPBAR);\n }\n }", "private javax.swing.JButton getJButton8() {\n\t\tif(jButton8 == null) {\n\t\t\tjButton8 = new javax.swing.JButton();\n\t\t\tjButton8.setPreferredSize(new java.awt.Dimension(120,40));\n\t\t\tjButton8.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButton8.setMargin(new Insets(1,2,1,1));\n\t\t\tjButton8.setFont(new java.awt.Font(\"Dialog\", java.awt.Font.BOLD, 10));\n\t\t\tjButton8.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);\n\t\t\tjButton8.setText(\"F8 Anular Lista\");\n\t\t}\n\t\treturn jButton8;\n\t}", "public JButton makeNavigationButton(String actionCommand, String toolTipText,String altText) \r\n {\n JButton button = new JButton();\r\n button.setActionCommand(actionCommand);\r\n button.setToolTipText(toolTipText);\r\n button.addActionListener(this);\r\n\r\n //no image found\r\n button.setText(altText);\r\n return button;\r\n }", "protected JButton createRefreshButton() {\n JButton butRefresh = new JButton();\n butRefresh.setIcon(new ImageIcon(getClass().getClassLoader().getResource(\"image/refresh3.png\")));\n butRefresh.setToolTipText(\"Refresh All\");\n butRefresh.addActionListener(new refreshListener());\n return butRefresh;\n }", "protected JButton createRightOneTouchButton() {\n/* 139 */ SynthArrowButton synthArrowButton = new SynthArrowButton(1);\n/* 140 */ int i = lookupOneTouchSize();\n/* */ \n/* 142 */ synthArrowButton.setName(\"SplitPaneDivider.rightOneTouchButton\");\n/* 143 */ synthArrowButton.setMinimumSize(new Dimension(i, i));\n/* 144 */ synthArrowButton.setCursor(Cursor.getPredefinedCursor(0));\n/* 145 */ synthArrowButton.setFocusPainted(false);\n/* 146 */ synthArrowButton.setBorderPainted(false);\n/* 147 */ synthArrowButton.setRequestFocusEnabled(false);\n/* 148 */ synthArrowButton.setDirection(mapDirection(false));\n/* 149 */ return synthArrowButton;\n/* */ }", "private javax.swing.JButton getJButtonAceptar() {\n\t\tif(jButtonAceptar == null) {\n\t\t\tjButtonAceptar = new JHighlightButton();\n\t\t\tjButtonAceptar.setText(\"Aceptar\");\n\t\t\tjButtonAceptar.setBackground(new java.awt.Color(226,226,222));\n\t\t\tjButtonAceptar.setIcon(new ImageIcon(getClass().getResource(\"/com/becoblohm/cr/gui/resources/icons/ix16x16/check2.png\")));\n\t\t}\n\t\treturn jButtonAceptar;\n\t}", "public MenuButton getMenuButton() {\r\n if (menuButton == null) {\r\n menuButton = new MenuButton(getViewTitle());\r\n Misc.setOpaque(menuButton, false);\r\n JPopupMenu popup = menuButton.getPopupMenu();\r\n popup.add(getCopyAction());\r\n popup.add(getFindAction());\r\n popup.addSeparator();\r\n popup.add(getClearAction());\r\n popup.add(getLogToFileAction());\r\n }\r\n return menuButton;\r\n\r\n }", "private static JButton buttonMaker(String s){\n final JButton button;\n button = new JButton(new ImageIcon(iconMaker(s)));\n button.setFocusPainted(false);\n return button;\n }", "private void setupHelpButton() {\n\t\tImageIcon help_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"help.png\");\n\t\tJButton help_button = new JButton(\"\",help_button_image);\n\t\thelp_button.setBorderPainted(false);\n\t\thelp_button.setBounds(1216, 24, 100, 100);\n\t\thelp_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tHelp help_frame=new Help(PanelID.Quiz);\n\t\t\t\thelp_frame.setVisible(true);\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\thelp_button.addMouseListener(new VoxMouseAdapter(help_button,null));\n\t\tadd(help_button);\n\t}", "public JButtonOperator btSettings() {\n if (_btSettings==null) {\n _btSettings = new JButtonOperator(this,\n Bundle.getStringTrimmed(\"org.netbeans.modules.derby.ui.Bundle\", \"LBL_Properties\"));\n }\n return _btSettings;\n }", "public MainToolBar getMainToolBar()\n {\n return mainToolBar;\n }" ]
[ "0.705028", "0.68272346", "0.6596017", "0.654584", "0.6523541", "0.6393968", "0.6381892", "0.6380932", "0.6376646", "0.6345386", "0.63185567", "0.631648", "0.62968093", "0.62614936", "0.6219101", "0.6214543", "0.6207552", "0.6204762", "0.6126506", "0.6106197", "0.60953754", "0.60793096", "0.6069726", "0.60405654", "0.6004698", "0.6001052", "0.5940059", "0.59395087", "0.5925043", "0.5919258", "0.59164876", "0.58600724", "0.5859617", "0.5840263", "0.58368313", "0.58193606", "0.57673794", "0.5750998", "0.57502997", "0.57201535", "0.571591", "0.5701067", "0.56938547", "0.5693758", "0.569243", "0.5689625", "0.5675529", "0.56690764", "0.564595", "0.5632318", "0.5586983", "0.5577002", "0.5567594", "0.5554553", "0.554387", "0.55380106", "0.5535831", "0.553026", "0.5523177", "0.55015165", "0.54956794", "0.54617715", "0.5435709", "0.5428679", "0.5410494", "0.5407422", "0.54036826", "0.53995156", "0.53990215", "0.5396573", "0.53884196", "0.53803474", "0.5360175", "0.5348761", "0.5346448", "0.53393817", "0.5334874", "0.53267103", "0.532588", "0.53251356", "0.5311316", "0.5310563", "0.52931625", "0.5257705", "0.5256503", "0.52441096", "0.52428013", "0.5240435", "0.523346", "0.52263063", "0.52261806", "0.52210927", "0.522078", "0.5220628", "0.5216424", "0.5216325", "0.5203449", "0.5199623", "0.51883066", "0.51814526" ]
0.6626732
2
Tabbed Pane Builds and answers the tabbed pane.
private Component buildMainPanel() { DPanel mainPanel = new DPanel(); JLabel backGroundLabel = new JLabel(ImageUtil.getImageIcon("happycow.jpg")); mainPanel.add(backGroundLabel); setCurrentContentPane(mainPanel); home = mainPanel; return home; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private void createTabs() {\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\t\r\n\t\t//changes title and status bar \r\n\t\ttabbedPane.addChangeListener((l) -> { \r\n\t\t\tint index = tabbedPane.getSelectedIndex();\r\n\t\t\tif (index < 0) {\r\n\t\t\t\tcurrentFile = \"-\";\r\n\t\t\t} else {\r\n\t\t\t\tcurrentFile = tabbedPane.getToolTipTextAt(index);\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tif (currentFile.isEmpty()) {\t//file not yet saved\r\n\t\t\t\tcurrentFile = tabbedPane.getTitleAt(tabbedPane.getSelectedIndex());\r\n\t\t\t}\r\n\t\t\t\r\n\t\t\tsetTitle(currentFile + \" - JNotepad++\");\r\n\t\t\t\r\n\t\t\t\r\n\t\t\tJTextArea current = getSelectedTextArea();\r\n\t\t\tif (current == null) return;\r\n\t\t\tCaretListener[] listeners = current.getCaretListeners();\r\n\t\t\tlisteners[0].caretUpdate(new CaretEvent(current) {\r\n\t\t\t\t\r\n\t\t\t\t/**\r\n\t\t\t\t * Serial UID.\r\n\t\t\t\t */\r\n\t\t\t\tprivate static final long serialVersionUID = 1L;\r\n\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getMark() {\r\n\t\t\t\t\treturn 0;\t//not used\r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\t@Override\r\n\t\t\t\tpublic int getDot() {\r\n\t\t\t\t\treturn current.getCaretPosition();\r\n\t\t\t\t}\r\n\t\t\t});\r\n\t\t});\r\n\t\t\r\n\t\tcreateSingleTab(null, null);\r\n\t\tgetContentPane().add(tabbedPane, BorderLayout.CENTER);\t\r\n\t}", "private void setupTab() {\n setLayout(new BorderLayout());\n JSplitPane mainSplit = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n mainSplit.setDividerLocation(160);\n mainSplit.setBorder(BorderFactory.createEmptyBorder());\n\n // set up the MBean tree panel (left pane)\n tree = new XTree(this);\n tree.setCellRenderer(new XTreeRenderer());\n tree.getSelectionModel().setSelectionMode(TreeSelectionModel.SINGLE_TREE_SELECTION);\n tree.addTreeSelectionListener(this);\n tree.addTreeWillExpandListener(this);\n tree.addMouseListener(ml);\n JScrollPane theScrollPane = new JScrollPane(tree, JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED,\n JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\n JPanel treePanel = new JPanel(new BorderLayout());\n treePanel.add(theScrollPane, BorderLayout.CENTER);\n mainSplit.add(treePanel, JSplitPane.LEFT, 0);\n\n // set up the MBean sheet panel (right pane)\n viewer = new XDataViewer(this);\n sheet = new XSheet(this);\n mainSplit.add(sheet, JSplitPane.RIGHT, 0);\n\n add(mainSplit);\n }", "public void buildStagingPanel() {\n if (tabbedPane == null) {\n tabbedPane = new JTabbedPane(SwingConstants.TOP);\n tabbedPane.addTab(\"Query\", _widgetPanel);\n tabbedPane.addTab(om.getProgramName(), om.getTreePanel());\n tabbedPane.addTab(\"Calibrations\", calibrationMenu);\n tabbedPane.setVisible(true);\n } else {\n tabbedPane.setTitleAt(1, om.getProgramName());\n }\n\n tabbedPane.setSelectedIndex(1);\n }", "private void createLayout () {\n \t\n \tBorderPane border = new BorderPane();\n \t\n \t\n \t tabPane = new TabPane();\n ArrayList <ScrollPane> tabs = new ArrayList <ScrollPane>();\n \t\n //create column 1 - need to refactor this and make more generic\n TilePane col1 = new TilePane();\n \tcol1.setPrefColumns(2);\n \tcol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol1.setAlignment(Pos.TOP_LEFT);\n \tcol1.getChildren().addAll(createElements ());\n \tScrollPane scrollCol1 = new ScrollPane(col1);\n \ttabs.add(scrollCol1);\n \t\n \tTilePane col2 = new TilePane();\n \tcol2.setPrefColumns(2);\n \tcol2.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n \tcol2.setAlignment(Pos.TOP_LEFT);\n \tcol2.getChildren().addAll(createElements ());\n \tScrollPane scrollCol2 = new ScrollPane(col2);\n \ttabs.add(scrollCol2);\n \t\n \t\n \t\n for (int i = 0; i < tabs.size(); i++) {\n Tab tab = new Tab();\n String tabLabel = \"Col-\" + i;\n tab.setText(tabLabel);\n keywordsList.put(tabLabel, new ArrayList <String>());\n \n tab.setContent(tabs.get(i));\n tabPane.getTabs().add(tab);\n }\n \t\n \t\n \t\n \t\n \t\n \t\n //System.out.println(controller.getScene());\n border.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n border.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n ToolBar toolbar = createtoolBar();\n toolbar.setPrefHeight(50);\n \n border.setTop(toolbar);\n\t\t\n\n\t scrollCol1.prefHeightProperty().bind(controller.primaryStage.heightProperty());\n\t scrollCol1.prefWidthProperty().bind(controller.primaryStage.widthProperty());\n border.setCenter(tabPane);\n\t Group root = (Group)this.getRoot();\n root.getChildren().add(border);\n\t}", "private void createTabs(){\n canvasPanel = new JPanel();\n canvasPanel.setLayout(new BorderLayout());\n canvasPanel.add(mCanvas, BorderLayout.CENTER);\n canvasPanel.setMinimumSize(new Dimension(100,50));\n \n // Create the options and properties panel\n optionPanel = new JPanel();\n optionPanel.setLayout(new FlowLayout());\n\n // Set the size\n optionPanel.setMinimumSize(new Dimension(30,30));\t\n optionPanel.setPreferredSize(new Dimension(200,10));\n\n // Create the log area\n mLogArea = new JTextArea(5,20);\n mLogArea.setMargin(new Insets(5,5,5,5));\n mLogArea.setEditable(false);\n JScrollPane logScrollPane = new JScrollPane(mLogArea);\n \n // Das SplitPanel wird in optionPanel (links) und canvasPanel (rechts) unterteilt\n JSplitPane split = new JSplitPane();\n split.setOrientation(JSplitPane.HORIZONTAL_SPLIT);\n split.setLeftComponent(canvasPanel);\n split.setRightComponent(optionPanel);\n \n JSplitPane splitLog = new JSplitPane();\n splitLog.setOrientation(JSplitPane.VERTICAL_SPLIT);\n splitLog.setBottomComponent(logScrollPane);\n splitLog.setTopComponent(split);\n splitLog.setResizeWeight(1);\n \n mMainFrame.add(splitLog, BorderLayout.CENTER); \n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new GridLayoutManager(1, 1, new Insets(0, 0, 0, 0), -1, -1));\n rootTabControl = new JTabbedPane();\n panel1.add(rootTabControl, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n }", "private void initTeamsTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n teamTab = new Tab();\n teamWorkspacePane = new VBox();\n teamWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n teamScroll = new ScrollPane();\n \n // PAGE LABEL & BUTTON\n Label teams = new Label();\n teams = initChildLabel(teamWorkspacePane, DraftKit_PropertyType.TEAMS_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.TEAM_ICON);\n Image buttonImage = new Image(imagePath);\n teamTab.setGraphic(new ImageView(buttonImage));\n \n // ADD THINGS TO VBOX HERE\n HBox draftNameControls = new HBox();\n initHBoxLabel(draftNameControls, DraftKit_PropertyType.DRAFT_NAME_LABEL, CLASS_PROMPT_LABEL);\n draftNameText = initHBoxTextField(draftNameControls, \"\", true);\n\n HBox teamControls = new HBox();\n addTeam = initHBoxButton(teamControls, DraftKit_PropertyType.ADD_ICON, DraftKit_PropertyType.ADD_TEAM_TOOLTIP, false);\n removeTeam = initHBoxButton(teamControls, DraftKit_PropertyType.MINUS_ICON, DraftKit_PropertyType.REMOVE_TEAM_TOOLTIP, true);\n editTeam = initHBoxButton(teamControls, DraftKit_PropertyType.EDIT_ICON, DraftKit_PropertyType.EDIT_TEAM_TOOLTIP, true);\n\n initHBoxLabel(teamControls, DraftKit_PropertyType.TEAM_SELECT_LABEL, CLASS_PROMPT_LABEL);\n selectTeam = new ComboBox();\n selectTeam.getItems().clear();\n for (int n = 0; n < dataManager.getDraft().getFantasyTeams().size(); n++) {\n selectTeam.getItems().add(dataManager.getDraft().getFantasyTeams().get(n).getTeamName());\n }\n selectTeam.setValue(\"Choose a team\");\n \n selectTeam.valueProperty().addListener(new ChangeListener<String>() {\n @Override public void changed(ObservableValue ov, String t, String t1) {\n ArrayList<Player> tempTeam = new ArrayList<>();\n ArrayList<Player> tempTaxi = new ArrayList<>();\n teamTable.getItems().clear();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem())) {\n tempTeam = tt.getTeamList();\n tempTaxi = tt.getTaxiList();\n }\n }\n teamTable = resetTeamTable(tempTeam);\n teamTaxiTable = resetTaxiTable(tempTaxi);\n }\n });\n \n teamControls.getChildren().add(selectTeam);\n\n // TABLE FOR MAIN PLAYERS IN THE FANTASY TEAMS PAGE\n VBox teamTableBox = new VBox();\n initVBoxLabel(teamTableBox, DraftKit_PropertyType.TEAM_TABLE_LABEL, CLASS_SUBHEADING_LABEL);\n positionCompare = new PositionCompare();\n teamTable = new TableView<>();\n \n posCol = new TableColumn<>(\"Position\");\n posCol.setCellValueFactory(new PropertyValueFactory<>(\"ChosenPosition\"));\n posCol.setComparator(positionCompare);\n posCol.setSortType(SortType.ASCENDING);\n posCol.setSortable(true);\n firstCol = new TableColumn<>(\"First\");\n firstCol.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n firstCol.setSortable(false);\n lastCol = new TableColumn<>(\"Last\");\n lastCol.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n lastCol.setSortable(false);\n teamCol = new TableColumn<>(\"Pro Team\");\n teamCol.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n teamCol.setSortable(false);\n positionsCol = new TableColumn<>(\"Positions\");\n positionsCol.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n positionsCol.setSortable(false);\n rwCol = new TableColumn<>(\"R/W\");\n rwCol.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n rwCol.setSortable(false);\n hrsvCol = new TableColumn<>(\"HR/SV\");\n hrsvCol.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n hrsvCol.setSortable(false);\n rbikCol = new TableColumn<>(\"RBI/K\");\n rbikCol.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n rbikCol.setSortable(false);\n sberaCol = new TableColumn<>(\"SB/ERA\");\n sberaCol.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n sberaCol.setSortable(false);\n bawhipCol = new TableColumn<>(\"BA/WHIP\");\n bawhipCol.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n bawhipCol.setSortable(false);\n eValueCol = new TableColumn<>(\"Estimated Value\");\n eValueCol.setCellValueFactory(new PropertyValueFactory<>(\"estimatedValue\"));\n eValueCol.setSortable(false);\n contractCol = new TableColumn<>(\"Contract\");\n contractCol.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n contractCol.setSortable(false);\n salaryCol = new TableColumn<>(\"Salary\");\n salaryCol.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n salaryCol.setSortable(false);\n \n teamTable.getColumns().setAll(posCol, firstCol, lastCol, positionsCol,\n rwCol, hrsvCol, rbikCol, sberaCol, bawhipCol, eValueCol, contractCol, salaryCol);\n \n teamTable.getSortOrder().add(posCol);\n \n teamTable.setItems(teamList);\n \n // TABLE FOR TAXI PLAYERS IN THE FANTASY TEAMS PAGE\n VBox teamTaxiBox = new VBox();\n initVBoxLabel(teamTaxiBox, DraftKit_PropertyType.TEAM_TAXI_LABEL, CLASS_SUBHEADING_LABEL);\n teamTaxiTable = new TableView<>();\n \n firstCol2 = new TableColumn<>(\"First\");\n firstCol2.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n lastCol2 = new TableColumn<>(\"Last\");\n lastCol2.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n teamCol2 = new TableColumn<>(\"Pro Team\");\n teamCol2.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n positionsCol2 = new TableColumn<>(\"Positions\");\n positionsCol2.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n rwCol2 = new TableColumn<>(\"R/W\");\n rwCol2.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n hrsvCol2 = new TableColumn<>(\"HR/SV\");\n hrsvCol2.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n rbikCol2 = new TableColumn<>(\"RBI/K\");\n rbikCol2.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n sberaCol2 = new TableColumn<>(\"SB/ERA\");\n sberaCol2.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n bawhipCol2 = new TableColumn<>(\"BA/WHIP\");\n bawhipCol2.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n eValueCol2 = new TableColumn<>(\"Estimated Value\");\n eValueCol2.setCellValueFactory(new PropertyValueFactory<>(\"EValue\"));\n contractCol2 = new TableColumn<>(\"Contract\");\n contractCol2.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n salaryCol2 = new TableColumn<>(\"Salary\");\n salaryCol2.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n \n teamTaxiTable.getColumns().setAll(firstCol2, lastCol2, positionsCol2,\n rwCol2, hrsvCol2, rbikCol2, sberaCol2, bawhipCol2, eValueCol2, contractCol2, salaryCol2);\n \n teamTaxiTable.setItems(teamTaxiList);\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Fantasy Teams Page\");\n teamTab.setTooltip(t);\n \n // PUT IN TAB PANE\n teamTableBox.getChildren().add(teamTable);\n teamTaxiBox.getChildren().add(teamTaxiTable);\n teamWorkspacePane.getChildren().add(draftNameControls);\n teamWorkspacePane.getChildren().add(teamControls);\n teamWorkspacePane.getChildren().add(teamTableBox);\n teamWorkspacePane.getChildren().add(teamTaxiBox);\n teamScroll.setContent(teamWorkspacePane);\n teamTab.setContent(teamScroll);\n mainWorkspacePane.getTabs().add(teamTab);\n \n ArrayList<Player> tempTeam = new ArrayList<>();\n for (Team tt : dataManager.getDraft().getFantasyTeams()) {\n if (tt.getTeamName().equals(selectTeam.getSelectionModel().getSelectedItem()))\n tempTeam = tt.getTeamList();\n }\n teamTable = resetTeamTable(tempTeam);\n }", "private void setupTabs() {\n }", "public AutomatedTestingTabbedPane()\r\n\t{\r\n\t\tsuper();\r\n\t\t\r\n\t\tthis.setBackground(Constants.WHITE);\r\n\t\tthis.setForeground(Constants.BLUE);\r\n\t\t\r\n\t\tthis.setFont(new Font(\"sans-serif\", Font.PLAIN, 16));\r\n\t\tthis.addTab(\"CXCParticipant\", participantPanel);\r\n\t\tthis.setMnemonicAt(0, KeyEvent.VK_1);\r\n\t\t\r\n\t\tthis.addTab(\"CXCToken\", tokenPanel);\r\n\t\tthis.setMnemonicAt(1, KeyEvent.VK_2);\r\n\t\t\r\n\t\tthis.addTab(\"CXCRecipient\", recipientPanel);\r\n\t\tthis.setMnemonicAt(2, KeyEvent.VK_3);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPayment\", paymentPanel);\r\n\t\tthis.setMnemonicAt(3, KeyEvent.VK_4);\r\n\t\t\r\n\t\tthis.addTab(\"CXCPaymentRequest\", paymentRequestPanel);\r\n\t\tthis.setMnemonicAt(4, KeyEvent.VK_5);\r\n\t\t\r\n//\t\tthis.addTab(\"Export\", exportPanel);\r\n//\t\tthis.setMnemonicAt(5, KeyEvent.VK_6);\r\n\r\n\t}", "public KonTabbedPane() {\n // Initialize the ArrayList\n graphInterfaces = new ArrayList<DrawingLibraryInterface>();\n\n DirectedGraph<String, DefaultEdge> graph = CreateTestGraph();\n\n /*\n * Adds a tab\n */\n DrawingLibraryInterface<String, DefaultEdge> graphInterface =\n DrawingLibraryFactory.createNewInterface(graph);\n \n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n addTab(\"First Tab\", graphInterface.getPanel());\n\n /*\n * Adds a tab\n */\n graphInterface = DrawingLibraryFactory.createNewInterface(graph);\n graphInterfaces.add(graphInterface);\n\n // Adds the graph to the tab and adds the tab to the pane\n add(graphInterface.getPanel());\n\n graphInterface.getGraphManipulationInterface().highlightNode(graph\n .vertexSet().iterator().next(), true);\n\n addTab(\"Second Tab\", graphInterface.getPanel());\n }", "public JTabbedPaneDemo() {\n\t\ttabbedPane = new JTabbedPane(JTabbedPane.TOP);\n\t\t// panel=new Panel();\n\t\t// panel.setBackground(Color.RED);\n\t\t// music=new JPanel();\n\t\t// music.setBackground(Color.green);\n\t\ttabbedPane.addTab(\"panel\", new JLabel(\"标签\"));\n\t\ttabbedPane.addTab(\"music\", new Button(\"按钮\"));\n\t\tadd(tabbedPane);\n\t\tsetBounds(500, 100, 500, 500);\n\t\tsetVisible(true);\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t}", "private void layoutTabs() {\n\tJTabbedPane tabs = new JTabbedPane();\n\ttabs.add(\"MAIN MENU\", mainMenu);\n\ttabs.add(\"LEVEL EDITOR\", levelEditor);\n\tthis.getContentPane().add(tabs);\n }", "private void initTabs() {\n\t\tJPanel newTab = new JPanel();\r\n\t\taddTab(\"\", newTab); //$NON-NLS-1$\r\n\t\tsetTabComponentAt(0, new NewPaneButton());\r\n\t\tsetEnabledAt(0, false);\r\n\t\t// Add a new pane\r\n\t\taddPane();\r\n }", "public TabPaneLike(TabSide side, TabLabelCreator tabLabelCreator){\n BorderPane bp = new BorderPane();\n\n this.tabLabelCreator = tabLabelCreator;\n\n getChildren().add(bp);\n\n bp.maxWidthProperty().bind(widthProperty());\n bp.minWidthProperty().bind(widthProperty());\n bp.prefWidthProperty().bind(widthProperty());\n\n bp.maxHeightProperty().bind(heightProperty());\n bp.minHeightProperty().bind(heightProperty());\n bp.prefHeightProperty().bind(heightProperty());\n\n\n tabContent = new StackPane();\n tabs = new LinkedList<>();\n\n switch(side){\n case TOP -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setTop(nameTab);\n }\n case BOTTOM -> {\n nameTab = new HBox();\n tabLabelCreator.setHeights(nameTab);\n bp.setBottom(nameTab);\n }\n case RIGHT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setRight(nameTab);\n }\n case LEFT -> {\n nameTab = new VBox();\n tabLabelCreator.setWidths(nameTab);\n bp.setLeft(nameTab);\n }\n default -> nameTab = new VBox();\n\n }\n\n bp.setCenter(tabContent);\n\n nameTab.setStyle(\"-fx-background-color: lightgrey\");\n }", "private void initComponents() {\n tabbedPane = new javax.swing.JTabbedPane();\n statusLabel = new javax.swing.JLabel();\n\n statusLabel.setText(\" \");\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGap(12, 12, 12)\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE))\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(statusLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 376, Short.MAX_VALUE)))\n .addContainerGap())\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(tabbedPane, javax.swing.GroupLayout.DEFAULT_SIZE, 267, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(statusLabel))\n );\n }", "public JTabbedPane createPanel()\r\n {\r\n\r\n /** LoadTabPaneData Thread - Inner class that will load the historic data on the AWT\r\n * Thread as to not muck up things on the GUI thread\r\n * The Thread will die after it loads everything.\r\n */\r\n class LoadTabPaneDataTask extends TimerTask\r\n {\r\n // Handle to main outer class\r\n WatchListTableModule watchListTableModule = null;\r\n\r\n /** \r\n * LoadTabPaneDataTask constructor\r\n */\r\n public LoadTabPaneDataTask(WatchListTableModule watchListTableModule)\r\n {\r\n this.watchListTableModule = watchListTableModule;\r\n }\r\n\r\n /** \r\n * LoadTabPaneDataTask::run() this method simply invokes. \r\n * WatchListTableModule::loadPersistantWatchLists() method.\r\n * The method will populate all watchlists to be loaded on\r\n * the JTabbedPane then it dies off\r\n */\r\n public void run()\r\n {\r\n debug(\"LoadTabPaneDataTask::run() - calling watchListTableModule.loadPersistantWatchLists()\");\r\n watchListTableModule.loadPersistantWatchLists();\r\n this.cancel();\r\n }\r\n }\r\n\r\n // Create an Application Properties instance\r\n appProps = new AppProperties(getString(\"WatchListTableModule.application_ini_filename\"));\r\n // Setup our Time Delays\r\n standardDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.standard_time_delay\"), ONE_MINUTE);\r\n extendedDelay = ONE_SECOND * ParseData.parseNum(getString(\"WatchListTableModule.extended_time_delay\"), ONE_HOUR);\r\n\r\n // Create our Basic Tabbed Pane and Listener ( inner class )\r\n tabPane = new JTabbedPane();\r\n tabPane.addChangeListener(new TabPaneListener());\r\n\r\n // Load the Tab Pane Data on the Util Event Thread as \r\n // to get our screen up and going as fast as possible\r\n // So we can get out of here - This Inner class thread\r\n // invokes method\r\n // loadPersistantWatchLists();\r\n TimerTask tabPaneTask = new LoadTabPaneDataTask(this);\r\n Timer timer = new Timer(true); // Deamon\r\n timer.schedule(tabPaneTask, ONE_SECOND);\r\n\r\n return tabPane;\r\n }", "private JTabbedPane getTabbedPane() {\n if (tabbedPane == null) {\n tabbedPane = new JTabbedPane();\n addTab(tabbedPane, \"Input/Output\", getMainPanel());\n addTab(tabbedPane, \"Advanced\", getSpecificAdvancedPanel());\n addTab(tabbedPane, \"Download Ontologies\", getAdvancedPanel());\n addTab(tabbedPane, \"Logs\", getLogPanel());\n }\n return tabbedPane;\n }", "private void initMLBTeamTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n mlbTeamTab = new Tab();\n mlbTeamWorkspacePane = new VBox();\n mlbTeamWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD LABEL & BUTTON\n Label mlbTeams = new Label();\n mlbTeams = initChildLabel(mlbTeamWorkspacePane, DraftKit_PropertyType.MLB_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.MLB_ICON);\n Image buttonImage = new Image(imagePath);\n mlbTeamTab.setGraphic(new ImageView(buttonImage));\n \n // CREATE THE COMBOBOX\n HBox mlbTeamHBox = new HBox();\n initHBoxLabel(mlbTeamHBox, DraftKit_PropertyType.MLB_TEAM_LABEL, CLASS_PROMPT_LABEL);\n \n mlbTeamBox = new ComboBox();\n proTeams = new ArrayList<>();\n \n proTeams.add(\"ATL\");\n proTeams.add(\"AZ\");\n proTeams.add(\"CHC\");\n proTeams.add(\"CIN\");\n proTeams.add(\"COL\");\n proTeams.add(\"LAD\");\n proTeams.add(\"MIA\");\n proTeams.add(\"MIL\");\n proTeams.add(\"NYM\");\n proTeams.add(\"PHI\");\n proTeams.add(\"PIT\");\n proTeams.add(\"SD\");\n proTeams.add(\"SF\");\n proTeams.add(\"STL\");\n proTeams.add(\"WAS\");\n \n for (String s : proTeams) {\n mlbTeamBox.getItems().add(s);\n }\n \n mlbTeamBox.setValue(\"Choose a MLB Team\");\n \n mlbTeamHBox.getChildren().add(mlbTeamBox);\n \n mlbTeamBox.valueProperty().addListener(new ChangeListener<String>() {\n @Override public void changed(ObservableValue ov, String t, String t1) {\n ArrayList<Player> tempTeam = new ArrayList<>();\n teamTable.getItems().clear();\n for (Player p : dataManager.getDraft().getPlayerPool()) {\n if (p.getMLBTeam().equals(mlbTeamBox.getSelectionModel().getSelectedItem())) {\n tempTeam.add(p);\n }\n }\n teamTable = resetMLBTable(tempTeam);\n }\n });\n \n // CREATE THE TABLE VIEW FOR THE MLB TEAMS PAGE\n mlbTable = new TableView();\n \n mlbFirst = new TableColumn<>(\"First\");\n mlbFirst.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n mlbFirst.setSortType(SortType.ASCENDING);\n mlbFirst.setSortable(true);\n mlbLast = new TableColumn<>(\"Last\");\n mlbLast.setSortType(SortType.ASCENDING);\n mlbLast.setSortable(true);\n mlbLast.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n mlbPositions = new TableColumn<>(\"Positions\");\n mlbPositions.setCellValueFactory(new PropertyValueFactory<>(\"Position\"));\n \n mlbTable.getColumns().setAll(mlbFirst, mlbLast, mlbPositions);\n \n mlbTable = resetMLBTable(dataManager.getDraft().getPlayerPool());\n \n // SET TOOL TIP\n Tooltip t = new Tooltip(\"MLB Teams Page\");\n mlbTeamTab.setTooltip(t);\n \n // PUT IN TAB PANE\n mlbTeamWorkspacePane.getChildren().add(mlbTeamHBox);\n mlbTeamWorkspacePane.getChildren().add(mlbTable);\n mlbTeamTab.setContent(mlbTeamWorkspacePane);\n mainWorkspacePane.getTabs().add(mlbTeamTab);\n }", "public void openTab(String tabName){\r\n\r\n\t\tTabView selectedTabView = new TabView(this);\r\n\t\ttabViews.add(selectedTabView);\r\n\t\t\r\n\t\t\r\n\t\tif(tabName == null){ // If a new tab..\r\n\t\t\t// Ensure that there isn't already a model with that name\r\n\t\t\twhile(propertiesMemento.getTabNames().contains(tabName) || tabName == null){\r\n\t\t\t\ttabName = \"New Model \" + newModelIndex;\r\n\t\t\t\tnewModelIndex++;\r\n\t\t\t}\r\n\t\t}\r\n logger.info(\"Adding tab:\" + tabName);\r\n\r\n\t\t// Just resizes and doesn't scroll - so don't need the scroll pane\r\n\t\t/*JScrollPane scrollPane = new JScrollPane(selectedTabView, \r\n \t\t\t\t\t\t\t\t JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED, \r\n \t\t\t\t\t\t\t\t JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);\r\n scrollPane.getVerticalScrollBar().setUnitIncrement(20);\r\n tabbedPane.addTab(tabName, scrollPane);*/\r\n\r\n\t\ttabbedPane.addTab(tabName, selectedTabView);\r\n\r\n currentView = selectedTabView;\r\n tabbedPane.setSelectedIndex(tabbedPane.getTabCount() - 1);\r\n setTabName(tabName);\r\n\t\t\t\t\r\n tabbedPane.setTabComponentAt(tabbedPane.getSelectedIndex(), \r\n\t\t\t\t new TabButtonComponent(propertiesMemento.getImageDir(), this, currentView));\r\n \r\n // Add Mouse motion Listener \r\n currentView.addMouseMotionListener(currentView);\r\n currentView.addMouseListener(currentView);\r\n\r\n // Record the tab in the memento\r\n propertiesMemento.addTabRecord(tabName);\r\n \r\n setTabButtons(true);\r\n \r\n setStatusBarText(\"Ready\");\r\n\r\n requestFocusInWindow();\r\n\t}", "private JPanel getContents(final JTabbedPane jtp,\n final MyTabPreviewPainter mainTabPreviewPainter) {\n FormBuilder builder = FormBuilder.create().\n columns(\"right:pref, 4dlu, fill:min:grow(1), 2dlu, fill:min:grow(1)\").\n rows(\"p, 2dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, p, 3dlu, \"\n + \"p, 3dlu, p, 7dlu, p, 2dlu, p, 0dlu, p, 0dlu, p, 0dlu, p, 7dlu,\"\n + \"p, 2dlu, p, 3dlu, p, 0dlu, p, 3dlu, p, 3dlu, p, 7dlu, \"\n + \"p, 2dlu, p, 0dlu, p, 0dlu, p, 0dlu, p, 7dlu, p, 2dlu, p, 3dlu, p\").\n columnGroups(new int[][] { { 3, 5 } });\n\n int row = 1;\n builder.addSeparator(\"General\").xyw(1, row, 5);\n\n final JComboBox<String> addKindCombo = new JComboBox<>(\n new String[] { \"regular\", \"null\", \"modified\" });\n JButton addNewTabButton = new JButton(\"Add\");\n addNewTabButton.addActionListener(actionEvent -> {\n String selectedKind = (String) addKindCombo.getSelectedItem();\n if (\"null\".equals(selectedKind)) {\n SwingUtilities.invokeLater(() -> jtp.addTab(\"null tab\", null));\n return;\n }\n\n final int count = 1 + jtp.getTabCount();\n final JComponent tabComp = new NumberedPanel(count);\n if (\"modified\".equals(selectedKind)) {\n RadianceThemingCortex.ComponentScope.setTabContentsModified(tabComp, true);\n }\n SwingUtilities.invokeLater(() -> jtp.addTab(\"tab\" + count, tabComp));\n });\n row += 2;\n\n builder.addLabel(\"Add tab\").xy(1, row);\n builder.add(addKindCombo).xy(3, row);\n builder.add(addNewTabButton).xy(5, row);\n\n final JComboBox<String> placementCombo = new JComboBox<>(\n new String[] { \"top\", \"bottom\", \"left\", \"right\" });\n placementCombo.addActionListener(actionEvent -> {\n String selected = (String) placementCombo.getSelectedItem();\n if (\"top\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.TOP);\n if (\"bottom\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.BOTTOM);\n if (\"left\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.LEFT);\n if (\"right\".equals(selected))\n jtp.setTabPlacement(JTabbedPane.RIGHT);\n });\n row += 2;\n builder.addLabel(\"Placement\").xy(1, row);\n builder.add(placementCombo).xyw(3, row, 3);\n\n try {\n final JComboBox<TabOverviewKind> overviewKindCombo = new FlexiComboBox<>(\n TabOverviewKind.GRID, TabOverviewKind.MENU_CAROUSEL,\n TabOverviewKind.ROUND_CAROUSEL) {\n @Override\n public String getCaption(TabOverviewKind item) {\n return item.getName();\n }\n };\n overviewKindCombo.addActionListener(actionEvent -> mainTabPreviewPainter\n .setTabOverviewKind((TabOverviewKind) overviewKindCombo.getSelectedItem()));\n row += 2;\n builder.addLabel(\"Overview kind\").xy(1, row);\n builder.add(overviewKindCombo).xyw(3, row, 3);\n } catch (NoClassDefFoundError ncdfe) {\n }\n\n final JCheckBox useScrollLayout = new JCheckBox(\"Uses scroll layout\");\n useScrollLayout.setSelected(false);\n useScrollLayout.addActionListener(actionEvent -> jtp\n .setTabLayoutPolicy(useScrollLayout.isSelected() ? JTabbedPane.SCROLL_TAB_LAYOUT\n : JTabbedPane.WRAP_TAB_LAYOUT));\n row += 2;\n builder.addLabel(\"Layout\").xy(1, row);\n builder.add(useScrollLayout).xyw(3, row, 3);\n\n final JComboBox<TabContentPaneBorderKind> contentBorderCombo = new JComboBox<>(new TabContentPaneBorderKind[] {\n TabContentPaneBorderKind.DOUBLE_PLACEMENT,\n TabContentPaneBorderKind.SINGLE_PLACEMENT });\n contentBorderCombo.setSelectedItem(TabContentPaneBorderKind.DOUBLE_PLACEMENT);\n contentBorderCombo.addActionListener(actionEvent -> {\n TabContentPaneBorderKind contentBorderKind = (TabContentPaneBorderKind) contentBorderCombo\n .getSelectedItem();\n RadianceThemingCortex.ComponentScope.setTabContentPaneBorderKind(jtp, contentBorderKind);\n jtp.updateUI();\n jtp.repaint();\n });\n row += 2;\n builder.addLabel(\"Content border\").xy(1, row);\n builder.add(contentBorderCombo).xyw(3, row, 3);\n\n JButton enableAll = new JButton(\"+ all\");\n enableAll.addActionListener(actionEvent -> {\n for (int i = 0; i < jtp.getTabCount(); i++) {\n jtp.setEnabledAt(i, true);\n }\n });\n\n JButton disableAll = new JButton(\"- all\");\n disableAll.addActionListener(actionEvent -> {\n for (int i = 0; i < jtp.getTabCount(); i++) {\n jtp.setEnabledAt(i, false);\n }\n });\n\n row += 2;\n builder.addLabel(\"Enable all\").xy(1, row);\n builder.add(enableAll).xy(3, row);\n builder.add(disableAll).xy(5, row);\n\n JButton closeAllEnabled = new JButton(\"Close\");\n closeAllEnabled.addActionListener(actionEvent -> {\n Set<Component> toRemove = new HashSet<>();\n for (int i = 0; i < jtp.getTabCount(); i++) {\n if (jtp.isEnabledAt(i))\n toRemove.add(jtp.getComponentAt(i));\n }\n for (Component comp : toRemove)\n jtp.remove(comp);\n });\n\n JButton restoreClosed = new JButton(\"Restore\");\n restoreClosed.addActionListener(actionEvent -> {\n for (Component tnp : closed) {\n jtp.addTab(\"restored\", tnp);\n }\n });\n\n row += 2;\n builder.addLabel(\"Close all\").xy(1, row);\n builder.add(closeAllEnabled).xy(3, row);\n builder.add(restoreClosed).xy(5, row);\n\n row += 2;\n builder.addSeparator(\"Single Tab\").xyw(1, row, 5);\n\n final JComboBox<Integer> tabSelectorCombo = new JComboBox<>(new TabComboBoxModel(this.jtp));\n //tabSelectorCombo.setRenderer(new TabCellRenderer());\n jtp.addContainerListener(new ContainerAdapter() {\n @Override\n public void componentAdded(ContainerEvent e) {\n ((TabComboBoxModel) tabSelectorCombo.getModel()).changed();\n }\n\n @Override\n public void componentRemoved(ContainerEvent e) {\n ((TabComboBoxModel) tabSelectorCombo.getModel()).changed();\n }\n });\n\n row += 2;\n builder.addLabel(\"Select\").xy(1, row);\n builder.add(tabSelectorCombo).xyw(3, row, 3);\n\n final JButton markAsModified = new JButton(\"-> modified\");\n markAsModified.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n RadianceThemingCortex.ComponentScope.setTabContentsModified((JComponent) comp, true);\n }\n });\n final JButton markAsUnmodified = new JButton(\"-> unmodified\");\n markAsUnmodified.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n RadianceThemingCortex.ComponentScope.setTabContentsModified((JComponent) comp, false);\n }\n });\n row += 2;\n builder.addLabel(\"Modified\").xy(1, row);\n builder.add(markAsModified).xy(3, row);\n builder.add(markAsUnmodified).xy(5, row);\n\n final JButton runModifiedAnimOnClose = new JButton(\"Animate on X\");\n runModifiedAnimOnClose.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setRunModifiedAnimationOnTabCloseButton(jc, true);\n }\n });\n final JButton runModifiedAnimOnTab = new JButton(\"Animate on tab\");\n runModifiedAnimOnTab.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setRunModifiedAnimationOnTabCloseButton(jc, false);\n }\n });\n row += 2;\n builder.add(runModifiedAnimOnClose).xy(3, row);\n builder.add(runModifiedAnimOnTab).xy(5, row);\n\n final JButton showCloseButton = new JButton(\"+ close button\");\n showCloseButton.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setTabCloseButtonVisible(jc, true);\n jtp.repaint();\n }\n });\n final JButton hideCloseButton = new JButton(\"- close button\");\n hideCloseButton.addActionListener(actionEvent -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n if ((comp != null) && (comp instanceof JComponent)) {\n JComponent jc = (JComponent) comp;\n RadianceThemingCortex.ComponentScope.setTabCloseButtonVisible(jc, false);\n jtp.repaint();\n }\n });\n\n JButton closeButton = new JButton(\"Close\");\n closeButton.addActionListener(actionEvent -> SwingUtilities.invokeLater(() -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n Component comp = jtp.getComponentAt((Integer) tabSelectorCombo.getSelectedItem());\n jtp.removeTabAt((Integer) tabSelectorCombo.getSelectedItem());\n closed.add(comp);\n jtp.repaint();\n }));\n\n JButton selectButton = new JButton(\"Select\");\n selectButton.addActionListener(actionEvent -> SwingUtilities.invokeLater(() -> {\n if (tabSelectorCombo.getSelectedItem() == null)\n return;\n jtp.setSelectedIndex((Integer) tabSelectorCombo.getSelectedItem());\n }));\n row += 2;\n builder.addLabel(\"Tab op\").xy(1, row);\n builder.add(closeButton).xy(3, row);\n builder.add(selectButton).xy(5, row);\n\n row += 2;\n builder.addSeparator(\"Close Button Single\").xyw(1, row, 5);\n\n row += 2;\n builder.addLabel(\"Visible\").xy(1, row);\n builder.add(showCloseButton).xy(3, row);\n builder.add(hideCloseButton).xy(5, row);\n\n return builder.getPanel();\n }", "protected JTabbedPane createSettingsTabbedPane() {\r\n JTabbedPane settingsTabbedPane = new JTabbedPane();\r\n JPanel borderPanel, borderPanel2, panel, tabPanel;\r\n tabPanel = new JPanel();\r\n borderPanel = new JPanel( new BorderLayout() );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Maximum number of players:\" ) );\r\n panel.add( maxNumberOfPlayersComponent );\r\n borderPanel.add( panel, BorderLayout.NORTH );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Select the width of the map:\" ) );\r\n panel.add( mapWidthComponent );\r\n borderPanel.add( panel, BorderLayout.CENTER );\r\n borderPanel2 = new JPanel( new BorderLayout() );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Height of the map:\" ) );\r\n panel.add( mapHeightComponent );\r\n borderPanel2.add( panel, BorderLayout.NORTH );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Select game type:\" ) );\r\n panel.add( gameTypeComponent );\r\n borderPanel2.add( panel, BorderLayout.CENTER );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Game password:\" ) );\r\n panel.add( passwordComponent );\r\n borderPanel2.add( panel, BorderLayout.SOUTH );\r\n borderPanel.add( borderPanel2, BorderLayout.SOUTH );\r\n tabPanel.add( borderPanel );\r\n settingsTabbedPane.addTab( \"General\", tabPanel );\r\n tabPanel = new JPanel();\r\n borderPanel = new JPanel( new BorderLayout() );\r\n tabPanel.add( borderPanel );\r\n panel = new JPanel();\r\n panel.add( isKillLimitComponent );\r\n panel.add( killLimitComponent );\r\n borderPanel.add( panel, BorderLayout.NORTH );\r\n panel = new JPanel();\r\n panel.add( isTimeLimitComponent );\r\n panel.add( timeLimitComponent );\r\n panel.add( new JLabel( \"minute(s).\" ) );\r\n borderPanel.add( panel, BorderLayout.CENTER );\r\n settingsTabbedPane.addTab( \"Limits\", tabPanel );\r\n tabPanel = new JPanel();\r\n borderPanel = new JPanel( new BorderLayout() );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Enter welcome message:\" ) );\r\n borderPanel.add( panel, BorderLayout.NORTH );\r\n panel = new JPanel();\r\n panel.add( new JScrollPane( welcomeMessageComponent ) );\r\n borderPanel.add( panel, BorderLayout.CENTER );\r\n tabPanel.add( borderPanel );\r\n settingsTabbedPane.addTab( \"Welcome\", tabPanel );\r\n tabPanel = new JPanel();\r\n borderPanel = new JPanel( new BorderLayout() );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Amount of wall:\" ) );\r\n panel.add( amountOfWallComponent );\r\n panel.add( new JLabel( \"%.\" ) );\r\n borderPanel.add( panel, BorderLayout.NORTH );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Amount of stone:\" ) );\r\n panel.add( amountOfStoneComponent );\r\n panel.add( new JLabel( \"%.\" ) );\r\n borderPanel.add( panel, BorderLayout.CENTER );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Amount of water:\" ) );\r\n panel.add( amountOfWaterComponent );\r\n panel.add( new JLabel( \"%.\" ) );\r\n borderPanel.add( panel, BorderLayout.SOUTH );\r\n tabPanel.add( borderPanel );\r\n settingsTabbedPane.addTab( \"Map generating\", tabPanel );\r\n tabPanel = new JPanel();\r\n borderPanel = new JPanel( new BorderLayout() );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Cycle/period time of the server:\" ) );\r\n panel.add( periodTimeComponent );\r\n panel.add( new JLabel( \"ms.\" ) );\r\n borderPanel.add( panel, BorderLayout.NORTH );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Amount of wall rubbles:\" ) );\r\n panel.add( amountOfWallRubblesComponent );\r\n panel.add( new JLabel( \"%.\" ) );\r\n borderPanel.add( panel, BorderLayout.CENTER );\r\n panel = new JPanel();\r\n panel.add( new JLabel( \"Amount of blood:\" ) );\r\n panel.add( amountOfBloodComponent );\r\n panel.add( new JLabel( \"%.\" ) );\r\n borderPanel.add( panel, BorderLayout.SOUTH );\r\n tabPanel.add( borderPanel );\r\n settingsTabbedPane.addTab( \"Extra\", tabPanel );\r\n for ( int tabCounter = settingsTabbedPane.getTabCount() - 1; tabCounter >= 0; tabCounter-- )\r\n settingsTabbedPane.setMnemonicAt( tabCounter, settingsTabbedPane.getTitleAt( tabCounter ).charAt( 0 ) );\r\n return settingsTabbedPane;\r\n }", "private void $$$setupUI$$$() {\n MainPanel = new JPanel();\n MainPanel.setLayout(new GridBagLayout());\n MainPanel.setBackground(new Color(-2171407));\n MainPanel.setFocusTraversalPolicyProvider(true);\n MainPanel.setFocusable(false);\n MainPanel.setMinimumSize(new Dimension(90, 100));\n MainPanel.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n SelectionTabs = new JTabbedPane();\n SelectionTabs.setBackground(new Color(-8817257));\n GridBagConstraints gbc;\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.NORTH;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n MainPanel.add(SelectionTabs, gbc);\n SelectionTabs.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n DestinationsTab = new JPanel();\n DestinationsTab.setLayout(new GridBagLayout());\n DestinationsTab.setBackground(new Color(-2171407));\n SelectionTabs.addTab(\"Destinations\", DestinationsTab);\n DestinationsTab.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n DomesticDropdown = new JComboBox();\n DomesticDropdown.setBackground(new Color(-8817257));\n final DefaultComboBoxModel defaultComboBoxModel1 = new DefaultComboBoxModel();\n defaultComboBoxModel1.addElement(\"Select Destination\");\n defaultComboBoxModel1.addElement(\"Boston (United Airlines)\");\n defaultComboBoxModel1.addElement(\"D.C. (American Airlines)\");\n DomesticDropdown.setModel(defaultComboBoxModel1);\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.NORTHWEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n DestinationsTab.add(DomesticDropdown, gbc);\n DomesticTitle = new JLabel();\n DomesticTitle.setText(\"Domestic Destinations\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n DestinationsTab.add(DomesticTitle, gbc);\n InternationalTitle = new JLabel();\n InternationalTitle.setText(\"International Destinations\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n DestinationsTab.add(InternationalTitle, gbc);\n USA = new JLabel();\n USA.setIcon(new ImageIcon(getClass().getResource(\"/USAicon.png\")));\n USA.setInheritsPopupMenu(false);\n USA.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.weighty = 1.0;\n DestinationsTab.add(USA, gbc);\n Overseas = new JLabel();\n Overseas.setIcon(new ImageIcon(getClass().getResource(\"/Earthicon.png\")));\n Overseas.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 2;\n gbc.weighty = 1.0;\n DestinationsTab.add(Overseas, gbc);\n InternationalDropdown = new JComboBox();\n InternationalDropdown.setBackground(new Color(-8817257));\n final DefaultComboBoxModel defaultComboBoxModel2 = new DefaultComboBoxModel();\n defaultComboBoxModel2.addElement(\"Select Destination\");\n defaultComboBoxModel2.addElement(\"Tokyo (Japan Airlines)\");\n defaultComboBoxModel2.addElement(\"Dublin (Aer Lingus)\");\n InternationalDropdown.setModel(defaultComboBoxModel2);\n gbc = new GridBagConstraints();\n gbc.gridx = 3;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.NORTHWEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n DestinationsTab.add(InternationalDropdown, gbc);\n DestinationSubmitButton = new JButton();\n DestinationSubmitButton.setBackground(new Color(-8817257));\n DestinationSubmitButton.setText(\"Submit\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.gridwidth = 2;\n gbc.gridheight = 6;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.SOUTH;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n DestinationsTab.add(DestinationSubmitButton, gbc);\n HotelTab = new JPanel();\n HotelTab.setLayout(new GridBagLayout());\n HotelTab.setBackground(new Color(-2171407));\n SelectionTabs.addTab(\"Hotel\", HotelTab);\n HotelTab.setBorder(BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), null, TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));\n HotelBoston = new JPanel();\n HotelBoston.setLayout(new GridBagLayout());\n HotelBoston.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.NORTHWEST;\n HotelTab.add(HotelBoston, gbc);\n HotelBoston.setBorder(BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), \"Hotel Commonwealth\", TitledBorder.CENTER, TitledBorder.TOP, null, null));\n BostonHotel = new JLabel();\n BostonHotel.setHorizontalAlignment(0);\n BostonHotel.setHorizontalTextPosition(0);\n BostonHotel.setIcon(new ImageIcon(getClass().getResource(\"/HotelCommonwealth.jpg\")));\n BostonHotel.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n HotelBoston.add(BostonHotel, gbc);\n SelectBoston = new JButton();\n SelectBoston.setLabel(\"Select\");\n SelectBoston.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n HotelBoston.add(SelectBoston, gbc);\n HotelDC = new JPanel();\n HotelDC.setLayout(new GridBagLayout());\n HotelDC.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.anchor = GridBagConstraints.NORTHEAST;\n HotelTab.add(HotelDC, gbc);\n HotelDC.setBorder(BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), \"Trump International\", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, null, null));\n TrumpInt = new JLabel();\n TrumpInt.setIcon(new ImageIcon(getClass().getResource(\"/DCHotel.png\")));\n TrumpInt.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n HotelDC.add(TrumpInt, gbc);\n SelectDC = new JButton();\n SelectDC.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n HotelDC.add(SelectDC, gbc);\n HotelDublin = new JPanel();\n HotelDublin.setLayout(new GridBagLayout());\n HotelDublin.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.gridheight = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.SOUTHWEST;\n HotelTab.add(HotelDublin, gbc);\n HotelDublin.setBorder(BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), \"The Westbury\", TitledBorder.CENTER, TitledBorder.DEFAULT_POSITION, null, null));\n Westbury = new JLabel();\n Westbury.setIcon(new ImageIcon(getClass().getResource(\"/HotelDublin.jpg\")));\n Westbury.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n HotelDublin.add(Westbury, gbc);\n SelectDublin = new JButton();\n SelectDublin.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n HotelDublin.add(SelectDublin, gbc);\n HotelTokyo = new JPanel();\n HotelTokyo.setLayout(new GridBagLayout());\n HotelTokyo.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 2;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.SOUTHEAST;\n HotelTab.add(HotelTokyo, gbc);\n HotelTokyo.setBorder(BorderFactory.createTitledBorder(BorderFactory.createRaisedBevelBorder(), \"Aman Tokyo\", TitledBorder.CENTER, TitledBorder.TOP, null, null));\n AmanTokyo = new JLabel();\n AmanTokyo.setIcon(new ImageIcon(getClass().getResource(\"/HotelTokyo.jpg\")));\n AmanTokyo.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n HotelTokyo.add(AmanTokyo, gbc);\n SelectTokyo = new JButton();\n SelectTokyo.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n HotelTokyo.add(SelectTokyo, gbc);\n RentalTab = new JPanel();\n RentalTab.setLayout(new GridBagLayout());\n RentalTab.setBackground(new Color(-2171407));\n SelectionTabs.addTab(\"Car Rental\", RentalTab);\n CarBoston = new JLabel();\n CarBoston.setIcon(new ImageIcon(getClass().getResource(\"/BostonCar.png\")));\n CarBoston.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n RentalTab.add(CarBoston, gbc);\n CarDC = new JLabel();\n CarDC.setIcon(new ImageIcon(getClass().getResource(\"/DCcar.jpg\")));\n CarDC.setInheritsPopupMenu(true);\n CarDC.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.gridheight = 3;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n RentalTab.add(CarDC, gbc);\n CarTokyo = new JLabel();\n CarTokyo.setIcon(new ImageIcon(getClass().getResource(\"/TokyoCar.jpg\")));\n CarTokyo.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 4;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n RentalTab.add(CarTokyo, gbc);\n CarDublin = new JLabel();\n CarDublin.setIcon(new ImageIcon(getClass().getResource(\"/DublinCar.jpg\")));\n CarDublin.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 4;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n RentalTab.add(CarDublin, gbc);\n hertzDCButton = new JButton();\n hertzDCButton.setText(\"Hertz D.C.\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 3;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n RentalTab.add(hertzDCButton, gbc);\n hertzTokyoButton = new JButton();\n hertzTokyoButton.setText(\"Hertz Tokyo\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 5;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n RentalTab.add(hertzTokyoButton, gbc);\n hertzDublinButton = new JButton();\n hertzDublinButton.setText(\"Hertz Dublin\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 5;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n RentalTab.add(hertzDublinButton, gbc);\n hertzBostonButton = new JButton();\n hertzBostonButton.setText(\"Hertz Boston\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.weightx = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n RentalTab.add(hertzBostonButton, gbc);\n ExcursionsTab = new JPanel();\n ExcursionsTab.setLayout(new GridBagLayout());\n ExcursionsTab.setBackground(new Color(-2171407));\n SelectionTabs.addTab(\"Excursions\", ExcursionsTab);\n ActivityFoodie = new JPanel();\n ActivityFoodie.setLayout(new GridBagLayout());\n ActivityFoodie.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n ExcursionsTab.add(ActivityFoodie, gbc);\n ActivityFoodie.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Foodie Package\", TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.TOP, null, null));\n FoodieButton = new JButton();\n FoodieButton.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n ActivityFoodie.add(FoodieButton, gbc);\n FoodiePic = new JLabel();\n FoodiePic.setIcon(new ImageIcon(getClass().getResource(\"/FOODIE.png\")));\n FoodiePic.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n ActivityFoodie.add(FoodiePic, gbc);\n ActivityHistory = new JPanel();\n ActivityHistory.setLayout(new GridBagLayout());\n ActivityHistory.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.gridwidth = 11;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n ExcursionsTab.add(ActivityHistory, gbc);\n ActivityHistory.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"History Package\", TitledBorder.LEFT, TitledBorder.TOP, this.$$$getFont$$$(null, -1, -1, ActivityHistory.getFont()), null));\n HistoryButton = new JButton();\n HistoryButton.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n ActivityHistory.add(HistoryButton, gbc);\n HistoryPic = new JLabel();\n HistoryPic.setIcon(new ImageIcon(getClass().getResource(\"/history.png\")));\n HistoryPic.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n ActivityHistory.add(HistoryPic, gbc);\n ActivitySpa = new JPanel();\n ActivitySpa.setLayout(new GridBagLayout());\n ActivitySpa.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.gridwidth = 11;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n ExcursionsTab.add(ActivitySpa, gbc);\n ActivitySpa.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Spa Package\", TitledBorder.LEFT, TitledBorder.TOP, null, null));\n SpaButton = new JButton();\n SpaButton.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n ActivitySpa.add(SpaButton, gbc);\n SpaPic = new JLabel();\n SpaPic.setIcon(new ImageIcon(getClass().getResource(\"/Spa.png\")));\n SpaPic.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n ActivitySpa.add(SpaPic, gbc);\n ActivityNature = new JPanel();\n ActivityNature.setLayout(new GridBagLayout());\n ActivityNature.setBackground(new Color(-2171407));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.gridwidth = 3;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n ExcursionsTab.add(ActivityNature, gbc);\n ActivityNature.setBorder(BorderFactory.createTitledBorder(BorderFactory.createEtchedBorder(), \"Nature Package\", TitledBorder.LEFT, TitledBorder.TOP, null, null));\n NatureButton = new JButton();\n NatureButton.setText(\"Select\");\n gbc = new GridBagConstraints();\n gbc.gridx = 1;\n gbc.gridy = 0;\n gbc.weightx = 1.0;\n gbc.weighty = 1.0;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n ActivityNature.add(NatureButton, gbc);\n NaturePic = new JLabel();\n NaturePic.setIcon(new ImageIcon(getClass().getResource(\"/nature.jpg\")));\n NaturePic.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.weighty = 1.0;\n gbc.anchor = GridBagConstraints.WEST;\n ActivityNature.add(NaturePic, gbc);\n SummaryTab = new JPanel();\n SummaryTab.setLayout(new GridBagLayout());\n SummaryTab.setBackground(new Color(-2171407));\n SelectionTabs.addTab(\"Selection Summary\", SummaryTab);\n SummaryDestinationField = new JTextArea();\n SummaryDestinationField.setBackground(new Color(-2171407));\n SummaryDestinationField.setOpaque(true);\n SummaryDestinationField.setPreferredSize(new Dimension(500, 100));\n SummaryDestinationField.setText(\"\");\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 0;\n gbc.fill = GridBagConstraints.VERTICAL;\n SummaryTab.add(SummaryDestinationField, gbc);\n SummaryHotelField = new JTextArea();\n SummaryHotelField.setBackground(new Color(-2171407));\n SummaryHotelField.setPreferredSize(new Dimension(500, 100));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 1;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n SummaryTab.add(SummaryHotelField, gbc);\n SummaryCarField = new JTextArea();\n SummaryCarField.setBackground(new Color(-2171407));\n SummaryCarField.setPreferredSize(new Dimension(500, 100));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 2;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n SummaryTab.add(SummaryCarField, gbc);\n SummaryExcursionsField = new JTextArea();\n SummaryExcursionsField.setBackground(new Color(-2171407));\n SummaryExcursionsField.setPreferredSize(new Dimension(500, 100));\n gbc = new GridBagConstraints();\n gbc.gridx = 0;\n gbc.gridy = 3;\n gbc.anchor = GridBagConstraints.WEST;\n gbc.fill = GridBagConstraints.HORIZONTAL;\n SummaryTab.add(SummaryExcursionsField, gbc);\n }", "void createGUI(JFrame f) {\n TabbedSplitPanel centrePanel = new TabbedSplitPanel(new JPanel(),TabbedSplitPanel.RIGHT);\n centrePanel.addMenuPanel(new MenuPanel(\"Right Menu\", new JTextArea(\"Menu panel for right tabbed split panel\"),true));\n\n TabbedSplitPanel bottomPanel = new TabbedSplitPanel(centrePanel,SplitPanel.BOTTOM);\n MenuPanel mainBottomMenuPanel = new MenuPanel(\"Main bottom menu\", new JTextArea(\"Contents of bottom menu\"), true);\n bottomPanel.addMenuPanel(mainBottomMenuPanel);\n\n // A panel with a button in it\n JPanel panel = createAMenuView();\n\n TabbedSplitPanel leftPanel = new TabbedSplitPanel(bottomPanel, SplitPanel.LEFT);\n leftPanel.addMenuPanel(new MenuPanel(\"Left1\", panel, true));\n leftPanel.addMenuPanel(new MenuPanel(\"Left2\", new JTextArea(\"Left 2 text area\"),true));\n\n // A nested TabbedSplitPanel\n TabbedSplitPanel nestedPanel = new TabbedSplitPanel(new JTextArea(\"Panel Containing a Nested panel\"),SplitPanel.BOTTOM);\n nestedPanel.addMenuPanel(new MenuPanel(\"Nested bottom menu\",new JTextArea(\"Nested menu panel\"),true));\n centrePanel.addMenuPanel(new MenuPanel(\"Nested\",nestedPanel,true));\n\n f.setContentPane(leftPanel);\n\n }", "public CreateTab(PetriDishApp app) {\r\n\t\tsetText(\"Create\");\r\n\t\tsetClosable(false);\r\n\r\n\t\t// organized in a single VBox\r\n\t\tVBox createTabBox = new VBox();\r\n\t\tcreateTabBox.setPadding(new Insets(10, 5, 10, 5));\r\n\t\tcreateTabBox.setSpacing(10);\r\n\t\tcreateTabBox.setAlignment(Pos.TOP_CENTER);\r\n\t\tsetContent(createTabBox);\r\n\t\t// done setting up box\r\n\r\n\t\t// organized into HBoxes, with separators\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\t// each section labeled\r\n\t\tcreateTabBox.getChildren().add(new Label(\"New Simulation Size\"));\r\n\r\n\t\tHBox topBox = new HBox();\r\n\t\tcreateTabBox.getChildren().add(topBox);\r\n\t\ttopBox.setSpacing(10);\r\n\t\ttopBox.setAlignment(Pos.CENTER_LEFT);\r\n\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\tcreateTabBox.getChildren().add(new Label(\"New Simulation Cell Pops\"));\r\n\r\n\t\tHBox secondBox = new HBox();\r\n\t\tcreateTabBox.getChildren().add(secondBox);\r\n\t\tsecondBox.setSpacing(10);\r\n\t\tsecondBox.setAlignment(Pos.CENTER_LEFT);\r\n\r\n\t\tcreateTabBox.getChildren().add(new Separator());\r\n\t\t// finished setting up organization\r\n\r\n\t\t// begin adding GUI elements to their HBoxes\r\n\r\n\t\t// width input box\r\n\t\tBoundedIntField simDimWidthMsg = new BoundedIntField(PetriDishApp.MIN_PETRI_DISH_DIM,\r\n\t\t\t\tPetriDishApp.MAX_PETRI_DISH_DIM);\r\n\t\tsimDimWidthMsg.setMaxWidth(75);\r\n\r\n\t\tsimDimWidthMsg.integerProperty().bindBidirectional(app.newSimulationWidth);\r\n\r\n\t\t// height input box\r\n\t\tBoundedIntField simDimHeightMsg = new BoundedIntField(PetriDishApp.MIN_PETRI_DISH_DIM,\r\n\t\t\t\tPetriDishApp.MAX_PETRI_DISH_DIM);\r\n\t\tsimDimHeightMsg.setMaxWidth(75);\r\n\r\n\t\tsimDimHeightMsg.integerProperty().bindBidirectional(app.newSimulationHeight);\r\n\r\n\t\ttopBox.getChildren().add(simDimWidthMsg);\r\n\t\ttopBox.getChildren().add(simDimHeightMsg);\r\n\r\n\t\t// input fields for starting cell populations\r\n\t\t\r\n\t\t// agar\r\n\t\tBoundedIntField simAgarPopMsg = new BoundedIntField();\r\n\t\tsimAgarPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimAgarPopMsg.integerProperty().bindBidirectional(app.newSimulationAgarPop);\r\n\t\t\r\n\t\t// grazer\r\n\t\tBoundedIntField simGrazerPopMsg = new BoundedIntField();\r\n\t\tsimGrazerPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimGrazerPopMsg.integerProperty().bindBidirectional(app.newSimulationGrazerPop);\r\n\t\t\r\n\t\t// pred\r\n\t\tBoundedIntField simPredPopMsg = new BoundedIntField();\r\n\t\tsimPredPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimPredPopMsg.integerProperty().bindBidirectional(app.newSimulationPredPop);\r\n\t\t\r\n\t\t// plant\r\n\t\tBoundedIntField simPlantPopMsg = new BoundedIntField();\r\n\t\tsimPlantPopMsg.setMaxWidth(50);\r\n\r\n\t\tsimPlantPopMsg.integerProperty().bindBidirectional(app.newSimulationPlantPop);\r\n\t\t\r\n\t\t// add those input boxes to the second box\r\n\t\t// with their own labels in VBoxes\r\n\t\t\r\n\t\tArrayList<VBox> labelContainers = new ArrayList<VBox>();\r\n\t\t\r\n\t\t// make the boxes\r\n\t\t\r\n\t\tVBox simAgarPopMsgContainer = new VBox();\r\n\t\tVBox simGrazerPopMsgContainer = new VBox();\r\n\t\tVBox simPredPopMsgContainer = new VBox();\r\n\t\tVBox simPlantPopMsgContainer = new VBox();\r\n\t\t\r\n\t\t// configure the boxes\r\n\t\t\r\n\t\tlabelContainers.add(simAgarPopMsgContainer);\r\n\t\tlabelContainers.add(simGrazerPopMsgContainer);\r\n\t\tlabelContainers.add(simPredPopMsgContainer);\r\n\t\tlabelContainers.add(simPlantPopMsgContainer);\r\n\t\t\r\n\t\tfor (VBox v : labelContainers) {\r\n\t\t\tv.setPadding(new Insets(10, 5, 10, 5));\r\n\t\t\tv.setSpacing(10);\r\n\t\t\tv.setAlignment(Pos.TOP_CENTER);\r\n\t\t}\r\n\t\t\r\n\t\tsimAgarPopMsgContainer.getChildren().add(new Label(\"Agar\"));\r\n\t\tsimAgarPopMsgContainer.getChildren().add(simAgarPopMsg);\r\n\t\t\r\n\t\tsimGrazerPopMsgContainer.getChildren().add(new Label(\"Grazer\"));\r\n\t\tsimGrazerPopMsgContainer.getChildren().add(simGrazerPopMsg);\r\n\t\t\r\n\t\tsimPredPopMsgContainer.getChildren().add(new Label(\"Predator\"));\r\n\t\tsimPredPopMsgContainer.getChildren().add(simPredPopMsg);\r\n\t\t\r\n\t\tsimPlantPopMsgContainer.getChildren().add(new Label(\"Plant\"));\r\n\t\tsimPlantPopMsgContainer.getChildren().add(simPlantPopMsg);\r\n\t\t\r\n\t\tfor (VBox v : labelContainers) {\r\n\t\t\tsecondBox.getChildren().add(v);\r\n\t\t}\r\n\t\t\r\n\t}", "public MainFrame(){\n\t\ttry {\n\t\t\tUIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());\n\t\t} catch (ClassNotFoundException | IllegalAccessException | UnsupportedLookAndFeelException | InstantiationException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\tnbRules = 1;\n \tnbTabs = 0;\n \tbasePanel = new JPanel();\n \tbasePanel.setLayout(new FlowLayout(FlowLayout.CENTER));\n \ttabs = new JTabbedPane(SwingConstants.TOP);\n\n \tJToolBar toolBar = new JToolBar();\n newGen = new JButton(\"Nouvelle génération\");\n newGen.addActionListener(new Listener(\"Tab\",this));\n toolBar.add(newGen);\n example = new JButton(\"Exemples\");\n example.addActionListener(new Listener(\"Example\", this));\n toolBar.add(example);\n help = new JButton(\"Aide\");\n help.addActionListener(new Listener(\"Help\",this));\n toolBar.add(help);\n\n this.setTitle(\"L-system interface\");\n this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\t\tDimension windowDimension = new Dimension(Constants.INITIAL_WIDTH, Constants.INITIAL_HEIGHT);\n this.setSize(windowDimension);\n this.setLocationRelativeTo(null);\n this.add(tabs);\n this.add(toolBar, BorderLayout.NORTH);\n this.setPreferredSize(windowDimension);\n newComponent((byte)1);\n\t\trenameTabs();\n\t\tthis.setResizable(false);\n }", "public DoctorMainTabbedPane() {\n super();\n initialize();\n }", "private void initUI() {\n\t\tStage stage = Stage.createStage();\n\n\t\tControl formPanel = buildFormTestTab();\n\n\t\tControl cellPanel = buildCellTestTab();\n\t\t\n\t\tTabPanel tabbedPane = new TabPanel();\n\t\ttabbedPane.add(\"Form Test\", formPanel);\n\t\ttabbedPane.add(\"Cell Layout Test\", cellPanel);\n\n\t\tstage.setContent(tabbedPane);\n\t}", "private void initDraftTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n draftTab = new Tab();\n draftWorkspacePane = new VBox();\n draftWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD PAGE LABEL & BUTTON\n Label draftLabel = new Label();\n draftLabel = initChildLabel(draftWorkspacePane, DraftKit_PropertyType.DRAFT_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.DRAFT_ICON);\n Image buttonImage = new Image(imagePath);\n draftTab.setGraphic(new ImageView(buttonImage));\n \n // ADD BUTTONS TO THE DRAFT PAGE\n HBox draftButtons = new HBox();\n \n pickPlayer = initHBoxButton(draftButtons, PICK_ICON, PICK_PLAYER_TOOLTIP, false);\n autoPickPlayer = initHBoxButton(draftButtons, PLAY_ICON, AUTO_DRAFT_TOOLTIP, false);\n autoPickPause = initHBoxButton(draftButtons, PAUSE_ICON, AUTO_PAUSE_TOOLTIP, false);\n \n pickPlayer.setMinHeight(10);\n autoPickPlayer.setMinHeight(34);\n autoPickPause.setMinHeight(34);\n pickPlayer.setMinWidth(8);\n autoPickPlayer.setMinWidth(38);\n autoPickPause.setMinWidth(38);\n \n ToolBar draftToolBar = new ToolBar(\n pickPlayer,\n autoPickPlayer,\n autoPickPause\n );\n \n // CREATE THE DRAFT TABLE\n draftTable = new TableView();\n\n draftPick = new TableColumn<>(\"Pick #\");\n draftPick.setCellValueFactory(new Callback<CellDataFeatures<Player, Integer>, ObservableValue<Integer>>() {\n @Override\n public ObservableValue<Integer> call(CellDataFeatures<Player, Integer> p) {\n return new ReadOnlyObjectWrapper(draftTable.getItems().indexOf(p.getValue()) + 1);\n }\n }); \n draftPick.setSortable(false);\n draftFirst = new TableColumn<>(\"First\");\n draftFirst.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n draftLast = new TableColumn<>(\"Last\");\n draftLast.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n draftTeam = new TableColumn<>(\"Team\");\n draftTeam.setCellValueFactory(new PropertyValueFactory<>(\"ChosenTeam\"));\n draftContract = new TableColumn<>(\"Contract\");\n draftContract.setCellValueFactory(new PropertyValueFactory<>(\"Contract\"));\n draftSalary = new TableColumn<>(\"Salary ($)\");\n draftSalary.setCellValueFactory(new PropertyValueFactory<>(\"Salary\"));\n \n draftTable.getColumns().addAll(draftPick, draftFirst, draftLast, draftTeam, draftContract, draftSalary);\n \n // NEED TO CREATE THE WAY TO ADD THE TABLE (REFRESH IT)\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Draft Summary Page\");\n draftTab.setTooltip(t);\n \n // PUT IN TAB PANE\n draftWorkspacePane.getChildren().add(draftToolBar);\n draftWorkspacePane.getChildren().add(draftTable);\n draftTab.setContent(draftWorkspacePane);\n mainWorkspacePane.getTabs().add(draftTab);\n }", "TabbelPane() {\r\n\t\t\tpanelDB = new JPanelCluster(\"mine\", new EventFromDb());\r\n\t\t\tpanelFile = new JPanelCluster(\"store from file\", new EventFromFile());\r\n\t\t\tImageIcon icon = new ImageIcon(\"database.png\");\r\n\t\t\tImage image = icon.getImage();\r\n\t\t\tImage newimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"DB\", icon, panelDB);\r\n\t\t\ticon = new ImageIcon(\"file.png\");\r\n\t\t\timage = icon.getImage();\r\n\t\t\tnewimage = image.getScaledInstance(20, 20, java.awt.Image.SCALE_SMOOTH);\r\n\t\t\ticon.setImage(newimage);\r\n\t\t\tschermata.addTab(\"file\", icon, panelFile);\r\n\t\t\tsetVisible(true);\r\n\t\t}", "public Messagespace(PetalEditor petal_editor,\n Model petal_model) {\n super(new GridLayout(1,1));\n\n this.petal_editor = petal_editor;\n this.petal_model = petal_model;\n this.editor = editor;\n\n JTabbedPane tabbedPane = new JTabbedPane();\n tabbedPane.setTabPlacement(JTabbedPane.RIGHT);\n\n\n s_errorsTextArea = new JTextArea();\n s_errorsTextArea.setRows(Constants.TEXTROWS);\n JPanel errorsPanel = new JPanel(new GridLayout(1,1));\n errorsPanel.add(new JScrollPane(s_errorsTextArea));\n tabbedPane.addTab(ERRORS, errorsPanel);\n\n s_statisticsTextArea = new JTextArea();\n s_statisticsTextArea.setRows(Constants.TEXTROWS);\n JPanel statisticsPanel = new JPanel(new GridLayout(1,1));\n statisticsPanel.add(new JScrollPane(s_statisticsTextArea));\n tabbedPane.addTab(STATISTICS, statisticsPanel);\n\n s_messagesTextArea = new JTextArea();\n s_messagesTextArea.setRows(Constants.TEXTROWS);\n JPanel messagesPanel = new JPanel(new GridLayout(1,1));\n messagesPanel.add(new JScrollPane(s_messagesTextArea));\n tabbedPane.addTab(MESSAGES, messagesPanel);\n\n add(tabbedPane);\n\n setBorder(new LineBorder(Color.black,1));\n\n s_errorsTextArea.setEditable(false);\n s_statisticsTextArea.setEditable(false);\n s_messagesTextArea.setEditable(false);\n\n tabbedPane.setSelectedIndex(MESSAGES_ID);\n \n \n\n }", "public AccidentFrame(){\r\n super(\"Motor Vehicle Registration Application\");\r\n accidentPanel = new AccidentPanel();\r\n JTabbedPane tabbedPane = new JTabbedPane();\r\n tabbedPane.addTab(\"Add new accident\", accidentPanel); \r\n tabbedPane.addTab(\"View all accidents\", new DisplayAccident());\r\n JLabel titleLabel=new JLabel(\"Queensland Road and Transport Authority\");\r\n \r\n this.add(tabbedPane);\r\n \r\n }", "private void initComponents() {\n jSplitPane1 = new javax.swing.JSplitPane();\n pnlTree = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jtrLocal = new DnDTree();\n pnlTab = new javax.swing.JPanel();\n jtpApps = new javax.swing.JTabbedPane();\n\n jSplitPane1.setDividerLocation(260);\n\n pnlTree.setBorder(javax.swing.BorderFactory.createTitledBorder(\n NbBundle.getMessage(\n EditDistributionVisualPanel2.class,\n \"EditDistributionVisualPanel2.pnlTree.border.title\"))); // NOI18N\n\n jtrLocal.setDragEnabled(true);\n jScrollPane1.setViewportView(jtrLocal);\n\n final javax.swing.GroupLayout pnlTreeLayout = new javax.swing.GroupLayout(pnlTree);\n pnlTree.setLayout(pnlTreeLayout);\n pnlTreeLayout.setHorizontalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 246,\n Short.MAX_VALUE));\n pnlTreeLayout.setVerticalGroup(\n pnlTreeLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jScrollPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 238,\n Short.MAX_VALUE));\n\n jSplitPane1.setLeftComponent(pnlTree);\n\n final javax.swing.GroupLayout pnlTabLayout = new javax.swing.GroupLayout(pnlTab);\n pnlTab.setLayout(pnlTabLayout);\n pnlTabLayout.setHorizontalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 200,\n Short.MAX_VALUE));\n pnlTabLayout.setVerticalGroup(\n pnlTabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jtpApps,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 266,\n Short.MAX_VALUE));\n\n jSplitPane1.setRightComponent(pnlTab);\n\n final javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);\n this.setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 471,\n Short.MAX_VALUE));\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING).addComponent(\n jSplitPane1,\n javax.swing.GroupLayout.Alignment.TRAILING,\n javax.swing.GroupLayout.DEFAULT_SIZE,\n 270,\n Short.MAX_VALUE));\n }", "JPanel guiPanel() {\n JPanel panel = new JPanel();\n panel.setLayout(new BorderLayout());\n tabbedPane = new JTabbedPane();\n tabbedPane.addTab(\"Light\", lightPanel());\n tabbedPane.addTab(\"Background\", backgroundPanel());\n tabbedPane.addTab(\"Fog\", fogPanel());\n tabbedPane.addTab(\"Sound\", soundPanel());\n panel.add(\"Center\", tabbedPane);\n\n panel.add(\"South\", configPanel());\n return panel;\n }", "private void createContents() {\n shell = new Shell(getParent(), SWT.BORDER | SWT.TITLE | SWT.APPLICATION_MODAL);\n shell.setSize(FORM_WIDTH, 700);\n shell.setText(getText());\n shell.setLayout(new GridLayout(1, false));\n\n TabFolder tabFolder = new TabFolder(shell, SWT.NONE);\n tabFolder.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n // STRUCTURE PARAMETERS\n\n TabItem tbtmStructure = new TabItem(tabFolder, SWT.NONE);\n tbtmStructure.setText(\"Structure\");\n\n Composite grpStructure = new Composite(tabFolder, SWT.NONE);\n tbtmStructure.setControl(grpStructure);\n grpStructure.setLayout(TAB_GROUP_LAYOUT);\n grpStructure.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n ParmDialogText.load(grpStructure, parms, \"meta\");\n ParmDialogText.load(grpStructure, parms, \"col\");\n ParmDialogText.load(grpStructure, parms, \"id\");\n ParmDialogChoices.load(grpStructure, parms, \"init\", Activation.values());\n ParmDialogChoices.load(grpStructure, parms, \"activation\", Activation.values());\n ParmDialogFlag.load(grpStructure, parms, \"raw\");\n ParmDialogFlag.load(grpStructure, parms, \"batch\");\n ParmDialogGroup cnn = ParmDialogText.load(grpStructure, parms, \"cnn\");\n ParmDialogGroup filters = ParmDialogText.load(grpStructure, parms, \"filters\");\n ParmDialogGroup strides = ParmDialogText.load(grpStructure, parms, \"strides\");\n ParmDialogGroup subs = ParmDialogText.load(grpStructure, parms, \"sub\");\n if (cnn != null) {\n if (filters != null) cnn.setGrouped(filters);\n if (strides != null) cnn.setGrouped(strides);\n if (subs != null) cnn.setGrouped(subs);\n }\n ParmDialogText.load(grpStructure, parms, \"lstm\");\n ParmDialogGroup wGroup = ParmDialogText.load(grpStructure, parms, \"widths\");\n ParmDialogGroup bGroup = ParmDialogText.load(grpStructure, parms, \"balanced\");\n if (bGroup != null && wGroup != null) {\n wGroup.setExclusive(bGroup);\n bGroup.setExclusive(wGroup);\n }\n\n // SEARCH CONTROL PARAMETERS\n\n TabItem tbtmSearch = new TabItem(tabFolder, SWT.NONE);\n tbtmSearch.setText(\"Training\");\n\n ScrolledComposite grpSearch0 = new ScrolledComposite(tabFolder, SWT.V_SCROLL);\n grpSearch0.setLayout(new FillLayout());\n grpSearch0.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n tbtmSearch.setControl(grpSearch0);\n Composite grpSearch = new Composite(grpSearch0, SWT.NONE);\n grpSearch0.setContent(grpSearch);\n grpSearch.setLayout(TAB_GROUP_LAYOUT);\n grpSearch.setLayoutData(TAB_GROUP_LAYOUT_DATA);\n\n Enum<?>[] preferTypes = (this.modelType == TrainingProcessor.Type.CLASS ? RunStats.OptimizationType.values()\n : RunStats.RegressionType.values());\n ParmDialogChoices.load(grpSearch, parms, \"prefer\", preferTypes);\n ParmDialogChoices.load(grpSearch, parms, \"method\", Trainer.Type.values());\n ParmDialogText.load(grpSearch, parms, \"bound\");\n ParmDialogChoices.load(grpSearch, parms, \"lossFun\", LossFunctionType.values());\n ParmDialogText.load(grpSearch, parms, \"weights\");\n ParmDialogText.load(grpSearch, parms, \"iter\");\n ParmDialogText.load(grpSearch, parms, \"batchSize\");\n ParmDialogText.load(grpSearch, parms, \"testSize\");\n ParmDialogText.load(grpSearch, parms, \"maxBatches\");\n ParmDialogText.load(grpSearch, parms, \"earlyStop\");\n ParmDialogChoices.load(grpSearch, parms, \"regMode\", Regularization.Mode.values());\n ParmDialogText.load(grpSearch, parms, \"regFactor\");\n ParmDialogText.load(grpSearch, parms, \"seed\");\n ParmDialogChoices.load(grpSearch, parms, \"start\", WeightInit.values());\n ParmDialogChoices.load(grpSearch, parms, \"gradNorm\", GradientNormalization.values());\n ParmDialogChoices.load(grpSearch, parms, \"updater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"learnRate\");\n ParmDialogChoices.load(grpSearch, parms, \"bUpdater\", GradientUpdater.Type.values());\n ParmDialogText.load(grpSearch, parms, \"updateRate\");\n\n grpSearch.setSize(grpSearch.computeSize(FORM_WIDTH - 50, SWT.DEFAULT));\n\n // BOTTOM BUTTON BAR\n\n Composite grpButtonBar = new Composite(shell, SWT.NONE);\n grpButtonBar.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, true, false, 1, 1));\n grpButtonBar.setLayout(new FillLayout(SWT.HORIZONTAL));\n\n Button btnSave = new Button(grpButtonBar, SWT.NONE);\n btnSave.setText(\"Save\");\n btnSave.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n Button btnClose = new Button(grpButtonBar, SWT.NONE);\n btnClose.setText(\"Cancel\");\n btnClose.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n shell.close();\n }\n });\n\n Button btnOK = new Button(grpButtonBar, SWT.NONE);\n btnOK.setText(\"Save and Close\");\n btnOK.addSelectionListener(new SelectionAdapter() {\n @Override\n public void widgetSelected(SelectionEvent evt) {\n try {\n parms.save(parmFile);\n shell.close();\n } catch (IOException e) {\n ShellUtils.showErrorBox(getParent(), \"Error Saving Parm File\", e.getMessage());\n }\n }\n });\n\n }", "public RSMLGUI() {\r\n\t super(\"RSML Exporter\");\r\n\t instance = this;\r\n\t tp = new JTabbedPane();\r\n\t tp.setFont(font);\r\n\t tp.setSize(300, 600);\r\n\t getContentPane().add(tp);\r\n\t tp.addTab(\"Data transfer\", getDataTransfersTab()); \r\n\t \t\r\n\t pack();\r\n\t setVisible(true);\r\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n tabbedPaneBrowser = new WebTabbedPane();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(tabbedPaneBrowser, javax.swing.GroupLayout.DEFAULT_SIZE, 649, Short.MAX_VALUE)\n .addGap(0, 0, 0))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(tabbedPaneBrowser, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 411, Short.MAX_VALUE)\n );\n\n pack();\n }", "public Tabs() {\n initComponents();\n }", "private void setTab() {\n\t\tTabHost.TabSpec showSpec = host.newTabSpec(ShowFragment.TAG);\r\n\t\tshowSpec.setIndicator(showLayout);\r\n\t\tshowSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(showSpec);\r\n\r\n\t\tTabHost.TabSpec addSpec = host.newTabSpec(AddRecordFrag.TAG);\r\n\t\taddSpec.setIndicator(addLayout);\r\n\t\taddSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(addSpec);\r\n\r\n\t\tTabHost.TabSpec chartSpec = host.newTabSpec(ChartShowFrag.TAG);\r\n\t\tchartSpec.setIndicator(chartLayout);\r\n\t\tchartSpec.setContent(new Dumm(getBaseContext()));\r\n\t\thost.addTab(chartSpec);\r\n\t}", "@Override\r\n\tprotected void initPage() {\n\t\t\r\n\t\t\r\n\t\tJPanel paneLabel = new JPanel();\r\n\t\t//JPanel panelTabs = new JPanel();\r\n\t\t\r\n\t\t\r\n\t\t//pack.setVisible(false);\r\n\r\n\t\t//setlay out\r\n\t\t//panelTabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add label to label panel\r\n\t\tpaneLabel.add(new JLabel(\"Please select Objects To export\"));\r\n\t\t//tabs.setLayout(new GridLayout(1, 1));\r\n\t\t\r\n\t\t//add tabs\r\n\t\ttabs.addTab(\"Packages\", null, pack, \"Packages\");\r\n\t\ttabs.addTab(\"Functions\", null, fun, \"Functions\");\r\n\t\ttabs.addTab(\"Procedures\", null, proc, \"Procedures\");\r\n\t\ttabs.addTab(\"Schemas\", null, sch, \"Schemas\");\r\n\t\t\r\n\t\t\r\n\t\ttabs.setTabPlacement(JTabbedPane.TOP);\r\n\t\t\r\n\t\t//add tabs to tabpanel panel\r\n\t\t//panelTabs.add(tabs);\r\n\t\t\r\n\t\t//add data tables to panels\r\n\t\tpackTbl = new JObjectTable(pack);\r\n\t\tfunTbl = new JObjectTable(fun);\r\n\t\tschTbl = new JObjectTable(sch);\r\n\t\tprocTbl = new JObjectTable(proc);\r\n\t\t\r\n\t\t//set layout\r\n\t\tsetLayout(new GridLayout(1,1));\r\n\t\t\r\n\t\t//add label & tabs to page panel\r\n\t\t//add(paneLabel, BorderLayout.NORTH);\r\n\t\t//add(panelTabs,BorderLayout.CENTER);\r\n\t\tadd(tabs);\r\n\t\t\r\n\t\t//init select all check boxes\r\n\t\tinitChecks();\r\n\t\t\r\n\t\t//add checks to panel\r\n\t\tpack.add(ckPack);\r\n\t\tfun.add(ckFun);\r\n\t\tsch.add(ckSchema);\r\n\t\tproc.add(ckProc);\r\n\t\t\r\n\t}", "@SuppressWarnings(\"static-access\")\n\tprivate Tab createSlaveFIFOSettingsUI(SlaveFIFOSettings slaveFIFOSettings2, Tab tab) {\n\t\tAnchorPane anchorPane = new AnchorPane();\n\t\tanchorPane.setLayoutX(50);\n\t\tanchorPane.setLayoutY(20);\n\t\tGridPane leftAnchorGridPane = new GridPane();\n\t\tleftAnchorGridPane.setLayoutX(3);\n\t\tleftAnchorGridPane.setLayoutY(20);\n\t\tleftAnchorGridPane.setVgap(5.0);\n\t\tif (tab.getText().contains(\"Endpoint 1\")) {\n\t\t\tslaveFIFOSettings2.setENDPOINT(1);\n\t\t} else {\n\t\t\tslaveFIFOSettings2.setENDPOINT(2);\n\t\t}\n\n\t\t/** Brust Length **/\n\t\tLabel end1BurstLengthLabel = new Label(\"Burst Length : \");\n\t\tleftAnchorGridPane.setMargin(end1BurstLengthLabel, new Insets(0, 0, 0, 5));\n\t\tleftAnchorGridPane.add(end1BurstLengthLabel, 0, 1);\n\t\tTextField end1BurstLengthValue = new TextField();\n\t\tend1BurstLengthValue.setId(\"slaveFifoSettingsBrustLength\");\n\t\tend1BurstLengthValue.setAlignment(Pos.CENTER_RIGHT);\n\t\tend1BurstLengthValue.setTooltip(\n\t\t\t\tnew Tooltip(tooltipAndErrorProperties.getProperty(\"SLAVE_FIFO_SETTINGS.TOOLTIP_BURST_LENGTH\")));\n\t\tend1BurstLengthValue.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = end1BurstLengthValue.localToScreen(end1BurstLengthValue.getBoundsInLocal());\n\t\t\tend1BurstLengthValue.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\t\tend1BurstLengthValue.setText(String.valueOf(slaveFIFOSettings2.getBURST_LENGTH()));\n\t\tend1BurstLengthValue.setMaxWidth(40);\n\t\tleftAnchorGridPane.add(end1BurstLengthValue, 1, 1);\n\t\tSlaveFifoSettingValidation.setupslaveFifoSettingsValidationForNumeric(slaveFifoSettingsTab, tab,\n\t\t\t\tend1BurstLengthValue, endpointSettingsTabErrorList, performLoadAction,\n\t\t\t\ttooltipAndErrorProperties.getProperty(\"INVALID_NUMERIC_ERROR_MESSAGE\"), 16, \"Burst Length\");\n\t\tend1BurstLengthValue.focusedProperty().addListener((ov, oldV, newV) -> {\n\t\t\tif (!newV) {\n\t\t\t\tif (end1BurstLengthValue.getText().equals(\"\") || end1BurstLengthValue.getText().equals(\"0\")) {\n\t\t\t\t\tend1BurstLengthValue.setText(\"1\");\n\t\t\t\t}\n\t\t\t\tslaveFIFOSettings2.setBURST_LENGTH(Integer.parseInt(end1BurstLengthValue.getText()));\n\t\t\t\tSX3Manager.getInstance()\n\t\t\t\t\t\t.addLog(\"Slave FIFO Burst Length : \" + end1BurstLengthValue.getText() + \".<br>\");\n\t\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t\t}\n\t\t});\n\t\tend1BurstLengthValue.setOnMouseClicked(new OnMouseClickHandler());\n\n\t\t/** Buffer Size **/\n\t\tLabel end1BufferSizeLabel = new Label(\"Buffer Size (Bytes) : \");\n\t\tleftAnchorGridPane.setMargin(end1BufferSizeLabel, new Insets(0, 0, 0, 5));\n\t\tleftAnchorGridPane.add(end1BufferSizeLabel, 0, 2);\n\t\tTextField end1BufferSizeValue = new TextField();\n\t\tend1BufferSizeValue.setId(\"slaveFifoSettingsBufferSize\");\n\t\tend1BufferSizeValue.setAlignment(Pos.CENTER_RIGHT);\n\t\tend1BufferSizeValue.setTooltip(\n\t\t\t\tnew Tooltip(tooltipAndErrorProperties.getProperty(\"SLAVE_FIFO_SETTINGS.TOOLTIP_BUFFER_SIZE\")));\n\t\tend1BufferSizeValue.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = end1BufferSizeValue.localToScreen(end1BufferSizeValue.getBoundsInLocal());\n\t\t\tend1BufferSizeValue.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\t\tend1BufferSizeValue.setMaxWidth(60);\n\t\tleftAnchorGridPane.add(end1BufferSizeValue, 1, 2);\n\t\tend1BufferSizeValue.setText(String.valueOf(slaveFIFOSettings2.getBUFFER_SIZE()));\n\t\tSlaveFifoSettingValidation.setupslaveFifoSettingsValidationForNumeric(slaveFifoSettingsTab, tab,\n\t\t\t\tend1BufferSizeValue, endpointSettingsTabErrorList, performLoadAction,\n\t\t\t\ttooltipAndErrorProperties.getProperty(\"INVALID_NUMERIC_ERROR_MESSAGE\"), 65535, \"Buffer Size\");\n\t\tend1BufferSizeValue.focusedProperty().addListener((ov, oldV, newV) -> {\n\t\t\tif (!newV) {\n\t\t\t\tif (end1BufferSizeValue.getText().equals(\"\") || end1BufferSizeValue.getText().equals(\"0\")) {\n\t\t\t\t\tend1BufferSizeValue.setText(\"16\");\n\t\t\t\t\tslaveFIFOSettings2.setBUFFER_SIZE(0);\n\t\t\t\t}\n\t\t\t\tint bufferSize = Integer.parseInt(end1BufferSizeValue.getText());\n\t\t\t\tif (bufferSize % 16 != 0) {\n\t\t\t\t\terrorListOnSave.put(\"Slave fifo Buffer Size\", true);\n\t\t\t\t\tSX3Manager.getInstance().addLog(\n\t\t\t\t\t\t\t\"<span style='color:red;'>Choose the size (in bytes) for each buffer (should be a multiple of 16).</span><br>\");\n\t\t\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\t\t\t\t} else {\n\t\t\t\t\terrorListOnSave.put(\"Slave fifo Buffer Size Buffer Size\", false);\n\t\t\t\t\tSX3Manager.getInstance().addLog(\"Buffer Size (Bytes) : \" + end1BufferSizeValue.getText() + \".<br>\");\n\t\t\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\tend1BufferSizeValue.setOnMouseClicked(new OnMouseClickHandler());\n\n\t\t/** Buffer Count **/\n\t\tLabel end1BufferCountLabel = new Label(\"Buffer Count : \");\n\t\tleftAnchorGridPane.setMargin(end1BufferCountLabel, new Insets(0, 0, 0, 5));\n\t\tleftAnchorGridPane.add(end1BufferCountLabel, 0, 3);\n\t\tTextField end1BufferCountValue = new TextField();\n\t\tend1BufferCountValue.setAlignment(Pos.CENTER_RIGHT);\n\t\tend1BufferCountValue.setId(\"slaveFifoSettingsBufferCount\");\n\t\tend1BufferCountValue.setTooltip(\n\t\t\t\tnew Tooltip(tooltipAndErrorProperties.getProperty(\"SLAVE_FIFO_SETTINGS.TOOLTIP_BUFFER_COUNT\")));\n\t\tend1BufferCountValue.getTooltip().setOnShowing(s -> {\n\t\t\tBounds bounds = end1BufferCountValue.localToScreen(end1BufferCountValue.getBoundsInLocal());\n\t\t\tend1BufferCountValue.getTooltip().setX(bounds.getMaxX());\n\t\t});\n\t\tend1BufferCountValue.setMaxWidth(40);\n\t\tend1BufferCountValue.setText(String.valueOf(slaveFIFOSettings2.getBUFFER_COUNT()));\n\t\tleftAnchorGridPane.add(end1BufferCountValue, 1, 3);\n\t\tSlaveFifoSettingValidation.setupslaveFifoSettingsValidationForNumeric(slaveFifoSettingsTab, tab,\n\t\t\t\tend1BufferCountValue, endpointSettingsTabErrorList, performLoadAction,\n\t\t\t\ttooltipAndErrorProperties.getProperty(\"INVALID_NUMERIC_ERROR_MESSAGE\"), 255, \"Buffer Count\");\n\t\tend1BufferCountValue.focusedProperty().addListener((ov, oldV, newV) -> {\n\t\t\tif (!newV) {\n\t\t\t\tif (end1BufferCountValue.getText().equals(\"\") || end1BufferCountValue.getText().equals(\"0\")) {\n\t\t\t\t\tend1BufferCountValue.setText(\"1\");\n\t\t\t\t\tslaveFIFOSettings2.setBUFFER_COUNT(1);\n\t\t\t\t}\n\t\t\t\tSX3Manager.getInstance().addLog(\"Buffer Count : \" + end1BufferCountValue.getText() + \".<br>\");\n\t\t\t\tlogDetails1.getEngine().setUserStyleSheetLocation(\"data:,body{font: 12px Arial;}\");\n\n\t\t\t}\n\t\t});\n\t\tend1BufferCountValue.setOnMouseClicked(new OnMouseClickHandler());\n\n\t\t/** Total Used Buffer Space **/\n\t\tLabel totalUseBufferSpaceLabel = new Label(\"Total used Buffer Space (Bytes) : \");\n\t\tleftAnchorGridPane.setMargin(totalUseBufferSpaceLabel, new Insets(0, 0, 0, 5));\n\t\tleftAnchorGridPane.add(totalUseBufferSpaceLabel, 0, 4);\n\t\tTextField totalUseBufferSpaceValue = new TextField();\n\t\ttotalUseBufferSpaceValue.setAlignment(Pos.CENTER_RIGHT);\n\t\ttotalUseBufferSpaceValue.setTooltip(\n\t\t\t\tnew Tooltip(tooltipAndErrorProperties.getProperty(\"Endpoint_Settings.TOOLTIP_BUFFER_SPACE\")));\n\t\ttotalUseBufferSpaceValue.setMaxWidth(60);\n\t\ttotalUseBufferSpaceValue.setText(String.valueOf(slaveFIFOSettings2.getBUFFER_SPACE()));\n\t\ttotalUseBufferSpaceValue.setDisable(true);\n\n\t\tend1BufferSizeValue.textProperty().addListener((ChangeListener<String>) (observable, oldValue, newValue) -> {\n\t\t\tif (newValue.equals(\"\")) {\n\t\t\t\tnewValue = \"0\";\n\t\t\t}\n\t\t\tif (tab.getText().contains(\"Endpoint 1\")) {\n\t\t\t\tif (Endpoint_2.getValue() != null && !Endpoint_2.getValue().equals(\"Not Enabled\")) {\n\t\t\t\t\tint bufferSize = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).getBUFFER_SIZE();\n\t\t\t\t\tint bufferCount = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).getBUFFER_COUNT();\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_SPACE(\n\t\t\t\t\t\t\t((Integer.parseInt(newValue) * Integer.parseInt(end1BufferCountValue.getText()))\n\t\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).setBUFFER_SPACE(\n\t\t\t\t\t\t\t((Integer.parseInt(newValue) * Integer.parseInt(end1BufferCountValue.getText()))\n\t\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_SIZE(Integer.parseInt(newValue));\n\t\t\t\t\ttotalUseBufferSpaceValue.setText(\n\t\t\t\t\t\t\tString.valueOf(sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_SPACE()));\n\t\t\t\t\tsetSlaveFifoSettingsBufferSpace(leftAnchorGridPane, totalUseBufferSpaceValue);\n\t\t\t\t} else if (Endpoint_2.getValue() == null || Endpoint_2.getValue().equals(\"Not Enabled\")) {\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_SPACE(\n\t\t\t\t\t\t\t(Integer.parseInt(newValue) * Integer.parseInt(end1BufferCountValue.getText())) * 2);\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_SIZE(Integer.parseInt(newValue));\n\t\t\t\t\ttotalUseBufferSpaceValue.setText(\n\t\t\t\t\t\t\tString.valueOf(sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_SPACE()));\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tint bufferSize = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_SIZE();\n\t\t\t\tint bufferCount = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_COUNT();\n\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).setBUFFER_SPACE(\n\t\t\t\t\t\t((Integer.parseInt(newValue) * Integer.parseInt(end1BufferCountValue.getText()))\n\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_SPACE(\n\t\t\t\t\t\t((Integer.parseInt(newValue) * Integer.parseInt(end1BufferCountValue.getText()))\n\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).setBUFFER_SIZE(Integer.parseInt(newValue));\n\t\t\t\ttotalUseBufferSpaceValue\n\t\t\t\t\t\t.setText(String.valueOf(sx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).getBUFFER_SPACE()));\n\t\t\t\tsetSlaveFifoSettingsBufferSpace(leftAnchorGridPane, totalUseBufferSpaceValue);\n\t\t\t}\n\t\t});\n\n\t\tend1BufferCountValue.textProperty().addListener((ChangeListener<String>) (observable, oldValue, newValue) -> {\n\t\t\tif (newValue.equals(\"\")) {\n\t\t\t\tnewValue = \"0\";\n\t\t\t}\n\t\t\tif (tab.getText().contains(\"Endpoint 1\")) {\n\t\t\t\tif (!Endpoint_2.getValue().equals(\"Not Enabled\")) {\n\t\t\t\t\tint bufferSize = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).getBUFFER_SIZE();\n\t\t\t\t\tint bufferCount = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).getBUFFER_COUNT();\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_SPACE(\n\t\t\t\t\t\t\t((Integer.parseInt(newValue) * Integer.parseInt(end1BufferSizeValue.getText()))\n\t\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).setBUFFER_SPACE(\n\t\t\t\t\t\t\t((Integer.parseInt(newValue) * Integer.parseInt(end1BufferSizeValue.getText()))\n\t\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_COUNT(Integer.parseInt(newValue));\n\t\t\t\t\ttotalUseBufferSpaceValue.setText(\n\t\t\t\t\t\t\tString.valueOf(sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_SPACE()));\n\t\t\t\t\tsetSlaveFifoSettingsBufferSpace(leftAnchorGridPane, totalUseBufferSpaceValue);\n\t\t\t\t} else if (Endpoint_2.getValue().equals(\"Not Enabled\")) {\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_SPACE(\n\t\t\t\t\t\t\t(Integer.parseInt(newValue) * Integer.parseInt(end1BufferSizeValue.getText())) * 2);\n\t\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).setBUFFER_COUNT(Integer.parseInt(newValue));\n\t\t\t\t\ttotalUseBufferSpaceValue.setText(\n\t\t\t\t\t\t\tString.valueOf(sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_SPACE()));\n\t\t\t\t\tsetSlaveFifoSettingsBufferSpace(leftAnchorGridPane, totalUseBufferSpaceValue);\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tint bufferSize = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_SIZE();\n\t\t\t\tint bufferCount = sx3Configuration.getSLAVE_FIFO_SETTINGS().get(0).getBUFFER_COUNT();\n\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(1)\n\t\t\t\t\t\t.setBUFFER_SPACE(((Integer.parseInt(newValue) * Integer.parseInt(end1BufferSizeValue.getText()))\n\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(0)\n\t\t\t\t\t\t.setBUFFER_SPACE(((Integer.parseInt(newValue) * Integer.parseInt(end1BufferSizeValue.getText()))\n\t\t\t\t\t\t\t\t+ (bufferSize * bufferCount)) * 2);\n\t\t\t\tsx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).setBUFFER_COUNT(Integer.parseInt(newValue));\n\t\t\t\ttotalUseBufferSpaceValue\n\t\t\t\t\t\t.setText(String.valueOf(sx3Configuration.getSLAVE_FIFO_SETTINGS().get(1).getBUFFER_SPACE()));\n\t\t\t\tsetSlaveFifoSettingsBufferSpace(leftAnchorGridPane, totalUseBufferSpaceValue);\n\t\t\t}\n\t\t});\n\t\tleftAnchorGridPane.add(totalUseBufferSpaceValue, 1, 4);\n\t\tanchorPane.getChildren().add(leftAnchorGridPane);\n\t\ttab.setContent(anchorPane);\n\t\treturn tab;\n\n\t}", "private Tab getBillTab() {\n /*\n * Creates a new ArrayList for the Fields to be stored in.\n */\n billFields = new ArrayList<TextField>();\n /*\n * Creates a new ArrayList for the Labels to be stored in.\n */\n billLabels = new ArrayList<Label>();\n \n /*\n * Creates a GridPane to display all Nodes for this Tab.\n */\n GridPane grid = new GridPane();\n grid.setAlignment(Pos.CENTER);\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(10, 10, 10, 10));\n \n /*\n * Adds Columns to the GridPane, so they can be configured.\n */\n for (int i = 0; i <= 5; i++) {\n grid.getColumnConstraints().add(new ColumnConstraints());\n grid.getColumnConstraints().get(i).setHalignment(HPos.CENTER);\n }\n /*\n * Configures the Width for all columns, so they match the wanted design.\n */\n grid.getColumnConstraints().get(0).setMinWidth(60);\n grid.getColumnConstraints().get(1).setMaxWidth(60);\n grid.getColumnConstraints().get(2).setMinWidth(50);\n grid.getColumnConstraints().get(2).setMaxWidth(50);\n grid.getColumnConstraints().get(3).setMinWidth(50);\n grid.getColumnConstraints().get(3).setMaxWidth(50);\n grid.getColumnConstraints().get(4).setMinWidth(70);\n grid.getColumnConstraints().get(4).setMaxWidth(70);\n grid.getColumnConstraints().get(4).setHalignment(HPos.RIGHT);\n grid.getColumnConstraints().get(5).setMinWidth(50);\n grid.getColumnConstraints().get(5).setHalignment(HPos.LEFT);\n \n /*\n * The Content for the Cells with given Content.\n */\n String[] billBase = {\"5€\", \"10€\", \"20€\", \"50€\", \"100€\", \"200€\", \"500€\"};\n \n /*\n * Creates the first Row, where basic Information is displayed.\n */\n Label lbChange = new Label(\"Geldscheine:\");\n grid.add(lbChange, 0, 0);\n \n Label lbAmount = new Label(\"Anzahl:\");\n grid.add(lbAmount, 3, 0);\n \n /*\n * Creates the Area, where the User can enter the amount of each Coinage type,\n */\n for (int i = 0; i <= 6; i++) {\n Label lbBillBase = new Label(billBase[i]);\n grid.add(lbBillBase, 1, i + 1);\n \n TextField tfAmount = new TextField(\"0\");\n tfAmount.setAlignment(Pos.CENTER);\n tfAmount.focusedProperty().addListener(new TextFieldFocusChangedListener(tfAmount, this));\n tfAmount.textProperty().addListener(new TextFieldTextChangedListener(this));\n tfAmount.setTooltip(new Tooltip(\"Geben Sie hier die Anzahl der \\\"\" + billBase[i] \n + \"\\\"-Scheine ein.\"));\n grid.add(tfAmount, 3, i + 1);\n billFields.add(tfAmount);\n \n Label lbSum = new Label(\"Summe:\");\n grid.add(lbSum, 4, i + 1);\n \n Label lbSumDisplay = new Label(\"0,00€\");\n grid.add(lbSumDisplay, 5, i + 1);\n billLabels.add(lbSumDisplay);\n }\n \n /*\n * Creates a new Tab to store the created content in.\n */\n Tab billTab = new Tab();\n billTab.setText(\"Geldscheine\");\n billTab.setContent(grid);\n return billTab;\n }", "private void $$$setupUI$$$() {\n root = new JPanel();\n root.setLayout(new GridLayoutManager(2, 6, new Insets(8, 8, 8, 8), -1, -1));\n groupTabs = new JTabbedPane();\n root.add(groupTabs, new GridConstraints(1, 0, 1, 6, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_BOTH, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, null, new Dimension(200, 200), null, 0, false));\n deviceName = new JLabel();\n deviceName.setFont(new Font(deviceName.getFont().getName(), deviceName.getFont().getStyle(), deviceName.getFont().getSize()));\n deviceName.setText(\"Label\");\n root.add(deviceName, new GridConstraints(0, 0, 1, 1, GridConstraints.ANCHOR_WEST, GridConstraints.FILL_NONE, GridConstraints.SIZEPOLICY_FIXED, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n final Spacer spacer1 = new Spacer();\n root.add(spacer1, new GridConstraints(0, 1, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, 1, null, null, null, 0, false));\n saveButton = new JButton();\n saveButton.setEnabled(false);\n saveButton.setText(\"Save\");\n root.add(saveButton, new GridConstraints(0, 4, 1, 2, GridConstraints.ANCHOR_SOUTH, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_CAN_SHRINK | GridConstraints.SIZEPOLICY_CAN_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 0, false));\n loading = new JProgressBar();\n loading.setBorderPainted(true);\n loading.setEnabled(true);\n loading.setIndeterminate(true);\n loading.setValue(50);\n root.add(loading, new GridConstraints(0, 2, 1, 1, GridConstraints.ANCHOR_CENTER, GridConstraints.FILL_HORIZONTAL, GridConstraints.SIZEPOLICY_WANT_GROW, GridConstraints.SIZEPOLICY_FIXED, null, null, null, 1, false));\n cancelButton = new JButton();\n cancelButton.setText(\"Cancel\");\n root.add(cancelButton, new GridConstraints(0, 3, 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 }", "public TabbedFrame() throws IOException\r\n\t{\r\n\t\tDatabase data = new Database(\"studenti.txt\", \"predmeti.txt\", \"UpisaniPredmeti.txt\");\r\n\t\tstudents = new StudentsPanel(data);\r\n\t\tsubjects = new SubjectsPanel(data);\r\n\t\tsubjectList = new SubjectListPanel(data);\r\n\t\ttabbedPane = new JTabbedPane();\r\n\t\ttabbedPane.addTab(\"Studenti\", students);\r\n\t\ttabbedPane.addTab(\"Predmeti\", subjects);\r\n\t\ttabbedPane.addTab(\"Svi predmeti\", subjectList);\r\n\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tadd(tabbedPane, BorderLayout.CENTER);\r\n\t\tpack();\r\n\t\tsetVisible(true);\r\n\t}", "private void addTab(String title, File file, String contents) {\n \tTextPane newTextPane = new TextPane(parentFrame,TextPane.getProperties(false), false);\r\n\r\n \t// 2nd create the tab\r\n \tStyledTab tab = new StyledTab(title);\r\n \tTextPaneTab paneTab = new TextPaneTab(file, newTextPane, tab);\r\n\r\n \t// 3rd add contents if any\r\n \tif (contents != null) {\r\n \t\tnewTextPane.getBuffer().insert(0, contents);\r\n \t\tnewTextPane.setCaretPosition(0);\r\n \t\tpaneTab.setModified(false);\r\n \t}\r\n\r\n \t// 4th add new TextPaneTab\r\n \tpanes.add(paneTab);\r\n\r\n \t// 5th create the pane and add it to manager\r\n \tJPanel pane = new JPanel();\r\n \tpane.setLayout(new BorderLayout());\r\n\t\tJPanel textPaneContainer = new JPanel();\r\n\t\ttextPaneContainer.setBorder(BorderFactory.createLineBorder(new Color(102, 102, 102), 1));\r\n\t\ttextPaneContainer.setLayout(new BorderLayout());\r\n\t\ttextPaneContainer.add(newTextPane, BorderLayout.CENTER);\r\n \tpane.add(textPaneContainer, BorderLayout.CENTER);\r\n \tpane.add(makePrgButtonPanel(), BorderLayout.EAST);\r\n \tint index = getTabCount()-1;\r\n \tinsertTab(title, null, pane, null, index);\r\n \tsetTabComponentAt(index,tab);\r\n \tif (!file.isDirectory())\r\n \t\tsetToolTipTextAt(index, file.getAbsolutePath());\r\n }", "private void setupTab(final View view, final String tag) {\r\n\t\tView tabview = createTabView(mTabHost.getContext(), tag);\r\n\r\n\t\tTabSpec setContent = mTabHost.newTabSpec(tag).setIndicator(tabview)\r\n\t\t\t\t.setContent(new TabContentFactory() {\r\n\t\t\t\t\tpublic View createTabContent(String tag) {\r\n\t\t\t\t\t\tView view;\r\n\t\t\t\t\t\tif (tag.contains(\"EXTENDED\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_2_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedNO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET1);\r\n\t\t\t\t\t\t\tedNIO = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET2);\r\n\t\t\t\t\t\t\tedNP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET3);\r\n\t\t\t\t\t\t\tedNIP = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_ET4);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tedNO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tedNP.setEnabled(false);\r\n\t\t\t\t\t\t\tedNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tNO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB1);\r\n\t\t\t\t\t\t\tNIO= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB2);\r\n\t\t\t\t\t\t\tNP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB3);\r\n\t\t\t\t\t\t\tNIP= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB4);\r\n\t\t\t\t\t\t\tNO.setEnabled(false); \r\n\t\t\t\t\t\t\tNIO.setEnabled(false);\r\n\t\t\t\t\t\t\tNP.setEnabled(false);\r\n\t\t\t\t\t\t\tNIP.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\textended = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules2_CB0);\r\n\t\t\t\t\t\t\textended.setOnClickListener(S3R4Listener2);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t} else if (tag.contains(\"CUSTOM\")) {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_3_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tview = LayoutInflater\r\n\t\t\t\t\t\t\t\t\t.from(mTabHost.getContext())\r\n\t\t\t\t\t\t\t\t\t.inflate(\r\n\t\t\t\t\t\t\t\t\t\t\tR.layout.appa_business_rules_1_layout,\r\n\t\t\t\t\t\t\t\t\t\t\tnull);\r\n\t\t\t\t\t\t\t// --Assembling Widgets\r\n\t\t\t\t\t\t\tedlevels = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET1);\r\n\t\t\t\t\t\t\tedSons = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET2);\r\n\t\t\t\t\t\t\tedlevel = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET3);\r\n\t\t\t\t\t\t\tedpruduct = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET4);\r\n\t\t\t\t\t\t\tedcampaign = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET5);\r\n\t\t\t\t\t\t\tedadd = (EditText) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_ET6);\r\n\t\t\t\t\t\t\tedlevels.setEnabled(false);\r\n\t\t\t\t\t\t\tedSons.setEnabled(false);\r\n\t\t\t\t\t\t\tedlevel.setEnabled(false);\r\n\t\t\t\t\t\t\tedpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tedcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tedadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t\tlevel= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB3);\r\n\t\t\t\t\t\t\tpruduct= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB4);\r\n\t\t\t\t\t\t\tcampaign= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB5);\r\n\t\t\t\t\t\t\tadd= (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB6);\r\n\t\t\t\t\t\t\tlevel.setEnabled(false); \r\n\t\t\t\t\t\t\tpruduct.setEnabled(false);\r\n\t\t\t\t\t\t\tcampaign.setEnabled(false);\r\n\t\t\t\t\t\t\tadd.setEnabled(false);\r\n\t\t\t\t\t\t\t\r\n\r\n\t\t\t\t\t\t\tStructure = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB1);\r\n\t\t\t\t\t\t\tRules = (CheckBox) view\r\n\t\t\t\t\t\t\t\t\t.findViewById(R.id.business_rules1_CB2);\r\n\t\t\t\t\t\t\tStructure.setOnClickListener(S3R4Listener);\r\n\t\t\t\t\t\t\tRules.setOnClickListener(S3R4Listener);\r\n\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\treturn view;\r\n\t\t\t\t\t}\r\n\t\t\t\t});\r\n\t\tmTabHost.addTab(setContent);\r\n\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n TabPane = new javax.swing.JTabbedPane();\n roomtab = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel2 = new javax.swing.JLabel();\n jLabel3 = new javax.swing.JLabel();\n evtab = new javax.swing.JPanel();\n tourtab = new javax.swing.JPanel();\n foodtab = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n orderList = new javax.swing.JList<>();\n jScrollPane2 = new javax.swing.JScrollPane();\n itemList = new javax.swing.JList<>();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n jLabel6 = new javax.swing.JLabel();\n maintab = new javax.swing.JPanel();\n jPanel1 = new javax.swing.JPanel();\n\n setBackground(new java.awt.Color(255, 255, 255));\n\n TabPane.setBackground(new java.awt.Color(204, 204, 255));\n TabPane.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);\n TabPane.setTabPlacement(javax.swing.JTabbedPane.LEFT);\n\n roomtab.setBackground(new java.awt.Color(255, 255, 255));\n\n jLabel1.setText(\"jLabel1\");\n\n jLabel2.setText(\"jLabel2\");\n\n jLabel3.setText(\"jLabel3\");\n\n javax.swing.GroupLayout roomtabLayout = new javax.swing.GroupLayout(roomtab);\n roomtab.setLayout(roomtabLayout);\n roomtabLayout.setHorizontalGroup(\n roomtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(roomtabLayout.createSequentialGroup()\n .addGap(31, 31, 31)\n .addGroup(roomtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel3)\n .addComponent(jLabel2)\n .addComponent(jLabel1))\n .addContainerGap(402, Short.MAX_VALUE))\n );\n roomtabLayout.setVerticalGroup(\n roomtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(roomtabLayout.createSequentialGroup()\n .addGap(22, 22, 22)\n .addComponent(jLabel1)\n .addGap(13, 13, 13)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel3)\n .addContainerGap(282, Short.MAX_VALUE))\n );\n\n TabPane.addTab(\"Room\", roomtab);\n\n javax.swing.GroupLayout evtabLayout = new javax.swing.GroupLayout(evtab);\n evtab.setLayout(evtabLayout);\n evtabLayout.setHorizontalGroup(\n evtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 467, Short.MAX_VALUE)\n );\n evtabLayout.setVerticalGroup(\n evtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 370, Short.MAX_VALUE)\n );\n\n TabPane.addTab(\"Event\", evtab);\n\n javax.swing.GroupLayout tourtabLayout = new javax.swing.GroupLayout(tourtab);\n tourtab.setLayout(tourtabLayout);\n tourtabLayout.setHorizontalGroup(\n tourtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 467, Short.MAX_VALUE)\n );\n tourtabLayout.setVerticalGroup(\n tourtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 370, Short.MAX_VALUE)\n );\n\n TabPane.addTab(\"Tours\", tourtab);\n\n foodtab.setBackground(new java.awt.Color(255, 255, 255));\n\n orderList.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n orderList.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n orderListMouseClicked(evt);\n }\n });\n jScrollPane1.setViewportView(orderList);\n\n itemList.setModel(new javax.swing.AbstractListModel<String>() {\n String[] strings = { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\", \"Item 5\" };\n public int getSize() { return strings.length; }\n public String getElementAt(int i) { return strings[i]; }\n });\n itemList.setEnabled(false);\n jScrollPane2.setViewportView(itemList);\n\n jLabel4.setFont(new java.awt.Font(\"Bodoni MT\", 3, 24)); // NOI18N\n jLabel4.setText(\"My orders \");\n\n jLabel5.setText(\"Orders\");\n\n jLabel6.setText(\"Items in your order\");\n\n javax.swing.GroupLayout foodtabLayout = new javax.swing.GroupLayout(foodtab);\n foodtab.setLayout(foodtabLayout);\n foodtabLayout.setHorizontalGroup(\n foodtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(foodtabLayout.createSequentialGroup()\n .addGroup(foodtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(foodtabLayout.createSequentialGroup()\n .addGap(50, 50, 50)\n .addGroup(foodtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 124, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel5))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 75, Short.MAX_VALUE)\n .addGroup(foodtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel6)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 159, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGroup(foodtabLayout.createSequentialGroup()\n .addGap(35, 35, 35)\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(59, 59, 59))\n );\n foodtabLayout.setVerticalGroup(\n foodtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, foodtabLayout.createSequentialGroup()\n .addContainerGap()\n .addGroup(foodtabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addGroup(foodtabLayout.createSequentialGroup()\n .addGap(0, 0, Short.MAX_VALUE)\n .addComponent(jLabel6)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(foodtabLayout.createSequentialGroup()\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 27, Short.MAX_VALUE)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 229, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(54, 54, 54))\n );\n\n TabPane.addTab(\"Food\", foodtab);\n\n javax.swing.GroupLayout maintabLayout = new javax.swing.GroupLayout(maintab);\n maintab.setLayout(maintabLayout);\n maintabLayout.setHorizontalGroup(\n maintabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 467, Short.MAX_VALUE)\n );\n maintabLayout.setVerticalGroup(\n maintabLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 370, Short.MAX_VALUE)\n );\n\n TabPane.addTab(\"Maitenance\", maintab);\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\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 .addGap(0, 467, Short.MAX_VALUE)\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 370, Short.MAX_VALUE)\n );\n\n TabPane.addTab(\"Wake\", jPanel1);\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 .addComponent(TabPane, javax.swing.GroupLayout.DEFAULT_SIZE, 543, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(TabPane, javax.swing.GroupLayout.Alignment.TRAILING)\n );\n }", "protected void showTabs() {\r\n\t\tif (getPageCount() > 1) {\r\n\t\t\tsetPageText(0, getString(\"_UI_SelectionPage_label\"));\r\n\t\t\tif (getContainer() instanceof CTabFolder) {\r\n\t\t\t\t((CTabFolder) getContainer()).setTabHeight(SWT.DEFAULT);\r\n\t\t\t\tPoint point = getContainer().getSize();\r\n\t\t\t\tgetContainer().setSize(point.x, point.y - 6);\r\n\t\t\t}\r\n\t\t}\r\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTabbedPane1 = new javax.swing.JTabbedPane();\n loadView = new net.geeklythings.fieldmarshal.ui.LoadView();\n tournamentView = new net.geeklythings.fieldmarshal.ui.TournamentView();\n playersView = new net.geeklythings.fieldmarshal.ui.PlayersView();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n addWindowListener(new java.awt.event.WindowAdapter() {\n public void windowClosing(java.awt.event.WindowEvent evt) {\n formWindowClosing(evt);\n }\n });\n\n jTabbedPane1.addTab(\"Load Tournament\", loadView);\n jTabbedPane1.addTab(\"Tournament Details\", tournamentView);\n jTabbedPane1.addTab(\"Players\", playersView);\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(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 994, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane1)\n );\n\n pack();\n }", "public TabControlPanel(JTabbedPane jtp, MyTabPreviewPainter previewPainter) {\n super();\n this.jtp = jtp;\n this.closed = new LinkedList<>();\n\n this.setLayout(new BorderLayout());\n JPanel contents = getContents(jtp, previewPainter);\n contents.setOpaque(false);\n RadianceThemingCortex.ComponentOrParentScope.setButtonIgnoreMinimumSize(contents, true);\n this.add(contents, BorderLayout.CENTER);\n }", "private void initPlayersTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n playerTab = new Tab();\n playerWorkspacePane = new VBox();\n playerWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // PAGE LABEL & BUTTON\n Label playersHeading = new Label();\n playersHeading = initChildLabel(playerWorkspacePane, DraftKit_PropertyType.PLAYER_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.PLAYER_ICON);\n Image buttonImage = new Image(imagePath);\n playerTab.setGraphic(new ImageView(buttonImage));\n \n // SEARCH AREA\n HBox search = new HBox();\n addPlayer = initHBoxButton(search, DraftKit_PropertyType.ADD_ICON, DraftKit_PropertyType.ADD_PLAYER_TOOLTIP, false);\n removePlayer = initHBoxButton(search, DraftKit_PropertyType.MINUS_ICON, DraftKit_PropertyType.REMOVE_PLAYER_TOOLTIP, false);\n initHBoxLabel(search, DraftKit_PropertyType.SEARCH_LABEL, CLASS_PROMPT_LABEL);\n searchText = initHBoxTextField(search, \"\", true);\n \n // RADIO BUTTONS AREA FUNESS\n group = new ToggleGroup();\n all = new RadioButton(\"All\");\n all.setToggleGroup(group);\n c = new RadioButton(\"C\");\n c.setToggleGroup(group);\n oneB = new RadioButton(\"1B\");\n oneB.setToggleGroup(group);\n ci = new RadioButton(\"CI\");\n ci.setToggleGroup(group);\n threeB = new RadioButton(\"3B\");\n threeB.setToggleGroup(group);\n twoB = new RadioButton(\"2B\");\n twoB.setToggleGroup(group);\n mi = new RadioButton(\"MI\");\n mi.setToggleGroup(group);\n ss = new RadioButton(\"SS\");\n ss.setToggleGroup(group);\n of = new RadioButton(\"OF\");\n of.setToggleGroup(group);\n u = new RadioButton(\"U\");\n u.setToggleGroup(group);\n p = new RadioButton(\"P\");\n p.setToggleGroup(group);\n \n ToolBar radioTool = new ToolBar(\n all, c, oneB, ci, threeB, twoB, mi, ss, of, u, p\n );\n \n // CREATE TABLE FOR PLAYER PAGE\n playerTable = new TableView<>();\n \n first = new TableColumn<>(\"First\");\n first.setCellValueFactory(new PropertyValueFactory<>(\"FirstName\"));\n last = new TableColumn<>(\"Last\");\n last.setCellValueFactory(new PropertyValueFactory<>(\"LastName\"));\n proTeam = new TableColumn<>(\"Pro Team\");\n proTeam.setCellValueFactory(new PropertyValueFactory<>(\"MLBTeam\"));\n positions = new TableColumn<>(\"Positions\");\n positions.setCellValueFactory(new PropertyValueFactory<>(\"position\"));\n yob = new TableColumn<>(\"Year of Birth\");\n yob.setCellValueFactory(new PropertyValueFactory<>(\"YearOfBirth\"));\n rw = new TableColumn<>(\"R/W\");\n rw.setCellValueFactory(new PropertyValueFactory<>(\"RW\"));\n hrsv = new TableColumn<>(\"HR/SV\");\n hrsv.setCellValueFactory(new PropertyValueFactory<>(\"HRSV\"));\n rbik = new TableColumn<>(\"RBI/K\");\n rbik.setCellValueFactory(new PropertyValueFactory<>(\"RBIK\"));\n sbera = new TableColumn<>(\"SB/ERA\");\n sbera.setCellValueFactory(new PropertyValueFactory<>(\"SBERA\"));\n bawhip = new TableColumn<>(\"BA/WHIP\");\n bawhip.setCellValueFactory(new PropertyValueFactory<>(\"BAWHIP\"));\n estimatedValue = new TableColumn<>(\"Estimated Value\");\n estimatedValue.setCellValueFactory(new PropertyValueFactory<>(\"EValue\"));\n // MAKE SURE TO CHANGE ESTIMATED VALUE TO MATCH GETTERS/ SETTERS\n notes = new TableColumn<>(\"Notes\");\n notes.setCellValueFactory(new PropertyValueFactory<>(\"notes\"));\n notes.setCellFactory(TextFieldTableCell.forTableColumn());\n playerTable.setEditable(true);\n notes.setOnEditCommit((CellEditEvent<Player, String> event) -> {\n ((Player) event.getTableView().getItems().get(event.getTablePosition().getRow())).setNotes(event.getNewValue());\n });\n \n // ADD ALL THE COLUMNS TO THE TABLE\n playerTable.getColumns().setAll(first, last, proTeam, positions, yob, rw, hrsv, rbik, sbera, bawhip, estimatedValue, notes);\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Available Players Page\");\n playerTab.setTooltip(t);\n \n // PUT IN TAB PANE\n playerWorkspacePane.getChildren().add(search);\n playerWorkspacePane.getChildren().add(radioTool);\n playerWorkspacePane.getChildren().add(playerTable);\n playerTab.setContent(playerWorkspacePane);\n mainWorkspacePane.getTabs().add(playerTab);\n \n playerTable = resetTable(dataManager.getDraft().getPlayerPool());\n }", "private TabPane createSettingsWindow() {\r\n\t\tint tabHeight = 380, tabWidth = 318, textfieldWidth = 120;\r\n\t\tColor settingsTitleColor = Color.DODGERBLUE;\r\n\t\tColor settingsTextColor = Color.ORANGE;\r\n\t\tFont settingsTitleFont = new Font(\"Aria\", 20);\r\n\t\tFont settingsFont = new Font(\"Aria\", 18);\r\n\t\tFont infoFont = new Font(\"Aria\", 16);\r\n\t\tInsets settingsInsets = new Insets(0, 0, 5, 0);\r\n\t\tInsets topSettingsInsets = new Insets(5, 0, 5, 0);\r\n\t\tInsets paddingAllAround = new Insets(5, 5, 5, 5);\r\n\t\tInsets separatorInsets = new Insets(5, 0, 5, 0);\r\n\t\tfeedbackSettingsLabel.setFont(settingsFont);\r\n\t\tfeedbackSimulationLabel.setFont(settingsFont);\r\n\t\tString updateHelp = \"Enter new values into the textfields\" + System.lineSeparator() + \"and click [enter] to update current values.\";\r\n\r\n//\t\t*** Settings>informationTab ***\r\n\t\tTab infoTab = new Tab(\"Information\");\r\n\t\tinfoTab.setClosable(false);\r\n\t\t\r\n\t\tVBox infoContent = new VBox();\r\n\t\tinfoContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tfinal Label proxim8Version = new Label(\"Proxim8 v3.3\");\r\n\t\tproxim8Version.setTextFill(settingsTitleColor);\r\n\t\tproxim8Version.setFont(new Font(\"Aria\", 24));\r\n\t\tfinal Label driveModeLabel = new Label(\"Drive mode:\");\r\n\t\tdriveModeLabel.setTextFill(settingsTitleColor);\r\n\t\tdriveModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text driveModeInfo = new Text(\"- measures the distance to the car infront of you\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t \t + \"- checks if your brakedistance < current distance\");\r\n\t\tdriveModeInfo.setFill(settingsTextColor);\r\n\t\tdriveModeInfo.setFont(infoFont);\r\n\t\tfinal Label blindspotLabel = new Label(\"Blindspot mode:\");\r\n\t\tblindspotLabel.setTextFill(settingsTitleColor);\r\n\t\tblindspotLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text blindspotModeInfo = new Text(\"- checks if there's a car in your blindzone\");\r\n\t\tblindspotModeInfo.setFill(settingsTextColor);\r\n\t\tblindspotModeInfo.setFont(infoFont);\r\n\t\tfinal Label parkingModeLabel = new Label(\"Parking mode:\");\r\n\t\tparkingModeLabel.setTextFill(settingsTitleColor);\r\n\t\tparkingModeLabel.setFont(settingsTitleFont);\r\n\t\tfinal Text parkingModeInfo = new Text(\"- measures the distances around the car\" + System.lineSeparator()\r\n\t\t\t\t\t\t\t\t\t\t\t+ \"- gives a warning incase the distance < door length\");\r\n\t\tparkingModeInfo.setFill(settingsTextColor);\r\n\t\tparkingModeInfo.setFont(infoFont);\r\n\t\t\r\n\t\tinfoContent.getChildren().addAll(proxim8Version, driveModeLabel, driveModeInfo, blindspotLabel, blindspotModeInfo, parkingModeLabel, parkingModeInfo);\r\n\t\tinfoTab.setContent(infoContent);\r\n\t\t\r\n//\t\t*** Settings>settingsTab ***\r\n\t\tTab settingsTab = new Tab(\"Settings\");\r\n\t\tsettingsTab.setClosable(false);\r\n\t\t\r\n\t\tVBox settingsContent = new VBox();\r\n\t\tsettingsContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\tHBox getAndSetValues = new HBox();\r\n\t\tgetAndSetValues.setPadding(paddingAllAround);\r\n//\t\tSettings>settingsTab>currentValues\r\n\t\tGridPane currentValues = new GridPane();\r\n\t\tfinal Label currentValuesLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label door = new Label(DOOR_LENGTH + \": \");\r\n\t\tdoor.setTextFill(settingsTextColor);\r\n\t\tdoor.setFont(settingsFont);\r\n\t\tdoor.setPadding(topSettingsInsets);\r\n\t\tfinal Label doorValue = new Label(String.valueOf(carData.getDoorLength()) + \"m\");\r\n\t\tdoorValue.setTextFill(settingsTextColor);\r\n\t\tdoorValue.setFont(settingsFont);\r\n\t\tfinal Label rearDoor = new Label(REAR_DOOR_LENGTH + \": \");\r\n\t\trearDoor.setTextFill(settingsTextColor);\r\n\t\trearDoor.setFont(settingsFont);\r\n\t\trearDoor.setPadding(settingsInsets);\r\n\t\tfinal Label rearDoorValue = new Label(String.valueOf(carData.getRearDoorLength()) + \"m\");\r\n\t\trearDoorValue.setTextFill(settingsTextColor);\r\n\t\trearDoorValue.setFont(settingsFont);\r\n\t\tfinal Label blindZone = new Label(BLIND_ZONE_VALUE + \": \");\r\n\t\tblindZone.setTextFill(settingsTextColor);\r\n\t\tblindZone.setFont(settingsFont);\r\n\t\tblindZone.setPadding(settingsInsets);\r\n\t\tfinal Label blindZoneValue = new Label(String.valueOf(carData.getBlindZoneValue()) + \"m\");\r\n\t\tblindZoneValue.setTextFill(settingsTextColor);\r\n\t\tblindZoneValue.setFont(settingsFont);\r\n\t\tfinal Label frontParkDist = new Label(FRONT_PARK_DISTANCE + \": \");\r\n\t\tfrontParkDist.setTextFill(settingsTextColor);\r\n\t\tfrontParkDist.setFont(settingsFont);\r\n\t\tfrontParkDist.setPadding(settingsInsets);\r\n\t\tfinal Label frontParkDistValue = new Label(String.valueOf(carData.getFrontDistParking()) + \"m\");\r\n\t\tfrontParkDistValue.setTextFill(settingsTextColor);\r\n\t\tfrontParkDistValue.setFont(settingsFont);\r\n\t\tfrontParkDistValue.setPadding(settingsInsets);\r\n\t\t\r\n\t\tcurrentValues.add(currentValuesLabel, 0, 0);\r\n\t\tcurrentValues.add(door, 0, 1);\r\n\t\tcurrentValues.add(doorValue, 1, 1);\r\n\t\t\r\n\t\tcurrentValues.add(rearDoor, 0, 2);\r\n\t\tcurrentValues.add(rearDoorValue, 1, 2);\r\n\t\t\r\n\t\tcurrentValues.add(blindZone, 0, 3);\r\n\t\tcurrentValues.add(blindZoneValue, 1, 3);\r\n\t\t\r\n\t\tcurrentValues.add(frontParkDist, 0, 4);\r\n\t\tcurrentValues.add(frontParkDistValue, 1, 4);\r\n\t\t\r\n//\t\tSettings>settingTab>updateFields\r\n\t\tVBox updateFields = new VBox();\r\n\t\tupdateFields.setPadding(paddingAllAround);\r\n\t\tfinal Label updateLabel = new Label(\"Set new value:\");\r\n\t\tupdateLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField doorLengthField = new TextField();\r\n\t\tdoorLengthField.setPromptText(\"meter\");\r\n\t\tdoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\tdoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(doorValue, feedbackSettingsLabel, doorLengthField, DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField rearDoorLengthField = new TextField();\r\n\t\trearDoorLengthField.setPromptText(\"meter\");\r\n\t\trearDoorLengthField.setMaxWidth(textfieldWidth);\r\n\t\trearDoorLengthField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(rearDoorValue, feedbackSettingsLabel, rearDoorLengthField, REAR_DOOR_LENGTH, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField blindZoneValueField = new TextField();\r\n\t\tblindZoneValueField.setMaxWidth(textfieldWidth);\r\n\t\tblindZoneValueField.setPromptText(\"meter\");\r\n\t\tblindZoneValueField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(blindZoneValue, feedbackSettingsLabel, blindZoneValueField, BLIND_ZONE_VALUE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tfinal TextField frontParkDistField = new TextField();\r\n\t\tfrontParkDistField.setMaxWidth(textfieldWidth);\r\n\t\tfrontParkDistField.setPromptText(\"meter\");\r\n\t\tfrontParkDistField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(frontParkDistValue, feedbackSettingsLabel, frontParkDistField, FRONT_PARK_DISTANCE, 0, 10);\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFields.getChildren().addAll(updateLabel, doorLengthField, rearDoorLengthField, blindZoneValueField, frontParkDistField);\r\n\t\t\r\n\t\tRegion regionSettings = new Region();\r\n\t\tregionSettings.setPrefWidth(25);\r\n\t\tgetAndSetValues.getChildren().addAll(currentValues, regionSettings, updateFields);\r\n\t\t\r\n\t\tSeparator settingsSeparator = new Separator();\r\n\t\tsettingsSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text howToUpdate = new Text(updateHelp);\r\n\t\thowToUpdate.setFill(settingsTextColor);\r\n\t\thowToUpdate.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator settingsSeparator2 = new Separator();\r\n\t\tsettingsSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsettingsContent.getChildren().addAll(getAndSetValues, settingsSeparator, howToUpdate, settingsSeparator2, feedbackSettingsLabel);\r\n\t\tsettingsTab.setContent(settingsContent);\r\n\t\t\r\n//\t\t*** Settings>simulate ***\r\n\t\tTab simulateTab = new Tab(\"Simulation\");\r\n\t\tsimulateTab.setClosable(false);\r\n\t\t\r\n\t\tVBox simulateContent = new VBox();\r\n\t\tsimulateContent.setPrefSize(tabWidth, tabHeight);\r\n\t\t\r\n\t\t\r\n\t\tHBox getAndSetSim = new HBox();\r\n\t\tgetAndSetSim.setPadding(paddingAllAround);\r\n//\t\tSettings>simulate>currentValues\r\n\t\tGridPane currentValuesSim = new GridPane();\r\n\t\tfinal Label currentValuesSimLabel = new Label(\"Current values:\");\r\n\t\tcurrentValuesSimLabel.setTextFill(settingsTitleColor);\r\n\t\tcurrentValuesSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal Label topSpeed = new Label(TOP_SPEED + \": \");\r\n\t\ttopSpeed.setTextFill(settingsTextColor);\r\n\t\ttopSpeed.setFont(settingsFont);\r\n\t\ttopSpeed.setPadding(topSettingsInsets);\r\n\t\tfinal Label topSpeedValue = new Label(String.valueOf(carData.getTopSpeed()) + \"km/h\");\r\n\t\ttopSpeedValue.setTextFill(settingsTextColor);\r\n\t\ttopSpeedValue.setFont(settingsFont);\r\n\t\t\r\n\t\tcurrentValuesSim.add(currentValuesSimLabel, 0, 0);\r\n\t\tcurrentValuesSim.add(topSpeed, 0, 1);\r\n\t\tcurrentValuesSim.add(topSpeedValue, 1, 1);\r\n\t\t\r\n//\t\tSettings>simulate>updateFields\r\n\t\tVBox updateFieldsSim = new VBox();\r\n\t\tfinal Label updateSimLabel = new Label(\"Set new value:\");\r\n\t\tupdateSimLabel.setTextFill(settingsTitleColor);\r\n\t\tupdateSimLabel.setFont(settingsTitleFont);\r\n\t\t\r\n\t\tfinal TextField topSpeedField = new TextField();\r\n\t\ttopSpeedField.setMaxWidth(textfieldWidth);\r\n\t\ttopSpeedField.setPromptText(\"km/h\");\r\n\t\ttopSpeedField.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tvalidateInput(topSpeedValue, feedbackSimulationLabel, topSpeedField, TOP_SPEED, Double.valueOf(carSpeed), 999.0);\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tupdateFieldsSim.getChildren().addAll(updateSimLabel, topSpeedField);\r\n\t\t\r\n\t\tRegion simulateRegion = new Region();\r\n\t\tsimulateRegion.setPrefWidth(25);\r\n\t\tgetAndSetSim.getChildren().addAll(currentValuesSim, simulateRegion, updateFieldsSim);\r\n\t\t\r\n\t\tSeparator simulationSeparator = new Separator();\r\n\t\tsimulationSeparator.setPadding(separatorInsets);\r\n\t\t\r\n\t\tfinal Text simulateInfo = new Text(updateHelp);\r\n\t\tsimulateInfo.setFill(settingsTextColor);\r\n\t\tsimulateInfo.setFont(settingsFont);\r\n\t\t\r\n\t\tSeparator simulationSeparator2 = new Separator();\r\n\t\tsimulationSeparator2.setPadding(separatorInsets);\r\n\t\t\r\n\t\t\r\n\t\tsimulateContent.getChildren().addAll(getAndSetSim, simulationSeparator, simulateInfo, simulationSeparator2, feedbackSimulationLabel);\r\n\t\tsimulateTab.setContent(simulateContent);\r\n\t\t\r\n//\t\t*** Settings>checkBoxTab ***\r\n\t\tTab extraFeaturesTab = new Tab(\"Extra features\");\r\n\t\textraFeaturesTab.setClosable(false);\r\n\t\t\r\n\t\tVBox extraFeaturesContent = new VBox();\r\n\t\textraFeaturesContent.setPrefSize(tabWidth, tabHeight);\r\n\t\textraFeaturesContent.setPadding(paddingAllAround);\r\n\t\t\r\n\t\tfinal Label extraFeaturesLabel = new Label(\"Extra features\");\r\n\t\textraFeaturesLabel.setTextFill(settingsTitleColor);\r\n\t\textraFeaturesLabel.setFont(settingsTitleFont);\r\n\t\textraFeaturesLabel.setPadding(topSettingsInsets);\r\n\t\t\r\n\t\tSeparator separatorExtraFeatures = new Separator();\r\n\t\tseparatorExtraFeatures.setPadding(separatorInsets);\r\n\t\t\r\n\t\tInsets checkInsets = new Insets(5, 0, 5, 5);\r\n\t\tfinal CheckBox smartBrake = new CheckBox(\"Smart brake\");\r\n\t\tsmartBrake.setSelected(smartBrakeActivated);\r\n\t\tsmartBrake.setFont(settingsFont);\r\n\t\tsmartBrake.setTextFill(settingsTextColor);\r\n\t\tsmartBrake.setPadding(checkInsets);\r\n\t\tsmartBrake.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tsmartBrakeActivated = ! smartBrakeActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox blindspotAlways = new CheckBox(\"Blindspot always\");\r\n\t\tblindspotAlways.setSelected(blindspotAlwaysActivated);\r\n\t\tblindspotAlways.setFont(settingsFont);\r\n\t\tblindspotAlways.setTextFill(settingsTextColor);\r\n\t\tblindspotAlways.setPadding(checkInsets);\r\n\t\tblindspotAlways.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\tblindspotAlwaysActivated = ! blindspotAlwaysActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\r\n\t\t\t}\r\n\t\t});\r\n\t\tfinal CheckBox audioWarning = new CheckBox(\"Audio warning\");\r\n\t\taudioWarning.setSelected(audioWarningActivated);\r\n\t\taudioWarning.setFont(settingsFont);\r\n\t\taudioWarning.setTextFill(settingsTextColor);\r\n\t\taudioWarning.setPadding(checkInsets);\r\n\t\taudioWarning.setOnAction(new EventHandler<ActionEvent>() {\r\n\t\t\t@Override\r\n\t\t\tpublic void handle(ActionEvent event) {\r\n\t\t\t\taudioWarningActivated = ! audioWarningActivated;\r\n\t\t\t\tvalidateAndUpdate(null, true, feedbackSettingsLabel, \"Successfully updated\");\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\textraFeaturesContent.getChildren().addAll(extraFeaturesLabel, separatorExtraFeatures, smartBrake, blindspotAlways); //, audioWarning);\r\n\t\textraFeaturesTab.setContent(extraFeaturesContent);\r\n\t\t\r\n\t\t\r\n\t\tTabPane settingsWindow = new TabPane();\r\n\t\tsettingsWindow.setVisible(false);\r\n\t\tsettingsWindow.getTabs().addAll(infoTab, settingsTab, simulateTab, extraFeaturesTab);\r\n\t\treturn settingsWindow;\r\n\t}", "private void makeCenter() {\r\n // JTabbedPane border.center\r\n // JScrollPane\r\n // JTable\r\n final JTabbedPane tabPane = new JTabbedPane();\r\n\r\n List<String[]> columnNamesList = connectToDB();\r\n\r\n // = {{\"Title\", \"Artist\", \"Genre\"}, \r\n // {\"Title\", \"Year\"}, \r\n // {\"Title\", \"Author\"}, \r\n // {\"Title\"}};\r\n\r\n final Object[][][] data = {\r\n {\r\n {\"Blue\", \"Third Eye Blind\", \"Pop-Punk\"}, {\"Ten\", \"Pearl Jam\", \"Grunge\"}\r\n }, {\r\n {\"Pacific Rim\", \"2013\"}\r\n }, {\r\n {\"Core Java\", \"Horstmann\"}\r\n }, {\r\n {\"DDR Revolution\"}\r\n }\r\n };\r\n\r\n final List<JTable> tables = new ArrayList<JTable>();\r\n for (int i = 0; i < columnNamesList.size(); i++) {\r\n String[] columnNamesArray = columnNamesList.get(i);\r\n @SuppressWarnings(\"serial\")\r\n final DefaultTableModel tableModel = \r\n new DefaultTableModel(data[i], columnNamesArray) {\r\n @Override\r\n public boolean isCellEditable(final int theRow, final int theColumn) {\r\n //all cells false\r\n return false;\r\n }\r\n };\r\n final JTable table = new JTable(tableModel);\r\n table.getSelectionModel().addListSelectionListener(new ListSelectionListener() {\r\n @Override\r\n public void valueChanged(final ListSelectionEvent theEvent) {\r\n // do some actions here, for example\r\n // print first column value from selected row\r\n final StringBuilder string = new StringBuilder();\r\n for (int i = 0; i < table.getColumnCount(); i++) {\r\n string.append(table.getValueAt(table.getSelectedRow(), i).\r\n toString().\r\n replaceAll(\"\\\\s+\", \"\"));\r\n }\r\n System.out.println(string.toString());\r\n }\r\n });\r\n tables.add(table);\r\n }\r\n\r\n for (int i = 0; i < TAB_NAMES.length; i++) {\r\n final JScrollPane scrollPane = new JScrollPane(tables.get(i));\r\n tabPane.addTab(TAB_NAMES[i], null, scrollPane,\r\n \"Does nothing\");\r\n final int ascii = (int) TAB_NAMES[i].charAt(0);\r\n tabPane.setMnemonicAt(0, ascii);\r\n }\r\n myFrame.add(tabPane, BorderLayout.NORTH);\r\n }", "public AppMain(String title) {\n setTitle(title);\n leftPanel = new LeftPanel();\n jTabbedPane = new JTabbedPane();\n menuBar = new JMenuBar();\n addMenuItems();\n horizontalPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT, leftPanel, jTabbedPane);\n verticalPane = new JSplitPane(JSplitPane.VERTICAL_SPLIT, menuBar, horizontalPane);\n horizontalPane.setResizeWeight(0.2);\n verticalPane.setResizeWeight(0.03);\n add(verticalPane);\n setSize(1280, 720);\n setVisible(true);\n setResizable(false);\n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n verticalPane.resetToPreferredSizes();\n horizontalPane.resetToPreferredSizes();\n horizontalPane.setEnabled(false);\n verticalPane.setEnabled(false);\n addPanelActionListeners();\n createWorkSpace();\n }", "Out (FoilBoard target) { \n app = target;\n\n // layout = new CardLayout();\n // setLayout(layout);\n\n probe = new Probe(app);\n geometry = new Geometry(app);\n data = new Data(app);\n \n // TODO: regen this on update (if active)\n // perfweb = new PerfWeb(app);\n addTab(\"Summary\", null, perfweb, \"Shape and Performance Summary\");\n addTab(\"Geometry\", null, geometry, \"Hydrofoil components geometry,\\nfoil/profile geometry tables or links\");\n addTab(\"Data\", null, data, \"Hydrofoil components data,\\nincluding size, shape etc\");\n addTab(\"Probe\", null, probe, \"Fluid Flow Probe Display\");\n // old: addTab(\"Plot\", null, pp, \"Show Plot\");\n\n\n // phazing out this.... (still works). instead, copy&past \"summary\" tab into\n // html tool such as https://html-online.com/editor/ and done!\n //\n // perfwebsrc = new PerfWebSrc(app);\n // addTab(\"<h1>Summary...\", null, perfwebsrc, \"Shape and Performance Summary,\\n html codes for embedding\");\n\n //setSelectedComponent(perfweb);\n\n // adding actions to tabs: following \"whoa\" ideas from stackoverflow work but I use\n // overloaded paint() instead, seem simple.\n\n // JLabel label = new JLabel(\"XXX\");\n // label.addMouseListener(new java.awt.event.MouseAdapter() {\n // public void mouseClicked(MouseEvent e) {\n // System.out.println(\"woah! \");\n // setSelectedIndex(0);\n // }});\n // \n // setTabComponentAt(0, label);\n\n //setModel(new javax.swing.DefaultSingleSelectionModel() {\n //\n // @Override\n // public void setSelectedIndex(int index) {\n // System.out.println(\"woah! \" + index);\n // setSelectedIndex(index);\n // }\n // });\n\n // can be used to attach aux logic here..\n this.addChangeListener(new javax.swing.event.ChangeListener() {\n @Override\n public void stateChanged(javax.swing.event.ChangeEvent e) {\n // e.getSource();\n // System.out.println(\"-- e: \" + e);\n //System.out.println(\"Selected paneNo : \" + .getSelectedIndex());\n } });\n }", "private void addMenuItems() {\n menuBar.setLayout(new FlowLayout(FlowLayout.CENTER));\n menuBar.setBackground(Color.BLUE);\n JMenuItem newTabButton = new JMenuItem(\"New Tab\");\n newTabButton.addActionListener(e ->\n {\n String tabName = \"Space \";\n Random rand = new Random();\n float r = (float) (rand.nextFloat() / 2f + 0.5);\n float g = (float) (rand.nextFloat() / 2f + 0.5);\n float b = (float) (rand.nextFloat() / 2f + 0.5);\n Color backgroundColor = new Color(r, g, b);\n tabName += tabIndex;\n tabIndex += 1;\n WorkingPanel workingPanel = new WorkingPanel();\n workingPanel.setBackground(backgroundColor);\n jTabbedPane.add(tabName, workingPanel);\n addIconToTab(workingPanel, \"(\");\n addIconToTab(workingPanel, \")\");\n });\n JMenuItem saveButton = new JMenuItem(\"Save\");\n fileManager = new FileManager(this);\n saveButton.addActionListener(e -> {\n try {\n fileManager.saveFile();\n } catch (IOException ioException) {\n ioException.printStackTrace();\n } catch (NullPointerException nullPointerException){\n JOptionPane.showMessageDialog(null, \"No file selected\");\n }\n });\n JMenuItem loadButton = new JMenuItem(\"Load\");\n loadButton.addActionListener(e -> {\n try {\n fileManager.loadFile();\n } catch (IOException | ClassNotFoundException ioException) {\n ioException.printStackTrace();\n }\n });\n JMenuItem compileButton = new JMenuItem(\"Compile\");\n compileButton.addActionListener(e -> {\n visited = new HashSet<>();\n boolean compileFlag = true;\n for (int idx = 0; idx < jTabbedPane.getTabCount(); idx++) {\n WorkingPanel workingPanel = (WorkingPanel) jTabbedPane.getComponent(idx);\n boolean isSuccessfullyCompiled = compileTab(workingPanel.getConnections(), workingPanel, idx);\n if (!isSuccessfullyCompiled) {\n compileFlag = false;\n }\n }\n if (compileFlag) {\n generateGraphCode();\n }\n });\n newTabButton.setPreferredSize(new Dimension(150, 40));\n loadButton.setPreferredSize(new Dimension(150, 40));\n saveButton.setPreferredSize(new Dimension(150, 40));\n compileButton.setPreferredSize(new Dimension(150, 40));\n menuBar.add(newTabButton);\n menuBar.add(saveButton);\n menuBar.add(loadButton);\n menuBar.add(compileButton);\n }", "private void createInputPortComboBox()\n\t{\n\t\tpane = new JTabbedPane();\n\t\tpane.setBounds(10, 10, 350, 30);\n\n\t\t// Add a tab\n\t\tString label[] = new String[] { \"0\", \"1\", \"2\", \"3\", \"4\", \"5\", \"6\", \"7\",\n\t\t\t\t\"R0\", \"L\" };\n\t\tfor (int i = 0; i < label.length; i++)\n\t\t{\n\t\t\t// Create a child container which is to be associated with a tab\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpane.addTab(label[i], panel);\n\t\t}\n\t\tframe.getContentPane().add(pane);\n\n\t\tpreviousIndex = 0;\n\n\t\tpane.addChangeListener(new MainTabListener(this));\n\n\t\t// Create the tabbed pane\n\t\tpaneRFID = new JTabbedPane();\n\t\tpaneRFID.setBounds(10, 40, 350, 30);\n\n\t\t// Add a tab\n\t\tlabel = new String[] { \"0\", \"1\", \"2\", \"3\", \"4\", \"5\" };\n\t\tfor (int i = 0; i < label.length; i++)\n\t\t{\n\t\t\t// Create a child container which is to be associated with a tab\n\t\t\tJPanel panel = new JPanel();\n\t\t\tpaneRFID.addTab(label[i], panel);\n\t\t}\n\t\tpaneRFID.setVisible(false);\n\t\tframe.getContentPane().add(paneRFID);\n\t\tpaneRFID.addChangeListener(new RFIDTabListener(this));\n\n\t\t// pane.addChangeListener(new MainTabListener());\n\n\t\t// final JRadioButton radioButton = new JRadioButton();\n\t\t// buttonGroup.add(radioButton);\n\t\t// radioButton.setText(\"0\");\n\t\t// radioButton.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton.setBounds(40, 45, 40, 23);\n\t\t// frame.getContentPane().add(radioButton);\n\t\t//\t\t\n\t\t//\n\t\t// final JRadioButton radioButton_1 = new JRadioButton();\n\t\t// buttonGroup.add(radioButton_1);\n\t\t// radioButton_1.setText(\"1\");\n\t\t// radioButton_1.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton_1.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton_1.setBounds(78, 45, 40, 23);\n\t\t// frame.getContentPane().add(radioButton_1);\n\t\t//\n\t\t// final JRadioButton radioButton_2 = new JRadioButton();\n\t\t// radioButton_2.setSelected(true);\n\t\t// buttonGroup.add(radioButton_2);\n\t\t// radioButton_2.setText(\"2\");\n\t\t// radioButton_2.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton_2.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton_2.setBounds(115, 45, 46, 23);\n\t\t// frame.getContentPane().add(radioButton_2);\n\t\t//\n\t\t// final JRadioButton radioButton_3 = new JRadioButton();\n\t\t// buttonGroup.add(radioButton_3);\n\t\t// radioButton_3.setText(\"3\");\n\t\t// radioButton_3.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton_3.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton_3.setBounds(155, 45, 40, 23);\n\t\t// frame.getContentPane().add(radioButton_3);\n\t\t//\n\t\t// final JRadioButton radioButton_4 = new JRadioButton();\n\t\t// buttonGroup.add(radioButton_4);\n\t\t// radioButton_4.setText(\"4\");\n\t\t// radioButton_4.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton_4.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton_4.setBounds(190, 45, 40, 23);\n\t\t// frame.getContentPane().add(radioButton_4);\n\t\t//\n\t\t// final JRadioButton radioButton_5 = new JRadioButton();\n\t\t// buttonGroup.add(radioButton_5);\n\t\t// radioButton_5.setText(\"5\");\n\t\t// radioButton_5.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton_5.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton_5.setBounds(225, 45, 40, 23);\n\t\t// frame.getContentPane().add(radioButton_5);\n\t\t//\n\t\t// final JRadioButton radioButton_6 = new JRadioButton();\n\t\t// buttonGroup.add(radioButton_6);\n\t\t// radioButton_6.setText(\"6\");\n\t\t// radioButton_6.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton_6.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton_6.setBounds(260, 45, 40, 23);\n\t\t// frame.getContentPane().add(radioButton_6);\n\t\t//\n\t\t// final JRadioButton radioButton_7 = new JRadioButton();\n\t\t// buttonGroup.add(radioButton_7);\n\t\t// radioButton_7.setText(\"7\");\n\t\t// radioButton_7.addActionListener(new ActionListener() {\n\t\t// public void actionPerformed(final ActionEvent e) {\n\t\t// InputPorttextField_1.setText(radioButton_7.getText());\n\t\t// }\n\t\t// });\n\t\t// radioButton_7.setBounds(300, 45, 46, 23);\n\t\t// frame.getContentPane().add(radioButton_7);\n\n\t}", "@AutoGenerated\r\n\tprivate TabSheet buildTabSheet_1() {\n\t\ttabSheet_1 = new TabSheet();\r\n\t\ttabSheet_1.setWidth(\"100.0%\");\r\n\t\ttabSheet_1.setHeight(\"100.0%\");\r\n\t\ttabSheet_1.setImmediate(true);\r\n\t\t\r\n\t\t// generalPanel\r\n\t\tgeneralPanel = buildGeneralPanel();\r\n\t\ttabSheet_1.addTab(generalPanel, \"General settings\", null);\r\n\t\t\r\n\t\t// videoPanel\r\n\t\tvideoPanel = buildVideoPanel();\r\n\t\ttabSheet_1.addTab(videoPanel, \"Video settings\", null);\r\n\t\t\r\n\t\t// audioPanel\r\n\t\taudioPanel = buildAudioPanel();\r\n\t\ttabSheet_1.addTab(audioPanel, \"Audio settings\", null);\r\n\t\t\r\n\t\treturn tabSheet_1;\r\n\t}", "private void initStandingTab() throws IOException {\n // THESE ARE THE CONTROLS FOR THE BASIC SCHEDULE PAGE HEADER INFO\n // WE'LL ARRANGE THEM IN A VBox\n standingsTab = new Tab();\n standingsWorkspacePane = new VBox();\n standingsWorkspacePane.getStyleClass().add(CLASS_DRAFT_PANE);\n \n // ADD PAGE LABEL & BUTTON\n Label standing = new Label();\n standing = initChildLabel(standingsWorkspacePane, DraftKit_PropertyType.STANDINGS_HEADING_LABEL, CLASS_HEADING_LABEL);\n \n PropertiesManager props = PropertiesManager.getPropertiesManager();\n String imagePath = \"file:\" + PATH_IMAGES + props.getProperty(DraftKit_PropertyType.STANDINGS_ICON);\n Image buttonImage = new Image(imagePath);\n standingsTab.setGraphic(new ImageView(buttonImage));\n \n // CREATE THE STANDINGS TABLE\n standingTable = new TableView();\n\n teamName = new TableColumn<>(\"Team Name\");\n teamName.setCellValueFactory(new PropertyValueFactory<>(\"TeamName\"));\n pNeeded = new TableColumn<>(\"Players Needed\");\n pNeeded.setCellValueFactory(new PropertyValueFactory<>(\"PlayersNeeded\"));\n moneyLeft = new TableColumn<>(\"$ Left\");\n moneyLeft.setCellValueFactory(new PropertyValueFactory<>(\"MoneyLeft\"));\n moneyPP = new TableColumn<>(\"$ PP\");\n moneyPP.setCellValueFactory(new PropertyValueFactory<>(\"MoneyPP\"));\n rEst = new TableColumn<>(\"R\");\n rEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalR\"));\n hrEst = new TableColumn<>(\"HR\");\n hrEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalHR\"));\n rbiEst = new TableColumn<>(\"RBI\");\n rbiEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalRBI\"));\n sbEst = new TableColumn<>(\"SB\");\n sbEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalSB\"));\n baEst = new TableColumn<>(\"BA\");\n baEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalBA\"));\n wEst = new TableColumn<>(\"W\");\n wEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalW\"));\n svEst = new TableColumn<>(\"SV\");\n svEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalSV\"));\n kEst = new TableColumn<>(\"K\");\n kEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalK\"));\n eraEst = new TableColumn<>(\"ERA\");\n eraEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalERA\"));\n whipEst = new TableColumn<>(\"WHIP\");\n whipEst.setCellValueFactory(new PropertyValueFactory<>(\"TotalWHIP\"));\n totalPoints = new TableColumn<>(\"Total Points\");\n totalPoints.setCellValueFactory(new PropertyValueFactory<>(\"TotalPoints\"));\n \n standingTable.getColumns().addAll(teamName, pNeeded, moneyLeft, moneyPP, rEst,\n hrEst, rbiEst, sbEst, baEst, wEst, svEst, kEst, eraEst, whipEst, totalPoints);\n \n standingTable = resetStandingTable(dataManager.getDraft().getFantasyTeams());\n \n // SET TOOLTIP\n Tooltip t = new Tooltip(\"Fantasy Standings Page\");\n standingsTab.setTooltip(t);\n \n // PUT IN TAB PANE\n standingsWorkspacePane.getChildren().add(standingTable);\n standingsTab.setContent(standingsWorkspacePane);\n mainWorkspacePane.getTabs().add(standingsTab);\n }", "private JTabbedPane getJTabbedPane() {\r\n\t\tif (jTabbedPane == null) {\r\n\t\t\tjTabbedPane = new JTabbedPane();\r\n\t\t\tjTabbedPane.addTab(\"Basic Info\", null, getBasicInfo(), null);\r\n\t\t\tjTabbedPane.addTab(\"Configuration Info\", null, getConfigurationInfo(), null);\r\n\t\t}\r\n\t\treturn jTabbedPane;\r\n\t}", "private void createNetworksPanel() {\n\t\ttabs = new ArrayList<>();\n\t\tnetworksPanel = new JTabbedPane();\n\t\tthis.add(networksPanel, BorderLayout.CENTER);\n\t}", "private void initComponents() {\n panel1 = new JPanel();\n jtpPflegeakte = new JTabbedPane();\n\n //======== this ========\n setLayout(new BoxLayout(this, BoxLayout.PAGE_AXIS));\n\n //======== panel1 ========\n {\n panel1.setLayout(new FormLayout(\n \"default:grow\",\n \"default:grow\"));\n\n //======== jtpPflegeakte ========\n {\n jtpPflegeakte.setTabPlacement(SwingConstants.BOTTOM);\n jtpPflegeakte.addChangeListener(e -> jtpPflegeakteStateChanged(e));\n }\n panel1.add(jtpPflegeakte, CC.xy(1, 1, CC.FILL, CC.FILL));\n }\n add(panel1);\n // JFormDesigner - End of component initialization //GEN-END:initComponents\n }", "public void init() {\n\t\ttabbed = new JTabbedPane();\n\t\ttabbed.insertTab(\"Sesion\", null, getPanelSesion(), \"Control de la sesion\", 0);\n\t\ttabbed.insertTab(\"Evolución bolsa\", null, new JPanel(), \"Control de los usuarios\", 1);\n\t\ttabbed.insertTab(\"Eventos\", null, new JPanel(), \"Control de los eventos\", 2);\n\t\ttabbed.insertTab(\"Control de Agentes\", null, getPanelAgentes(), \"Control de los agentes\", 3);\n\t\tgetContentPane().add(tabbed);\n\t\ttabbed.setEnabledAt(1, false);\n\t\ttabbed.setEnabledAt(2, false);\n\t\tsetSize(new Dimension(800, 600));\n\t}", "private void createView() {\n\t\tTabWidget tWidget = (TabWidget) findViewById(android.R.id.tabs);\r\n\t\tshowLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView = (ImageView) showLayout.getChildAt(0);\r\n\t\tTextView textView = (TextView) showLayout.getChildAt(1);\r\n\t\timageView.setImageResource(R.drawable.main_selector);\r\n\t\ttextView.setText(R.string.show);\r\n\r\n\t\taddLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView1 = (ImageView) addLayout.getChildAt(0);\r\n\t\tTextView textView1 = (TextView) addLayout.getChildAt(1);\r\n\t\timageView1.setImageResource(R.drawable.add_selector);\r\n\t\ttextView1.setText(R.string.add_record);\r\n\r\n\t\tchartLayout = (LinearLayout) LayoutInflater.from(this).inflate(\r\n\t\t\t\tR.layout.tab_layout, tWidget, false);\r\n\t\tImageView imageView2 = (ImageView) chartLayout.getChildAt(0);\r\n\t\tTextView textView2 = (TextView) chartLayout.getChildAt(1);\r\n\t\timageView2.setImageResource(R.drawable.chart_selector);\r\n\t\ttextView2.setText(R.string.chart_show);\r\n\t}", "public void addTab(String filename) {\n\t\t\n\t\tMinLFile nminl = new MinLFile(filename);\n\t\tJComponent panel = nminl;\n\t\t\n\t\ttabbedPane.addTab(filename, null, panel,\n\t\t\t\tfilename);\t\t\n\t\ttabbedPane.setMnemonicAt(0, 0);\n\t}", "private void initialize() {\r\n\t\tframe = new JFrame();\r\n\t\tframe.setBounds(100, 100, 752, 842);\r\n\t\t// frame.setSize(700, 500);\r\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\r\n\r\n\t\tJTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);\r\n\t\tGroupLayout groupLayout = new GroupLayout(frame.getContentPane());\r\n\t\tgroupLayout.setHorizontalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addComponent(tabbedPane,\r\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 512, Short.MAX_VALUE));\r\n\t\tgroupLayout.setVerticalGroup(groupLayout.createParallelGroup(Alignment.LEADING).addComponent(tabbedPane,\r\n\t\t\t\tGroupLayout.DEFAULT_SIZE, 381, Short.MAX_VALUE));\r\n\t\ttabbedPane.setPreferredSize(new Dimension(700, 850));\r\n\t\tJScrollPane scrollFrame = new JScrollPane(tabbedPane);\r\n\t\ttabbedPane.setAutoscrolls(true);\r\n\t\tscrollFrame.setPreferredSize(new Dimension(200, 300));\r\n\t\tframe.getContentPane().add(scrollFrame);\r\n\r\n\t\tPanel panel = new Panel();\r\n\t\ttabbedPane.addTab(\"Parameters\", null, panel, null);\r\n\t\tpanel.setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel = new JLabel(\"Financial Transaction\");\r\n\t\tlblNewLabel.setBounds(10, 11, 141, 22);\r\n\t\tpanel.add(lblNewLabel);\r\n\r\n\t\tJLabel lblTransactionType = new JLabel(\"Transaction Type :\");\r\n\t\tlblTransactionType.setBounds(10, 44, 117, 22);\r\n\t\tpanel.add(lblTransactionType);\r\n\r\n\t\ttextField_btMap1 = new JTextField();\r\n\t\ttextField_btMap1.setBounds(180, 94, 468, 20);\r\n\t\tpanel.add(textField_btMap1);\r\n\t\ttextField_btMap1.setText(\"1111001000111110010001001000000100101000111001001001000000000000\");\r\n\t\ttextField_btMap1.setColumns(10);\r\n\r\n\t\ttextField_btMap2 = new JTextField();\r\n\t\ttextField_btMap2.setColumns(10);\r\n\t\ttextField_btMap2.setBounds(180, 119, 468, 20);\r\n\t\ttextField_btMap2.setText(\"0000000000000000000000000000000000000110000000000000000000110000\");\r\n\t\tpanel.add(textField_btMap2);\r\n\r\n\t\tChoice choice = new Choice();\r\n\t\tchoice.setBounds(180, 44, 113, 20);\r\n\t\tchoice.add(\"Fund Transfer\");\r\n\t\tchoice.add(\"Balance Enquiry\");\r\n\t\tchoice.add(\"Mini-Statement\");\r\n\t\tchoice.add(\"Purchase\");\r\n\t\tchoice.add(\"Reversal\");\r\n\t\tpanel.add(choice);\r\n\t\tchoice.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent arg0) {\r\n\t\t\t\tif (choice.getSelectedItem().equalsIgnoreCase(\"Fund Transfer\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"400000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Balance Enquiry\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"301000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Mini-Statement\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"350000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Purchase\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"001000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0200\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\t\t\t\t} else if (choice.getSelectedItem().equalsIgnoreCase(\"Reversal\")) {\r\n\t\t\t\t\ttextField_ProcessCode.setText(\"400000\");\r\n\t\t\t\t\ttextField_messageCode.setText(\"0420\");\r\n\t\t\t\t\ttextField_hexValues1.setText(\"F23A44810EE48000\");\r\n\t\t\t\t\ttextField_hexValues2.setText(\"0000004006000000\");\r\n\t\t\t\t\ttextField_btMap1.setText(hex.ConverthexToBinary(textField_hexValues1.getText()));\r\n\t\t\t\t\ttextField_btMap2.setText(hex.ConverthexToBinary(textField_hexValues2.getText()));\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tJLabel lblProcessCode = new JLabel(\"Process Code:\");\r\n\t\tlblProcessCode.setBounds(10, 72, 86, 14);\r\n\t\tpanel.add(lblProcessCode);\r\n\r\n\t\ttextField_ProcessCode = new JTextField();\r\n\t\ttextField_ProcessCode.setBounds(180, 69, 113, 20);\r\n\t\ttextField_ProcessCode.setText(\"400000\");\r\n\t\tpanel.add(textField_ProcessCode);\r\n\t\ttextField_ProcessCode.setEditable(false);\r\n\t\ttextField_ProcessCode.setColumns(10);\r\n\r\n\t\tJLabel lblMessageCode = new JLabel(\"Message Code\");\r\n\t\tlblMessageCode.setBounds(302, 46, 86, 18);\r\n\t\tpanel.add(lblMessageCode);\r\n\r\n\t\ttextField_messageCode = new JTextField();\r\n\t\ttextField_messageCode.setBounds(294, 69, 86, 20);\r\n\t\ttextField_messageCode.setText(\"0200\");\r\n\t\tpanel.add(textField_messageCode);\r\n\t\ttextField_messageCode.setEditable(false);\r\n\t\ttextField_messageCode.setColumns(10);\r\n\r\n\t\tJLabel lblBitmapstr = new JLabel(\"BitHPMapStr1 :\");\r\n\t\tlblBitmapstr.setBounds(10, 97, 92, 14);\r\n\t\tpanel.add(lblBitmapstr);\r\n\r\n\t\tJLabel lblBithpmapstr = new JLabel(\"BitHPMapStr2 :\");\r\n\t\tlblBithpmapstr.setBounds(10, 122, 92, 14);\r\n\t\tpanel.add(lblBithpmapstr);\r\n\r\n\t\ttextField_hexValues1 = new JTextField();\r\n\t\ttextField_hexValues1.setBounds(180, 147, 144, 20);\r\n\t\ttextField_hexValues1.setText(\"F23E448128E49000\");\r\n\t\tpanel.add(textField_hexValues1);\r\n\t\ttextField_hexValues1.setColumns(10);\r\n\r\n\t\ttextField_hexValues2 = new JTextField();\r\n\t\ttextField_hexValues2.setColumns(10);\r\n\t\ttextField_hexValues2.setBounds(334, 147, 146, 20);\r\n\t\ttextField_hexValues2.setText(\"0000000006000030\");\r\n\t\tpanel.add(textField_hexValues2);\r\n\r\n\t\tJLabel lblHexValues = new JLabel(\"Hex Values\");\r\n\t\tlblHexValues.setBounds(10, 147, 70, 14);\r\n\t\tpanel.add(lblHexValues);\r\n\r\n\t\tJLabel lblFromAccount = new JLabel(\"Source MainCode :\");\r\n\t\tlblFromAccount.setBounds(10, 172, 117, 22);\r\n\t\tpanel.add(lblFromAccount);\r\n\r\n\t\tJLabel lblToAccount = new JLabel(\"Destination MainCode: \");\r\n\t\tlblToAccount.setBounds(10, 194, 141, 22);\r\n\t\tpanel.add(lblToAccount);\r\n\r\n\t\ttextField_from = new JTextField();\r\n\t\ttextField_from.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_from.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_from.setBounds(180, 173, 199, 20);\r\n\t\tpanel.add(textField_from);\r\n\t\ttextField_from.setColumns(10);\r\n\r\n\t\ttextField_To = new JTextField();\r\n\t\ttextField_To.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_To.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_To.setColumns(10);\r\n\t\ttextField_To.setBounds(180, 195, 199, 20);\r\n\t\tpanel.add(textField_To);\r\n\r\n\t\tJLabel lblTerminalId = new JLabel(\"Terminal ID: \");\r\n\t\tlblTerminalId.setBounds(10, 224, 86, 14);\r\n\t\tpanel.add(lblTerminalId);\r\n\r\n\t\ttextField_terminal = new JTextField();\r\n\t\ttextField_terminal.setBounds(180, 221, 102, 20);\r\n\t\tpanel.add(textField_terminal);\r\n\t\ttextField_terminal.setColumns(10);\r\n\r\n\t\tJLabel lblAmount = new JLabel(\"Amount :\");\r\n\t\tlblAmount.setBounds(10, 249, 62, 20);\r\n\t\tpanel.add(lblAmount);\r\n\r\n\t\ttextField_Amount = new JTextField();\r\n\t\ttextField_Amount.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Amount.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Amount.setBounds(180, 252, 102, 20);\r\n\t\tpanel.add(textField_Amount);\r\n\t\ttextField_Amount.setColumns(10);\r\n\r\n\t\tButton button = new Button(\"Next\");\r\n\t\tbutton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttabbedPane.setSelectedIndex(1);\r\n\t\t\t\tTranDate d = new TranDate();\r\n\t\t\t\tRandom rnd = new Random();\r\n\t\t\t\ttextField_Ac1.setText(textField_from.getText());\r\n\t\t\t\ttextField_amount.setText(textField_Amount.getText());\r\n\t\t\t\ttextField_Ac2.setText(textField_To.getText());\r\n\t\t\t\ttextField_Terminal.setText(textField_terminal.getText());\r\n\t\t\t\ttextField_proCode.setText(textField_ProcessCode.getText());\r\n\t\t\t\ttextField_primary.setText(textField_hexValues1.getText());\r\n\t\t\t\ttextField_secondarybtmap.setText(textField_hexValues2.getText());\r\n\t\t\t\ttextField_Date.setText(d.getTranDateTime());\r\n\t\t\t\ttextField.setText(String.valueOf(100000 + rnd.nextInt(900000)));\r\n\t\t\t\ttextField_1_time.setText(d.getTimeLocal());\r\n\t\t\t\ttextField_DateLocal.setText(d.getLocalSettle());\r\n\t\t\t\ttextField_DateExp.setText(d.getexpDate());\r\n\t\t\t\ttextField_1.setText(d.getLocalSettle());\r\n\t\t\t\ttextField_retrival.setText(String.valueOf(d.generateRandom(12)));\r\n\r\n\t\t\t\tif (textField_messageCode.getText().equals(\"0420\")) {\r\n\t\t\t\t\t// reversalfield();\r\n//\t\t\t\t\ttextField_primary.setText(\"F23A44810EE48000\");\r\n//\t\t\t\t\ttextField_secondarybtmap.setText(\"0000004006000000\");\r\n\t\t\t\t\ttextField_OriData.setEnabled(true);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(false);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(false);\r\n\t\t\t\t\ttextField_track.setEnabled(false);\r\n\t\t\t\t\ttextField_PIN.setEnabled(false);\r\n\t\t\t\t\ttextField_123.setEnabled(false);\r\n\t\t\t\t\ttextField_124.setEnabled(false);\r\n\t\t\t\t\ttextField_authorization.setEnabled(true);\r\n\t\t\t\t\ttextField_responseCODE.setEnabled(true);\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttextField_authorization.setEnabled(false);\r\n\t\t\t\t\ttextField_responseCODE.setEnabled(false);\r\n\t\t\t\t\ttextField_OriData.setEnabled(false);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(true);\r\n\t\t\t\t\ttextField_DateExp.setEnabled(true);\r\n\t\t\t\t\ttextField_track.setEnabled(true);\r\n\t\t\t\t\ttextField_PIN.setEnabled(true);\r\n\t\t\t\t\ttextField_123.setEnabled(true);\r\n\t\t\t\t\ttextField_124.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton.setBounds(10, 283, 70, 22);\r\n\t\tbutton.setEnabled(false);\r\n\t\tpanel.add(button);\r\n\r\n\t\tJLabel lblNewLabel_52 = new JLabel(\"Password : \");\r\n\t\tlblNewLabel_52.setFont(new Font(\"SansSerif\", Font.BOLD, 12));\r\n\t\tlblNewLabel_52.setBounds(180, 12, 81, 18);\r\n\t\tpanel.add(lblNewLabel_52);\r\n\r\n\t\ttextField_2 = new JPasswordField();\r\n\t\ttextField_2.setBounds(264, 12, 163, 20);\r\n\t\tpanel.add(textField_2);\r\n\t\ttextField_2.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_53 = new JLabel(\"Locked\");\r\n\t\tlblNewLabel_53.setForeground(Color.RED);\r\n\t\tlblNewLabel_53.setBounds(571, 15, 54, 14);\r\n\t\tpanel.add(lblNewLabel_53);\r\n\t\tframe.addWindowListener(new WindowAdapter() {\r\n\t\t\tpublic void windowOpened(WindowEvent e) {\r\n\t\t\t\ttextField_2.requestFocus();\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tJLabel lblNewLabel_54 = new JLabel(\"Status : \");\r\n\t\tlblNewLabel_54.setFont(new Font(\"Cambria\", Font.PLAIN, 12));\r\n\t\tlblNewLabel_54.setBounds(523, 15, 54, 14);\r\n\t\tpanel.add(lblNewLabel_54);\r\n\r\n\t\ttabbedPane.addTab(\"Values\", null, panel_1, null);\r\n\r\n\t\tJLabel lblNewLabel_1 = new JLabel(\"0. Primary BitMap: \");\r\n\t\tlblNewLabel_1.setBounds(20, 30, 126, 17);\r\n\r\n\t\ttextField_primary = new JTextField();\r\n\t\ttextField_primary.setBounds(178, 28, 140, 20);\r\n\t\ttextField_primary.setColumns(10);\r\n\r\n\t\tJLabel lblSecondayBitMap = new JLabel(\"1. Seconday Bit Map: \");\r\n\t\tlblSecondayBitMap.setBounds(20, 51, 126, 20);\r\n\r\n\t\ttextField_secondarybtmap = new JTextField();\r\n\t\ttextField_secondarybtmap.setBounds(178, 51, 140, 20);\r\n\t\ttextField_secondarybtmap.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_2 = new JLabel(\"2. Primry Account Number:\");\r\n\t\tlblNewLabel_2.setBounds(20, 79, 160, 14);\r\n\r\n\t\ttextField_PAN = new JTextField();\r\n\t\ttextField_PAN.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_PAN.getText().length() >= 19) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_PAN.setBounds(178, 76, 140, 20);\r\n\t\ttextField_PAN.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_3 = new JLabel(\"4. Amount :\");\r\n\t\tlblNewLabel_3.setBounds(20, 104, 91, 14);\r\n\r\n\t\ttextField_amount = new JTextField();\r\n\t\ttextField_amount.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_amount.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_amount.setBounds(178, 101, 140, 20);\r\n\t\ttextField_amount.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_4 = new JLabel(\"7. Transmission Date :\");\r\n\t\tlblNewLabel_4.setBounds(20, 129, 148, 14);\r\n\r\n\t\ttextField_Date = new JTextField();\r\n\t\ttextField_Date.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Date.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Date.setBounds(178, 127, 140, 23);\r\n\t\ttextField_Date.setText(\"\");\r\n\t\ttextField_Date.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_5 = new JLabel(\"11. System Trace :\");\r\n\t\tlblNewLabel_5.setBounds(20, 154, 114, 14);\r\n\r\n\t\ttextField = new JTextField();\r\n\t\ttextField.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField.setBounds(178, 151, 140, 20);\r\n\t\ttextField.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_6 = new JLabel(\"12. Time, Local : \");\r\n\t\tlblNewLabel_6.setBounds(20, 179, 114, 14);\r\n\r\n\t\ttextField_1_time = new JTextField();\r\n\t\ttextField_1_time.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_1_time.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_1_time.setBounds(178, 176, 104, 20);\r\n\t\ttextField_1_time.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_7 = new JLabel(\"13. Date, Local :\");\r\n\t\tlblNewLabel_7.setBounds(20, 204, 91, 14);\r\n\r\n\t\ttextField_DateLocal = new JTextField();\r\n\t\ttextField_DateLocal.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_DateLocal.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_DateLocal.setBounds(178, 201, 68, 20);\r\n\t\ttextField_DateLocal.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_8 = new JLabel(\"14. Date, Exp\");\r\n\t\tlblNewLabel_8.setBounds(20, 229, 91, 14);\r\n\r\n\t\ttextField_DateExp = new JTextField();\r\n\t\ttextField_DateExp.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_DateExp.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_DateExp.setBounds(178, 226, 68, 20);\r\n\t\ttextField_DateExp.setColumns(10);\r\n\r\n\t\tlblNewLabel_48 = new JLabel(\"90. Original Data Element :\");\r\n\t\tlblNewLabel_48.setBounds(328, 54, 168, 14);\r\n\t\tpanel_1.add(lblNewLabel_48);\r\n\r\n\t\ttextField_OriData = new JTextField();\r\n\t\ttextField_OriData.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_OriData.getText().length() >= 42) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_OriData.setColumns(10);\r\n\t\ttextField_OriData.setBounds(328, 76, 350, 20);\r\n\t\ttextField_OriData.setEnabled(false);\r\n\t\tpanel_1.add(textField_OriData);\r\n\r\n\t\tJLabel lblNewLabel_9 = new JLabel(\"15. Date Settle :\");\r\n\t\tlblNewLabel_9.setBounds(20, 254, 91, 14);\r\n\r\n\t\ttextField_1 = new JTextField();\r\n\t\ttextField_1.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_1.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_1.setBounds(178, 248, 68, 20);\r\n\t\ttextField_1.setColumns(10);\r\n\t\tpanel_1.setLayout(null);\r\n\t\tpanel_1.add(lblNewLabel_1);\r\n\t\tpanel_1.add(textField_primary);\r\n\t\tpanel_1.add(lblSecondayBitMap);\r\n\t\tpanel_1.add(textField_secondarybtmap);\r\n\t\tpanel_1.add(lblNewLabel_2);\r\n\t\tpanel_1.add(textField_PAN);\r\n\t\tpanel_1.add(lblNewLabel_3);\r\n\t\tpanel_1.add(textField_amount);\r\n\t\tpanel_1.add(lblNewLabel_4);\r\n\t\tpanel_1.add(textField_Date);\r\n\t\tpanel_1.add(lblNewLabel_5);\r\n\t\tpanel_1.add(textField);\r\n\t\tpanel_1.add(lblNewLabel_6);\r\n\t\tpanel_1.add(textField_1_time);\r\n\t\tpanel_1.add(lblNewLabel_7);\r\n\t\tpanel_1.add(textField_DateLocal);\r\n\t\tpanel_1.add(lblNewLabel_8);\r\n\t\tpanel_1.add(textField_DateExp);\r\n\t\tpanel_1.add(lblNewLabel_9);\r\n\t\tpanel_1.add(textField_1);\r\n\r\n\t\tJLabel lblNewLabel_10 = new JLabel(\"18. Merchant Type : \");\r\n\t\tlblNewLabel_10.setBounds(20, 279, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_10);\r\n\r\n\t\ttextField_Merchant = new JTextField();\r\n\t\ttextField_Merchant.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Merchant.getText().length() >= 4) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Merchant.setBounds(178, 276, 41, 20);\r\n\t\tpanel_1.add(textField_Merchant);\r\n\t\ttextField_Merchant.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_11 = new JLabel(\"22. Point of service :\");\r\n\t\tlblNewLabel_11.setBounds(20, 307, 134, 14);\r\n\t\tpanel_1.add(lblNewLabel_11);\r\n\r\n\t\ttextField_Service = new JTextField();\r\n\t\ttextField_Service.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Service.getText().length() >= 3) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Service.setBounds(178, 304, 30, 20);\r\n\t\tpanel_1.add(textField_Service);\r\n\t\ttextField_Service.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_12 = new JLabel(\"25. Point of condition : \");\r\n\t\tlblNewLabel_12.setBounds(20, 332, 148, 14);\r\n\t\tpanel_1.add(lblNewLabel_12);\r\n\r\n\t\ttextField_condition = new JTextField();\r\n\t\ttextField_condition.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_condition.getText().length() >= 2) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_condition.setBounds(178, 329, 19, 20);\r\n\t\tpanel_1.add(textField_condition);\r\n\t\ttextField_condition.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_13 = new JLabel(\"32. Acquirer Id :\");\r\n\t\tlblNewLabel_13.setBounds(20, 357, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_13);\r\n\r\n\t\ttextField_Acquirer = new JTextField();\r\n\t\ttextField_Acquirer.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Acquirer.getText().length() >= 8) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Acquirer.setBounds(178, 354, 140, 20);\r\n\t\tpanel_1.add(textField_Acquirer);\r\n\t\ttextField_Acquirer.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_14 = new JLabel(\"35. Track 2 data : \");\r\n\t\tlblNewLabel_14.setBounds(20, 382, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_14);\r\n\r\n\t\ttextField_track = new JTextField();\r\n\t\ttextField_track.setBounds(178, 379, 140, 20);\r\n\t\tpanel_1.add(textField_track);\r\n\t\ttextField_track.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_15 = new JLabel(\"37. Retrieval ref : \");\r\n\t\tlblNewLabel_15.setBounds(20, 407, 104, 14);\r\n\t\tpanel_1.add(lblNewLabel_15);\r\n\r\n\t\ttextField_retrival = new JTextField();\r\n\t\ttextField_retrival.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_retrival.getText().length() >= 12) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_retrival.setBounds(177, 404, 91, 20);\r\n\t\tpanel_1.add(textField_retrival);\r\n\t\ttextField_retrival.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_16 = new JLabel(\"41. Terminal Id :\");\r\n\t\tlblNewLabel_16.setBounds(20, 431, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_16);\r\n\r\n\t\ttextField_Terminal = new JTextField();\r\n\t\ttextField_Terminal.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Terminal.getText().length() >= 8) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Terminal.setBounds(178, 428, 140, 20);\r\n\t\tpanel_1.add(textField_Terminal);\r\n\t\ttextField_Terminal.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_17 = new JLabel(\"42. Card Identification : \");\r\n\t\tlblNewLabel_17.setBounds(20, 456, 134, 14);\r\n\t\tpanel_1.add(lblNewLabel_17);\r\n\r\n\t\ttextField_cardidentity = new JTextField();\r\n\t\ttextField_cardidentity.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_cardidentity.getText().length() >= 15) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_cardidentity.setBounds(178, 453, 140, 20);\r\n\t\tpanel_1.add(textField_cardidentity);\r\n\t\ttextField_cardidentity.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_18 = new JLabel(\"43. Card Location :\");\r\n\t\tlblNewLabel_18.setBounds(20, 478, 114, 14);\r\n\t\tpanel_1.add(lblNewLabel_18);\r\n\r\n\t\ttextField_cardlocation = new JTextField();\r\n\t\ttextField_cardlocation.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_cardlocation.getText().length() >= 40) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_cardlocation.setBounds(178, 475, 140, 20);\r\n\t\tpanel_1.add(textField_cardlocation);\r\n\t\ttextField_cardlocation.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_19 = new JLabel(\"46. Additional data iso : \");\r\n\t\tlblNewLabel_19.setBounds(20, 499, 148, 14);\r\n\t\tpanel_1.add(lblNewLabel_19);\r\n\r\n\t\ttextField_field46 = new JTextField();\r\n\t\ttextField_field46.setBounds(178, 496, 318, 20);\r\n\t\tpanel_1.add(textField_field46);\r\n\t\ttextField_field46.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_20 = new JLabel(\"49. Currency Code : \");\r\n\t\tlblNewLabel_20.setBounds(20, 524, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_20);\r\n\r\n\t\ttextField_Currency = new JTextField();\r\n\t\ttextField_Currency.setBounds(178, 521, 30, 20);\r\n\t\ttextField_Currency.setText(\"524\");\r\n\t\ttextField_Currency.setEditable(false);\r\n\t\tpanel_1.add(textField_Currency);\r\n\t\ttextField_Currency.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_21 = new JLabel(\"52. PIN :\");\r\n\t\tlblNewLabel_21.setBounds(20, 549, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_21);\r\n\r\n\t\tJLabel lblNewLabel_22 = new JLabel(\"102. Account 1 :\");\r\n\t\tlblNewLabel_22.setBounds(20, 574, 126, 14);\r\n\t\tpanel_1.add(lblNewLabel_22);\r\n\r\n\t\tJLabel lblAccount = new JLabel(\"103. Account 2 :\");\r\n\t\tlblAccount.setBounds(20, 599, 126, 14);\r\n\t\tpanel_1.add(lblAccount);\r\n\r\n\t\tJLabel lblReservedPrivateUse = new JLabel(\"123. Reserved private : 123\");\r\n\t\tlblReservedPrivateUse.setBounds(20, 624, 160, 14);\r\n\t\tpanel_1.add(lblReservedPrivateUse);\r\n\r\n\t\tJLabel lblReservedPrivateUse_1 = new JLabel(\"124. Reserved private : 124\");\r\n\t\tlblReservedPrivateUse_1.setBounds(20, 651, 160, 14);\r\n\t\tpanel_1.add(lblReservedPrivateUse_1);\r\n\r\n\t\ttextField_PIN = new JTextField();\r\n\t\ttextField_PIN.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_PIN.getText().length() >= 16) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_PIN.setBounds(178, 546, 140, 20);\r\n\t\tpanel_1.add(textField_PIN);\r\n\t\ttextField_PIN.setColumns(10);\r\n\r\n\t\ttextField_Ac1 = new JTextField();\r\n\t\ttextField_Ac1.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Ac1.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Ac1.setColumns(10);\r\n\t\ttextField_Ac1.setBounds(178, 571, 140, 20);\r\n\t\tpanel_1.add(textField_Ac1);\r\n\r\n\t\ttextField_Ac2 = new JTextField();\r\n\t\ttextField_Ac2.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_Ac2.getText().length() >= 28) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_Ac2.setColumns(10);\r\n\t\ttextField_Ac2.setBounds(178, 596, 140, 20);\r\n\t\tpanel_1.add(textField_Ac2);\r\n\r\n\t\ttextField_123 = new JTextField();\r\n\t\ttextField_123.setColumns(10);\r\n\t\ttextField_123.setBounds(188, 621, 140, 20);\r\n\t\tpanel_1.add(textField_123);\r\n\r\n\t\ttextField_124 = new JTextField();\r\n\t\ttextField_124.setColumns(10);\r\n\t\ttextField_124.setBounds(190, 648, 140, 20);\r\n\t\tpanel_1.add(textField_124);\r\n\t\t// button placement\r\n\r\n\t\tJLabel lblNewLabel_46 = new JLabel(\"3. Pro Code : \");\r\n\t\tlblNewLabel_46.setBounds(333, 31, 84, 14);\r\n\t\tpanel_1.add(lblNewLabel_46);\r\n\r\n\t\ttextField_proCode = new JTextField();\r\n\t\ttextField_proCode.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_proCode.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_proCode.setBounds(427, 28, 75, 20);\r\n\t\tpanel_1.add(textField_proCode);\r\n\t\ttextField_proCode.setColumns(10);\r\n\r\n\t\tJButton btnNewButton = new JButton(\"Next\");\r\n\t\tbtnNewButton.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttabbedPane.setSelectedIndex(3);\r\n\t\t\t\tscrollFrame.getViewport().setViewPosition(new Point(0, 0));\r\n\t\t\t\tframe.invalidate();\r\n\t\t\t\tframe.validate();\r\n\t\t\t\tframe.repaint();\r\n\t\t\t\tif (textField_messageCode.getText().equals(\"0420\")) {\r\n\t\t\t\t\teditorPane.setText(MakeISO8583Reversal());\r\n\t\t\t\t} else {\r\n\t\t\t\t\teditorPane.setText(Makeiso8583());\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\r\n\t\tbtnNewButton.setBounds(20, 676, 91, 23);\r\n\t\tbtnNewButton.setEnabled(false);\r\n\t\tpanel_1.add(btnNewButton);\r\n\r\n\t\tJLabel lblNewLabel_49 = new JLabel(\"38. Authorization identity: \");\r\n\t\tlblNewLabel_49.setBounds(338, 101, 148, 17);\r\n\t\tpanel_1.add(lblNewLabel_49);\r\n\r\n\t\ttextField_authorization = new JTextField();\r\n\t\ttextField_authorization.addKeyListener(new KeyAdapter() {\r\n\t\t\t@Override\r\n\t\t\tpublic void keyTyped(KeyEvent e) {\r\n\t\t\t\tif (textField_authorization.getText().length() >= 6) {\r\n\t\t\t\t\te.consume();\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttextField_authorization.setBounds(496, 101, 91, 20);\r\n\t\tpanel_1.add(textField_authorization);\r\n\t\ttextField_authorization.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_50 = new JLabel(\"39. Response Code :\");\r\n\t\tlblNewLabel_50.setBounds(337, 129, 134, 14);\r\n\t\tpanel_1.add(lblNewLabel_50);\r\n\r\n\t\ttextField_responseCODE = new JTextField();\r\n\t\ttextField_responseCODE.setColumns(10);\r\n\t\ttextField_responseCODE.setBounds(454, 126, 54, 20);\r\n\t\tpanel_1.add(textField_responseCODE);\r\n\r\n\t\tJPanel panel_3 = new JPanel();\r\n\t\ttabbedPane.addTab(\"Custom1\", null, panel_3, null);\r\n\t\tpanel_3.setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel_47 = new JLabel(\"Amount Settle: \");\r\n\t\tlblNewLabel_47.setBounds(10, 22, 91, 19);\r\n\t\tpanel_3.add(lblNewLabel_47);\r\n\r\n\t\ttextField_amt_settle = new JTextField();\r\n\t\ttextField_amt_settle.setBounds(111, 21, 118, 20);\r\n\t\tpanel_3.add(textField_amt_settle);\r\n\t\ttextField_amt_settle.setColumns(10);\r\n\t\t/*\r\n\t\t * Custom can be added For on and off fields. Dynamic Version is more effective\r\n\t\t */\r\n\t\t// JPanel panel_4 = new JPanel();\r\n\t\t// tabbedPane.addTab(\"Custom2\", null, panel_4, null);\r\n\r\n\t\t// JPanel panel_5 = new JPanel();\r\n\t\t// tabbedPane.addTab(\"Custom3\", null, panel_5, null);\r\n\r\n\t\tJPanel panel_2 = new JPanel();\r\n\t\ttabbedPane.addTab(\"Connect\", null, panel_2, null);\r\n\t\tpanel_2.setLayout(null);\r\n\r\n\t\tJLabel lblNewLabel_23 = new JLabel(\"Server :\");\r\n\t\tlblNewLabel_23.setBounds(10, 21, 52, 20);\r\n\t\tpanel_2.add(lblNewLabel_23);\r\n\r\n\t\tJLabel lblPort = new JLabel(\"Port :\");\r\n\t\tlblPort.setBounds(195, 21, 43, 20);\r\n\t\tpanel_2.add(lblPort);\r\n\r\n\t\ttextField_Server = new JTextField();\r\n\t\ttextField_Server.setBounds(69, 21, 116, 20);\r\n\t\tpanel_2.add(textField_Server);\r\n\t\ttextField_Server.setColumns(10);\r\n\r\n\t\ttextField_Port = new JTextField();\r\n\t\ttextField_Port.setBounds(233, 21, 58, 20);\r\n\t\tpanel_2.add(textField_Port);\r\n\t\ttextField_Port.setColumns(10);\r\n\r\n\t\teditorPane.setBounds(10, 75, 681, 90);\r\n\t\tpanel_2.add(editorPane);\r\n\r\n\t\tJEditorPane editorPane_1 = new JEditorPane();\r\n\t\teditorPane_1.setBounds(10, 196, 681, 90);\r\n\t\tpanel_2.add(editorPane_1);\r\n\r\n\t\tJLabel lblNewLabel_24 = new JLabel(\"Request :\");\r\n\t\tlblNewLabel_24.setBounds(10, 52, 83, 12);\r\n\t\tpanel_2.add(lblNewLabel_24);\r\n\r\n\t\tJLabel lblResponse = new JLabel(\"Response :\");\r\n\t\tlblResponse.setBounds(10, 173, 73, 12);\r\n\t\tpanel_2.add(lblResponse);\r\n\r\n\t\tJLabel lblNewLabel_25 = new JLabel(\"Response List\");\r\n\t\tlblNewLabel_25.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tlblNewLabel_25.setBounds(10, 311, 104, 20);\r\n\t\tpanel_2.add(lblNewLabel_25);\r\n\r\n\t\tJLabel lblNewLabel_26 = new JLabel(\"Response Code : \");\r\n\t\tlblNewLabel_26.setBounds(286, 345, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_26);\r\n\r\n\t\ttextField_responseCode = new JTextField();\r\n\t\ttextField_responseCode.setBounds(412, 345, 43, 20);\r\n\t\tpanel_2.add(textField_responseCode);\r\n\t\ttextField_responseCode.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_27 = new JLabel(\"Account identification 1 :\");\r\n\t\tlblNewLabel_27.setBounds(273, 528, 148, 14);\r\n\t\tpanel_2.add(lblNewLabel_27);\r\n\r\n\t\ttextField_Acc1 = new JTextField();\r\n\t\ttextField_Acc1.setBounds(431, 525, 203, 20);\r\n\t\tpanel_2.add(textField_Acc1);\r\n\t\ttextField_Acc1.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_28 = new JLabel(\"Unsuccessful\");\r\n\t\tlblNewLabel_28.setFont(new Font(\"Tahoma\", Font.BOLD, 11));\r\n\t\tlblNewLabel_28.setBounds(395, 21, 95, 19);\r\n\t\tpanel_2.add(lblNewLabel_28);\r\n\t\tJEditorPane editorPane_2 = new JEditorPane();\r\n\t\teditorPane_2.setBounds(115, 631, 536, 77);\r\n\t\tpanel_2.add(editorPane_2);\r\n\r\n\t\tJLabel lblNewLabel_42 = new JLabel(\"Additional Data[N] : \");\r\n\t\tlblNewLabel_42.setBounds(274, 475, 147, 14);\r\n\t\tpanel_2.add(lblNewLabel_42);\r\n\r\n\t\tJLabel lblAdditionalDatap = new JLabel(\"Additional Data[P] : \");\r\n\t\tlblAdditionalDatap.setBounds(274, 503, 116, 14);\r\n\t\tpanel_2.add(lblAdditionalDatap);\r\n\r\n\t\tButton button_1 = new Button(\"Connect\");\r\n\t\tbutton_1.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (textField_Server.getText().isEmpty() || textField_Port.getText().isEmpty()) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Server/Port Can't be empty\", \"Fatal Error\");\r\n\t\t\t\t} else if (!isInteger(textField_Port.getText())) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Port is not numeric\", \"Critical error\");\r\n\t\t\t\t} else { /* Everything fine, continue */\r\n\t\t\t\t\tHashMap<String/* Field names */, JTextField/* textFields */> fieldmap = new HashMap<>();\r\n\t\t\t\t\tfieldmap.put(\"PrimaryBitmap\", textField_priBit_res);\r\n\t\t\t\t\tfieldmap.put(\"BitmapExtended\", textField_bt_Ex_res);\r\n\t\t\t\t\tfieldmap.put(\"Pan\", textField_PANRes);\r\n\t\t\t\t\tfieldmap.put(\"Amount\", textField_AmtRes);\r\n\t\t\t\t\tfieldmap.put(\"TranDate\", textField_TranDate_res);\r\n\t\t\t\t\tfieldmap.put(\"SystemTrace\", textField_SysTrace_res);\r\n\t\t\t\t\tfieldmap.put(\"TimeLocal\", textField_TimeLocal_res);\r\n\t\t\t\t\tfieldmap.put(\"LocalTran\", textField_LocalTranRes);\r\n\t\t\t\t\tfieldmap.put(\"DateSettle\", textField_Datesettleres);\r\n\t\t\t\t\tfieldmap.put(\"AuthCode\", textField_auth_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalAm\", textField_AddAm_res);\r\n\t\t\t\t\tfieldmap.put(\"ResponseCode\", textField_responseCode);\r\n\t\t\t\t\tfieldmap.put(\"TerminalId\", textField_Teminal_res);\r\n\t\t\t\t\tfieldmap.put(\"AcquirerID\", textField_Acquirer_res);\r\n\t\t\t\t\tfieldmap.put(\"MerchantType\", textField_merchan_res);\r\n\t\t\t\t\tfieldmap.put(\"RetrievalRef\", textField_retRes);\r\n\t\t\t\t\tfieldmap.put(\"Currency\", textField_Curr_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataNational\", textField_adDataN);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataPriate\", textField_AdDataP);\r\n\t\t\t\t\tfieldmap.put(\"Account1\", textField_Acc1);\r\n\t\t\t\t\tfieldmap.put(\"Account2\", textField_Acc2);\r\n\t\t\t\t\tnew Thread(() -> {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tsocket = new Socket(textField_Server.getText(), Integer.parseInt(textField_Port.getText()));\r\n\t\t\t\t\t\t\tISOSender is = new ISOSender(socket, editorPane.getText(), editorPane_1, lblNewLabel_28,\r\n\t\t\t\t\t\t\t\t\tfieldmap, lblNewLabel_42, lblAdditionalDatap);\r\n\t\t\t\t\t\t\tis.Field48(editorPane_2, textField_ProcessCode, textField_messageCode);\r\n\t\t\t\t\t\t\tis.run();\r\n\r\n\t\t\t\t\t\t\t// ISOResponse ISR = new ISOResponse(socket,Makeiso8583());\r\n\t\t\t\t\t\t\t// ISR.run();\r\n\t\t\t\t\t\t} catch (NumberFormatException | IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\tT2PSwing.infoBox(\"Connection Problem occured \" + e1.toString(), \"Critical error\");\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}).start();\r\n\r\n\t\t\t\t\t// lblNewLabel_28.setText(\"Successful\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbutton_1.setBounds(303, 19, 73, 22);\r\n\t\tbutton_1.setEnabled(false);\r\n\t\tpanel_2.add(button_1);\r\n\r\n\t\tJLabel lblNewLabel_29 = new JLabel(\"Primary BitMap :\");\r\n\t\tlblNewLabel_29.setBounds(10, 342, 104, 20);\r\n\t\tpanel_2.add(lblNewLabel_29);\r\n\r\n\t\ttextField_priBit_res = new JTextField();\r\n\t\ttextField_priBit_res.setBounds(115, 342, 148, 20);\r\n\t\tpanel_2.add(textField_priBit_res);\r\n\t\ttextField_priBit_res.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_30 = new JLabel(\"Bit Map Ex :\");\r\n\t\tlblNewLabel_30.setBounds(10, 373, 73, 14);\r\n\t\tpanel_2.add(lblNewLabel_30);\r\n\r\n\t\ttextField_bt_Ex_res = new JTextField();\r\n\t\ttextField_bt_Ex_res.setBounds(115, 370, 148, 20);\r\n\t\tpanel_2.add(textField_bt_Ex_res);\r\n\t\ttextField_bt_Ex_res.setColumns(10);\r\n\r\n\t\tJLabel lblNewLabel_31 = new JLabel(\"PAN :\");\r\n\t\tlblNewLabel_31.setBounds(10, 398, 52, 14);\r\n\t\tpanel_2.add(lblNewLabel_31);\r\n\r\n\t\ttextField_PANRes = new JTextField();\r\n\t\ttextField_PANRes.setColumns(10);\r\n\t\ttextField_PANRes.setBounds(115, 395, 148, 20);\r\n\t\tpanel_2.add(textField_PANRes);\r\n\r\n\t\tJLabel lblNewLabel_32 = new JLabel(\"Amount :\");\r\n\t\tlblNewLabel_32.setBounds(10, 423, 73, 14);\r\n\t\tpanel_2.add(lblNewLabel_32);\r\n\r\n\t\ttextField_AmtRes = new JTextField();\r\n\t\ttextField_AmtRes.setColumns(10);\r\n\t\ttextField_AmtRes.setBounds(115, 420, 148, 20);\r\n\t\tpanel_2.add(textField_AmtRes);\r\n\r\n\t\tJLabel lblNewLabel_33 = new JLabel(\"Tran Date: \");\r\n\t\tlblNewLabel_33.setBounds(10, 448, 83, 14);\r\n\t\tpanel_2.add(lblNewLabel_33);\r\n\r\n\t\ttextField_TranDate_res = new JTextField();\r\n\t\ttextField_TranDate_res.setColumns(10);\r\n\t\ttextField_TranDate_res.setBounds(115, 447, 148, 20);\r\n\t\tpanel_2.add(textField_TranDate_res);\r\n\r\n\t\tJLabel lblNewLabel_34 = new JLabel(\"System Trace :\");\r\n\t\tlblNewLabel_34.setBounds(10, 478, 95, 14);\r\n\t\tpanel_2.add(lblNewLabel_34);\r\n\r\n\t\ttextField_SysTrace_res = new JTextField();\r\n\t\ttextField_SysTrace_res.setColumns(10);\r\n\t\ttextField_SysTrace_res.setBounds(115, 475, 148, 20);\r\n\t\tpanel_2.add(textField_SysTrace_res);\r\n\r\n\t\tJLabel lblNewLabel_35 = new JLabel(\"Time local :\");\r\n\t\tlblNewLabel_35.setBounds(10, 503, 83, 14);\r\n\t\tpanel_2.add(lblNewLabel_35);\r\n\r\n\t\ttextField_TimeLocal_res = new JTextField();\r\n\t\ttextField_TimeLocal_res.setColumns(10);\r\n\t\ttextField_TimeLocal_res.setBounds(115, 500, 148, 20);\r\n\t\tpanel_2.add(textField_TimeLocal_res);\r\n\r\n\t\tJLabel lblNewLabel_36 = new JLabel(\"Date, Local Tran :\");\r\n\t\tlblNewLabel_36.setBounds(10, 528, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_36);\r\n\r\n\t\ttextField_LocalTranRes = new JTextField();\r\n\t\ttextField_LocalTranRes.setColumns(10);\r\n\t\ttextField_LocalTranRes.setBounds(115, 525, 148, 20);\r\n\t\tpanel_2.add(textField_LocalTranRes);\r\n\r\n\t\tJLabel lblNewLabel_37 = new JLabel(\"Date Settle : \");\r\n\t\tlblNewLabel_37.setBounds(10, 553, 77, 14);\r\n\t\tpanel_2.add(lblNewLabel_37);\r\n\r\n\t\ttextField_Datesettleres = new JTextField();\r\n\t\ttextField_Datesettleres.setColumns(10);\r\n\t\ttextField_Datesettleres.setBounds(115, 550, 148, 20);\r\n\t\tpanel_2.add(textField_Datesettleres);\r\n\r\n\t\tJLabel lblNewLabel_38 = new JLabel(\"Merchant Type :\");\r\n\t\tlblNewLabel_38.setBounds(286, 423, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_38);\r\n\r\n\t\ttextField_merchan_res = new JTextField();\r\n\t\ttextField_merchan_res.setColumns(10);\r\n\t\ttextField_merchan_res.setBounds(411, 420, 148, 20);\r\n\t\tpanel_2.add(textField_merchan_res);\r\n\r\n\t\tJLabel lblNewLabel_39 = new JLabel(\"Acquirer ID :\");\r\n\t\tlblNewLabel_39.setBounds(286, 398, 83, 14);\r\n\t\tpanel_2.add(lblNewLabel_39);\r\n\r\n\t\ttextField_Acquirer_res = new JTextField();\r\n\t\ttextField_Acquirer_res.setColumns(10);\r\n\t\ttextField_Acquirer_res.setBounds(411, 395, 148, 20);\r\n\t\tpanel_2.add(textField_Acquirer_res);\r\n\r\n\t\tJLabel lblNewLabel_40 = new JLabel(\"Auth Identity res :\");\r\n\t\tlblNewLabel_40.setBounds(10, 578, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_40);\r\n\r\n\t\ttextField_auth_res = new JTextField();\r\n\t\ttextField_auth_res.setColumns(10);\r\n\t\ttextField_auth_res.setBounds(115, 575, 148, 20);\r\n\t\tpanel_2.add(textField_auth_res);\r\n\r\n\t\tJLabel lblNewLabel_41 = new JLabel(\"Terminal ID: \");\r\n\t\tlblNewLabel_41.setBounds(286, 373, 90, 14);\r\n\t\tpanel_2.add(lblNewLabel_41);\r\n\r\n\t\ttextField_Teminal_res = new JTextField();\r\n\t\ttextField_Teminal_res.setColumns(10);\r\n\t\ttextField_Teminal_res.setBounds(411, 370, 148, 20);\r\n\t\tpanel_2.add(textField_Teminal_res);\r\n\r\n\t\ttextField_adDataN = new JTextField();\r\n\t\ttextField_adDataN.setColumns(10);\r\n\t\ttextField_adDataN.setBounds(431, 475, 220, 20);\r\n\t\tpanel_2.add(textField_adDataN);\r\n\r\n\t\ttextField_AdDataP = new JTextField();\r\n\t\ttextField_AdDataP.setColumns(10);\r\n\t\ttextField_AdDataP.setBounds(412, 500, 239, 20);\r\n\t\tpanel_2.add(textField_AdDataP);\r\n\r\n\t\tJLabel lblNewLabel_43 = new JLabel(\"Curr Code : \");\r\n\t\tlblNewLabel_43.setBounds(286, 450, 90, 14);\r\n\t\tpanel_2.add(lblNewLabel_43);\r\n\r\n\t\ttextField_Curr_res = new JTextField();\r\n\t\ttextField_Curr_res.setColumns(10);\r\n\t\ttextField_Curr_res.setBounds(412, 447, 66, 20);\r\n\t\tpanel_2.add(textField_Curr_res);\r\n\r\n\t\tJLabel lblAccountIdentification = new JLabel(\"Account identification 2 :\");\r\n\t\tlblAccountIdentification.setBounds(273, 553, 148, 14);\r\n\t\tpanel_2.add(lblAccountIdentification);\r\n\r\n\t\ttextField_Acc2 = new JTextField();\r\n\t\ttextField_Acc2.setColumns(10);\r\n\t\ttextField_Acc2.setBounds(431, 550, 203, 20);\r\n\t\tpanel_2.add(textField_Acc2);\r\n\r\n\t\tJLabel lblNewLabel_44 = new JLabel(\"Field 48 [Mini] :\");\r\n\t\tlblNewLabel_44.setBounds(20, 655, 95, 20);\r\n\t\tpanel_2.add(lblNewLabel_44);\r\n\r\n\t\ttextField_AddAm_res = new JTextField();\r\n\t\ttextField_AddAm_res.setColumns(10);\r\n\t\ttextField_AddAm_res.setBounds(136, 603, 606, 23);\r\n\t\tpanel_2.add(textField_AddAm_res);\r\n\r\n\t\tJLabel lblNewLabel_45 = new JLabel(\"Additional Amounts : \");\r\n\t\tlblNewLabel_45.setBounds(10, 606, 123, 20);\r\n\t\tpanel_2.add(lblNewLabel_45);\r\n\r\n\t\tJLabel lblNewLabel_51 = new JLabel(\"Retrieval Ref :\");\r\n\t\tlblNewLabel_51.setBounds(286, 578, 104, 14);\r\n\t\tpanel_2.add(lblNewLabel_51);\r\n\r\n\t\ttextField_retRes = new JTextField();\r\n\t\ttextField_retRes.setBounds(412, 575, 151, 20);\r\n\t\tpanel_2.add(textField_retRes);\r\n\t\ttextField_retRes.setColumns(10);\r\n\r\n\t\tJButton btnNewButton_2 = new JButton(\"Bulk\");\r\n\t\tbtnNewButton_2.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (!isInteger(textFieldBulknumber.getText())) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Bulk is not numeric\", \"Critical error\");\r\n\t\t\t\t} else {\r\n\t\t\t\t\tif (rbFT.isSelected()) {\r\n\t\t\t\t\t\tinputs = 0;\r\n\t\t\t\t\t\tSystem.out.println(\"FT\" + rbFT.isSelected());\r\n\t\t\t\t\t} else if (rbBI.isSelected()) {\r\n\t\t\t\t\t\tinputs = 1;\r\n\t\t\t\t\t\tSystem.out.println(\"BE\" + rbBI.isSelected());\r\n\t\t\t\t\t} else if (rbMS.isSelected()) {\r\n\t\t\t\t\t\tinputs = 2;\r\n\t\t\t\t\t\tSystem.out.println(\"MS\" + rbMS.isSelected());\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t\tString servername = textField_Server.getText();\r\n\t\t\t\t\tint port = Integer.parseInt(textField_Port.getText());\r\n\t\t\t\t\tint requirednooftransaction = Integer.parseInt(textFieldBulknumber.getText());\r\n\t\t\t\t\tHashMap<String/* Field names */, JTextField/* textFields */> fieldmap = new HashMap<>();\r\n\t\t\t\t\tfieldmap.put(\"PrimaryBitmap\", textField_priBit_res);\r\n\t\t\t\t\tfieldmap.put(\"BitmapExtended\", textField_bt_Ex_res);\r\n\t\t\t\t\tfieldmap.put(\"Pan\", textField_PANRes);\r\n\t\t\t\t\tfieldmap.put(\"Amount\", textField_AmtRes);\r\n\t\t\t\t\tfieldmap.put(\"TranDate\", textField_TranDate_res);\r\n\t\t\t\t\tfieldmap.put(\"SystemTrace\", textField_SysTrace_res);\r\n\t\t\t\t\tfieldmap.put(\"TimeLocal\", textField_TimeLocal_res);\r\n\t\t\t\t\tfieldmap.put(\"LocalTran\", textField_LocalTranRes);\r\n\t\t\t\t\tfieldmap.put(\"DateSettle\", textField_Datesettleres);\r\n\t\t\t\t\tfieldmap.put(\"AuthCode\", textField_auth_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalAm\", textField_AddAm_res);\r\n\t\t\t\t\tfieldmap.put(\"ResponseCode\", textField_responseCode);\r\n\t\t\t\t\tfieldmap.put(\"TerminalId\", textField_Teminal_res);\r\n\t\t\t\t\tfieldmap.put(\"AcquirerID\", textField_Acquirer_res);\r\n\t\t\t\t\tfieldmap.put(\"MerchantType\", textField_merchan_res);\r\n\t\t\t\t\tfieldmap.put(\"RetrievalRef\", textField_retRes);\r\n\t\t\t\t\tfieldmap.put(\"Currency\", textField_Curr_res);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataNational\", textField_adDataN);\r\n\t\t\t\t\tfieldmap.put(\"AdditionalDataPriate\", textField_AdDataP);\r\n\t\t\t\t\tfieldmap.put(\"Account1\", textField_Acc1);\r\n\t\t\t\t\tfieldmap.put(\"Account2\", textField_Acc2);\r\n\t\t\t\t\tnew Thread(() -> {\r\n\t\t\t\t\t\tBulkRequestor br = new BulkRequestor(servername, Makeiso8583Bulk(), port,\r\n\t\t\t\t\t\t\t\trequirednooftransaction, inputs, editorPane_1, lblNewLabel_28, fieldmap, lblNewLabel_42,\r\n\t\t\t\t\t\t\t\tlblAdditionalDatap, editorPane_2, textField_ProcessCode, textField_messageCode);\r\n\t\t\t\t\t\tbr.start();\r\n\t\t\t\t\t}).start();\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_2.setBounds(578, 20, 66, 23);\r\n\t\tpanel_2.add(btnNewButton_2);\r\n\r\n\t\ttextFieldBulknumber = new JTextField();\r\n\t\ttextFieldBulknumber.setBounds(486, 21, 73, 20);\r\n\t\tpanel_2.add(textFieldBulknumber);\r\n\t\ttextFieldBulknumber.setColumns(10);\r\n\r\n\t\trbBI = new JRadioButton(\"BI\");\r\n\t\trbBI.setBounds(455, 47, 58, 23);\r\n\t\tpanel_2.add(rbBI);\r\n\r\n\t\trbFT = new JRadioButton(\"FT\");\r\n\t\trbFT.setBounds(395, 47, 52, 23);\r\n\t\tpanel_2.add(rbFT);\r\n\t\trbMS = new JRadioButton(\"MS\");\r\n\t\trbMS.setBounds(526, 47, 58, 23);\r\n\t\tpanel_2.add(rbMS);\r\n\r\n\t\tButtonGroup buttonGroup = new ButtonGroup();\r\n\t\tbuttonGroup.add(rbFT);\r\n\t\tbuttonGroup.add(rbBI);\r\n\t\tbuttonGroup.add(rbMS);\r\n\r\n\t\tJButton btnNewButton_3 = new JButton(\"BOL\");\r\n\t\tbtnNewButton_3.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t}\r\n\t\t});\r\n\t\tbtnNewButton_3.setBounds(578, 47, 56, 23);\r\n\t\tpanel_2.add(btnNewButton_3);\r\n\r\n\t\t// buttonGroup.add(new JRadioButton('Label2', true));\r\n\r\n\t\tJButton btnNewButton_1 = new JButton(\"Unlock\");\r\n\t\tbtnNewButton_1.addActionListener(new ActionListener() {\r\n\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (textField_2.getPassword().length == 0) {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Enter Password\", \"Empty Error\");\r\n\t\t\t\t} else if (textField_2.getPassword().length > 1) {\r\n\t\t\t\t\tEncryptAndDecryptAndReturn end = new EncryptAndDecryptAndReturn(\r\n\t\t\t\t\t\t\tString.valueOf(textField_2.getPassword()));\r\n\t\t\t\t\tif (end.passwordisCorrect()) {\r\n\t\t\t\t\t\tpasswordmatch = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\tT2PSwing.infoBox(\"Password incorrect, Tries left :\" + (triesleft - 1) + \"\",\r\n\t\t\t\t\t\t\t\t\"Authentication Error\");\r\n\t\t\t\t\t\ttriesleft -= 1;\r\n\t\t\t\t\t\tif (triesleft == 0) {\r\n\t\t\t\t\t\t\tSystem.exit(0);\r\n\t\t\t\t\t\t}\r\n\r\n\t\t\t\t\t}\r\n\t\t\t\t} else {\r\n\t\t\t\t\tT2PSwing.infoBox(\"Error Occured\", \"Fatal Error\");\r\n\t\t\t\t}\r\n\t\t\t\tif (passwordmatch) {\r\n\t\t\t\t\tlblNewLabel_53.setForeground(Color.GREEN);\r\n\t\t\t\t\tlblNewLabel_53.setText(\"Unlocked\");\r\n\t\t\t\t\tbutton.setEnabled(true);\r\n\t\t\t\t\tbtnNewButton.setEnabled(true);\r\n\t\t\t\t\tbutton_1.setEnabled(true);\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t});\r\n\t\tbtnNewButton_1.setBounds(437, 11, 77, 23);\r\n\t\tpanel.add(btnNewButton_1);\r\n\r\n\t}", "public SwingTabbedPaneHandler(JTabbedPane pane)\r\n {\r\n super(pane);\r\n }", "private void $$$setupUI$$$() {\n panel1 = new JPanel();\n panel1.setLayout(new FormLayout(\"fill:d:grow\", \"center:d:grow,top:4dlu:noGrow,center:max(d;4px):noGrow\"));\n final JPanel panel2 = new JPanel();\n panel2.setLayout(new FlowLayout(FlowLayout.RIGHT, 5, 5));\n CellConstraints cc = new CellConstraints();\n panel1.add(panel2, cc.xy(1, 3));\n saveButton = new JButton();\n this.$$$loadButtonText$$$(saveButton, ResourceBundle.getBundle(\"bundles/button\").getString(\"Save\"));\n panel2.add(saveButton);\n tabbedPane = new JTabbedPane();\n panel1.add(tabbedPane, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));\n final JScrollPane scrollPane1 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"countryBorder\"), scrollPane1);\n countryBorderTable = new JTable();\n scrollPane1.setViewportView(countryBorderTable);\n final JScrollPane scrollPane2 = new JScrollPane();\n tabbedPane.addTab(ResourceBundle.getBundle(\"bundles/label\").getString(\"provinceBorder_title\"), scrollPane2);\n provinceBorderTable = new JTable();\n provinceBorderTable.setToolTipText(\"\");\n scrollPane2.setViewportView(provinceBorderTable);\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jPanel2 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jTextField1 = new javax.swing.JTextField();\n jPanel3 = new javax.swing.JPanel();\n jToggleButton1 = new javax.swing.JToggleButton();\n jComboBox1 = new javax.swing.JComboBox();\n jPanel4 = new javax.swing.JPanel();\n jPanel5 = new javax.swing.JPanel();\n jPanel6 = new javax.swing.JPanel();\n jPanel7 = new javax.swing.JPanel();\n jTabbedPane7 = new javax.swing.JTabbedPane();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel8 = new javax.swing.JPanel();\n jPanel9 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n jPanel11 = new javax.swing.JPanel();\n jPanel12 = new javax.swing.JPanel();\n jPanel13 = new javax.swing.JPanel();\n jPanel14 = new javax.swing.JPanel();\n jTabbedPane5 = new javax.swing.JTabbedPane();\n jTabbedPane6 = new javax.swing.JTabbedPane();\n jLabel5 = new javax.swing.JLabel();\n jTabbedPane3 = new javax.swing.JTabbedPane();\n jPanel15 = new javax.swing.JPanel();\n jPanel16 = new javax.swing.JPanel();\n jPanel17 = new javax.swing.JPanel();\n jPanel21 = new javax.swing.JPanel();\n jPanel22 = new javax.swing.JPanel();\n jPanel23 = new javax.swing.JPanel();\n jPanel24 = new javax.swing.JPanel();\n jTabbedPane4 = new javax.swing.JTabbedPane();\n jPanel18 = new javax.swing.JPanel();\n jPanel19 = new javax.swing.JPanel();\n jPanel20 = new javax.swing.JPanel();\n jPanel25 = new javax.swing.JPanel();\n jPanel26 = new javax.swing.JPanel();\n jPanel27 = new javax.swing.JPanel();\n jPanel28 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jTextField2 = new javax.swing.JTextField();\n jButton1 = new javax.swing.JButton();\n jLabel4 = new javax.swing.JLabel();\n jTextField3 = new javax.swing.JTextField();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n jTabbedPane1.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jTabbedPane1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jTabbedPane1StateChanged(evt);\n }\n });\n\n jPanel1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n\n jLabel1.setText(\"jLabel1\");\n\n jTextArea1.setColumns(20);\n jTextArea1.setRows(5);\n jScrollPane1.setViewportView(jTextArea1);\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 .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1))\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(92, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addGap(18, 18, 18)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(110, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"tab1\", jPanel1);\n\n jLabel2.setText(\"jLabel2\");\n\n jTextField1.setText(\"jTextField1\");\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(156, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel2))\n .addContainerGap(220, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"tab2\", jPanel2);\n\n jToggleButton1.setText(\"jToggleButton1\");\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { \"Item 1\", \"Item 2\", \"Item 3\", \"Item 4\" }));\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jToggleButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jComboBox1, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap(161, Short.MAX_VALUE))\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jToggleButton1)\n .addGap(18, 18, 18)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(177, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"tab3\", jPanel3);\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 290, Short.MAX_VALUE)\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 251, Short.MAX_VALUE)\n );\n\n jTabbedPane1.addTab(\"tab4\", jPanel4);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 290, Short.MAX_VALUE)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 251, Short.MAX_VALUE)\n );\n\n jTabbedPane1.addTab(\"tab5\", jPanel5);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 290, Short.MAX_VALUE)\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 251, Short.MAX_VALUE)\n );\n\n jTabbedPane1.addTab(\"tab6\", jPanel6);\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 290, Short.MAX_VALUE)\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 251, Short.MAX_VALUE)\n );\n\n jTabbedPane1.addTab(\"tab7\", jPanel7);\n jTabbedPane1.addTab(\"tab8\", jTabbedPane7);\n\n jTabbedPane1.setSelectedIndex(2);\n\n jTabbedPane2.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));\n jTabbedPane2.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);\n jTabbedPane2.setTabPlacement(javax.swing.JTabbedPane.BOTTOM);\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 288, Short.MAX_VALUE)\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 249, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"tab1\", jPanel8);\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 288, Short.MAX_VALUE)\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 249, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"tab2\", jPanel9);\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 288, Short.MAX_VALUE)\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 249, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"tab3\", jPanel10);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 288, Short.MAX_VALUE)\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 249, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"tab4\", jPanel11);\n\n javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);\n jPanel12.setLayout(jPanel12Layout);\n jPanel12Layout.setHorizontalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 288, Short.MAX_VALUE)\n );\n jPanel12Layout.setVerticalGroup(\n jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 249, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"tab5\", jPanel12);\n\n javax.swing.GroupLayout jPanel13Layout = new javax.swing.GroupLayout(jPanel13);\n jPanel13.setLayout(jPanel13Layout);\n jPanel13Layout.setHorizontalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 288, Short.MAX_VALUE)\n );\n jPanel13Layout.setVerticalGroup(\n jPanel13Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 249, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"tab6\", jPanel13);\n\n javax.swing.GroupLayout jPanel14Layout = new javax.swing.GroupLayout(jPanel14);\n jPanel14.setLayout(jPanel14Layout);\n jPanel14Layout.setHorizontalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 288, Short.MAX_VALUE)\n );\n jPanel14Layout.setVerticalGroup(\n jPanel14Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 249, Short.MAX_VALUE)\n );\n\n jTabbedPane2.addTab(\"tab7\", jPanel14);\n jTabbedPane2.addTab(\"tab8\", jTabbedPane5);\n\n jLabel5.setText(\"jLabel5\");\n jTabbedPane6.addTab(\"tab1\", jLabel5);\n\n jTabbedPane2.addTab(\"tab9\", jTabbedPane6);\n\n jTabbedPane3.setBorder(javax.swing.BorderFactory.createEtchedBorder());\n jTabbedPane3.setTabPlacement(javax.swing.JTabbedPane.LEFT);\n\n javax.swing.GroupLayout jPanel15Layout = new javax.swing.GroupLayout(jPanel15);\n jPanel15.setLayout(jPanel15Layout);\n jPanel15Layout.setHorizontalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 238, Short.MAX_VALUE)\n );\n jPanel15Layout.setVerticalGroup(\n jPanel15Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 196, Short.MAX_VALUE)\n );\n\n jTabbedPane3.addTab(\"tab1\", jPanel15);\n\n javax.swing.GroupLayout jPanel16Layout = new javax.swing.GroupLayout(jPanel16);\n jPanel16.setLayout(jPanel16Layout);\n jPanel16Layout.setHorizontalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 238, Short.MAX_VALUE)\n );\n jPanel16Layout.setVerticalGroup(\n jPanel16Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 196, Short.MAX_VALUE)\n );\n\n jTabbedPane3.addTab(\"tab2\", jPanel16);\n\n javax.swing.GroupLayout jPanel17Layout = new javax.swing.GroupLayout(jPanel17);\n jPanel17.setLayout(jPanel17Layout);\n jPanel17Layout.setHorizontalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 238, Short.MAX_VALUE)\n );\n jPanel17Layout.setVerticalGroup(\n jPanel17Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 196, Short.MAX_VALUE)\n );\n\n jTabbedPane3.addTab(\"tab3\", jPanel17);\n\n javax.swing.GroupLayout jPanel21Layout = new javax.swing.GroupLayout(jPanel21);\n jPanel21.setLayout(jPanel21Layout);\n jPanel21Layout.setHorizontalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 238, Short.MAX_VALUE)\n );\n jPanel21Layout.setVerticalGroup(\n jPanel21Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 196, Short.MAX_VALUE)\n );\n\n jTabbedPane3.addTab(\"tab4\", jPanel21);\n\n javax.swing.GroupLayout jPanel22Layout = new javax.swing.GroupLayout(jPanel22);\n jPanel22.setLayout(jPanel22Layout);\n jPanel22Layout.setHorizontalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 238, Short.MAX_VALUE)\n );\n jPanel22Layout.setVerticalGroup(\n jPanel22Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 196, Short.MAX_VALUE)\n );\n\n jTabbedPane3.addTab(\"tab5\", jPanel22);\n\n javax.swing.GroupLayout jPanel23Layout = new javax.swing.GroupLayout(jPanel23);\n jPanel23.setLayout(jPanel23Layout);\n jPanel23Layout.setHorizontalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 238, Short.MAX_VALUE)\n );\n jPanel23Layout.setVerticalGroup(\n jPanel23Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 196, Short.MAX_VALUE)\n );\n\n jTabbedPane3.addTab(\"tab6\", jPanel23);\n\n javax.swing.GroupLayout jPanel24Layout = new javax.swing.GroupLayout(jPanel24);\n jPanel24.setLayout(jPanel24Layout);\n jPanel24Layout.setHorizontalGroup(\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 238, Short.MAX_VALUE)\n );\n jPanel24Layout.setVerticalGroup(\n jPanel24Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 196, Short.MAX_VALUE)\n );\n\n jTabbedPane3.addTab(\"tab7\", jPanel24);\n\n jTabbedPane4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));\n jTabbedPane4.setTabPlacement(javax.swing.JTabbedPane.RIGHT);\n\n javax.swing.GroupLayout jPanel18Layout = new javax.swing.GroupLayout(jPanel18);\n jPanel18.setLayout(jPanel18Layout);\n jPanel18Layout.setHorizontalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n jPanel18Layout.setVerticalGroup(\n jPanel18Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 198, Short.MAX_VALUE)\n );\n\n jTabbedPane4.addTab(\"tab1\", jPanel18);\n\n javax.swing.GroupLayout jPanel19Layout = new javax.swing.GroupLayout(jPanel19);\n jPanel19.setLayout(jPanel19Layout);\n jPanel19Layout.setHorizontalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n jPanel19Layout.setVerticalGroup(\n jPanel19Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 198, Short.MAX_VALUE)\n );\n\n jTabbedPane4.addTab(\"tab2\", jPanel19);\n\n javax.swing.GroupLayout jPanel20Layout = new javax.swing.GroupLayout(jPanel20);\n jPanel20.setLayout(jPanel20Layout);\n jPanel20Layout.setHorizontalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n jPanel20Layout.setVerticalGroup(\n jPanel20Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 198, Short.MAX_VALUE)\n );\n\n jTabbedPane4.addTab(\"tab3\", jPanel20);\n\n javax.swing.GroupLayout jPanel25Layout = new javax.swing.GroupLayout(jPanel25);\n jPanel25.setLayout(jPanel25Layout);\n jPanel25Layout.setHorizontalGroup(\n jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n jPanel25Layout.setVerticalGroup(\n jPanel25Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 198, Short.MAX_VALUE)\n );\n\n jTabbedPane4.addTab(\"tab4\", jPanel25);\n\n javax.swing.GroupLayout jPanel26Layout = new javax.swing.GroupLayout(jPanel26);\n jPanel26.setLayout(jPanel26Layout);\n jPanel26Layout.setHorizontalGroup(\n jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n jPanel26Layout.setVerticalGroup(\n jPanel26Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 198, Short.MAX_VALUE)\n );\n\n jTabbedPane4.addTab(\"tab5\", jPanel26);\n\n javax.swing.GroupLayout jPanel27Layout = new javax.swing.GroupLayout(jPanel27);\n jPanel27.setLayout(jPanel27Layout);\n jPanel27Layout.setHorizontalGroup(\n jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n jPanel27Layout.setVerticalGroup(\n jPanel27Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 198, Short.MAX_VALUE)\n );\n\n jTabbedPane4.addTab(\"tab6\", jPanel27);\n\n javax.swing.GroupLayout jPanel28Layout = new javax.swing.GroupLayout(jPanel28);\n jPanel28.setLayout(jPanel28Layout);\n jPanel28Layout.setHorizontalGroup(\n jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 240, Short.MAX_VALUE)\n );\n jPanel28Layout.setVerticalGroup(\n jPanel28Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 198, Short.MAX_VALUE)\n );\n\n jTabbedPane4.addTab(\"tab7\", jPanel28);\n\n jLabel3.setText(\"Número:\");\n\n jTextField2.setColumns(5);\n\n jButton1.setText(\"Escolher a aba\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jLabel4.setText(\"Selecionada:\");\n\n jTextField3.setColumns(5);\n jTextField3.setEnabled(false);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTabbedPane2))\n .addGroup(layout.createSequentialGroup()\n .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jTabbedPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 294, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addGap(18, 18, 18)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addComponent(jLabel4)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 126, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap())))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jLabel3))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1)\n .addGap(35, 35, 35)\n .addComponent(jLabel4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(layout.createSequentialGroup()\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jTabbedPane1)\n .addComponent(jTabbedPane2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jTabbedPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 200, javax.swing.GroupLayout.PREFERRED_SIZE))))\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "public void tabSelected();", "private Tab getCoinageTab() {\n /*\n * Creates a new ArrayList for the Fields to be stored in.\n */\n coinageFields = new ArrayList<TextField>();\n /*\n * Creates a new ArrayList for the Labels to be stored in.\n */\n coinageLabels = new ArrayList<Label>();\n \n /*\n * Creates a GridPane to display all Nodes for this Tab.\n */\n GridPane grid = new GridPane();\n grid.setAlignment(Pos.CENTER);\n grid.setHgap(10);\n grid.setVgap(10);\n grid.setPadding(new Insets(10, 10, 10, 10));\n \n /*\n * Adds Columns to the GridPane, so they can be configured.\n */\n for (int i = 0; i <= 5; i++) {\n grid.getColumnConstraints().add(new ColumnConstraints());\n grid.getColumnConstraints().get(i).setHalignment(HPos.CENTER);\n }\n /*\n * Configures the Width for all columns, so they match the wanted design.\n */\n grid.getColumnConstraints().get(0).setMinWidth(60);\n grid.getColumnConstraints().get(1).setMaxWidth(60);\n grid.getColumnConstraints().get(2).setMinWidth(50);\n grid.getColumnConstraints().get(2).setMaxWidth(50);\n grid.getColumnConstraints().get(3).setMinWidth(50);\n grid.getColumnConstraints().get(3).setMaxWidth(50);\n grid.getColumnConstraints().get(4).setMinWidth(70);\n grid.getColumnConstraints().get(4).setMaxWidth(70);\n grid.getColumnConstraints().get(4).setHalignment(HPos.RIGHT);\n grid.getColumnConstraints().get(5).setMinWidth(50);\n grid.getColumnConstraints().get(5).setHalignment(HPos.LEFT);\n \n /*\n * The Content for the Cells with given Content.\n */\n String[] coinageBase = {\"0,01€\", \"0,02€\", \"0,05€\", \"0,10€\", \"0,20€\", \"0,50€\", \"1€\", \"2€\"};\n \n /*\n * Creates the first Row, where basic Information is displayed.\n */\n Label lbChange = new Label(\"Wechselgeld:\");\n grid.add(lbChange, 0, 0);\n \n Label lbRoleau = new Label(\"Lose:\");\n grid.add(lbRoleau, 1, 0);\n \n Label lbAmount = new Label(\"Anzahl:\");\n grid.add(lbAmount, 3, 0);\n \n /*\n * Creates the Area, where the User can enter the amount of each Coinage type,\n */\n for (int i = 0; i <= 7; i++) {\n Label lbCoinageBase = new Label(coinageBase[i]);\n grid.add(lbCoinageBase, 1, i + 1);\n \n TextField tfAmount = new TextField(\"0\");\n tfAmount.setAlignment(Pos.CENTER);\n tfAmount.focusedProperty().addListener(new TextFieldFocusChangedListener(tfAmount, this));\n tfAmount.textProperty().addListener(new TextFieldTextChangedListener(this));\n tfAmount.setTooltip(new Tooltip(\"Geben Sie hier die Anzahl der \\\"\" + coinageBase[i] \n + \"\\\"-Münzen ein.\"));\n grid.add(tfAmount, 3, i + 1);\n coinageFields.add(tfAmount);\n \n Label lbSum = new Label(\"Summe:\");\n grid.add(lbSum, 4, i + 1);\n \n Label lbSumDisplay = new Label(\"0,00€\");\n grid.add(lbSumDisplay, 5, i + 1);\n coinageLabels.add(lbSumDisplay);\n }\n \n /*\n * Creates a new Tab to store the created content in.\n */\n Tab coinageTab = new Tab();\n coinageTab.setText(\"Münzgeld\");\n coinageTab.setContent(grid);\n return coinageTab;\n }", "private JTabbedPane getJTabbedPane() {\r\n if (jTabbedPane == null) {\r\n jTabbedPane = new JTabbedPane();\r\n jTabbedPane.setBackground(new Color(225, 231, 236));\r\n jTabbedPane.setPreferredSize(new Dimension(200, 300));\r\n }\r\n return jTabbedPane;\r\n }", "public void initCon() {\n\t\t\n\t\t//ImageIcon icon = new ImageIcon(this.getClass().getResource(\"lib/data/icon/log.png\"));\n\t\t//txtArea.setLineWrap(true);\n\t\ttxtArea = new JTextArea(16,70);\n\t\t//txtArea.setLineWrap(true);\n\t\tJTabbedPane tPane = new JTabbedPane();\n\t\t\n\t\tJScrollPane scrollPane = new JScrollPane(txtArea); \n\t\t\n\t\t\n\t\tJPanel top = new JPanel();\n\t\tJPanel center = new JPanel();\n\t\t\n\t\tbottom = new JPanel();\n\t\tColor color = UIManager.getColor ( \"Panel.background\" );\n\t\t\n\t\ttop.add( scrollPane );\n\t\ttPane.addTab(\"Console\", top);\n\t\t\n\t\t\n\t\t//set colors\n\t\treadout.setBackground(color);\n\t\ttop.setBackground(color);\n\t\tcenter.setBackground(color);\n\t\tbottom.setBackground(color);\n\t\t//.setOpaque(true);\n\t\t\n\t\tbottom.setLayout(new GridLayout(1,2));\n\t\tbottom.add(readout);\n\t\tcenter.setLayout(new GridLayout(2,1));\n\t\tadd(center, BorderLayout.CENTER);\n\t\tadd(bottom, BorderLayout.SOUTH);\n\t\tadd(tPane, BorderLayout.NORTH);\n\t}", "private void initializeBillingTab() {\r\n\r\n billingTab = new JPanel(new GridBagLayout());\r\n billingTab.setBackground(MainGUI.backgroundColor);\r\n billingTab.setBorder(BorderFactory.createLineBorder(Color.BLACK, 1));\r\n billingTabConstraints = new GridBagConstraints();\r\n\r\n billing_patientBillingLabel = new JLabel(\"Patient Billing\");\r\n billing_instructionLabel = new JLabel(\"First Search patient, then select billing code\");\r\n billing_fullNameLabel = new JLabel(\"Patient Full Name:\");\r\n billing_billCodeLabel = new JLabel(\"Billing Code:\");\r\n billing_policyLabel = new JLabel(\"Policy:\");\r\n billing_amtDueLabel = new JLabel(\"Amount Due:\");\r\n billing_patientBillingLabel.setFont(new java.awt.Font\r\n (billing_patientBillingLabel.getFont().getFontName(), Font.PLAIN, 40));\r\n billing_instructionLabel.setFont(new java.awt.Font\r\n (billing_patientBillingLabel.getFont().getFontName(), Font.PLAIN, 20));\r\n billing_historyLabel = new JLabel(\"Payment & Appointment History:\");\r\n\r\n billing_fullNameField = new JTextField(12);\r\n billing_fullNameField.setEditable(false);\r\n billing_fullNameField.setBackground(Color.white);\r\n billing_ssnField = new JTextField(12);\r\n billing_amtDueField = new JTextField(12);\r\n billing_amtDueField.setEditable(false);\r\n billing_amtDueField.setBackground(Color.white);\r\n billing_policyField = new JTextField(12);\r\n billing_policyField.setEditable(false);\r\n billing_policyField.setBackground(Color.white);\r\n\r\n String[] billingCodeOptions = {\"CHECKUP\", \"PHYSICAL\", \"DIAGNOSTIC\"};\r\n\r\n billing_codeCB = new JComboBox<String>(billingCodeOptions);\r\n\r\n // initialize text area\r\n billing_patientHistoryTextArea = new JTextArea();\r\n billing_patientHistoryTextArea.setEditable(false);\r\n billing_patientHistoryTextArea.setLineWrap(true);\r\n\r\n billing_historyScrollPane = new JScrollPane(billing_patientHistoryTextArea);\r\n billing_historyScrollPane.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\r\n\r\n billing_calculateButton = new JButton(\"Calculate Payment\");\r\n\r\n billing_patientBillingLabel.setForeground(MainGUI.fontColor);\r\n billing_fullNameLabel.setForeground(MainGUI.fontColor);\r\n billing_billCodeLabel.setForeground(MainGUI.fontColor);\r\n billing_policyLabel.setForeground(MainGUI.fontColor);\r\n billing_amtDueLabel.setForeground(MainGUI.fontColor);\r\n billing_historyLabel.setForeground(MainGUI.fontColor);\r\n\r\n billing_calculateButton.setForeground(MainGUI.fontColor);\r\n\r\n // add contents to Billing tab\r\n\r\n // add patient billing label\r\n billingTabConstraints.gridx = 10;\r\n billingTabConstraints.gridy = 10;\r\n billingTabConstraints.gridwidth = 40;\r\n billingTabConstraints.weighty = 0.2;\r\n billingTabConstraints.anchor = GridBagConstraints.NORTH;\r\n billingTabConstraints.insets = new Insets(20, 0, 0, 0);\r\n billingTab.add(billing_patientBillingLabel, billingTabConstraints);\r\n\r\n // add billing instruction label\r\n billingTabConstraints.insets = new Insets(70, 0, 0, 0);\r\n billingTabConstraints.weighty = 0.1;\r\n billingTab.add(billing_instructionLabel, billingTabConstraints);\r\n\r\n // add patient name label\r\n billingTabConstraints.gridy = 20;\r\n billingTabConstraints.weightx = 0.2;\r\n billingTabConstraints.gridwidth = 10;\r\n billingTabConstraints.anchor = GridBagConstraints.EAST;\r\n billingTabConstraints.insets = new Insets(0, 0, 0, 20);\r\n billingTab.add(billing_fullNameLabel, billingTabConstraints);\r\n\r\n // add billing code label\r\n billingTabConstraints.gridy = 30;\r\n billingTab.add(billing_billCodeLabel, billingTabConstraints);\r\n\r\n // add policy label\r\n billingTabConstraints.gridy = 40;\r\n billingTab.add(billing_policyLabel, billingTabConstraints);\r\n\r\n // add name field\r\n billingTabConstraints.gridx = 20;\r\n billingTabConstraints.gridy = 20;\r\n billingTabConstraints.weightx = 0.4;\r\n billingTabConstraints.anchor = GridBagConstraints.WEST;\r\n billingTabConstraints.insets = new Insets(0, 30, 0, 0);\r\n billingTab.add(billing_fullNameField, billingTabConstraints);\r\n\r\n // add billing code combo box\r\n billingTabConstraints.gridy = 30;\r\n billingTab.add(billing_codeCB, billingTabConstraints);\r\n\r\n // add policy textfield\r\n billingTabConstraints.gridy = 40;\r\n billingTab.add(billing_policyField, billingTabConstraints);\r\n\r\n // add amount due label\r\n billingTabConstraints.gridx = 30;\r\n billingTabConstraints.gridy = 30;\r\n billingTabConstraints.weightx = 0.2;\r\n billingTabConstraints.anchor = GridBagConstraints.WEST;\r\n billingTab.add(billing_amtDueLabel, billingTabConstraints);\r\n billingTabConstraints.insets = new Insets(0, 0, 0, 0);\r\n\r\n // add amount due field\r\n billingTabConstraints.gridx = 40;\r\n billingTabConstraints.weightx = 0.5;\r\n billingTabConstraints.insets = new Insets(0, 0, 0, 80);\r\n billingTab.add(billing_amtDueField, billingTabConstraints);\r\n\r\n // add calculate button\r\n billingTabConstraints.gridx = 30;\r\n billingTabConstraints.gridy = 40;\r\n billingTabConstraints.weightx = 0.2;\r\n billingTabConstraints.ipady = 10;\r\n billingTabConstraints.gridwidth = 20;\r\n billingTabConstraints.anchor = GridBagConstraints.WEST;\r\n billingTabConstraints.insets = new Insets(0, 70, 20, 0);\r\n billingTab.add(billing_calculateButton, billingTabConstraints);\r\n\r\n // add patient history label\r\n billingTabConstraints.gridx = 10;\r\n billingTabConstraints.gridy = 50;\r\n billingTabConstraints.ipady = 0;\r\n billingTabConstraints.gridwidth = 10;\r\n billingTabConstraints.insets = new Insets(0, 30, 0, 0);\r\n billingTab.add(billing_historyLabel, billingTabConstraints);\r\n\r\n // add patient history text area (wrapped in scroll pane)\r\n billingTabConstraints.gridx = 10;\r\n billingTabConstraints.gridy = 60;\r\n billingTabConstraints.gridwidth = 40;\r\n billingTabConstraints.gridheight = 20;\r\n billingTabConstraints.fill = GridBagConstraints.BOTH;\r\n billingTabConstraints.insets = new Insets(0, 0, 0, 0);\r\n billingTab.add(billing_historyScrollPane, billingTabConstraints);\r\n\r\n\r\n }", "public Scene createScene() {\n\t\tmyRoot = new AnchorPane();\n\t\tmyTabs = new TabPane();\n\t\tButton newTab = new Button(CREATE_NEW_TAB);\n\t\tnewTab.setOnAction(event -> createNewTab());\n\t\t\n\t\tTabMainScreen mainScreen = new TabMainScreen(myResources.getString(WORKSPACE) + (myTabs.getTabs().size()));\n\t\tTabHelp help1 = new TabHelp(myResources.getString(BASIC_COMMANDS), HELP_TAB_TEXT1);\n\t\tTabHelp help2 = new TabHelp(myResources.getString(EXTENDED_COMMANDS), HELP_TAB_TEXT2);\n\t\t\n\t\tmyTabs.getTabs().addAll(mainScreen.getTab(myStage), help1.getTab(), help2.getTab());\n\t\t\n\t\tAnchorPane.setTopAnchor(myTabs, TABS_OFFSET);\n\t\tAnchorPane.setTopAnchor(newTab, NEWTAB_OFFSET);\n\t\t\n\t\tmyRoot.getChildren().addAll(myTabs, newTab);\n\t\n\t\tmyScene = new Scene(myRoot, windowHeight, windowWidth, Color.WHITE);\n\t\treturn myScene;\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextArea1 = new javax.swing.JTextArea();\n jLabel3 = new javax.swing.JLabel();\n jPanel3 = new javax.swing.JPanel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jLabel4 = new javax.swing.JLabel();\n jPanel5 = new javax.swing.JPanel();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextArea3 = new javax.swing.JTextArea();\n jLabel5 = new javax.swing.JLabel();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextArea4 = new javax.swing.JTextArea();\n jLabel7 = new javax.swing.JLabel();\n jPanel8 = new javax.swing.JPanel();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextArea5 = new javax.swing.JTextArea();\n jLabel6 = new javax.swing.JLabel();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTextArea6 = new javax.swing.JTextArea();\n jLabel8 = new javax.swing.JLabel();\n jPanel7 = new javax.swing.JPanel();\n jLabel9 = new javax.swing.JLabel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jTextArea7 = new javax.swing.JTextArea();\n jScrollPane9 = new javax.swing.JScrollPane();\n jTextArea9 = new javax.swing.JTextArea();\n jLabel10 = new javax.swing.JLabel();\n jPanel4 = new javax.swing.JPanel();\n jBb = new javax.swing.JButton();\n jPanel2 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jLabel22 = new javax.swing.JLabel();\n jLabel23 = new javax.swing.JLabel();\n jLabel24 = new javax.swing.JLabel();\n jPanel11 = new javax.swing.JPanel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());\n\n jTabbedPane1.setBackground(new java.awt.Color(255, 255, 255));\n jTabbedPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(\"\"));\n jTabbedPane1.setForeground(new java.awt.Color(0, 0, 0));\n jTabbedPane1.setTabPlacement(javax.swing.JTabbedPane.LEFT);\n jTabbedPane1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n jTabbedPane1.setFont(new java.awt.Font(\"Ebrima\", 1, 18)); // NOI18N\n\n jPanel1.setBackground(new java.awt.Color(255, 255, 255));\n jPanel1.setForeground(new java.awt.Color(0, 0, 0));\n\n jTextArea1.setEditable(false);\n jTextArea1.setColumns(20);\n jTextArea1.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea1.setRows(5);\n jTextArea1.setText(\"\\tRiau adalah sebuah provinsi di Indonesia yang terletak di bagian tengah pulau Sumatera. Provinsi ini terletak di bagian \\ntengah pantai timur Pulau Sumatera, yaitu di sepanjang pesisir Selat Melaka. Hingga tahun 2004, provinsi ini juga meliputi Kepulauan \\nRiau, sekelompok besar pulau-pulau kecil (pulau-pulau utamanya antara lain Pulau Batam dan Pulau Bintan) yang terletak di sebelah\\ntimur Sumatera dan sebelah selatan Singapura. Kepulauan ini dimekarkan menjadi provinsi tersendiri pada Juli 2004. Ibu kota dan kota \\nterbesar Riau adalah Pekanbaru. Kota besar lainnya antara lain Dumai, Selatpanjang, Bagansiapiapi, Bengkalis, Bangkinang, \\nTembilahan, dan Rengat. \\nLetak geografis provinsi Riau adalah 2ºLU-3º LU dan 100º-109º BT dan berbatasan dengan :\\n- Di sebelah Utara berbatasan dengan Selat Singapura dan Selat Malaka\\n- Di sebelah Selatan dengan Provinsi Jambi dan Selat Berhala\\n- Di sebelah Timur berbatasan dengan Laut Cina Selatan (Provinsi Kepulauan Riau)\\n- Di sebelah Barat berbatasan dengan Provinsi Sumatera Barat dan Provinsi Sumatera Utara\");\n jScrollPane1.setViewportView(jTextArea1);\n\n jLabel3.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Riau/IndonesiaRiau.png\"))); // NOI18N\n jLabel3.setText(\" \");\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 1537, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addGap(353, 353, 353)\n .addComponent(jLabel3)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 384, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(172, 172, 172))\n );\n\n jTabbedPane1.addTab(\"Letak Geografis\", jPanel1);\n\n jTextArea2.setEditable(false);\n jTextArea2.setColumns(20);\n jTextArea2.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea2.setRows(5);\n jTextArea2.setText(\"Rumah Adat Provinsi Riau | Rumah Melayu Selaso\\n\\tRumah adat melayu selaso merupakan rumah adat yang berasa dari provinsi Riau.Ciri khas rumah adat ini adalah memiliki \\nkolong atau yang biasa kita sebut dengan rumah panggung. Terdiri dari beberapa tiang dengan bentuk bangunan persegi panjang. Selain \\nitu rumah adat selaso jatuh kembar mempunyai ukiran melayu seperti lebah bergayut, selembayung, pucuk rebung dan lain-lain.\\n\\tSelaso jatuh kembar sendiri mempunyai makna rumah yang memiliki dua selaso yang artinya lantai rumah lebih rendah dari \\npada ruang tengah.\");\n jScrollPane2.setViewportView(jTextArea2);\n\n jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Riau/Sejarah-Rumah-Adat-Selaso-Jatuh-Kembar-Riau.jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(392, 392, 392)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, 1151, Short.MAX_VALUE)\n .addContainerGap())\n .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 1549, Short.MAX_VALUE)\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(25, 25, 25)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGap(26, 26, 26)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 219, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(227, 227, 227))\n );\n\n jTabbedPane1.addTab(\"Rumah Adat\", jPanel3);\n\n jTextArea3.setEditable(false);\n jTextArea3.setColumns(20);\n jTextArea3.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea3.setRows(5);\n jTextArea3.setText(\"Provinsi Riau - Pakaian Adat Tradisional Melayu.\\n\\tMasyarakat Melayu Riau memiliki 4 jenis baju adat dengan fungsi yang berbeda-beda. Namun demikian, pakaian adat yang \\npaling sering dipakai dan menjadi kebanggaan nasional adalah baju adat Melayu Riau. Selain itu, orang riau membagi baju adatnya untuk \\nbeberapa kegiatan. Baik keseharian, resmi, upacara adat dan perkawinan memiliki ciri khas yang berbeda. Nah, pakaian keseharian juga \\nmasih dibedakan lagi menurut umur pemakaianya; anak-anak,dewasa dan orang tua sangat berbeda. Untuk baju keseharian anak-anak di \\nsana disebut baju monyet.\");\n jScrollPane3.setViewportView(jTextArea3);\n\n jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Riau/pakaian-adat-daerah-Riau.jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 1549, Short.MAX_VALUE)\n .addGroup(jPanel5Layout.createSequentialGroup()\n .addGap(641, 641, 641)\n .addComponent(jLabel5)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addGap(70, 70, 70)\n .addComponent(jLabel5)\n .addGap(86, 86, 86)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 206, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(132, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Pakaian Daerah\", jPanel5);\n\n jTextArea4.setEditable(false);\n jTextArea4.setColumns(20);\n jTextArea4.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea4.setRows(5);\n jTextArea4.setText(\"Pedang Jenawi, Riau\\n\\tRiau mempunyai senjata tradisional yang \\ndisebut dengan pedang Jenawi. Pedang Jenawi di gunakan \\noleh para panglima perang sebagai senjata. Pedang ini \\nmemiliki bentuk lurus panjang dan terdapat tonjolan kecil pada \\nujung pegangannya. Pedang ini mencapai panjang satu meter.\\nSenjata lain bernama kelewang di gunakan prajurit tempo dulu.\\nAda pula badik tumbuk lada dan keris ulu klindit. Badik tumbuk\\nlada berbentuk seperti keris, tetapi agak pendek.\");\n jScrollPane4.setViewportView(jTextArea4);\n\n jLabel7.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Riau/Senjata-Tradisional-Riau.jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(32, 32, 32)\n .addComponent(jLabel7)\n .addGap(26, 26, 26)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 725, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(46, Short.MAX_VALUE))\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(101, 101, 101)\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel7)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addGap(73, 73, 73)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 403, javax.swing.GroupLayout.PREFERRED_SIZE)))\n .addContainerGap(153, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Senjata Tradisional\", jPanel6);\n\n jTextArea5.setEditable(false);\n jTextArea5.setColumns(20);\n jTextArea5.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea5.setRows(5);\n jTextArea5.setText(\"Gulai Belacan Riau\\n\\tGulai Belacan salah satu masakan khas dari Riau, gulai ini dibuat dengan kuah campuran belacan atau terasi. Bahannya \\nbiasanya memakai udang atau ikan.\\n\");\n jScrollPane5.setViewportView(jTextArea5);\n\n jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Riau/makanan-khas-daerah-gulai-belacan-riau.jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 1537, Short.MAX_VALUE)\n .addContainerGap())\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addGap(434, 434, 434)\n .addComponent(jLabel6)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel8Layout.createSequentialGroup()\n .addGap(46, 46, 46)\n .addComponent(jLabel6)\n .addGap(67, 67, 67)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(46, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Makanan Khas\", jPanel8);\n\n jTextArea6.setEditable(false);\n jTextArea6.setColumns(20);\n jTextArea6.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea6.setRows(5);\n jTextArea6.setText(\"Lagu Daerah dari provinsi Sulawesi Tengah :\\n\\n\\t- Tondok Kadadiangku\\t\\n\\t- Tope Gugu\");\n jScrollPane6.setViewportView(jTextArea6);\n\n jLabel8.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Sullteng/Not Angka Pianika Lagu Tondok Kadadingku (Sulawesi Tengah).jpg\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(166, 166, 166)\n .addComponent(jLabel8)\n .addGap(112, 112, 112)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 643, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(164, Short.MAX_VALUE))\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(271, 271, 271)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 202, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addGap(58, 58, 58)\n .addComponent(jLabel8)))\n .addContainerGap(96, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Lagu Daerah\", jPanel9);\n\n jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Riau/persembahan.png\"))); // NOI18N\n\n jTextArea7.setEditable(false);\n jTextArea7.setColumns(20);\n jTextArea7.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea7.setRows(5);\n jTextArea7.setText(\"Tari Persembahan\\nTarian persembahan merupakan tarian tradisional dari Riau yang \\nbiasanya dipentaskan ketika akan menyambut tamu penting \\ndalam beberapa acara tertentu. Tarian ini mengisahkan tentang\\nmasyarakat Melayu provinsi Riau yang selalu bisa menghargai \\ntentang kekerabatan dan juga persahabatan.\");\n jScrollPane7.setViewportView(jTextArea7);\n\n jTextArea9.setEditable(false);\n jTextArea9.setColumns(20);\n jTextArea9.setFont(new java.awt.Font(\"Arial\", 0, 24)); // NOI18N\n jTextArea9.setRows(5);\n jTextArea9.setText(\"Tari Makyong\\nTarian daerah bernama tari makyong merupakan jenis drama tari \\nyang terpengaruh dengan kebudayaan Melayu. Menurut\\n perkiraan, tarian ini sudah ada sejak hampir satu abad yang \\nlalu dan sering dipentaskan di pematang sawah sesudah waktu \\npanen padi. Tarian makyong akan ditampilkan oleh para penari \\ndengan memakai topeng dan diiringi dengan alat musik \\ntradisional seperti rebab, gendang dan juga tetawak.\");\n jScrollPane9.setViewportView(jTextArea9);\n\n jLabel10.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/Riau/makyong.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(111, 111, 111)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel9)\n .addComponent(jLabel10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 500, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 101, Short.MAX_VALUE)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 740, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 740, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(97, 97, 97))\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addGap(67, 67, 67)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel9)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addGap(35, 35, 35)\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)\n .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, 300, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addContainerGap(92, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Tarian Daerah\", jPanel7);\n\n getContentPane().add(jTabbedPane1, new org.netbeans.lib.awtextra.AbsoluteConstraints(-10, 220, 1730, 800));\n\n jPanel4.setBackground(new java.awt.Color(255, 0, 0));\n\n jBb.setBackground(new java.awt.Color(255, 255, 255));\n jBb.setFont(new java.awt.Font(\"Arial Black\", 1, 24)); // NOI18N\n jBb.setForeground(new java.awt.Color(255, 0, 0));\n jBb.setText(\"Kembali\");\n jBb.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jBbMouseClicked(evt);\n }\n });\n jBb.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jBbActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(16, 16, 16)\n .addComponent(jBb)\n .addContainerGap(19, Short.MAX_VALUE))\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addGap(63, 63, 63)\n .addComponent(jBb)\n .addContainerGap(936, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel4, new org.netbeans.lib.awtextra.AbsoluteConstraints(0, 0, 180, 1050));\n\n jPanel2.setBackground(new java.awt.Color(255, 102, 0));\n\n jLabel1.setFont(new java.awt.Font(\"DFPOP1-W9\", 1, 48)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Riau\");\n\n jLabel22.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/icon.png\"))); // NOI18N\n\n jLabel23.setFont(new java.awt.Font(\"Ebrima\", 1, 24)); // NOI18N\n jLabel23.setForeground(new java.awt.Color(255, 0, 0));\n jLabel23.setText(\"Nusantara\");\n\n jLabel24.setFont(new java.awt.Font(\"Ebrima\", 1, 24)); // NOI18N\n jLabel24.setForeground(new java.awt.Color(255, 255, 255));\n jLabel24.setText(\"Budaya\");\n\n jPanel11.setBackground(new java.awt.Color(255, 0, 0));\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 263, Short.MAX_VALUE)\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGap(0, 8, Short.MAX_VALUE)\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(27, 27, 27)\n .addComponent(jLabel1))\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(21, 21, 21)\n .addComponent(jLabel24)\n .addGap(16, 16, 16)\n .addComponent(jLabel23))\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jLabel22)\n .addGap(0, 1095, Short.MAX_VALUE))\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGap(18, 18, 18)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 160, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jLabel24)\n .addComponent(jLabel23))))\n .addContainerGap(52, Short.MAX_VALUE))\n );\n\n getContentPane().add(jPanel2, new org.netbeans.lib.awtextra.AbsoluteConstraints(178, 0, 1540, 230));\n\n pack();\n }", "public void applyTab();", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jTabbedPane1 = new javax.swing.JTabbedPane();\n jPanel1 = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n jScrollPane2 = new javax.swing.JScrollPane();\n jTextPane1 = new javax.swing.JTextPane();\n jLabel2 = new javax.swing.JLabel();\n jTabbedPane2 = new javax.swing.JTabbedPane();\n jPanel4 = new javax.swing.JPanel();\n jScrollPane39 = new javax.swing.JScrollPane();\n jTextPane38 = new javax.swing.JTextPane();\n jScrollPane40 = new javax.swing.JScrollPane();\n jTextPane39 = new javax.swing.JTextPane();\n jPanel5 = new javax.swing.JPanel();\n jScrollPane1 = new javax.swing.JScrollPane();\n jTextPane2 = new javax.swing.JTextPane();\n jScrollPane3 = new javax.swing.JScrollPane();\n jTextPane3 = new javax.swing.JTextPane();\n jPanel6 = new javax.swing.JPanel();\n jScrollPane4 = new javax.swing.JScrollPane();\n jTextPane4 = new javax.swing.JTextPane();\n jScrollPane5 = new javax.swing.JScrollPane();\n jTextPane5 = new javax.swing.JTextPane();\n jPanel7 = new javax.swing.JPanel();\n jScrollPane7 = new javax.swing.JScrollPane();\n jTextPane7 = new javax.swing.JTextPane();\n jScrollPane6 = new javax.swing.JScrollPane();\n jTextPane6 = new javax.swing.JTextPane();\n jPanel8 = new javax.swing.JPanel();\n jScrollPane9 = new javax.swing.JScrollPane();\n jTextPane9 = new javax.swing.JTextPane();\n jScrollPane8 = new javax.swing.JScrollPane();\n jTextPane8 = new javax.swing.JTextPane();\n jPanel9 = new javax.swing.JPanel();\n jScrollPane11 = new javax.swing.JScrollPane();\n jTextPane11 = new javax.swing.JTextPane();\n jScrollPane10 = new javax.swing.JScrollPane();\n jTextPane10 = new javax.swing.JTextPane();\n jPanel2 = new javax.swing.JPanel();\n jPanel10 = new javax.swing.JPanel();\n jButton9 = new javax.swing.JButton();\n jCheckBox1 = new javax.swing.JCheckBox();\n jCheckBox2 = new javax.swing.JCheckBox();\n jCheckBox3 = new javax.swing.JCheckBox();\n jCheckBox4 = new javax.swing.JCheckBox();\n jTextField1 = new javax.swing.JTextField();\n jTextField2 = new javax.swing.JTextField();\n jTextField3 = new javax.swing.JTextField();\n jTextField4 = new javax.swing.JTextField();\n jTextField5 = new javax.swing.JTextField();\n jButton2 = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jComboBox1 = new javax.swing.JComboBox<>();\n jPanel11 = new javax.swing.JPanel();\n jScrollPane13 = new javax.swing.JScrollPane();\n jTextArea2 = new javax.swing.JTextArea();\n jPanel3 = new javax.swing.JPanel();\n jLabel3 = new javax.swing.JLabel();\n jLabel4 = new javax.swing.JLabel();\n jLabel5 = new javax.swing.JLabel();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n setTitle(\"Характеристика якості програмного забезпечення\");\n setResizable(false);\n\n jTabbedPane1.setAutoscrolls(true);\n\n jPanel1.setBackground(new java.awt.Color(229, 229, 229));\n jPanel1.setAutoscrolls(true);\n\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Характеристика якості програмного забезпечення\");\n\n jTextPane1.setEditable(false);\n jTextPane1.setText(\"Стандарт ISO/IEC 9126 регламентує зовнішні і внутрішні характеристики якості. Перші відображають вимоги до функціонування програмного продукту. Для кількісного встановлення критеріїв якості, за якими буде здійснюватися перевірка і підтвердження відповідності ПЗ заданим вимогам, визначаються відповідні зовнішні вимірювані властивості (зовнішні атрибути) ПЗ, метрики (наприклад, час виконання окремих компонентів), діапазони зміни значень і моделі їх оцінки. Метрики використовуються на стадії тестування або функціонування і називаються зовнішніми метриками. Вони являють собою моделі оцінки атрибутів.\\n\\nВнутрішні характеристики якості і внутрішні атрибути ПЗ використовуються для складання плану досягнення необхідних зовнішніх характеристик якості продукту. Для квантифікації внутрішніх характеристик якості застосовують внутрішні метрики, як інструмент перевірки відповідності проміжних продуктів внутрішнім вимогам до якості, які формулюються на процесах, що передують тестуванню.\\n\\nЗовнішні і внутрішні характеристики якості відображають властивості самого ПЗ (працюючого або не працюючого), а також погляд замовника і розробника на таке ПЗ. Безпосереднього кінцевого користувача ПЗ цікавить експлуатаційна якість ПЗ – сукупний ефект від досягнення характеристик якості, що виміряється строком результату, а не властивістю самого ПЗ. Це поняття ширше, ніж будь-яка окрема характеристика (наприклад, зручність використання або надійність).\");\n jTextPane1.setToolTipText(\"\");\n jScrollPane2.setViewportView(jTextPane1);\n\n jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel2.setText(\"Ознаки якості програмного забезпечення\");\n\n jTextPane38.setEditable(false);\n jTextPane38.setText(\"Функціональність (functionality). Здатність ПЗ в певних умовах вирішувати задачі, потрібні користувачам. Визначає, що саме робить ПЗ, які задачі воно вирішує.\");\n jTextPane38.setToolTipText(\"\");\n jScrollPane39.setViewportView(jTextPane38);\n\n jTextPane39.setEditable(false);\n jTextPane39.setText(\"Функціональна придатність (suitability). Здатність вирішувати потрібний набір задач.\\nТочність (accuracy). Здатність видавати потрібні результати.\\nЗдатність до взаємодії (interoperability). Здатність взаємодіяти з потрібним набором інших систем.\\nВідповідність стандартам і правилам (compliance). Відповідність ПЗ наявним індустріальним стандартам, нормативним і законодавчим актам, іншим регулюючим нормам.\\nЗахищеність (security). Здатність запобігати неавторизованому, тобто без вказівки особи, що намагається його здійснити, і недозволеному доступу до даних і програм.\");\n jTextPane39.setToolTipText(\"\");\n jScrollPane40.setViewportView(jTextPane39);\n\n javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);\n jPanel4.setLayout(jPanel4Layout);\n jPanel4Layout.setHorizontalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane39, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE)\n .addComponent(jScrollPane40, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel4Layout.setVerticalGroup(\n jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel4Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane39, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane40, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane2.addTab(\"Функціональність\", jPanel4);\n\n jTextPane2.setEditable(false);\n jTextPane2.setText(\"Надійність (reliability). Здатність ПЗ підтримувати визначену працездатність у заданих умовах.\");\n jScrollPane1.setViewportView(jTextPane2);\n\n jTextPane3.setEditable(false);\n jTextPane3.setText(\"Зрілість, завершеність (maturity). Величина, зворотна частоті відмов ПЗ. Звичайно виміряється середнім часом роботи без збоїв і величиною, зворотною імовірності виникнення відмови за даний період часу.\\nСтійкість до відмов (fault tolerance). Здатність підтримувати заданий рівень працездатності при відмовах і порушеннях правил взаємодії з середовищем.\\nЗдатність до відновлення (recoverability). Здатність відновлювати визначений рівень працездатності та цілісність даних після відмови, необхідні для цього час і ресурси.\\nВідповідність стандартам надійності (reliability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane3.setViewportView(jTextPane3);\n\n javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);\n jPanel5.setLayout(jPanel5Layout);\n jPanel5Layout.setHorizontalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 804, Short.MAX_VALUE)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n );\n jPanel5Layout.setVerticalGroup(\n jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel5Layout.createSequentialGroup()\n .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 166, Short.MAX_VALUE))\n );\n\n jTabbedPane2.addTab(\"Надійність\", jPanel5);\n\n jTextPane4.setEditable(false);\n jTextPane4.setText(\"Зручність використання (usability) або практичність. Здатність ПЗ бути зручним у навчанні та використанні, а також привабливим для користувачів.\");\n jScrollPane4.setViewportView(jTextPane4);\n\n jTextPane5.setEditable(false);\n jTextPane5.setText(\"Зрозумілість (understandability). Показник, зворотний до зусиль, які затрачаються користувачами на сприйняття основних понять ПЗ та усвідомлення їх застосовності для розв'язання своїх задач.\\nЗручність навчання (learnability). Показник, зворотний зусиллям, затрачуваним користувачами на навчання роботі з ПЗ.\\nЗручність роботи (operability). Показник, зворотний зусиллям, що вживається користувачами для розв'язання своїх задач за допомогою ПЗ.\\nПривабливість (attractiveness). Здатність ПЗ бути привабливим для користувачів. Цей атрибут доданий в 2001 році.\\nВідповідність стандартам зручності використання (usability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane5.setViewportView(jTextPane5);\n\n javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);\n jPanel6.setLayout(jPanel6Layout);\n jPanel6Layout.setHorizontalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel6Layout.setVerticalGroup(\n jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel6Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 134, Short.MAX_VALUE)\n .addGap(10, 10, 10))\n );\n\n jTabbedPane2.addTab(\"Зручність використання (usability) або практичність\", jPanel6);\n\n jPanel7.setBackground(new java.awt.Color(229, 229, 229));\n\n jTextPane7.setEditable(false);\n jTextPane7.setText(\"Продуктивність (efficiency) або ефективність. Здатність ПЗ при заданих умовах забезпечувати необхідну працездатність стосовно виділюваного для цього ресурсам. Можна визначити її і як відношення одержуваних за допомогою ПЗ результатів до затрачуваних на це ресурсів усіх типів.\");\n jScrollPane7.setViewportView(jTextPane7);\n\n jTextPane6.setEditable(false);\n jTextPane6.setText(\"Часова ефективність (time behaviour). Здатність ПЗ видавати очікувані результати, а також забезпечувати передачу необхідного об'єму даних за відведений час.\\nЕфективність використання ресурсів (resource utilisation). Здатність вирішувати потрібні задачі з використанням визначених об'ємів ресурсів визначених видів. Маються на увазі такі ресурси, як оперативна й довгострокова пам'ять, мережні з'єднання, пристрої вводу та виводу та ін.\\nВідповідність стандартам продуктивності (efficiency compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane6.setViewportView(jTextPane6);\n\n javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);\n jPanel7.setLayout(jPanel7Layout);\n jPanel7Layout.setHorizontalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel7Layout.setVerticalGroup(\n jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel7Layout.createSequentialGroup()\n .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane6, javax.swing.GroupLayout.DEFAULT_SIZE, 128, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jTabbedPane2.addTab(\"Продуктивність (efficiency) або ефективність\", jPanel7);\n\n jTextPane9.setEditable(false);\n jTextPane9.setText(\"Зручність супроводу (maintainability). Зручність проведення всіх видів діяльності, пов'язаних із супроводом програм.\");\n jScrollPane9.setViewportView(jTextPane9);\n\n jTextPane8.setEditable(false);\n jTextPane8.setText(\"Аналізованість (analyzability) або зручність проведення аналізу. Зучність проведення аналізу помилок, дефектів і недоліків, а також зручність аналізу необхідності змін і їх можливих наслідків.\\nЗручність внесення змін (changeability). Показник, зворотний трудозатратам на виконання необхідних змін.\\nСтабільність (stability). Показник, зворотний ризику виникнення несподіваних ефектів при внесенні необхідних змін.\\nЗручність перевірки (testability). Показник, зворотний трудозатратам на проведення тестування і інших видів перевірки того, що внесені зміни привели до потрібних результатів.\\nВідповідність стандартам зручності супроводу (maintainability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane8.setViewportView(jTextPane8);\n\n javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);\n jPanel8.setLayout(jPanel8Layout);\n jPanel8Layout.setHorizontalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane9, javax.swing.GroupLayout.DEFAULT_SIZE, 792, Short.MAX_VALUE)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel8Layout.setVerticalGroup(\n jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel8Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane8, javax.swing.GroupLayout.DEFAULT_SIZE, 150, Short.MAX_VALUE)\n .addGap(10, 10, 10))\n );\n\n jTabbedPane2.addTab(\"Зручність супроводу\", jPanel8);\n\n jTextPane11.setEditable(false);\n jTextPane11.setText(\"Переносимість (portability). Здатність ПЗ зберігати працездатність при перенесенні з одного оточення в інше, включаючи організаційні, апаратні й програмні аспекти оточення.\");\n jScrollPane11.setViewportView(jTextPane11);\n\n jTextPane10.setEditable(false);\n jTextPane10.setText(\"Адаптованість (adaptability). Здатність ПЗ пристосовуватися різним оточенням без проведення для цього дій, крім заздалегідь передбачених.\\nЗручність установки (installability). Здатність ПЗ бути встановленим або розгорнутим у визначеному оточенні.\\nЗдатність до співіснування (coexistence). Здатність ПЗ співіснувати з іншими програмами у загальному оточенні, ділячи з ними ресурси.\\nЗручність заміни (replaceability) іншого ПЗ даним. Можливість застосування даного ПЗ замість інших програмних систем для вирішення тих же задач у певному оточенні.\\nВідповідність стандартам переносимості (portability compliance). Цей атрибут доданий в 2001 році.\");\n jScrollPane10.setViewportView(jTextPane10);\n\n javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);\n jPanel9.setLayout(jPanel9Layout);\n jPanel9Layout.setHorizontalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jScrollPane10, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel9Layout.setVerticalGroup(\n jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel9Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jScrollPane10, javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jTabbedPane2.addTab(\"Переносимість\", jPanel9);\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 .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jTabbedPane2, javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 0, Short.MAX_VALUE)\n .addComponent(jLabel2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel1Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jLabel1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 122, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTabbedPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 244, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Теоритичні відомості\", jPanel1);\n\n jButton9.setText(\"Далі\");\n jButton9.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseReleased(java.awt.event.MouseEvent evt) {\n jButton9MouseReleased(evt);\n }\n });\n jButton9.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton9ActionPerformed(evt);\n }\n });\n\n jCheckBox1.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox1StateChanged(evt);\n }\n });\n jCheckBox1.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox1MouseClicked(evt);\n }\n });\n\n jCheckBox2.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox2StateChanged(evt);\n }\n });\n jCheckBox2.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox2MouseClicked(evt);\n }\n });\n\n jCheckBox3.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox3StateChanged(evt);\n }\n });\n jCheckBox3.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox3MouseClicked(evt);\n }\n });\n\n jCheckBox4.addChangeListener(new javax.swing.event.ChangeListener() {\n public void stateChanged(javax.swing.event.ChangeEvent evt) {\n jCheckBox4StateChanged(evt);\n }\n });\n jCheckBox4.addMouseListener(new java.awt.event.MouseAdapter() {\n public void mouseClicked(java.awt.event.MouseEvent evt) {\n jCheckBox4MouseClicked(evt);\n }\n });\n\n jTextField1.setEditable(false);\n jTextField1.setBackground(new java.awt.Color(238, 238, 238));\n jTextField1.setFont(new java.awt.Font(\"Lucida Grande\", 0, 18)); // NOI18N\n jTextField1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField1ActionPerformed(evt);\n }\n });\n\n jTextField2.setEditable(false);\n jTextField2.setBackground(new java.awt.Color(238, 238, 238));\n\n jTextField3.setEditable(false);\n jTextField3.setBackground(new java.awt.Color(238, 238, 238));\n\n jTextField4.setEditable(false);\n jTextField4.setBackground(new java.awt.Color(238, 238, 238));\n jTextField4.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jTextField4ActionPerformed(evt);\n }\n });\n\n jTextField5.setEditable(false);\n jTextField5.setBackground(new java.awt.Color(238, 238, 238));\n\n javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);\n jPanel10.setLayout(jPanel10Layout);\n jPanel10Layout.setHorizontalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jButton9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jTextField1)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox4)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField5, javax.swing.GroupLayout.DEFAULT_SIZE, 785, Short.MAX_VALUE))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox1)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField2))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox2)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField3))\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jCheckBox3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jTextField4)))\n .addContainerGap())\n );\n jPanel10Layout.setVerticalGroup(\n jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel10Layout.createSequentialGroup()\n .addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox1)\n .addComponent(jTextField2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox2)\n .addComponent(jTextField3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jCheckBox3)\n .addComponent(jTextField4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jCheckBox4)\n .addComponent(jTextField5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\n .addComponent(jButton9)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n jButton2.setText(\"Завершити тестування\");\n jButton2.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton2ActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Почати тестування\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n jComboBox1.setModel(new javax.swing.DefaultComboBoxModel<>(new String[] { \"Функціональність\", \"Надійність\", \"Зручність використання\", \"Продуктивність\", \"Зручність супроводу\", \"Переносимість\" }));\n\n jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, \"Результати\", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.TOP));\n\n jTextArea2.setEditable(false);\n jTextArea2.setBackground(new java.awt.Color(238, 238, 238));\n jTextArea2.setColumns(20);\n jTextArea2.setRows(5);\n jTextArea2.setBorder(null);\n jScrollPane13.setViewportView(jTextArea2);\n\n javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);\n jPanel11.setLayout(jPanel11Layout);\n jPanel11Layout.setHorizontalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jScrollPane13)\n .addContainerGap())\n );\n jPanel11Layout.setVerticalGroup(\n jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel11Layout.createSequentialGroup()\n .addComponent(jScrollPane13, javax.swing.GroupLayout.DEFAULT_SIZE, 142, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);\n jPanel2.setLayout(jPanel2Layout);\n jPanel2Layout.setHorizontalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addComponent(jComboBox1, 0, 457, Short.MAX_VALUE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jButton2))))\n .addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel2Layout.setVerticalGroup(\n jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel2Layout.createSequentialGroup()\n .addContainerGap()\n .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\n .addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addComponent(jButton1)\n .addComponent(jButton2))\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jPanel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addContainerGap())\n );\n\n jTabbedPane1.addTab(\"Тести\", jPanel2);\n\n jLabel3.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel3.setText(\"Розробник: Станіслав Баранюк\");\n\n jLabel4.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel4.setText(\"УЖГОРОД 2018\");\n\n jLabel5.setFont(new java.awt.Font(\"Lucida Grande\", 1, 24)); // NOI18N\n jLabel5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel5.setText(\"v 0.1\");\n\n javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);\n jPanel3.setLayout(jPanel3Layout);\n jPanel3Layout.setHorizontalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()\n .addGap(6, 6, 6)\n .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)\n .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jLabel3, javax.swing.GroupLayout.DEFAULT_SIZE, 825, Short.MAX_VALUE))\n .addContainerGap())\n );\n jPanel3Layout.setVerticalGroup(\n jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(jPanel3Layout.createSequentialGroup()\n .addGap(158, 158, 158)\n .addComponent(jLabel3)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel5)\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\n .addComponent(jLabel4)\n .addContainerGap(163, Short.MAX_VALUE))\n );\n\n jTabbedPane1.addTab(\"Про програму\", jPanel3);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()\n .addContainerGap(16, Short.MAX_VALUE)\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 858, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(15, 15, 15))\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addContainerGap()\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 469, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void initTab()\n {\n \n }", "@Override\n public void start(Stage primaryStage) {\n \n tabPane = new TabPane();\n tree = new OwnTreeView(tabPane, new OwnTreeItem());\n tabs = new OwnTabs(tree,tabPane);\n areas = new OwnTextAreas(tree,tabPane);\n projects = new Projects();\n file = new OwnFile(areas,tabs,tree,projects);\n areas.setTabs(tabs);\n tabs.setAreas(areas);\n tree.setAreas(areas);\n tree.setTabs(tabs);\n\n //Creo un array de separadores de menuitems\n for (int i = 0; i < separate.length; i++) {\n separate[i] = new SeparatorMenuItem();\n }\n\n Point3D punto = new Point3D(0, 0, 1);\n\n //Panel que contiene todos los demás contenidos\n root = new BorderPane();\n root.autosize();\n root.setMaxHeight(BorderPane.USE_COMPUTED_SIZE);\n root.setMaxWidth(BorderPane.USE_COMPUTED_SIZE);\n root.setMinHeight(BorderPane.USE_COMPUTED_SIZE);\n root.setMinWidth(BorderPane.USE_COMPUTED_SIZE);\n root.setPrefHeight(BorderPane.USE_COMPUTED_SIZE);\n root.setPrefWidth(BorderPane.USE_COMPUTED_SIZE);\n root.setScaleX(1);\n root.setScaleY(1);\n root.setScaleZ(1);\n root.setRotationAxis(punto);\n\n //Barra principal con las pestañas de los menús\n bar = new MenuBar();\n bar.autosize();\n bar.setMaxHeight(MenuBar.USE_COMPUTED_SIZE);\n bar.setMaxWidth(MenuBar.USE_COMPUTED_SIZE);\n bar.setMinHeight(24);\n bar.setMinWidth(MenuBar.USE_COMPUTED_SIZE);\n bar.setPrefHeight(22);\n bar.setPrefWidth(1024);\n bar.setScaleX(1);\n bar.setScaleY(1);\n bar.setScaleZ(1);\n bar.setRotationAxis(punto);\n\n //Menús\n menuFile = new Menu(\"Archivo\");\n\n //MenuItems del menú \"Archivo\"\n open = new MenuItem(\"Abrir Ctrl+O\");\n open.getStyleClass().add(\"menuitem\");\n /**\n * Abre un archivo en un nuevo tab que crea y escribe el texto de dicho\n * archivo en el area correspondiente al tab seleccionado, que es el tab\n * creado. ATAJO : CTRL+0\n */\n open.setOnAction(_openFile = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n\n file.open();\n }\n });\n \n /*\n * Abre un proyecto seleccionado,con todas sus subcarpetas\n * y archivos llamando a la función abrirProyecto(explicada mas abajo)\n */\n openProject = new MenuItem(\"Abrir proyecto\");\n openProject.getStyleClass().add(\"menuitem\");\n openProject.setOnAction(_projectOpen = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n file.openProject();\n }\n });\n /**\n * Guarda un archivo, en el caso de que el archivo haya sido abierto y\n * ya existiese, se guardará en la dirección que le corresponda, en el\n * caso de que no existiese se llamará a la función guardarComo\n * guardandose en la dirección que se le indique. ATAJO : CTRL + S\n */\n save = new MenuItem(\"Guardar Ctrl+S\");\n save.getStyleClass().add(\"menuitem\");\n save.setOnAction(_saveFile = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n file.save();\n }\n });\n\n /**\n * Guarda un archivo en una dirección determinada, ya estuviese o no\n * creado el archivo, al realizar el guardado con otro nombre\n * actualizara el nombre del tab y el nombre que aparezca en el\n * TreeView.\n */\n saveAs = new MenuItem(\"Guardar Como...\");\n saveAs.getStyleClass().add(\"menuitem\");\n saveAs.setOnAction(_asSave = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n file.saveAs();\n }\n });\n\n /**\n * Cierra el programa JavEditor\n */\n close = new MenuItem(\"Cerrar\");\n close.getStyleClass().add(\"menuitem\");\n close.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n System.exit(0);\n }\n });\n\n /**\n * Abre una nueva pestaña para crear un nuevo archivo. ATAJO : CTRL+N\n */\n newTab = new MenuItem(\"Nuevo Archivo Ctrl+N\");\n newTab.getStyleClass().add(\"menuitem\");\n newTab.setOnAction(_tabNew = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n tabs.newTab(_isForOpen);\n }\n });\n \n\n /*\n * Cierra el tab que se encuentra seleccionado. Buscamos el tab seleccionado, y cuando lo encontramos\n * borramos del TreeView el nombre del archivo correspondiente con actualizarArbol, y eliminamos\n * la posición creada para la dirección del archivo, el area y el tab de las listas tabs y areas, \n * a parte de eliminarlo del tabPane ya que al ser un atajo no se realiza por defecto. ATAJO : CTRL+A\n */\n closeFile = new MenuItem(\"Cerrar Archivo Ctrl+T\");\n closeFile.getStyleClass().add(\"menuitem\");\n closeFile.setOnAction(_fileClose = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n String s;\n boolean noestab = false;\n OwnTextArea a = areas.seleccionarArea();\n if(areas.isModificated(a)){\n int n = JOptionPane.showConfirmDialog(null, \"Do you want save the file?\");\n if(n==JOptionPane.CANCEL_OPTION){\n return;\n }else if(n==JOptionPane.YES_OPTION){\n _asSave.handle(null);\n }\n }\n for(int i=0;i<tabs.size();i++){\n if(!tabs.get(i).isSelected()){\n continue;\n }else{\n tree.getItems().getChildren().remove(tabs.get(i).getTreeItem());\n tabPane.getTabs().remove(tabs.get(i));\n areas.remove(a);\n tabs.remove(tabs.get(i));\n break;\n }\n }\n }\n });\n\n /*\n * Cierra todos los tabs abiertos del programa, recorre todos los tabs del tabPane y los va eleminando\n * de la lista uno por uno, ademas, se borran las correspondientes direcciones de archivos guardadas y\n * las areas creadas para los tabs.Además se van borrando los nombres del TreeView\n */\n closeAll = new MenuItem(\"Cerrar Todo Ctrl+Q\");\n closeAll.getStyleClass().add(\"menuitem\");\n closeAll.setOnAction(_allClose = new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n int longitudTabPane = tabPane.getTabs().size();\n for (int i = 0; i < longitudTabPane; i++) {\n OwnTextArea a = areas.seleccionarArea();\n if(areas.isModificated(a)){\n int n = JOptionPane.showConfirmDialog(null, \"Do you want save the file?\");\n if(n==JOptionPane.CANCEL_OPTION){\n return;\n }else if(n==JOptionPane.YES_OPTION){\n _asSave.handle(null);\n }\n }\n if (tree.getItems().getChildren().size() > 0) {\n tree.getItems().getChildren().remove(0);\n }\n tabPane.getTabs().remove(0);\n }\n for (int i = 0; i < tabs.size(); i++) {\n tabs.remove(0);\n areas.remove(0);\n }\n }\n });\n menuFile.getItems().addAll(newTab, separate[0], open, openProject, save, saveAs, separate[1], closeFile, closeAll, separate[2], close);\n menuFile.getStyleClass().add(\"menu\");\n menuEdit = new Menu(\"Edición\");\n\n //Submenús de \"Edición\"\n undo = new MenuItem(\"Deshacer Ctrl+Z\");\n /*\n * Deshace la acción previa hecha\n */\n undo.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n OwnTextArea a = areas.seleccionarArea();\n a.undo();\n }\n });\n\n selectAll = new MenuItem(\"Seleccionar Todo Ctrl+A\");\n\n /*\n * Selecciona todo el texto del area del tab en el que se encuentra en el momento\n */\n selectAll.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n OwnTextArea a = areas.seleccionarArea();\n a.selectAll();\n }\n });\n\n deselect = new MenuItem(\"Deseleccionar\");\n /*\n * Deselecciona lo seleccionado previamente\n */\n deselect.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n OwnTextArea a = areas.seleccionarArea();\n a.deselect();\n }\n });\n\n cut = new MenuItem(\"Cortar Ctrl+X\");\n /*\n * Corta lo seleccionado, elimina de la pantalla lo seleccionado, almacenandolo en la variable seleccion\n * para su posible posterior pegado\n */\n cut.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n OwnTextArea a = areas.seleccionarArea();\n a.cut();\n }\n });\n\n copy = new MenuItem(\"Copiar Ctrl+C\");\n /**\n * Copia lo seleccionado, almacena dicha selección en la variable\n * seleccion para su posible posterior pegado\n */\n copy.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n OwnTextArea a = areas.seleccionarArea();\n a.copy();\n }\n });\n\n paste = new MenuItem(\"Pegar Ctrl+V\");\n /*\n * Añade al texto del area del tab seleccionado lo que se encuentra en la variable selección.\n */\n paste.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n OwnTextArea a = areas.seleccionarArea();\n a.paste(); \n }\n });\n\n delete = new MenuItem(\"Eliminar\");\n /*\n * Elimina lo seleccionado, a diferencia de cortar, este no guarda el texto en ninguna variable.\n */\n delete.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n OwnTextArea a = areas.seleccionarArea();\n a.delete();\n }\n });\n\n menuEdit.getItems().addAll(undo, separate[3], copy, cut, paste, delete, separate[4], selectAll,deselect);\n menuHelp = new Menu(\"Ayuda\");\n\n //Submenús de \"Ayuda\"\n about = new MenuItem(\"Sobre JavEditor\");\n\n /*\n * Abre una nueva ventana donde se da información de JavEditor\n */\n about.setOnAction(new EventHandler<ActionEvent>() {\n @Override\n public void handle(ActionEvent t) {\n Stage stage = new Stage();\n About sobre = new About();\n sobre.start(stage);\n }\n });\n\n menuHelp.getItems().addAll(about);\n menuPreferences = new Menu(\"Preferencias\");\n\n //SubMenús de \"Preferencias\"\n font = new MenuItem(\"Fuente\");\n menuPreferences.getItems().addAll(font);\n bar.getMenus().addAll(menuFile, menuEdit, menuPreferences, menuHelp);\n\n //TabPane\n \n tabPane.getStyleClass().add(\"tabpane\");\n tabPane.autosize();\n tabPane.setLayoutX(0);\n tabPane.setLayoutY(24);\n tabPane.setTabClosingPolicy(TabPane.TabClosingPolicy.ALL_TABS);\n tabPane.setMinHeight(TabPane.USE_COMPUTED_SIZE);\n tabPane.setMinWidth(TabPane.USE_COMPUTED_SIZE);\n tabPane.setPrefHeight(378);\n tabPane.setPrefWidth(600);\n tabPane.setScaleX(1);\n tabPane.setScaleY(1);\n tabPane.setScaleZ(1);\n tabPane.setRotationAxis(punto);\n tabPane.setPrefWidth(1024);\n\n //TreeView\n \n tree.createChilds();\n tree.setPrefHeight(20);\n tree.getStyleClass().add(\"tree-view\");\n \n \n //Si una tecla es pulsada se almacena el codigo en la lista codigoTeclas y si hay mas de 1\n //se realiza la comprobacion de las teclas pulsadas.\n root.setOnKeyPressed(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n keyCodes.add(event.getCode());\n if (keyCodes.size() > 1) {\n comprobarTeclas();\n }\n }\n });\n //Si alguna tecla se suelta deja de ser pulsada se elimina de la lista\n root.setOnKeyReleased(new EventHandler<KeyEvent>() {\n @Override\n public void handle(KeyEvent event) {\n keyCodes.remove(event.getCode());\n }\n });\n\n //El panel de tabs y la barra de herramientas se añaden al panel root\n root.setLeft(tree);\n root.setTop(bar);\n root.setCenter(tabPane);\n \n \n Scene scene = new Scene(root);\n scene.getStylesheets().add(\"/JavEditor/JavEditor.css\");\n Image imagen = new Image(\"JavEditor/Images/Icono.gif\", 10, 10, false, false);\n primaryStage.getIcons().add(imagen);\n primaryStage.setTitle(\"JavEditor\");\n primaryStage.setScene(scene);\n primaryStage.show();\n }", "private void buildBalanceSheetPane() // buildBalanceSheetPane method start\n\t{\n\t\t// creating object\n\t\tBSOutput = new JTextArea();\n\t\t\n\t\t// object settings\n\t\tBSOutput.setText(log.balanceSheet());\n\t\tBSOutput.setEditable(false);\n\t\tBSOutput.setFont(font);\n\t\tBSOutput.setRows(20);\n\t\t\n\t\t// adding object and scroll bar to panel\n\t\tbalanceSheetPane.add(BSOutput);\n\t\tbalanceSheetPane.add(new JScrollPane(BSOutput));\n\t}", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n jSplitPaneMain = new javax.swing.JSplitPane();\n jSplitPaneTrees = new javax.swing.JSplitPane();\n jTabbedPaneViews = new FactoryTabs();\n jTabbedPaneCollectors = new FactoryTabs();\n jPanel1 = new javax.swing.JPanel();\n jLabel2 = new javax.swing.JLabel();\n jMenuBar1 = new javax.swing.JMenuBar();\n jMenuTools = new javax.swing.JMenu();\n jMenuItemSearchIPAddress = new javax.swing.JMenuItem();\n jMenuItemSearchPort = new javax.swing.JMenuItem();\n jMenuItemSearchSubnet = new javax.swing.JMenuItem();\n jMenuItemCreateReport = new javax.swing.JMenuItem();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);\n\n jSplitPaneMain.setDividerLocation(250);\n\n jSplitPaneTrees.setDividerLocation(250);\n jSplitPaneTrees.setOrientation(javax.swing.JSplitPane.VERTICAL_SPLIT);\n jSplitPaneTrees.setTopComponent(jTabbedPaneViews);\n jSplitPaneTrees.setRightComponent(jTabbedPaneCollectors);\n\n jSplitPaneMain.setLeftComponent(jSplitPaneTrees);\n\n jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource(\"/views/images/sniffer.png\"))); // NOI18N\n\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\n jPanel1.setLayout(jPanel1Layout);\n jPanel1Layout.setHorizontalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(251, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n jPanel1Layout.setVerticalGroup(\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()\n .addContainerGap(422, Short.MAX_VALUE)\n .addComponent(jLabel2)\n .addContainerGap())\n );\n\n jSplitPaneMain.setRightComponent(jPanel1);\n\n jMenuTools.setText(\"Tools\");\n\n jMenuItemSearchIPAddress.setText(\"search ip address\");\n jMenuTools.add(jMenuItemSearchIPAddress);\n\n jMenuItemSearchPort.setText(\"search port\");\n jMenuTools.add(jMenuItemSearchPort);\n\n jMenuItemSearchSubnet.setText(\"search subnet\");\n jMenuTools.add(jMenuItemSearchSubnet);\n\n jMenuItemCreateReport.setText(\"create report\");\n jMenuTools.add(jMenuItemCreateReport);\n\n jMenuBar1.add(jMenuTools);\n\n setJMenuBar(jMenuBar1);\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPaneMain, javax.swing.GroupLayout.DEFAULT_SIZE, 761, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jSplitPaneMain)\n );\n\n pack();\n }", "public MultiWidgetPropertyWidget() {\r\n // tabbedPane.setBorder(BorderFactory.createEmptyBorder(3, 5, 5, 4));\r\n //tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);\r\n createNestedWidgets();\r\n }", "private void showTab() {\n if (parentTab != null) {\n tab = parentTab.getTab(this);\n if (tab != null) {\n // FIXME: this should be added by the constructor or by the panel that adds this\n // tab\n // tab.getComponent().addStyleName(\"example-queries-tab\");\n tab.setEnabled(true);\n\n if (!(parentTab.getSelectedTab() instanceof ResultViewPanel)) {\n parentTab.setSelectedTab(tab);\n }\n }\n }\n\n }", "private void initComponents() {\r\n\r\n jTabbedPane1 = new javax.swing.JTabbedPane();\r\n Algo1 = new javax.swing.JPanel();\r\n scrollPane1 = new java.awt.ScrollPane();\r\n jScrollPane1 = new javax.swing.JScrollPane();\r\n Algo1TextArea = new javax.swing.JTextArea();\r\n Algo2 = new javax.swing.JPanel();\r\n scrollPane2 = new java.awt.ScrollPane();\r\n jScrollPane3 = new javax.swing.JScrollPane();\r\n Algo2TextArea = new javax.swing.JTextArea();\r\n jPanel1 = new javax.swing.JPanel();\r\n scrollPane3 = new java.awt.ScrollPane();\r\n jScrollPane4 = new javax.swing.JScrollPane();\r\n Algo3TextArea = new javax.swing.JTextArea();\r\n jLabel4 = new javax.swing.JLabel();\r\n Algo1Time = new javax.swing.JLabel();\r\n Algo2Time = new javax.swing.JLabel();\r\n Algo3Time = new javax.swing.JLabel();\r\n Algo1TimeLabel = new javax.swing.JLabel();\r\n Algo2TimeLabel = new javax.swing.JLabel();\r\n Algo3TimeLabel = new javax.swing.JLabel();\r\n jLabel5 = new javax.swing.JLabel();\r\n OutputsAreSame = new javax.swing.JLabel();\r\n\r\n setPreferredSize(new java.awt.Dimension(800, 600));\r\n\r\n Algo1TextArea.setColumns(20);\r\n Algo1TextArea.setRows(5);\r\n jScrollPane1.setViewportView(Algo1TextArea);\r\n\r\n scrollPane1.add(jScrollPane1);\r\n\r\n javax.swing.GroupLayout Algo1Layout = new javax.swing.GroupLayout(Algo1);\r\n Algo1.setLayout(Algo1Layout);\r\n Algo1Layout.setHorizontalGroup(\r\n Algo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(Algo1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(scrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 553, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n Algo1Layout.setVerticalGroup(\r\n Algo1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(Algo1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(scrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 519, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jTabbedPane1.addTab(\"Dynamic Programming\", Algo1);\r\n\r\n Algo2TextArea.setColumns(20);\r\n Algo2TextArea.setRows(5);\r\n jScrollPane3.setViewportView(Algo2TextArea);\r\n\r\n scrollPane2.add(jScrollPane3);\r\n\r\n javax.swing.GroupLayout Algo2Layout = new javax.swing.GroupLayout(Algo2);\r\n Algo2.setLayout(Algo2Layout);\r\n Algo2Layout.setHorizontalGroup(\r\n Algo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(Algo2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(scrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 553, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n Algo2Layout.setVerticalGroup(\r\n Algo2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(Algo2Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(scrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 519, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jTabbedPane1.addTab(\"Brute Force\", Algo2);\r\n\r\n Algo3TextArea.setColumns(20);\r\n Algo3TextArea.setRows(5);\r\n jScrollPane4.setViewportView(Algo3TextArea);\r\n\r\n scrollPane3.add(jScrollPane4);\r\n\r\n javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);\r\n jPanel1.setLayout(jPanel1Layout);\r\n jPanel1Layout.setHorizontalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(scrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 553, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n jPanel1Layout.setVerticalGroup(\r\n jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(jPanel1Layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addComponent(scrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 519, Short.MAX_VALUE)\r\n .addContainerGap())\r\n );\r\n\r\n jTabbedPane1.addTab(\"Recursion\", jPanel1);\r\n\r\n jLabel4.setText(\"<html>\\n<b>\\nTime Taken:\\n</b>\\n</html>\");\r\n\r\n Algo1Time.setText(\"Dynamic : \");\r\n\r\n Algo2Time.setText(\"Brute:\");\r\n\r\n Algo3Time.setText(\"Recursion:\");\r\n\r\n Algo1TimeLabel.setText(\"...\");\r\n\r\n Algo2TimeLabel.setText(\"...\");\r\n\r\n Algo3TimeLabel.setText(\"...\");\r\n\r\n OutputsAreSame.setText(\"Outputs Same?\");\r\n\r\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\r\n getContentPane().setLayout(layout);\r\n layout.setHorizontalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addContainerGap()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(Algo1Time)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(Algo1TimeLabel))\r\n .addGroup(layout.createSequentialGroup()\r\n .addComponent(jLabel5)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(OutputsAreSame))\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\r\n .addComponent(Algo2Time)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\r\n .addComponent(Algo2TimeLabel))\r\n .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()\r\n .addComponent(Algo3Time)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)\r\n .addComponent(Algo3TimeLabel))))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 111, Short.MAX_VALUE)\r\n .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 578, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addContainerGap())\r\n );\r\n layout.setVerticalGroup(\r\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(29, 29, 29)\r\n .addComponent(jTabbedPane1))\r\n .addGroup(layout.createSequentialGroup()\r\n .addGap(157, 157, 157)\r\n .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(Algo1Time)\r\n .addComponent(Algo1TimeLabel))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(Algo2Time)\r\n .addComponent(Algo2TimeLabel))\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)\r\n .addComponent(Algo3Time)\r\n .addComponent(Algo3TimeLabel))\r\n .addGap(18, 18, 18)\r\n .addComponent(OutputsAreSame)\r\n .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)\r\n .addComponent(jLabel5)\r\n .addGap(0, 0, Short.MAX_VALUE)))\r\n .addContainerGap())\r\n );\r\n\r\n pack();\r\n }", "public TestGeneratorGui(boolean create, JFrame frame, JTabbedPane tabbedPane) {\n\t\tthis.create = create;\n\t\ttutorControlFrame = frame;\n\t\ttutorControl = tabbedPane;\n\t}", "private void initialize() {\r\n\t\tString titulo = \"\";\r\n\t\tif(getOp()==0){\r\n\t\t\ttitulo = \"Novo cadastro\";\r\n\t\t}else{\r\n\t\t\ttitulo = \"Venda\";\r\n\t\t}\r\n\t\tthis.setTitle(titulo);\r\n\t\tthis.setResizable(false);\r\n\r\n\t\tabaPrincipal = new JTabbedPane();\r\n\t\tabaDados = new JPanel();\r\n\t\tabaComissao = new JPanel();\r\n\r\n\t\t//--Dados da empresa representada\r\n\t\tJLabel lblRepresentada = new JLabel(\"Representada\");\r\n\t\tJLabel lblCnpjRepresentada = new JLabel(\"CNPJ\");\r\n\t\ttxtCnpjRepresentada = new JFormattedTextField(setMascara(\"##.###.###/####-##\"));\r\n\t\tJLabel lblNmRepresentada = new JLabel(\"Nome da empresa\");\r\n\t\tcmbNmRepresentada = new JComboBox(getRepresentadas());\r\n\t\ttxtNmRepresentada = new JTextField(\"\",56);\r\n\t\tcmbNmRepresentada.setPreferredSize(new Dimension(450, 20));\r\n\r\n\t\t//--Dados da empresa cliente\r\n\t\tJLabel lblCliente = new JLabel(\"Comprador\");\r\n\t\tJLabel lblCnpjCliente = new JLabel(\"CNPJ\");\r\n\t\ttxtCnpjCliente = new JFormattedTextField(setMascara(\"##.###.###/####-##\"));\r\n\t\tJLabel lblNmCliente = new JLabel(\"Nome da empresa\");\r\n\t\tcmbNmCliente = new JComboBox(getClientes());\r\n\t\ttxtNmCliente = new JTextField(\"\",40);\r\n\t\tcmbNmCliente.setPreferredSize(new Dimension(450, 20));\r\n\r\n\t\t//--Dados da empresa representada para guia comissao\r\n\t\tJLabel lblRepresentada2 = new JLabel(\"Representada\");\r\n\t\tJLabel lblCnpjRepresentada2 = new JLabel(\"CNPJ\");\r\n\t\ttxtCnpjRepresentada2 = new JFormattedTextField(setMascara(\"##.###.###/####-##\"));\r\n\t\tJLabel lblNmRepresentada2 = new JLabel(\"Nome da empresa\");\r\n\t\tcmbNmRepresentada2 = new JComboBox(getRepresentadas());\r\n\t\ttxtNmRepresentada2 = new JTextField(\"\",56);\r\n\t\tcmbNmRepresentada2.setPreferredSize(new Dimension(450, 20));\r\n\r\n\t\t//--Dados da empresa cliente para guia comissao\r\n\t\tJLabel lblCliente2 = new JLabel(\"Comprador\");\r\n\t\tJLabel lblCnpjCliente2 = new JLabel(\"CNPJ\");\r\n\t\ttxtCnpjCliente2 = new JFormattedTextField(setMascara(\"##.###.###/####-##\"));\r\n\t\tJLabel lblNmCliente2 = new JLabel(\"Nome da empresa\");\r\n\t\tcmbNmCliente2 = new JComboBox(getClientes());\r\n\t\ttxtNmCliente2 = new JTextField(\"\",40);\r\n\t\tcmbNmCliente2.setPreferredSize(new Dimension(450, 20));\r\n\r\n\t\t//--Dados da venda\r\n\t\tJLabel lblVenda = new JLabel(\"Venda realizada\");\r\n\t\tJLabel lblNtFiscal = new JLabel(\"Nota fiscal\");\r\n\t\ttxtNtFiscal = new JTextField(\"\",10);\r\n\t\tJLabel lblNtPedido = new JLabel(\"Pedido\");\r\n\t\ttxtNtPedido = new JTextField(\"\",10);\r\n\t\tJLabel lblDtVenda = new JLabel(\"Data da venda\");\r\n\t\ttxtDtVenda = new JFormattedTextField(setMascara(\"##/##/####\"));\r\n\t\tJLabel lblNmProduto = new JLabel(\"Produto\");\r\n\t\ttxtNmProduto = new JFormattedTextField(setMascara(\"*********************************************\"));\r\n\t\tJLabel lblVlProduto = new JLabel(\"Valor do produto\");\r\n\t\t//txtVlProduto = new JTextField(moneyFormat.format(DEFAULT_AMOUNT), 10);\r\n\t\ttxtVlProduto = new JTextField();\r\n\t\tJLabel lblMedida = new JLabel(\"Unidade de medida\");\r\n\t\tcmbMedida = new JComboBox(getUnidades());\r\n\t\tJLabel lblQtProduto = new JLabel(\"Quantidade\");\r\n\t\ttxtQtProduto = new JFormattedTextField(setMascara(\"######\"));\r\n\t\tJLabel lblVlAcrescido = new JLabel(\"Valor à acrescentar\");\r\n\t\ttxtVlAcrescido = new JTextField();\r\n\t\tJLabel lblVlFinal = new JLabel(\"Valor final da venda\");\r\n\t\ttxtVlFinal = new JTextField(\"\",10);\r\n\t\tJLabel lblDtEntrega = new JLabel(\"Data da entrega\");\r\n\t\ttxtDtEntrega = new JFormattedTextField(setMascara(\"##/##/####\"));\r\n\r\n\t\t//--Dados da venda para a guia comissão\r\n\t\tJLabel lblVenda2 = new JLabel(\"Venda realizada\");\r\n\t\tJLabel lblNtFiscal2 = new JLabel(\"Nota fiscal\");\r\n\t\ttxtNtFiscal2 = new JFormattedTextField(setMascara(\"********************\"));\r\n\t\tJLabel lblDtVenda2 = new JLabel(\"Data da venda\");\r\n\t\ttxtDtVenda2 = new JFormattedTextField(setMascara(\"##/##/####\"));\r\n\t\tJLabel lblVlFinal2 = new JLabel(\"Valor final da venda\");\r\n\t\ttxtVlFinal2 = new JFormattedTextField(setMascara(\"********************\"));\r\n\t\tJLabel lblDtEntrega2 = new JLabel(\"Data da entrega\");\r\n\t\ttxtDtEntrega2 = new JFormattedTextField(setMascara(\"##/##/####\"));\r\n\r\n\t\t//--Dados do vendedor\r\n\t\tJLabel lblVendedor = new JLabel(\"Vendedor\");\r\n\t\tJLabel lblMatricula = new JLabel(\"Matrícula\");\r\n\t\ttxtVendedor = new JTextField(\"\",10);\r\n\t\tJLabel lblNmVendedor = new JLabel(\"Nome do vendedor\");\r\n\t\tcmbVendedores = new JComboBox(getVendedores());\r\n\t\ttxtNmVendedor = new JTextField(\"\",40);\r\n\t\tcmbVendedores.setPreferredSize(new Dimension(450, 20));\r\n\t\tchkComissionado = new JCheckBox(\"Comissionado\");\r\n\r\n\t\t//--Dados do vendedor para aguia comissão\r\n\t\tJLabel lblVendedor2 = new JLabel(\"Vendedor\");\r\n\t\tJLabel lblMatricula2 = new JLabel(\"Matrícula\");\r\n\t\ttxtVendedor2 = new JTextField(\"\",10);\r\n\t\tJLabel lblNmVendedor2 = new JLabel(\"Nome do vendedor\");\r\n\t\tcmbVendedores2 = new JComboBox(getVendedores());\r\n\t\ttxtNmVendedor2 = new JTextField(\"\",40);\r\n\t\tcmbVendedores2.setPreferredSize(new Dimension(450, 20));\r\n\r\n\t\tJLabel lblObs = new JLabel(\"Observações\");\r\n\t\ttxtObs = new JTextArea();\r\n\t\tJScrollPane jspTxtObs = new JScrollPane(txtObs);\r\n\t\tjspTxtObs.setPreferredSize(new Dimension(40, 100));\r\n\r\n\t\t//--Guia comissão\r\n\t\tJLabel lblComissao = new JLabel(\"Comissão\");\r\n\t\ttxtComissao = new JTextField();\r\n\r\n\t\tbtnConfirmarComissao = new JButton(\"Confirmar\");\r\n\r\n\t\tlblDivisao = new JLabel(\"___________________________________________________________________________________________________________________\");\r\n\t\tbtnRelatorio = new JButton(\"Relatório\");\r\n\t\tbtnConfirmar = new JButton(\"Confirmar\");\r\n\t\tbtnCancelar = new JButton(\"Cancelar\");\r\n\r\n\t\tBox linhaUm = Box.createHorizontalBox();\r\n\t\tBox linhaDois = Box.createHorizontalBox();\r\n\t\tBox linhaTres = Box.createHorizontalBox();\r\n\t\tBox linhaQuatro = Box.createHorizontalBox();\r\n\t\tBox linhaCinco = Box.createHorizontalBox();\r\n\t\tBox linhaSeis = Box.createHorizontalBox();\r\n\t\tBox linhaSete = Box.createHorizontalBox();\r\n\t\tBox linhaOito = Box.createHorizontalBox();\r\n\t\tBox linhaNove = Box.createHorizontalBox();\r\n\t\tBox linhaDez = Box.createHorizontalBox();\r\n\t\tBox linhaOnze = Box.createHorizontalBox();\r\n\r\n\t\tBox linhaDoze = Box.createHorizontalBox();\r\n\t\tBox linhaTreze = Box.createHorizontalBox();\r\n\r\n\t\tlinhaUm.add(lblCliente);\r\n\t\tlinhaDois.add(lblCnpjCliente);\r\n\t\tlinhaDois.add(txtCnpjCliente);\r\n\t\tlinhaDois.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaDois.add(lblNmCliente);\r\n\r\n\t\tlinhaTres.add(lblRepresentada);\r\n\t\tlinhaQuatro.add(lblCnpjRepresentada);\r\n\t\tlinhaQuatro.add(txtCnpjRepresentada);\r\n\t\tlinhaQuatro.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaQuatro.add(lblNmRepresentada);\r\n\r\n\r\n\t\tlinhaCinco.add(lblVenda);\r\n\t\tlinhaSeis.add(lblNtPedido);\r\n\t\tlinhaSeis.add(txtNtPedido);\r\n\t\tlinhaSeis.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaSeis.add(lblNtFiscal);\r\n\t\tlinhaSeis.add(txtNtFiscal);\r\n\t\tlinhaSeis.add(Box.createHorizontalStrut(5));\t\t\r\n\t\tlinhaSeis.add(lblDtVenda);\r\n\t\tlinhaSeis.add(txtDtVenda);\r\n\t\tlinhaSeis.add(Box.createHorizontalStrut(5));\t\r\n\t\tlinhaSeis.add(lblDtEntrega);\r\n\t\tlinhaSeis.add(txtDtEntrega);\t\r\n\t\tlinhaSete.add(lblNmProduto);\r\n\t\tlinhaSete.add(txtNmProduto);\r\n\t\tlinhaOito.add(lblVlProduto);\r\n\t\tlinhaOito.add(txtVlProduto);\r\n\t\tlinhaOito.add(Box.createHorizontalStrut(5));\t\r\n\t\tlinhaOito.add(lblMedida);\r\n\t\tlinhaOito.add(cmbMedida);\r\n\t\tlinhaOito.add(Box.createHorizontalStrut(5));\t\r\n\t\tlinhaOito.add(lblQtProduto);\r\n\t\tlinhaOito.add(txtQtProduto);\r\n\t\tlinhaOito.add(Box.createHorizontalStrut(5));\t\r\n\t\tlinhaOito.add(lblVlAcrescido);\r\n\t\tlinhaOito.add(txtVlAcrescido);\r\n\t\tlinhaNove.add(lblVlFinal);\r\n\t\tlinhaNove.add(txtVlFinal);\r\n\t\tlinhaNove.add(Box.createHorizontalStrut(5));\t\r\n\t\tlinhaNove.add(chkComissionado);\r\n\t\tlinhaDez.add(lblObs);\r\n\t\tlinhaOnze.add(jspTxtObs);\r\n\r\n\t\tBox linhaA = Box.createHorizontalBox();\r\n\t\tBox linhaB = Box.createHorizontalBox();\r\n\t\tBox linhaC = Box.createHorizontalBox();\r\n\t\tBox linhaD = Box.createHorizontalBox();\r\n\r\n\t\tBox linhaG = Box.createHorizontalBox();\r\n\t\tBox linhaH = Box.createHorizontalBox();\r\n\t\tBox linhaI = Box.createHorizontalBox();\r\n\t\tBox linhaJ = Box.createHorizontalBox();\r\n\t\tBox linhaL = Box.createHorizontalBox();\r\n\t\tBox linhaM = Box.createHorizontalBox();\r\n\t\tBox linhaN = Box.createHorizontalBox();\r\n\t\tBox linhaO = Box.createHorizontalBox();\r\n\t\tBox linhaP = Box.createHorizontalBox();\r\n\r\n\t\tlinhaA.add(lblVendedor);\r\n\t\tlinhaB.add(lblMatricula);\r\n\t\tlinhaB.add(txtVendedor);\r\n\t\tlinhaB.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaB.add(lblNmVendedor);\r\n\r\n\t\tlinhaL.add(lblVendedor2);\r\n\t\tlinhaM.add(lblMatricula2);\r\n\t\tlinhaM.add(txtVendedor2);\r\n\t\tlinhaM.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaM.add(lblNmVendedor2);\r\n\r\n\r\n\t\tlinhaN.add(lblNtFiscal2);\r\n\t\tlinhaN.add(txtNtFiscal2);\r\n\t\tlinhaN.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaN.add(lblDtVenda2);\r\n\t\tlinhaN.add(txtDtVenda2);\r\n\t\tlinhaN.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaN.add(lblDtEntrega2);\r\n\t\tlinhaN.add(txtDtEntrega2);\r\n\r\n\t\tlinhaO.add(lblVlFinal2);\r\n\t\tlinhaO.add(txtVlFinal2);\r\n\t\tlinhaO.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaO.add(lblComissao);\r\n\t\tlinhaO.add(txtComissao);\r\n\t\tlinhaO.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaO.add(btnConfirmarComissao);\t\r\n\r\n\t\tlinhaP.add(lblVenda2);\r\n\r\n\t\tlinhaG.add(lblCliente2);\r\n\t\tlinhaH.add(lblCnpjCliente2);\r\n\t\tlinhaH.add(txtCnpjCliente2);\r\n\t\tlinhaH.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaH.add(lblNmCliente2);\r\n\r\n\t\tlinhaI.add(lblRepresentada2);\r\n\t\tlinhaJ.add(lblCnpjRepresentada2);\r\n\t\tlinhaJ.add(txtCnpjRepresentada2);\r\n\t\tlinhaJ.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaJ.add(lblNmRepresentada2);\r\n\r\n\t\tBox comissao = Box.createVerticalBox();\r\n\r\n\t\tif(getOp()==0){\r\n\t\t\tlinhaDois.add(cmbNmCliente);\r\n\t\t\tlinhaQuatro.add(cmbNmRepresentada);\r\n\t\t\tlinhaB.add(cmbVendedores);\r\n\t\t\tlinhaM.add(cmbVendedores2);\r\n\t\t\tlinhaH.add(cmbNmCliente2);\r\n\t\t\tlinhaJ.add(cmbNmRepresentada2);\r\n\t\t}else{\r\n\t\t\tlinhaDois.add(txtNmCliente);\r\n\t\t\tlinhaQuatro.add(txtNmRepresentada);\r\n\t\t\tlinhaB.add(txtNmVendedor);\r\n\t\t\tlinhaM.add(txtNmVendedor2);\r\n\t\t\tlinhaH.add(txtNmCliente2);\r\n\t\t\tlinhaJ.add(txtNmRepresentada2);\r\n\t\t}\r\n\r\n\t\tcomissao.add(linhaG);\r\n\t\tcomissao.add(Box.createVerticalStrut(5));\t\t\r\n\t\tcomissao.add(linhaH);\r\n\t\tcomissao.add(Box.createVerticalStrut(20));\r\n\t\tcomissao.add(linhaI);\r\n\t\tcomissao.add(Box.createVerticalStrut(5));\r\n\t\tcomissao.add(linhaJ);\r\n\t\tcomissao.add(Box.createVerticalStrut(20));\r\n\t\tcomissao.add(linhaL);\t\r\n\t\tcomissao.add(Box.createVerticalStrut(5));\r\n\t\tcomissao.add(linhaM);\r\n\t\tcomissao.add(Box.createVerticalStrut(20));\r\n\t\tcomissao.add(linhaP);\r\n\t\tcomissao.add(Box.createVerticalStrut(5));\r\n\t\tcomissao.add(linhaN);\r\n\t\tcomissao.add(Box.createVerticalStrut(5));\r\n\t\tcomissao.add(linhaO);\r\n\r\n\r\n\t\tlinhaDoze.add(lblDivisao);\r\n\t\tlinhaTreze.add(btnRelatorio);\r\n\t\tlinhaTreze.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaTreze.add(btnConfirmar);\r\n\t\tlinhaTreze.add(Box.createHorizontalStrut(5));\r\n\t\tlinhaTreze.add(btnCancelar);\r\n\r\n\t\tBox linhas = Box.createVerticalBox();\r\n\t\tlinhas.add(linhaUm);\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\t\t\r\n\t\tlinhas.add(linhaDois);\r\n\t\tlinhas.add(Box.createVerticalStrut(20));\r\n\t\tlinhas.add(linhaTres);\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\r\n\t\tlinhas.add(linhaQuatro);\r\n\t\tlinhas.add(Box.createVerticalStrut(20));\r\n\t\tlinhas.add(linhaA);\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\r\n\t\tlinhas.add(linhaB);\r\n\t\tlinhas.add(linhaC);\r\n\t\tlinhas.add(linhaD);\r\n\t\tlinhas.add(Box.createVerticalStrut(20));\r\n\t\tlinhas.add(linhaCinco);\t\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\r\n\t\tlinhas.add(linhaSeis);\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\r\n\t\tlinhas.add(linhaSete);\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\r\n\t\tlinhas.add(linhaOito);\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\r\n\t\tlinhas.add(linhaNove);\t\t\r\n\t\tlinhas.add(Box.createVerticalStrut(10));\r\n\t\tlinhas.add(linhaDez);\r\n\t\tlinhas.add(linhaOnze);\r\n\t\tlinhas.add(Box.createVerticalStrut(5));\r\n\t\tlinhas.add(linhaOnze);\r\n\r\n\t\tBox principal = Box.createVerticalBox();\t\t\t\t\t\t\r\n\r\n\t\tabaDados.add(linhas);\r\n\t\tabaComissao.add(comissao);\r\n\r\n\t\tabaPrincipal.addTab(\"Dados da venda\", null, abaDados, null);\r\n\r\n\r\n\t\tprincipal.add(abaPrincipal);\r\n\t\tprincipal.add(linhaDoze);\r\n\t\tprincipal.add(Box.createVerticalStrut(10));\r\n\t\tprincipal.add(linhaTreze);\r\n\r\n\t\t//--Ações \r\n\t\tbtnCancelar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tdispose();\r\n\t\t\t}});\r\n\t\tbtnConfirmarComissao.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\r\n\t\t\t}});\r\n\t\tjContentPane = new JPanel();\r\n\t\tjContentPane.add(principal);\r\n\t\tgetContentPane().add(jContentPane);\r\n\t\tpack();\r\n\r\n\t\t//------------Ações\r\n\t\ttxtVlProduto.addFocusListener(new FocusAdapter() {\r\n\t\t\tpublic void focusLost(FocusEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tdouble valor = Double.parseDouble(txtVlProduto.getText().replace(\".\",\",\").replace(\",\",\".\"));\r\n\t\t\t\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\t\t\t\tString valorFormatado = nf.format(valor);\r\n\t\t\t\t\ttxtVlProduto.setText(valorFormatado);\r\n\t\t\t\t\tif(txtVlProduto.getText().trim().equals(\"\") || txtVlProduto.equals(\"R$ 0,00\")){\r\n\t\t\t\t\t\ttxtVlProduto.setText(\"\");\r\n\t\t\t\t\t\ttxtVlProduto.grabFocus();\r\n\t\t\t\t\t}\r\n\t\t\t\t}catch(Exception ex){\r\n\t\t\t\t\ttxtVlProduto.setText(\"\");\r\n\t\t\t\t\ttxtVlProduto.grabFocus();\t\t\t\t\t\r\n\t\t\t\t}}\r\n\t\t});\r\n\r\n\t\tbtnConfirmarComissao.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tVenda cadastrar = new Venda();\r\n\t\t\t\tcadastrar.ajustaDados(txtCnpjRepresentada.getText(), txtNmRepresentada2.getText(), txtCnpjCliente.getText(), txtNmCliente2.getText(), txtNtFiscal.getText(), txtDtVenda.getText(), txtNmProduto.getText(), txtVlProduto.getText(), (String) cmbMedida.getSelectedItem(), txtQtProduto.getText(), txtVlAcrescido.getText(), txtVlFinal.getText(), txtDtEntrega.getText(), txtVendedor.getText(), txtNmVendedor2.getText(), txtObs.getText(), txtNtPedido.getText());\r\n\t\t\t\tif(cadastrar.validaDados()>0){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Encontrada inconsistências nos dados informados:\\n\"+cadastrar.getMsgStatus(),\"Erro\",2);\r\n\t\t\t\t}else{\r\n\t\t\t\t\tif(op==1){\r\n\t\t\t\t\t\tif (JOptionPane.showConfirmDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\"Deseja alterar o valor da comissão desta venda?\\n\\nNota fiscal nº \"+txtNtFiscal.getText(), \"Confirmação\",\r\n\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION){\r\n\t\t\t\t\t\t\tcadastrar.ajustaComissao(txtComissao.getText().trim());\r\n\t\t\t\t\t\t\tcadastrar.alterarComissao();\r\n\t\t\t\t\t\t\ttxtComissao.setEditable(false);\r\n\t\t\t\t\t\t\tchkComissionado.setSelected(true);\t\t\t\t\t\t\t\r\n\t\t\t\t\t\t}\t\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tcadastrar.ajustaComissao(txtComissao.getText().trim());\r\n\t\t\t\t\t\tcadastrar.cadastrarComissao();\t\r\n\t\t\t\t\t\ttxtComissao.setEditable(false);\r\n\t\t\t\t\t\tchkComissionado.setSelected(true);\r\n\t\t\t\t\t}\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}});\r\n\t\tbtnConfirmar.addActionListener(new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tVenda cadastrar = new Venda();\r\n\t\t\t\t\tcadastrar.ajustaDados(txtCnpjRepresentada.getText(), (String) cmbNmRepresentada.getSelectedItem(), txtCnpjCliente.getText(), (String) cmbNmCliente.getSelectedItem(), txtNtFiscal.getText(), txtDtVenda.getText(), txtNmProduto.getText(), txtVlProduto.getText(), (String) cmbMedida.getSelectedItem(), txtQtProduto.getText(), txtVlAcrescido.getText(), txtVlFinal.getText(), txtDtEntrega.getText(), txtVendedor.getText(), (String) cmbVendedores.getSelectedItem(), txtObs.getText(), txtNtPedido.getText());\r\n\t\t\t\t\tif(cadastrar.validaDados()>0){\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Encontrada inconsistências nos dados informados:\\n\"+cadastrar.getMsgStatus(),\"Erro\",2);\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tif(cadastrar.verificaExiste()==0){\r\n\t\t\t\t\t\t\tif (JOptionPane.showConfirmDialog(new JFrame(),\r\n\t\t\t\t\t\t\t\t\t\"Deseja concluir o cadastro?\\n\\nOs dados cadastrados de venda não poderam mais serem alterados.\", \"Confirmação\",\r\n\t\t\t\t\t\t\t\t\tJOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION){\r\n\t\t\t\t\t\t\t\tif(getPermissao()==1){\r\n\t\t\t\t\t\t\t\t\tabaPrincipal.addTab(\"Comissão\", null, abaComissao, null);\t\r\n\t\t\t\t\t\t\t\t\tajustaGuiaComissao();\r\n\t\t\t\t\t\t\t\t\ttxtComissao.setEditable(true);\r\n\t\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t\t\tcadastrar.cadastrar();\t\r\n\t\t\t\t\t\t\t\tdesabilitaCampos();\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}else{\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Venda ja está cadastrada.\\n\\nNota fiscal nº \"+txtNtFiscal.getText(),\"Erro\",2);\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}catch(Exception er){\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null, \"Valor final da venda fora do limite suportado\",\"Erro\",2);\r\n\t\t\t\t\thabilitaCampos();\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}});\r\n\t\tbtnRelatorio.addActionListener(new ActionListener() {\r\n\t\t\t@SuppressWarnings(\"deprecation\")\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tVenda gerar = new Venda();\r\n\t\t\t\tgerar.gerarRelatorio(getPermissao(), (String) cmbNmCliente.getSelectedItem(), (String) cmbNmRepresentada.getSelectedItem(), (String) cmbVendedores.getSelectedItem(), \"/ /\", \"/ /\", txtNtFiscal.getText().trim()).show();\r\n\t\t\t}});\r\n\t\ttxtDtVenda.setInputVerifier(new InputVerifier() {\r\n\t\t\tpublic boolean verify(JComponent component) {\r\n\t\t\t\tif(((JTextComponent) component).getText().trim().equals(\"/ /\")){\r\n\t\t\t\t\ttxtDtVenda.setText(\"\");\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tVenda consultar = new Venda();\r\n\t\t\t\t\tif(consultar.validaData(txtDtVenda.getText())>0){\r\n\t\t\t\t\t\ttxtDtVenda.setText(\"\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data de venda inválida\",\"Erro\",2);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\treturn ((JFormattedTextField) txtDtVenda).isEditValid();\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtDtEntrega.setInputVerifier(new InputVerifier() {\r\n\t\t\tpublic boolean verify(JComponent component) {\r\n\t\t\t\tif(((JTextComponent) component).getText().trim().equals(\"/ /\")){\r\n\t\t\t\t\ttxtDtEntrega.setText(\"\");\r\n\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data de entrega inválida\",\"Erro\",2);\r\n\t\t\t\t\treturn false;\r\n\t\t\t\t}else{\r\n\t\t\t\t\tVenda consultar = new Venda();\r\n\t\t\t\t\tif(consultar.validaData(txtDtEntrega.getText())>0){\r\n\t\t\t\t\t\ttxtDtEntrega.setText(\"\");\r\n\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data de entrega inválida\",\"Erro\",2);\r\n\t\t\t\t\t\treturn false;\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tif(consultar.validaDataEntrega(txtDtVenda.getText(), txtDtEntrega.getText())>0){\r\n\t\t\t\t\t\t\ttxtDtEntrega.setText(\"\");\r\n\t\t\t\t\t\t\tJOptionPane.showMessageDialog(null,\"Data de entrega inválida\",\"Erro\",2);\r\n\t\t\t\t\t\t\treturn false;\t\r\n\t\t\t\t\t\t}else{\r\n\t\t\t\t\t\t\treturn ((JFormattedTextField) txtDtVenda).isEditValid();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtQtProduto.addFocusListener(new FocusAdapter() {\r\n\t\t\tpublic void focusLost(FocusEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tif(txtQtProduto.getText().trim().equals(\"\") || txtQtProduto.getText().trim().equals(\"000000\")){\r\n\t\t\t\t\t\ttxtQtProduto.grabFocus();\r\n\t\t\t\t\t}\t\r\n\t\t\t\t}catch(Exception ex){\r\n\t\t\t\t\ttxtQtProduto.setText(\"000001\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\ttxtVlAcrescido.addFocusListener(new FocusAdapter() {\r\n\t\t\tpublic void focusLost(FocusEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\ttry{\r\n\t\t\t\t\t\tdouble valor = Double.parseDouble(txtVlAcrescido.getText().replace(\".\",\",\").replace(\",\",\".\"));\r\n\t\t\t\t\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\t\t\t\t\tString valorFormatado = nf.format(valor);\r\n\t\t\t\t\t\ttxtVlAcrescido.setText(valorFormatado);\t\r\n\t\t\t\t\t}catch(Exception ex){\r\n\t\t\t\t\t\ttxtVlAcrescido.setText(\"R$ 0,00\");\r\n\t\t\t\t\t};\r\n\t\t\t\t\tdouble vl = Double.parseDouble(txtVlProduto.getText().replace(\".\",\"\").replace(\",\",\".\").substring(3));\r\n\t\t\t\t\t//double vl = Double.parseDouble(txtVlProduto.getText().replace(\".\",\",\").replace(\",\",\".\").substring(3));\r\n\t\t\t\t\tdouble qt = Double.parseDouble(txtQtProduto.getText().trim());\r\n\t\t\t\t\t/*if(txtQtProduto.getText().trim().equals(\"\")){\r\n\t\t\t\t\ttxtQtProduto.setText(\"000000\");\r\n\t\t\t\t\t}else{\r\n\t\t\t\t\t\tqt = Double.parseDouble(txtQtProduto.getText().trim());\t\r\n\t\t\t\t\t}*/\t\t\t\t\t\r\n\t\t\t\t\tdouble vlAcres = Double.parseDouble(txtVlAcrescido.getText().replace(\".\",\"\").replace(\",\",\".\").substring(3));\r\n\t\t\t\t\tdouble total = (qt * vl)+vlAcres;\r\n\t\t\t\t\tBigDecimal bd = new BigDecimal (total);\r\n\t\t\t\t\tbd.add (new BigDecimal (total));\r\n\t\t\t\t\tDecimalFormat df = new DecimalFormat(\"#,##0.00\", new DecimalFormatSymbols(LOCAL));\r\n\t\t\t\t\tString s = df.format(bd);\r\n\t\t\t\t\ttxtVlFinal.setText(\"R$ \"+s);\t\r\n\t\t\t\t}catch(Exception ex){\r\n\t\t\t\t\t//txtVlProduto.grabFocus();\r\n\t\t\t\t}}\r\n\t\t});\r\n\t\ttxtComissao.addFocusListener(new FocusAdapter() {\r\n\t\t\tpublic void focusLost(FocusEvent e) {\r\n\t\t\t\ttry{\r\n\t\t\t\t\tdouble valor = Double.parseDouble(txtComissao.getText().replace(\".\",\",\").replace(\",\",\".\"));\r\n\t\t\t\t\tNumberFormat nf = NumberFormat.getCurrencyInstance();\r\n\t\t\t\t\tString valorFormatado = nf.format(valor);\r\n\t\t\t\t\ttxtComissao.setText(valorFormatado);\t\r\n\t\t\t\t}catch(Exception ex){\r\n\t\t\t\t\ttxtComissao.setText(\"\");\r\n\t\t\t\t\t//txtComissao.grabFocus();\r\n\t\t\t\t}}\r\n\t\t});\r\n\r\n\t\t//-Combobox\r\n\t\tcmbNmCliente.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\tVenda consultar = new Venda();\r\n\t\t\t\t\ttxtCnpjCliente.setText(consultar.cnpjCliente((String) cmbNmCliente.getSelectedItem()));\r\n\t\t\t\t}\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tcmbNmRepresentada.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\tVenda consultar = new Venda();\r\n\t\t\t\t\ttxtCnpjRepresentada.setText(consultar.cnpjRepresentada((String) cmbNmRepresentada.getSelectedItem()));\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t\tcmbVendedores.addItemListener(new ItemListener() {\r\n\t\t\tpublic void itemStateChanged(ItemEvent e) {\r\n\t\t\t\tif (e.getStateChange() == ItemEvent.SELECTED){\r\n\t\t\t\t\tVenda consultar = new Venda();\r\n\t\t\t\t\ttxtVendedor.setText(consultar.codFuncionario((String) cmbVendedores.getSelectedItem()));\r\n\t\t\t\t}\t\t\t\t\r\n\t\t\t}\r\n\t\t});\r\n\t}", "private void createTabFolder() {\r\n\t\tGridData gridData1 = new GridData();\r\n\t\tgridData1.grabExcessHorizontalSpace = true;\r\n\t\tgridData1.heightHint = 500;\r\n\t\tgridData1.grabExcessVerticalSpace = true;\r\n\t\tgridData1.verticalAlignment = org.eclipse.swt.layout.GridData.BEGINNING;\r\n\t\tgridData1.widthHint = 600;\r\n\t\ttabFolder = new TabFolder(sShell, SWT.NONE);\r\n\t\ttabFolder.setLayoutData(gridData1);\r\n\t\tcreateCompositeRoomMange();\r\n\t\tcreateCompositeGoodsMange();\r\n\t\tcreateCompositeStaffMange();\r\n\t\tcreateCompositeUserMange();\r\n\t\tTabItem tabItem = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem.setText(\"房间管理\");\r\n\t\ttabItem.setControl(compositeRoomMange);\r\n\t\tTabItem tabItem1 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem1.setText(\"商品管理\");\r\n\t\ttabItem1.setControl(compositeGoodsMange);\r\n\t\tTabItem tabItem2 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem2.setText(\"员工管理\");\r\n\t\ttabItem2.setControl(compositeStaffMange);\r\n\t\tTabItem tabItem3 = new TabItem(tabFolder, SWT.NONE);\r\n\t\ttabItem3.setText(\"系统用户管理\");\r\n\t\ttabItem3.setControl(compositeUserMange);\r\n\t}", "private void initialize() {\n\t\tframe = new JFrame();\n\t\tframe.setBounds(100, 100, 684, 434);\n\t\tframe.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n\n\t\tmainPanel = new JPanel();\n\t\tframe.getContentPane().add(mainPanel, BorderLayout.CENTER);\n\t\tmainPanel.setLayout(new BorderLayout(0, 0));\n\n\t\tJTabbedPane tabbedPanel = new JTabbedPane(JTabbedPane.TOP);\n\t\tmainPanel.add(tabbedPanel);\n\n\t\tJPanel setPanel = new JPanel();\n\t\ttabbedPanel.addTab(\"Set\", null, setPanel, null);\n\t\tsetPanel.setLayout(null);\n\n\t\tJLabel nameLabel = new JLabel(\"name:\");\n\t\tnameLabel.setBounds(10, 50, 46, 14);\n\t\tsetPanel.add(nameLabel);\n\n\t\tnameField = new JTextField();\n\t\tnameField.setBounds(85, 37, 568, 65);\n\t\tsetPanel.add(nameField);\n\t\tnameField.setColumns(10);\n\n\t\tJLabel regexLabel = new JLabel(\"regex:\");\n\t\tregexLabel.setBounds(10, 145, 46, 14);\n\t\tsetPanel.add(regexLabel);\n\n\t\tregexField = new JTextField();\n\t\tregexField.setBounds(84, 132, 569, 65);\n\t\tsetPanel.add(regexField);\n\t\tregexField.setColumns(10);\n\n\t\tJLabel colorLabel = new JLabel(\"color:\");\n\t\tcolorLabel.setBounds(10, 213, 46, 14);\n\t\tsetPanel.add(colorLabel);\n\n\t\tJComboBox<Object> colorComboBox = new JComboBox<Object>();\n\t\tcolorComboBox.setModel(new DefaultComboBoxModel<Object>(\n\t\t\t\tnew String[] { \"red\", \"orange\", \"yellow\", \"green\", \"cyan\", \"blue\", \"pink\", \"magenta\", \"gray\" }));\n\t\tcolorComboBox.setBounds(84, 209, 86, 22);\n\t\tsetPanel.add(colorComboBox);\n\n\t\tJLabel extractLabel = new JLabel(\"extract:\");\n\t\textractLabel.setBounds(10, 257, 46, 14);\n\t\tsetPanel.add(extractLabel);\n\n\t\tJCheckBox extractCheckBox = new JCheckBox(\"\");\n\t\textractCheckBox.setBounds(85, 248, 97, 23);\n\t\tsetPanel.add(extractCheckBox);\n\n\t\tJLabel highlightLabel = new JLabel(\"highlight:\");\n\t\thighlightLabel.setBounds(10, 301, 46, 14);\n\t\tsetPanel.add(highlightLabel);\n\n\t\tJCheckBox highlightCheckBox = new JCheckBox(\"\");\n\t\thighlightCheckBox.setBounds(85, 292, 97, 23);\n\t\tsetPanel.add(highlightCheckBox);\n\n\t\tJButton addButton = new JButton(\"add\");\n\t\taddButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\taddButton.setBounds(223, 276, 168, 65);\n\t\tsetPanel.add(addButton);\n\n\t\tJButton reloadButton_1 = new JButton(\"reload\");\n\t\treloadButton_1.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\t\t});\n\t\treloadButton_1.setBounds(446, 276, 144, 65);\n\t\tsetPanel.add(reloadButton_1);\n\n\t\tJPanel configPanel = new JPanel();\n\t\ttabbedPanel.addTab(\"Config\", null, configPanel, null);\n\t\tconfigPanel.setLayout(null);\n\n\t\tJScrollPane scrollPanel = new JScrollPane();\n\t\tscrollPanel.setBounds(0, 61, 1300, 550);\n\t\tconfigPanel.add(scrollPanel);\n\n\t\tJTextArea configTextArea = new JTextArea();\n\t\tscrollPanel.setViewportView(configTextArea);\n\n\t\tJButton loadButton = new JButton(\"load\");\n\t\tloadButton.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\n\t\t});\n\t\tloadButton.setBounds(72, 0, 108, 49);\n\t\tconfigPanel.add(loadButton);\n\n\t\tJButton saveButton = new JButton(\"save\");\n\t\tsaveButton.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\n\t\t\t}\n\t\t});\n\t\tsaveButton.setBounds(297, 0, 108, 49);\n\t\tconfigPanel.add(saveButton);\n\n\t\tJButton reloadButton_2 = new JButton(\"reload\");\n\t\treloadButton_2.addActionListener(new ActionListener() {\n\n\t\t\t@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t}\n\n\t\t});\n\t\treloadButton_2.setBounds(517, 1, 109, 49);\n\t\tconfigPanel.add(reloadButton_2);\n\t}", "protected abstract void doAddTab(GridTab tab, JPiereIADTabpanel tabPanel);", "public void setupScroll() {\n\t\ttabs = new JLayeredPane();\n\t\tscroll = new JScrollPane(panel);\n\t\tchampions = new ArrayList<JButton>();\n\t\taddChampions(panel, CHAMPIONLIST);\n\t\ttabs = new JLayeredPane();\n\t\tURL url = getClass().getResource(\".coredata/background/ChampionsTab.png\");\n\t\tImageIcon tabIcon = new ImageIcon(Toolkit.getDefaultToolkit().getImage(url));\n\t\ttabs.setPreferredSize(new Dimension(724, 53));\n\t\tJLabel championTab = new JLabel();\n\t\tchampionTab.setIcon(tabIcon);\n\t\ttabs.add(championTab, 50);\n\t\tchampionTab.setBounds(0, 0, tabIcon.getIconWidth(), tabIcon.getIconHeight());\n\t\tsearch = new JTextField(10);\n\t\tsearch.addFocusListener(new FocusListener() {\n\t\t\tpublic void focusGained(FocusEvent e) {search.setText(\"\");}\n\t\t\tpublic void focusLost(FocusEvent e) {}\n\t\t});\n\t\ttabs.add(search, 1000);\n\t\tsearch.setBounds(600, 10, 100, 25);\n\t}", "private void showTab(int tab) {\n switch (tab) {\n case OUTING_TAB_EXPENSES:\n switchToExpensesTab();\n break;\n case OUTING_TAB_BUDDIES:\n switchToBuddiesTab();\n break;\n }\n\n this.activeTab = tab;\n }", "public void onModuleLoad() {\n\t\tTabLayoutPanel tabPanel = new TabLayoutPanel(2.5, Unit.EM);\n\t\tFlexTable ft3 = new FlexTable();\n\t\tFlexCellFormatter cf3 = ft3.getFlexCellFormatter();\n\t\tDecoratorPanel dp3 = new DecoratorPanel();\n\t\tHorizontalPanel hp = new HorizontalPanel();\n\t\tButton plusButton = new Button(\"+\");\n\t\tButton minusButton = new Button(\"-\");\n\t\tButton devideButton = new Button(\"/\");\n\t\tButton multiplyButton = new Button(\"*\");\n\t\thp.add(plusButton);\n\t\thp.add(minusButton);\n\t\thp.add(devideButton);\n\t\thp.add(multiplyButton);\n\t\tfinal TextBox l1 = new TextBox();\n\t\tfinal TextBox l2 = new TextBox();\n\t\tfinal Label wynik = new Label();\n\t\tft3.setHTML(0,0,\"Podaj pierwsza liczbe:\");\n\t\tft3.setWidget(0,1, l1);\n\t\tft3.setHTML(1,0, \"Podaj druga liczbe:\");\n\t\tft3.setWidget(1,1,l2);\n\t\tft3.setHTML(2,0, \"Wybierz operacje:\");\n\t\tft3.setWidget(2, 1, hp);\n\t\tft3.setHTML(3,0, \"Wynik\");\n\t\tft3.setWidget(3,1, wynik);\n\t\tdp3.add(ft3);\n\t\t//RootPanel.get(\"mainContainer\").add(hp);\n\t\t//pan1.add(hp);\n\t\ttabPanel.add(dp3, new HTML(\"Prosty kalkulator\"));\n\t\tfinal TextBox t1 = new TextBox();\n\t\tfinal ListBox list = new ListBox();\n\t\tlist.addItem(\"2\");\n\t\tlist.addItem(\"4\");\n\t\tlist.addItem(\"8\");\n\t\tlist.addItem(\"16\");\n\t\tfinal Label wynik10 = new Label();\n\t\tFlexTable ft = new FlexTable();\n\t\tButton przeliczButton = new Button(\"Przelicz\");\n\t\tft.setHTML(0, 0, \"Podaj liczbe w systemie 10:\");\n\t\tft.setWidget(0, 1, t1);\n\t\tft.setHTML(1, 0, \"Podaj docelowy system liczbowy:\");\n\t\tft.setWidget(1, 1, list);\n\t\tft.setHTML(2, 0, \"Wynik:\");\n\t\tft.setWidget(2, 1, wynik10);\n\t\tft.setWidget(3, 0, przeliczButton);\n\t\tFlexCellFormatter cf = ft.getFlexCellFormatter();\n\t\tDecoratorPanel dp = new DecoratorPanel();\n\t\tcf.setColSpan(3,0,2);\n\t\tcf.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp.setWidget(ft);\n\t\ttabPanel.add(dp, new HTML(\"Przeliczanie z 10 na inne\"));\n\t\tFlexTable ft2 = new FlexTable();\n\t\tFlexCellFormatter cf2 = ft2.getFlexCellFormatter();\n\t\tDecoratorPanel dp2 = new DecoratorPanel();\n\t\tfinal TextBox t2 = new TextBox();\n\t\tfinal ListBox list2 = new ListBox();\n\t\tlist2.addItem(\"2\");\n\t\tlist2.addItem(\"4\");\n\t\tlist2.addItem(\"8\");\n\t\tlist2.addItem(\"16\");\n\t\tButton przelicztoButton = new Button(\"Przelicz\");\n\t\tfinal Label wynik20 = new Label();\n\t\tft2.setHTML(0, 0, \"Podaj system w jakim zapisana jest liczba:\");\n\t\tft2.setWidget(0, 1, list2);\n\t\tft2.setHTML(1, 0, \"Podaj liczbe:\");\n\t\tft2.setWidget(1, 1, t2);\n\t\tft2.setHTML(2, 0, \"Wynik:\");\n\t\tft2.setWidget(2, 1, wynik20);\n\t\tft2.setWidget(3, 0, przelicztoButton);\n\t\tcf2.setColSpan(3,0,2);\n\t\tcf2.setHorizontalAlignment(3,0,HasHorizontalAlignment.ALIGN_CENTER);\n\t\tdp2.setWidget(ft2);\n\t\t//RootPanel.get(\"mainContainer\").add(tabPanel);\n\t\ttabPanel.add(dp2, new HTML(\"Przeliczanie do systemu 10\"));\n\t\tRootLayoutPanel.get().add(tabPanel);\n\t\tprzelicztoButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przeliczto10(t2.getText(), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik20.setText(\" \" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tprzeliczButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.przelicz10(Integer.parseInt(t1.getText()), Integer.parseInt(list.getItemText(list.getSelectedIndex())), new AsyncCallback<String>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(String result) {\n\t\t\t\t\t\twynik10.setText(\" \" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tplusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dodaj(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tminusButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.odejmij(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Integer>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Integer result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tdevideButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.dziel(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t\tmultiplyButton.addClickHandler(new ClickHandler() {\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void onClick(ClickEvent event) {\n\t\t\t\tcalcService.mnoz(Integer.parseInt(l1.getText()), Integer.parseInt(l2.getText()), new AsyncCallback<Double>() {\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onFailure(Throwable caught) {\n\t\t\t\t\t\twynik.setText(SERVER_ERROR);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onSuccess(Double result) {\n\t\t\t\t\t\twynik.setText(\"\" + result);\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t\t\n\t\t\t}\n\t\t});\n\t}", "public TabPanel() {\n this(null, null, null);\n }", "public void add(TabLike tab){\n TabLabel btn = tabLabelCreator.create(tab.getName(), this);\n\n tab.setVisible(tabs.isEmpty());\n btn.setDisable(tabs.isEmpty());\n if (tabs.isEmpty()){\n selected = btn;\n }\n\n tabs.add(tab);\n nameTab.getChildren().add(btn);\n tabContent.getChildren().add(tab);\n tab.setContainer(this);\n }", "public MasterPanel()\r\n {\r\n tabbedPanel.setPreferredSize(new Dimension(TABBED_SHEET_WIDTH,TABBED_SHEET_HEIGHT));\r\n tabbedPanel.addTab(\"Inventory\", inventoryPanel);\r\n tabbedPanel.addTab(\"Equipment\", equipmentPanel);\r\n tabbedPanel.addTab(\"Spellbook\", spellbookPanel);\r\n \r\n characterSheetPanel.setPreferredSize(new Dimension(TABBED_SHEET_WIDTH,DISPLAY_PANEL_HEIGHT));\r\n characterSheetPanel.setLayout(new BorderLayout());\r\n characterSheetPanel.add(characterSheet, BorderLayout.NORTH);\r\n characterSheetPanel.add(tabbedPanel, BorderLayout.EAST);\r\n \r\n bottomPanel.setPreferredSize(new Dimension(GAME_WIDTH, BUTTON_PANEL_HEIGHT));\r\n bottomPanel.setLayout(new BorderLayout());\r\n topPanel.setPreferredSize(new Dimension(GAME_WIDTH, DISPLAY_PANEL_HEIGHT));\r\n topPanel.setLayout(new BorderLayout());\r\n \r\n bottomPanel.add(descriptionPanel, BorderLayout.EAST);\r\n bottomPanel.add(buttonPanel, BorderLayout.WEST);\r\n \r\n topPanel.add(displayPanel, BorderLayout.WEST);\r\n topPanel.add(characterSheetPanel, BorderLayout. EAST);\r\n \r\n displayPanel.print(\"Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \\\"de Finibus Bonorum et Malorum\\\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \\\"Lorem ipsum dolor sit amet..\\\", comes from a line in section 1.10.32.\");\r\n displayPanel.print(\"Because cats were venerated in ancient Egypt, they were commonly believed to have been domesticated there,[12] but there may have been instances of domestication as early as the Neolithic from around 9,500 years ago (7500 BC).[13] A genetic study in 2007[14] concluded that all domestic cats are descended from Near Eastern wildcats, having diverged around 8000 BC in the Middle East.[12][15] A 2016 study found that leopard cats were undergoing domestication independently in China around 5500 BC, though this line of partially domesticated cats leaves no trace in the domesticated populations of today.[16][17] A 2017 study confirmed that domestic cats are descendants of those first domesticated by farmers in the Near East around 9,000 years ago.\");\r\n \r\n \r\n setLayout(new BorderLayout());\r\n add(topPanel, BorderLayout.NORTH);\r\n add(bottomPanel, BorderLayout.SOUTH);\r\n addMouseListener(MOUSE_LISTENER);\r\n }", "private void setupTabLayout() {\n tabLayout = (TabLayout) findViewById(R.id.tabs);\n tabLayout.addOnTabSelectedListener(new TabLayout.OnTabSelectedListener() {\n @Override\n public void onTabSelected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n\n @Override\n public void onTabUnselected(TabLayout.Tab tab) {\n }\n\n @Override\n public void onTabReselected(TabLayout.Tab tab) {\n onTabTapped(tab.getPosition());\n }\n });\n tabLayout.getTabAt(0).select();\n View root = tabLayout.getChildAt(0);\n //create divider between the tabs\n if (root instanceof LinearLayout) {\n ((LinearLayout) root).setShowDividers(LinearLayout.SHOW_DIVIDER_MIDDLE);\n GradientDrawable drawable = new GradientDrawable();\n drawable.setColorFilter(0xffff0000, PorterDuff.Mode.MULTIPLY);\n drawable.setSize(2, 1);\n ((LinearLayout) root).setDividerPadding(10);\n ((LinearLayout) root).setDividerDrawable(drawable);\n }\n }", "private void buildPanel()\n {\n setLayout(new BorderLayout());\n JLabel instr = new JLabel(TOP_HELP);\n instr.setToolTipText(POPUP_HELP);\n add(instr, BorderLayout.NORTH);\n\n final JSplitPane splitPane = new JSplitPane(JSplitPane.HORIZONTAL_SPLIT);\n splitPane.setContinuousLayout(true);\n splitPane.setResizeWeight(.9);\n splitPane.setOneTouchExpandable(true);\n\n mMazeView.setMinimumSize(new Dimension(400, 200));\n splitPane.setLeftComponent(mMazeView);\n mMazeView.setModel(null);\n\n this.mOpenMazes = new MazeList(this.mMazeView);\n this.mOpenMazes.setMinimumSize(new Dimension(160, 0));\n JPanel rightPanel = new JPanel();\n rightPanel.setLayout(new BorderLayout());\n rightPanel.add(this.mOpenMazes, BorderLayout.CENTER);\n\n final JPanel rightPanelButtons = new JPanel(new BorderLayout());\n rightPanelButtons.add(makeNewMazeButton(), BorderLayout.NORTH);\n rightPanelButtons.add(makeRandomMazeButton(), BorderLayout.SOUTH);\n\n rightPanel.add(rightPanelButtons, BorderLayout.SOUTH);\n splitPane.setRightComponent(rightPanel);\n\n add(splitPane, BorderLayout.CENTER);\n splitPane.setDividerLocation(.8);\n\n addComponentListener(new ComponentAdapter()\n {\n boolean notShown = true;\n\n @Override\n public void componentShown(ComponentEvent e)\n {\n if (notShown)\n {\n splitPane.setDividerLocation(.8);\n notShown = false;\n }\n }\n });\n\n JToolBar tBar = new JToolBar();\n tBar.setOrientation(JToolBar.VERTICAL);\n tBar.setFloatable(false);\n ButtonGroup bg = new ButtonGroup();\n\n ImageIcon scaled = new ImageIcon(mPointIcon.getImage().getScaledInstance(40, 40, 0));\n JToggleButton tb = new JToggleButton(scaled);\n tb.setToolTipText(\"No Template\");\n tb.addActionListener(new TemplateActionListener(null));\n bg.add(tb);\n bg.setSelected(tb.getModel(), true);\n tBar.add(tb);\n\n for (MazeTemplate mt : mTemplates)\n {\n Image iconImage = mt.getTemplateIcon().getImage();\n scaled = new ImageIcon(iconImage.getScaledInstance(40, 40, 0));\n tb = new JToggleButton(scaled);\n tb.addActionListener(new TemplateActionListener(mt));\n tb.setToolTipText(mt.getTemplateDescription());\n bg.add(tb);\n tBar.add(tb);\n }\n\n add(tBar, BorderLayout.WEST);\n\n //Add an action for the 'r' key to change the template to the next orientation.\n this.getInputMap(JComponent.WHEN_ANCESTOR_OF_FOCUSED_COMPONENT).put(KeyStroke.getKeyStroke('r'),\n NEXT_ORIENTATION_ACTION_KEY);\n this.getActionMap().put(NEXT_ORIENTATION_ACTION_KEY, new AbstractAction()\n {\n @Override\n public void actionPerformed(ActionEvent e)\n {\n if (mCurrentTemplate != null)\n {\n mCurrentTemplate.nextOrientation();\n mMazeView.repaint();\n }\n }\n });\n\n mMouseAdapter = new TemplateMouseAdapter();\n\n mMazeView.addMouseListener(mMouseAdapter);\n mMazeView.addMouseMotionListener(mMouseAdapter);\n mMazeView.addMouseWheelListener(mMouseAdapter);\n }", "public void showPersonOverview() {\n try {\n // Load person overview.\n FXMLLoader loader = new FXMLLoader();\n //URL url=getClass().getResource(\"/fxml/Focustab.fxml\");\n loader.setLocation(MainApp.class.getResource(\"/fxml/Focustab.fxml\"));\n // Pane focusPane = (Pane)FXMLLoader.load(getClass().getResource(\"/fxml/Focustab.fxml\"));\n Pane focusPane=(Pane)loader.load();\n FocusPaneController controller = loader.getController();\n controller.setMainApp(this);\n Scene myScene = new Scene(focusPane);\n primaryStage.setScene(myScene);\n primaryStage.show();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "public void addTab(DocumentWrapper file, String text) {\n\t\tJTextArea textEditor = new JTextArea();\n\n\t\ttextEditor.setText(text);\n\t\ttextEditor.getDocument().putProperty(\"changed\", false);\n\t\ttextEditor.addCaretListener(new CaretListener() {\n\t\t\t@Override\n\t\t\tpublic void caretUpdate(CaretEvent arg0) {\n\t\t\t\tint dot = arg0.getDot();\n\t\t\t\tint mark = arg0.getMark();\n\n\t\t\t\tint caretpos = textEditor.getCaretPosition();\n\t\t\t\tint lineNum = 1;\n\t\t\t\tint columnNum = 1;\n\t\t\t\ttry {\n\t\t\t\t\tlineNum = textEditor.getLineOfOffset(caretpos);\n\t\t\t\t\tcolumnNum = 1 + caretpos - textEditor.getLineStartOffset(lineNum);\n\t\t\t\t\tlineNum += 1;\n\n\t\t\t\t} catch (BadLocationException e) {\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\n\t\t\t\tstatusLabel.setText(\"length : \" + textEditor.getText().length());\n\t\t\t\tlineLabel.setText(\"Ln : \" + lineNum);\n\t\t\t\tcolumnLabel.setText(\"Col : \" + columnNum);\n\t\t\t\tselectedLabel.setText(\"Sel : \" + Math.abs(dot - mark));\n\t\t\t\t;\n\n\t\t\t\tif (dot == mark) {\n\t\t\t\t\titemInvert.setEnabled(false);\n\t\t\t\t\titemLower.setEnabled(false);\n\t\t\t\t\titemUpper.setEnabled(false);\n\t\t\t\t} else {\n\t\t\t\t\titemInvert.setEnabled(true);\n\t\t\t\t\titemLower.setEnabled(true);\n\t\t\t\t\titemUpper.setEnabled(true);\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\n\t\ttextEditor.getDocument().addDocumentListener(new DocumentListener() {\n\n\t\t\t@Override\n\t\t\tpublic void insertUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t\tButtonTabComponent comp = (ButtonTabComponent) pane.getTabComponentAt(pane.getSelectedIndex());\n\n\t\t\t\tcomp.setImage(true);\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void removeUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\n\t\t\t@Override\n\t\t\tpublic void changedUpdate(DocumentEvent e) {\n\t\t\t\ttextEditor.getDocument().putProperty(\"changed\", true);\n\n\t\t\t}\n\t\t});\n\n\t\tfile.setEditor(textEditor);\n\n\t\tJScrollPane scPane = new JScrollPane(textEditor);\n\t\tJPanel panel = new JPanel(new BorderLayout());\n\t\tpanel.add(scPane, BorderLayout.CENTER);\n\n\t\tint index = pane.getTabCount();\n\n\t\tpane.addTab(file.getName(), textEditor);\n\n\t\tinitTabComponent(file, index);\n\t}", "public Modulo1() {\n initComponents();\n setLocationRelativeTo(null);\n setResizable(false);\n //línea para habilitar o deshabilitar pestañas\n //jTabbedPane.removeTabAt(0);\n \n }", "private void buildMainFragment() {\n\t\tfinal List<Fragment> fragments = getFragments();\n\t\t//pageAdapter = new PageAdapter(getSupportFragmentManager(), fragments);\n\t\tfinal ViewPager pager = (ViewPager) findViewById(R.id.viewpager_program);\n\t\tpager.setAdapter(pageAdapter);\n\n\t\t// Set up ActionBar\n\t\tactionBar = getActionBar();\n\t\tactionBar.show();\n\t\tactionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS);\n\t\t\n\t\tTab tab = actionBar\n\t\t\t\t.newTab()\n\t\t\t\t.setText(getIntent().getExtras().getString(\"pgr_name\"))\n\t\t\t\t.setTabListener(\n\t\t\t\t\t\tnew TabListener<ProgramExercisesFragment>(this,\n\t\t\t\t\t\t\t\tgetIntent().getExtras().getString(\"pgr_name\"),\n\t\t\t\t\t\t\t\tProgramExercisesFragment.class));\n\t\tactionBar.addTab(tab);\n\n\t\ttab = actionBar\n\t\t\t\t.newTab()\n\t\t\t\t.setText(\"Exercises\")\n\t\t\t\t.setTabListener(\n\t\t\t\t\t\tnew TabListener<ProgramAddExercisesFragment>(this, \"Exercises_Program\",\n\t\t\t\t\t\t\t\tProgramAddExercisesFragment.class));\n\t\tactionBar.addTab(tab);\n\t\t\n\t\t\n\t}" ]
[ "0.7219927", "0.68029606", "0.6794977", "0.6746349", "0.6700936", "0.6681917", "0.66033906", "0.6569116", "0.6526606", "0.6519263", "0.65116984", "0.6510356", "0.6475378", "0.6389737", "0.63763887", "0.6364665", "0.63510245", "0.6314948", "0.6312297", "0.62981534", "0.6279238", "0.6254534", "0.6239379", "0.62392676", "0.6209097", "0.62050295", "0.61851686", "0.6178932", "0.61774915", "0.6157691", "0.61505806", "0.6129411", "0.6095568", "0.6093864", "0.60807914", "0.60575056", "0.6054842", "0.6048948", "0.6045181", "0.6042321", "0.6025245", "0.60209274", "0.59747016", "0.5974366", "0.5959742", "0.5945029", "0.59106916", "0.59024715", "0.5900833", "0.58997476", "0.5895027", "0.5885854", "0.58808184", "0.587231", "0.5871375", "0.58519197", "0.58480966", "0.58415854", "0.5840311", "0.58351374", "0.5833029", "0.58277273", "0.58164585", "0.5810232", "0.58096576", "0.57816225", "0.5781407", "0.5779796", "0.5763096", "0.57475126", "0.5742382", "0.5736917", "0.57224154", "0.57217366", "0.5706006", "0.57014894", "0.5689942", "0.5687084", "0.56770766", "0.5676375", "0.56668764", "0.5658371", "0.5647881", "0.5638543", "0.56342965", "0.5634098", "0.5617228", "0.5615855", "0.5610293", "0.5608321", "0.55969614", "0.5594262", "0.55915064", "0.5590952", "0.5586853", "0.5578682", "0.5577757", "0.55747414", "0.5574354", "0.55721307", "0.5569916" ]
0.0
-1
Helper Code Looks up and returns an icon for the specified filename suffix.
protected static ImageIcon readImageIcon(String filename) { URL url = Main.class.getResource("resources/images/" + filename); return new ImageIcon(url); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "String getIconFile();", "java.lang.String getIcon();", "java.lang.String getIcon();", "public abstract String getIconPath();", "String getIcon();", "String getIcon();", "public String getIconFileName() {\n\tif (this.isSuccess()) {\n\t return this.icon;\n\t} else {\n\t return null;\n\t}\n }", "Icon getIcon();", "public abstract String getImageSuffix();", "public static BufferedImage iconMaker(String s){\n BufferedImage buttonIcon;\n try{\n buttonIcon = ImageIO.read(new File(FILE_PATH + s));\n }catch(IOException e){\n buttonIcon = null;\n System.out.println(\"BooHOO\");\n }\n return buttonIcon;\n }", "URL getIconURL(String iconId, IconSize medium);", "Icon getIcon(URI activityType);", "public Icon getIcon(FileObject f)\n {\n return null;\n }", "public abstract String getIconString();", "public Icon getIcon();", "private static Image getIcon()\n\t{\n\t\ttry {\n\t\t\treturn ImageIO.read(new File(guiDirectory + icon));\n\t\t} catch (IOException ioe) {\n\t\t}\n\t\treturn null;\n\t}", "public static ImageIcon getIcon(String x) {\n ImageIcon defaultIcon = new ImageIcon(ClassLoader.getSystemResource(x));\n return defaultIcon;\n }", "public IIcon getIcon(int var1, int var2)\n {\n if (var2 < 0 || var2 >= fernPics.length)\n {\n var2 = 0;\n }\n\n return fernPics[var2];\n }", "public Icon getIcon() {\r\n\r\n if (icon == null && this.getIconString() != null) {\r\n InputStream in = this.getClass().getResourceAsStream(this.getIconString());\r\n BufferedImage img = null;\r\n Image scaledImg = null;\r\n try {\r\n img = ImageIO.read(in);\r\n scaledImg = img.getScaledInstance(this.useToolIconSize ? PirolPlugInSettings.StandardToolIconWidth : PirolPlugInSettings.StandardPlugInIconWidth, this.useToolIconSize ? PirolPlugInSettings.StandardToolIconHeight : PirolPlugInSettings.StandardPlugInIconHeight, img.getType());\r\n } catch (IOException e) {\r\n e.printStackTrace();\r\n img = null;\r\n icon = null;\r\n }\r\n if (scaledImg != null) {\r\n icon = new ImageIcon(scaledImg);\r\n }\r\n }\r\n return icon;\r\n }", "private ImageIcon getJLFImageIcon(String name) {\n\t\tString imgLocation = \"/toolbarButtonGraphics/\" + name + \"24.gif\";\n\t\treturn getMyImage(imgLocation);\n\t}", "Icon createIcon();", "public String getIconFileName() {\n return null;\n }", "public Icon getIcon(String spellName);", "public org.netbeans.modules.j2ee.dd.api.common.Icon getIcon(){return null;}", "public static ImageIcon getIconImage(String filename){\t\r\n\t\tImageIcon image = new ImageIcon(ServerMain.RUTA+\"img/\"+filename);\r\n\t\tif(image.getImageLoadStatus()==4) return null;\r\n\t\treturn image;\r\n\t}", "private File iconFile(String appName, String fileName) {\n return new File(new File(appsDir, appName), fileName);\n }", "public String getIcon() {\n\t\treturn \"icon\";\n\t}", "public Icon loadIcon(String fileName){\n\t\tURL imageURL = getClass().getResource(fileName);\n\t\tIcon icon = null;\n\t\t\n\t\tif (imageURL != null) { \n\t icon = new ImageIcon(imageURL);\n\t } else { \n\t System.err.println(\"Resource not found: \" + fileName);\n\t }\n\n\t\treturn icon;\n\t}", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n }\n return s;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\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 icon_ = s;\n }\n return s;\n }\n }", "public ImageDescriptor getIcon();", "public static ImageIcon getIcon() {\n if (!(icon instanceof ImageIcon)) {\r\n Double jre_version = Double.parseDouble(System.getProperty(\"java.version\").substring(0, 3));\r\n if (jre_version < 1.6) {\r\n icon = APP_ICON;\r\n } else {\r\n icon = new ImageIcon();\r\n icon.setImage((Image) APP_ICONS.get(0));\r\n }\r\n }\r\n return icon;\r\n }", "@Override\n\tpublic String getIconFileName() {\n\t\treturn null;\n\t}", "private ImageIcon getMyImageIcon(String name) {\n\t\tString fullName = \"/images\" + '/' + name + \".gif\";\n\t\treturn getMyImage(fullName);\n\t}", "public abstract ImageDescriptor getIcon();", "private ImageIcon openImageIcon(String name){\n return new ImageIcon(\n getClass().getResource(name)\n );\n }", "@Override\n public java.awt.Image getIcon(int iconKind) {\n switch (iconKind) {\n case ICON_COLOR_16x16:\n if (iconNameC16 == null) {\n return null;\n } else {\n if (iconColor16 == null) {\n iconColor16 = loadImage(iconNameC16);\n }\n return iconColor16;\n }\n case ICON_COLOR_32x32:\n if (iconNameC32 == null) {\n return null;\n } else {\n if (iconColor32 == null) {\n iconColor32 = loadImage(iconNameC32);\n }\n return iconColor32;\n }\n case ICON_MONO_16x16:\n if (iconNameM16 == null) {\n return null;\n } else {\n if (iconMono16 == null) {\n iconMono16 = loadImage(iconNameM16);\n }\n return iconMono16;\n }\n case ICON_MONO_32x32:\n if (iconNameM32 == null) {\n return null;\n } else {\n if (iconMono32 == null) {\n iconMono32 = loadImage(iconNameM32);\n }\n return iconMono32;\n }\n default:\n return null;\n }\n }", "protected Image loadIcon() {\n /*\n * Icon by http://www.artua.com/, retrieved here:\n * http://www.iconarchive.com/show/star-wars-icons-by-artua.html\n */\n return new ImageLoader().loadIcon(\"moon.png\");\n }", "public AppIcon getAppIcon () ;", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public java.lang.String getIcon() {\n java.lang.Object ref = icon_;\n if (!(ref instanceof java.lang.String)) {\n java.lang.String s = ((com.google.protobuf.ByteString) ref)\n .toStringUtf8();\n icon_ = s;\n return s;\n } else {\n return (java.lang.String) ref;\n }\n }", "public final String getSuffix() {\n/* 62 */ return \".jpg\";\n/* */ }", "public Image getIconImage(){\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"Reportes/logoAlk.jpg\"));\n return retValue;\n }", "private String getImageUrl(String suffix) {\n\t\treturn IMAGE_URL_PREFIX + name.replace(HERO_NAME_PREFIX, HERO_NAME_PREFIX_REPLACEMENT) + suffix;\n\t}", "@Source(\"create.gif\")\n\tpublic DataResource createIconResource();", "private ImageIcon createIcon(String path) {\r\n\t\tInputStream is = this.getClass().getResourceAsStream(path);\r\n\t\tif (is == null) {\r\n\t\t\tthrow new IllegalArgumentException();\r\n\t\t}\r\n\t\tByteArrayOutputStream buffer = new ByteArrayOutputStream();\r\n\t\t\r\n\t\tint n;\r\n\t\tbyte[] data = new byte[4096];\r\n\t\ttry {\r\n\t\t\twhile ((n = is.read(data, 0, data.length)) != -1) {\r\n\t\t\t\tbuffer.write(data, 0, n);\r\n\t\t\t}\r\n\t\t\tis.close();\r\n\t\t} catch (IOException e) {\r\n\t\t\tthrow new RuntimeException();\r\n\t\t}\r\n\t\t\r\n\t\treturn new ImageIcon(buffer.toByteArray());\r\n\t\t\r\n\t}", "public abstract ImageIcon getIcon(int size);", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Sisapre001.png\"));\n return retValue;\n }", "private String downloadIcon(String iconUrl) {\n String[] urlArr = iconUrl.split(\"/\");\n String iconFileName = urlArr[urlArr.length - 1];\n // Files array from app personal storage\n String[] files = fileList();\n\n // If icon file name is present in personal storage return icon name\n for (String fileName : files) {\n if (fileName.equals(iconFileName)) return iconFileName;\n }\n\n // Else download the icon\n try {\n URL url = new URL(iconUrl);\n URLConnection connection = url.openConnection();\n connection.connect();\n InputStream input = new BufferedInputStream(url.openStream());\n FileOutputStream fileOutputStream = openFileOutput(iconFileName, Context.MODE_PRIVATE);\n\n byte tmpBuffer[] = new byte[1024];\n int read = input.read(tmpBuffer);\n\n while (read != -1) {\n fileOutputStream.write(tmpBuffer, 0, read);\n read = input.read(tmpBuffer);\n }\n\n fileOutputStream.flush();\n fileOutputStream.close();\n\n } catch (MalformedURLException e) {\n e.printStackTrace();\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n return iconFileName;\n }", "private ImageIcon createIcon(String path) {\n\t\tbyte[] bytes = null;\n\t\ttry(InputStream is = JNotepadPP.class.getResourceAsStream(path)){\n\t\t\tif (is==null) throw new IllegalArgumentException(\"Wrong path to the image given.\");\n\t\t\tbytes = is.readAllBytes();\n\t\t}catch(Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\treturn new ImageIcon(bytes);\n\t}", "@Source(\"create.gif\")\n\tpublic ImageResource createIcon();", "public static IIconDescriptor getIconDescriptor() {\n\t\tif (iconDescriptor == null)\n\t\t\ticonDescriptor = new ServerIconDescriptor(\"servers\"); //$NON-NLS-1$\n\t\treturn iconDescriptor;\n\t}", "@Nonnull\n S iconify();", "public abstract String typeIcon();", "protected URL getResource(String filename)\n {\n URL iconURL = getClass().getResource(filename);\n if (iconURL == null)\n {\n LOGGER.warn(\"Icon not found: \" + filename);\n }\n return iconURL;\n }", "IconUris iconUris();", "public String iconResource() {\n return \"/org/netbeans/core/resources/actions/addJarArchive.gif\"; // NOI18N\n }", "public byte[] getIcon(String url) {\n return mIconUrlToIconMap.get(url);\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Images/mainIcon.png\"));\n\n\n return retValue;\n }", "public interface IconManager {\n\n\t/**\n\t * Fetch an icon\n\t * \n\t * @param id\n\t * Icon id\n\t * @param size\n\t * Required icon size\n\t * @return Icon\n\t */\n\tIcon getIcon(String id, IconSize size);\n\n\t/**\n\t * Returns the URL to an icon.\n\t * \n\t * @param id\n\t * Icon id\n\t * @param size\n\t * Required icon size\n\t * @return URL to the icon\n\t */\n\tURL getIconURL(String iconId, IconSize medium);\n\n}", "public String getGuiTexture(String suffix) {\n return Reference.TEXTURE_PATH_GUI + eConfig.getNamedId() + \"_gui\" + suffix + \".png\";\n }", "public static Drawable getIcon(int param0) {\n }", "protected static ImageIcon createImageIcon(String path) {\r\n java.net.URL imgURL = FileChooser.class.getResource(path);\r\n if (imgURL != null) {\r\n return new ImageIcon(imgURL);\r\n } else {\r\n System.err.println(\"Couldn't find file: \" + path);\r\n return null;\r\n }\r\n \r\n\t\t\r\n\t}", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"images/icon.png\"));\n return retValue;\n }", "@Override\r\n\t\tpublic void requestIcon(String arg0) {\n\t\t\t\r\n\t\t}", "public ImageIcon getIcon() {\n\t\tswitch (state[2]) {\n\t\tcase \" Sunny\":\n\t\t\treturn new ImageIcon(\"weatherIcons/sunny.png\");\n\t\tcase \" Cloudy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/cloudy.png\");\n\t\tcase \" Light Clouds\":\n\t\t\treturn new ImageIcon(\"weatherIcons/light clouds.png\");\n\t\tcase \" Windy\":\n\t\t\treturn new ImageIcon(\"weatherIcons/windy.png\");\n\t\tcase \" Heavy Rain\":\n\t\t\treturn new ImageIcon(\"weatherIcons/heavy rain.png\");\n\t\tcase \" Light Rain Showers\":\n\t\t\treturn new ImageIcon(\"weatherIcons/rain showers_light rain.png\");\n\t\tcase \" Snow\":\n\t\t\treturn new ImageIcon(\"weatherIcons/snow.png\");\n\t\tcase \" Lightning\":\n\t\t\treturn new ImageIcon(\"weatherIcons/lightning.png\");\n\t\tdefault:\n\t\t\treturn new ImageIcon(\"weatherIcons/default.png\");\n\t\t}\n\t}", "public int getIcon() {\n int i=0;\n String b = \"\";\n try {\n FileInputStream i1 = c.openFileInput(\"faculty.txt\"); //open the faculty file\n int size1 = i1.available();\n byte[] buffer1 = new byte[size1];\n i1.read(buffer1);\n i1.close();\n b = new String(buffer1); //b set to the text in the file\n } catch (IOException e) {\n e.printStackTrace();\n }\n\n\n if(b.equals(\"Faculty of Engineering\")){ //comparing b(faculty in the file) to the Faculty of Engineering.This is repeated for the other faculties\n i=R.drawable.engine; //id of the engneering icon in the drawable file\n }\n if(b.equals(\"Faculty of Food and Agriculture\")){\n i=R.drawable.food;\n }\n if(b.equals(\"Faculty of Science and Technology\")){\n i=R.drawable.tech;\n }\n if(b.equals(\"Faculty of Medical Sciences\")){\n i=R.drawable.med;\n }\n if(b.equals(\"Faculty of Social Sciences\")){\n i=R.drawable.oc;\n }\n if(b.equals(\"aculty of Humanities and Education\")){\n i=R.drawable.human;\n }\n if(b.equals(\"Faculty of Law\")){\n i=R.drawable.la;\n }\n return i;\n }", "public static Image getImageIcons(String name) {\n\t\tString img[] = new String[] { \"iconsForm/frmEdit.png\",\n\t\t\t\t\"iconsForm/frmImp.png\", \"iconsForm/frmConsulta.png\",\n\t\t\t\t\"toolbar/btnIncluir.png\", \"toolbar/btnSalvar.png\",\n\t\t\t\t\"toolbar/btnApagar.png\", \"toolbar/btnLimpar.png\",\n\t\t\t\t\"toolbar/btnPesquisar.png\", \"toolbar/btnImprimir.png\",\n\t\t\t\t\"toolbar/btnSair.png\" };\n\n\t\ttry {\n\t\t\tfor (int i = 0; i < img.length; i++){\n\t\t\t\tif (img[i].toLowerCase().indexOf(name.toLowerCase()) > -1){\n\t\t\t\t\tSystem.out.println(dirImg + \"/\" + img[i]);\n\t\t\t\t\treturn new AImage(\" \", new WinUtils().getClass().getResourceAsStream(dirImg + \"/\" + img[i]));\n\t\t\t\t}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn null;\n\t}", "@Override public Icon getIcon(DotPalette pal) {\n int i=0;\n for(Object choice: DotPalette.values()) {\n if (i>=icons.size()) break;\n if (pal==choice) return icons.get(i);\n i++;\n }\n return icons.get(0);\n }", "public abstract Drawable getIcon();", "public static ImageIcon getIcon(String path) {\r\n URL url = ResourceManager.class.getResource(path);\r\n if (url != null) {\r\n return new ImageIcon(url);\r\n } else {\r\n throw new RuntimeException(\"Resource file not found: \" + path);\r\n }\r\n }", "@NotNull\n SVGResource getIcon();", "public static ImageIcon get(String subdir, String name) {\n ImageIcon icon = getIfAvailable(subdir, name);\n if (icon == null) {\n String ext = name.indexOf('.') != -1 ? \"\" : \".png\";\n throw new NullPointerException(\"/images/\" + subdir + \"/\" + name + ext + \" not found\");\n }\n return icon;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().getImage(ClassLoader.getSystemResource(\"imagenes/Icon.jpg\"));\n return retValue;\n }", "static String getMascotImageFilename() {\n Path filePath = Paths.get(badgeResourcePath, \"kumoricon_2017-mascot_chibi.png\");\n return filePath.toAbsolutePath().toString();\n }", "private int getIconInt(String icon) {\n switch (icon){\n case \"01d\": return R.drawable.w01d;\n case \"01n\": return R.drawable.w01n;\n case \"02d\": return R.drawable.w02d;\n case \"02n\": return R.drawable.w02n;\n case \"03d\": return R.drawable.w03d;\n case \"03n\": return R.drawable.w03n;\n case \"04d\": return R.drawable.w04d;\n case \"04n\": return R.drawable.w04n;\n case \"09d\": return R.drawable.w09d;\n case \"09n\": return R.drawable.w09n;\n case \"10d\": return R.drawable.w10d;\n case \"10n\": return R.drawable.w10n;\n case \"11d\": return R.drawable.w11d;\n case \"11n\": return R.drawable.w11n;\n case \"13d\": return R.drawable.w13d;\n case \"13n\": return R.drawable.w13n;\n case \"50d\": return R.drawable.w50d;\n case \"50n\": return R.drawable.w50n;\n\n }\n\n return R.drawable.w01d;\n }", "public Image getIcon(int type) {\n if ((type == BeanInfo.ICON_COLOR_16x16) || (type == BeanInfo.ICON_MONO_16x16))\n return defaultIcon;\n else\n return defaultIcon32;\n }", "@Override\n public Image getIconImage() {\n Image retValue = Toolkit.getDefaultToolkit().\n getImage(ClassLoader.getSystemResource(\"Imagenes/Icono.png\"));\n return retValue;\n}", "private File lookupIconInTheme(String iconName, IconTheme theme, int iconSize) {\n\t\tfor(IconTheme.Directory subdir : theme.directories) {\n\t\t\tfor(File iconBaseDir : iconBaseDirs) {\n\t\t\t\t// Directory of icons\n\t\t\t\tFile iconDir = new File(iconBaseDir, theme.name + File.separator + subdir.name);\n\t\t\t\tif(directoryMatchesSize(subdir, iconSize)) {\n\t\t\t\t\t// Directory has right size, find matching extension\n\t\t\t\t\tfor(String ext : EXTENSIONS) {\n\t\t\t\t\t\tFile icon = new File(iconDir, iconName + \".\" + ext);\n\t\t\t\t\t\tif(icon.exists()) {\n\t\t\t\t\t\t\treturn icon;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\n\n\t\t\t}\n\t\t}\n\t\n\t\t\n\t\t// Try to find an the best fitting match\n\t\tFile best_match = null;\n\t\tint minDistance = Integer.MAX_VALUE;\n\t\tfor(IconTheme.Directory subdir : theme.directories) {\n\t\t\tfor(File iconBaseDir : iconBaseDirs) {\n\t\t\t\t// Directory of icons\n\t\t\t\tFile iconDir = new File(iconBaseDir, theme.name + File.separator + subdir.name);\n\t\t\t\tint distance = directorySizeDistance(subdir, iconSize);\n\t\t\t\tif(distance < minDistance) {\n\t\t\t\t\tfor(String ext : EXTENSIONS) {\n\t\t\t\t\t\tFile icon = new File(iconDir, iconName + \".\" + ext);\n\t\t\t\t\t\tif(icon.exists()) {\n\t\t\t\t\t\t\tbest_match = icon;\n\t\t\t\t\t\t\tminDistance = distance;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn best_match;\n\t}", "public URL getIcon()\r\n {\r\n\treturn icon;\r\n }", "public Icon getIcon(int var1, int var2)\n {\n int var3 = var2 & 3;\n int var4 = (var2 & -4) >> 2;\n return this.m_IconArray[var3][var4];\n }", "com.google.protobuf.ByteString\n getIconBytes();", "com.google.protobuf.ByteString\n getIconBytes();", "@Override\n\tprotected String iconResourceName() {\n\t\treturn \"nkv550.png\";\n\t}", "@Override\n\tpublic Icon getIcon(int width, int height) {\n\t\treturn null; // Use Display Name instead of an icon.\n\t}", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getIconBytes() {\n java.lang.Object ref = icon_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b = \n com.google.protobuf.ByteString.copyFromUtf8(\n (java.lang.String) ref);\n icon_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public static int getNotificationIcon(Context cxt, String icon){\n int imageResource = 0;\n if(!icon.isEmpty()) {\n imageResource = cxt.getResources().getIdentifier(icon, \"drawable\", cxt.getPackageName());\n if (imageResource != 0) {\n return imageResource;\n }\n }\n\n imageResource = cxt.getResources().getIdentifier(\"ic_stat_pushprime\", \"drawable\", cxt.getPackageName());\n if(imageResource != 0){\n return imageResource;\n }\n return R.drawable.ic_stat_pushprime_fallback;\n }", "@Override\n public Image getIconImage() {\n java.net.URL imgURL = MainWindowAlt.class.getResource(\"images/logo.gif\");\n if (imgURL != null) {\n return new ImageIcon(imgURL).getImage();\n } else {\n return null;\n }\n }", "@Override\n public String getIconFileName() {\n return BallColor.BLUE.getImage();\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "public String getIcon() {\n return icon;\n }", "private Label createIcon(String name) {\n Label label = new Label();\n Image labelImg = new Image(getClass().getResourceAsStream(name));\n ImageView labelIcon = new ImageView(labelImg);\n label.setGraphic(labelIcon);\n return label;\n }", "public @Nullable IIconData getIcon(@Nullable URL url);", "java.lang.String getGameIconUrl();", "public String getIconString() {\n return theIconStr;\n }", "public Icon getIcon(@NotNull DartComponent component) {\n return getIcon();\n }", "public Icon getIcon(Object object);" ]
[ "0.75395185", "0.6913327", "0.6913327", "0.6875535", "0.6792015", "0.6792015", "0.655478", "0.65157115", "0.64293456", "0.6375659", "0.6327834", "0.63243926", "0.63177115", "0.6282635", "0.6280836", "0.6216434", "0.62157077", "0.61682034", "0.6152233", "0.61384153", "0.6114001", "0.6104133", "0.60237384", "0.6015511", "0.6007862", "0.5976472", "0.597528", "0.59466773", "0.593879", "0.593879", "0.5937516", "0.59330577", "0.59139067", "0.59005076", "0.58936346", "0.58933467", "0.5884064", "0.58676845", "0.5866481", "0.58637667", "0.58637667", "0.58591634", "0.58404815", "0.5831517", "0.58240324", "0.5821726", "0.57922554", "0.5788334", "0.57781166", "0.57647294", "0.5764236", "0.573853", "0.5729308", "0.57278", "0.5726667", "0.5705247", "0.5704973", "0.5704556", "0.56974965", "0.56882566", "0.5683984", "0.5677044", "0.56698906", "0.5669794", "0.56654966", "0.56478375", "0.5644095", "0.56434083", "0.563896", "0.5637077", "0.56321675", "0.56235117", "0.56057715", "0.5604869", "0.5602176", "0.55942446", "0.5593845", "0.55931616", "0.55903894", "0.5580731", "0.5573945", "0.5556599", "0.5556599", "0.55560064", "0.55193806", "0.55142987", "0.55142987", "0.5507977", "0.55073506", "0.55033696", "0.5501228", "0.5501228", "0.5501228", "0.5501228", "0.5497487", "0.5493394", "0.5491574", "0.54838616", "0.54794174", "0.54730344" ]
0.56863666
60
Locates the given component on the screen's center.
protected void locateOnScreen(Component component) { Dimension paneSize = component.getSize(); Dimension screenSize = component.getToolkit().getScreenSize(); component.setLocation( (screenSize.width - paneSize.width) / 2, (screenSize.height - paneSize.height) / 2); // TODO: handle exception }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@SuppressWarnings(\"unchecked\")\n public void centralizarComponente() {\n Dimension ds = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension dw = getSize();\n setLocation((ds.width - dw.width) / 2, (ds.height - dw.height) / 2);\n }", "public static void centerWindowOnScreen(Component component) {\r\n Dimension paneSize = component.getSize();\r\n Dimension screenSize = component.getToolkit().getScreenSize();\r\n component.setLocation(\r\n (screenSize.width - paneSize.width) / 2,\r\n ((screenSize.height - paneSize.height) / 2) - 80);\r\n }", "public static void centerComponent(Component comp) {\n Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension frameSize = comp.getSize();\n comp.setLocation((screenSize.width - frameSize.width) / 2,\n (screenSize.height - frameSize.height) / 2);\n }", "private void center() {\r\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\r\n\r\n\t\tint x = (dim.width - getSize().width) / 2;\r\n\t\tint y = (dim.height - getSize().height) / 2;\r\n\r\n\t\tsetLocation(x, y);\r\n\t}", "public void centerOnScreen() {\n Runnable doUpdate = new Runnable() {\n public void run() {\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension window = getSize();\n int iCenterX = screen.width / 2;\n int iCenterY = screen.height / 2;\n setLocation(iCenterX - (window.width / 2), iCenterY - (window.height / 2));\n }\n };\n SwingUtilities.invokeLater(doUpdate);\n }", "private void center(Display display) {\n\t Monitor primary = display.getPrimaryMonitor();\n\t Rectangle bounds = primary.getBounds();\n\t Rectangle rect = shell.getBounds();\n\t int x = bounds.x + (bounds.width - rect.width) / 2;\n\t int y = bounds.y + (bounds.height - rect.height) / 2;\n\t shell.setLocation(x, y);\n\t}", "public void centerOnScreen()\n {\n \t// Get the size of the screen\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n \n // Determine the new location of the window\n int w = frame.getSize().width;\n int h = frame.getSize().height;\n int xloc = (dim.width-w)/2;\n int yloc = (dim.height-h)/2;\n\n // Move the window\n frame.setLocation(xloc, yloc);\n }", "private void centerScreen(){\n\t\tint xCenter = Toolkit.getDefaultToolkit().getScreenSize().width/2;\n\t\tint yCenter = Toolkit.getDefaultToolkit().getScreenSize().height/2;\n\t\tint xSize = this.getSize().width;\n\t\tint ySize = this.getSize().height;\n\t\tPoint p = new Point();\n\t\tp.setLocation(xCenter - xSize/2, yCenter - ySize/2);\n\t\tthis.setLocation(p);\n\t}", "Point getCenter();", "Point getCenter();", "public final Point getCenterPointOnScreen() {\n return bot.getManagers().getCalculations().tileToScreen(localRegionX, localRegionY,\n 0.5D, 0.5D, 0);\n }", "public final Point getCenterPointOnScreen() {\n\t\treturn Calculations.tileToScreen(getLocalRegionX(), getLocalRegionY(),\n\t\t\t\t0.5D, 0.5D, 0);\n\t}", "public void placeInCenter( JFrame f ){\n f.setLocation(widthScreen / 2 - f.getWidth()/2 , heightScreen / 2 - f.getHeight()/2);\n }", "public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2); \n}", "private void centreFrameInScreen() {\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }", "public void centerFrame() {\n Toolkit toolkit = getToolkit();\n Dimension size = toolkit.getScreenSize();\n setLocation((size.width/2 - getWidth()/2),(size.height/2 - getHeight()/2));\n }", "private void centerFrame() {\n Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();\n\n int x = (int) ((dimension.getWidth() - this.getWidth()) / 2);\n int y = (int) ((dimension.getHeight() - this.getHeight()) / 2);\n\n this.setLocation(x, y);\n }", "public abstract void centerScreen();", "private void centerWindow(JPanel panel)\n {\n Toolkit toolkit = Toolkit.getDefaultToolkit();\n Dimension scrnSize = toolkit.getScreenSize();\n Dimension labelSize = panel.getPreferredSize();\n int labelWidth = labelSize.width,\n labelHeight = labelSize.height;\n\n setLocation(scrnSize.width/2 - (labelWidth/2),\n scrnSize.height/2 - (labelHeight/2));\n }", "protected void centra() {\n\t\t\n\t\t// dimensione schermo\n\t\tDimension dimScreen = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint wScreen=dimScreen.width;\n\t\tint hScreen=dimScreen.height;\n\n\t\t// dimensione frame\n\t\tint wFrame=this.getWidth();\n\t\tint hFrame=this.getHeight();\n\t\t\n\t\t// calcolo le nuove coordinate\n\t\tint x = (wScreen-wFrame)/2;\n\t\tint y = (hScreen-hFrame)/2;\n\t\t\n\t\t// sposto il frame\n\t\tsetLocation(x, y);\n\t\t\n\t}", "public static JComponent positionComponent(int offsetx, int offsety, JComponent comp) {\n Dimension size = comp.getPreferredSize();\n comp.setBounds(offsetx, offsety, size.width, size.height);\n return comp;\n }", "private void centre() {\n Dimension localDimension = Toolkit.getDefaultToolkit().getScreenSize();\n int i2 = (int) Math.min(localDimension.width * WIDTH, localDimension.height * WIDTH);\n\n Rectangle localRectangle = new Rectangle();\n localRectangle.setBounds(((localDimension.width - i2) / TWO), \n ((localDimension.height - i2) / TWO), i2, i2);\n\n setBounds(localRectangle);\n\n }", "static void centre(Container container) {\n Rectangle maxScreenSize =\n GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();\n container.setLocation((maxScreenSize.width - container.getWidth())/2,\n (maxScreenSize.height - container.getHeight())/2);\n }", "public void centre(){\n //Skip if not windowed\n if(type != Type.WINDOWED){\n return;\n }\n\n //Retrieve the handle of the primary monitor\n long primaryMonitor = glfwGetPrimaryMonitor();\n\n //Retrieve the top left corner of the primary monitor\n IntBuffer posX;\n IntBuffer posY;\n try(MemoryStack stack = MemoryStack.stackPush()){\n posX = stack.mallocInt(1);\n posY = stack.mallocInt(1);\n glfwGetMonitorPos(primaryMonitor, posX, posY);\n }\n\n //Centre the window on that monitor\n GLFWVidMode mode = glfwGetVideoMode(primaryMonitor);\n int newX = posX.get(0) + (mode.width() / 2) - (int) (size.x / 2);\n int newY = posY.get(0) + (mode.height() / 2) - (int) (size.y / 2);\n\n //Move the window and change the field\n glfwSetWindowPos(handle, newX, newY);\n position.set(newX, newY);\n }", "private void registerCenter(MouseEvent e) {\n\t\tcenterX = e.getX();\n\t\tcenterY = e.getY();\n\t}", "public void centerDialog() {\n final Toolkit toolkit = Toolkit.getDefaultToolkit();\n final Dimension screenSize = toolkit.getScreenSize();\n final int x = (screenSize.width - getWidth()) / 2;\n final int y = (screenSize.height - getHeight()) / 2;\n setLocation(x, y);\n }", "public Point getLocation() {\r\n\t\treturn this.center;\r\n\t}", "public GJPoint2D center();", "public void smartCenter() {\n WebPlot p = getPrimaryPlot();\n if (p==null) return;\n\n if (isWcsSync()) {\n wcsSyncCenter(computeWcsSyncCenter());\n }\n else if (p.containsAttributeKey(WebPlot.FIXED_TARGET)) {\n Object o = p.getAttribute(WebPlot.FIXED_TARGET);\n if (o instanceof ActiveTarget.PosEntry) {\n ActiveTarget.PosEntry entry = (ActiveTarget.PosEntry) o;\n ImageWorkSpacePt ipt = p.getImageWorkSpaceCoords(entry.getPt());\n if (ipt!=null && p.pointInPlot(entry.getPt())) centerOnPoint(ipt);\n else simpleImageCenter();\n }\n } else {\n simpleImageCenter();\n }\n }", "public Component componentAt( int x, int y ) {\n Component component = componentAt( x, y, desktop, true );\n if ( component != desktop ) {\n return component;\n }\n \n return null; \n }", "public void setPosicao() {\n Dimension d = this.getDesktopPane().getSize();\n this.setLocation((d.width - this.getSize().width) / 2, (d.height - this.getSize().height) / 2);\n }", "public Point getCenter() {\n return location.center();\n }", "public void center() {\n\t\tif(parent != null) {\n\t\t\tfloat parMidWidth = parent.getWidth() / 2f;\n\t\t\tfloat parMidHeight = parent.getHeight() / 2f;\n\t\t\tfloat midWidth = width / 2f;\n\t\t\tfloat midHeight = height / 2f;\n\t\t\t\n\t\t\tfloat newX = parent.getX() + (parMidWidth - midWidth);\n\t\t\tfloat newY = parent.getY() + (parMidHeight - midHeight);\n\t\t\t\n\t\t\tposition = new Vec2f(newX, newY);\n\t\t\tfindPosRatios();\n\t\t}\n\t}", "private static void center(Shell shell) \n\t{\n\n Rectangle bds = shell.getDisplay().getBounds();\n\n Point p = shell.getSize();\n\n int nLeft = (bds.width - p.x) / 2;\n int nTop = (bds.height - p.y) / 2;\n\n shell.setBounds(nLeft, nTop, p.x, p.y);\n }", "public Location getCenter() {\n return new Location(location.getWorld(), (float) getRectangle().getCenterX(), (float) getRectangle().getCenterY());\n }", "public void centerOn(float x, float y) {\r\n\t\tposx_ = x - w() / 2;\r\n\t\tposy_ = y - h() / 2;\r\n\t}", "private void centerRegion() {\r\n\t\tthis.addComponent(BorderLayout.CENTER, mp);\r\n\t}", "public void centerScreen(int x, int y)\r\n {\r\n // Scaled parameters\r\n int width = View.WIDTH;\r\n int height = View.HEIGHT;\r\n int mapWidth = gameData.getMap().getWidth();\r\n int mapHeight = gameData.getMap().getHeight();\r\n\r\n xScreenOffset = x - width / 2;\r\n yScreenOffset = y - height / 2;\r\n\r\n // Limit Offset, so that the view never leaves the map\r\n if (xScreenOffset < 0)\r\n {\r\n xScreenOffset = 0;\r\n }\r\n if (xScreenOffset > mapWidth - width)\r\n {\r\n xScreenOffset = mapWidth - width;\r\n }\r\n if (yScreenOffset < 0)\r\n {\r\n yScreenOffset = 0;\r\n }\r\n if (yScreenOffset > mapHeight - height)\r\n {\r\n yScreenOffset = mapHeight - height;\r\n }\r\n }", "public void Center(JFrame frame)\n\t{\n\t\tDimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n\t\tint w = frame.getSize().width;\n\t\tint h = frame.getSize().height;\n\t\tint x = (dim.width-w)/2;\n\t\tint y = (dim.height-h)/2;\t\n\t\tframe.setLocation(x, y);\n\t}", "public Point getCenter() {\n \treturn new Point(x+width/2,y+height/2);\n }", "public static int getCenter() {\n\t\treturn Center;\n\t}", "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 static void setStaggeredLocation (Component c) {\n Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();\n Dimension d = c.getPreferredSize();\n\t\n int x = (screen.width - d.width)/2 + (nFrames-1)*32;\n if (x < 32) x = 32;\n else if (x > screen.width-128) x = screen.width-128;\n\t\n int y = (screen.height - d.height)/2 + (nFrames-1)*32;\n if (y < 32) y = 32;\n else if (y > screen.height-128) y = screen.height-128;\n\t\n c.setLocation(x, y);\n }", "public double getCenterX() {\n return this.getLayoutSlot().getX() + (int) (this.getLayoutSlot().getWidth() / 2);\n }", "public Coordinate getCenter() {\n return center;\n }", "public Point getCenterScreenLocation(int height, int width) {\r\n\t\tToolkit toolkit = Toolkit.getDefaultToolkit();\r\n\t\tDimension screenSize = toolkit.getScreenSize();\r\n\t\tint x = (screenSize.width - width) / 2;\r\n\t\tint y = (screenSize.height - height) / 2;\r\n\t\tPoint point = new Point(x, y);\r\n\t\treturn point;\r\n\t}", "protected void positionCenter() {\n\t\tlog(\"Positioning on center of line.\");\n\t\tdouble offset = -lineWidth / 2;\n\t\tbindTransition(getPilot().travelComplete(offset), LineFinderState.FINISH);\n\t}", "public void centerOnEntity(Item e)\n {\n xOffset = e.GetX() - refLinks.GetWidth()/2 + e.GetWidth()/2;\n yOffset = e.GetY() - refLinks.GetHeight()/2 + e.GetHeight()/2;\n checkCameraLimits();\n }", "public int getXCenter() {\n return getXOrigin() + panelWidth/2;\n }", "public int getCenter() {\n\t\t\treturn center;\n\t\t}", "public Point getCenter() {\r\n return this.center;\r\n }", "public static Location getEntityCenter(Entity entity) {\n\t\treturn entity.getBoundingBox().getCenter().toLocation(entity.getWorld());\n\t}", "private void centerFrame() {\n Dimension dim = Utils.getScreenSize();\n /* Calculate the new position, according frame size itself\n and set it to window location */\n MainFrame.setLocation((dim.width - X_SIZE) / 2, (dim.height - Y_SIZE) / 2);\n\n }", "void setHitboxCenter(float x, float y) {\n _hitboxCenter = new PVector(x, y);\n }", "public void setCenter(Point center) {\r\n this.center = center;\r\n }", "public Point getCenter() {\r\n\t\treturn center;\r\n\t}", "private double distanceToCenterOfDisplay(double x, double y) {\n\t\t// A^2 + B^2 = C^2\n\t\tdouble centerx = VIEWING_AREA_WIDTH / 2;\n\t\tdouble centery = VIEWING_AREA_HEIGHT / 2;\n\t\tdouble diffx = abs(centerx - x);\n\t\tdouble diffy = abs(centery - y);\n\t\tdiffx *= diffx;\n\t\tdiffy *= diffy;\n\t\treturn sqrt(diffx + diffy);\n\t}", "public void centerMapOnPoint(int targetX, int targetY) {\n\n int scaledWidth = (int) (TileDataRegister.TILE_WIDTH * scale);\n int scaledHeight = (int) (TileDataRegister.TILE_HEIGHT * scale);\n int baseX = (int) (map.getWidth() * TileDataRegister.TILE_WIDTH * scale) / 2;\n\n int x = baseX + (targetY - targetX) * scaledWidth / 2;\n x -= viewPortWidth * 0.5;\n int y = (targetY + targetX) * scaledHeight / 2;\n y -= viewPortHeight * 0.5;\n\n currentXOffset = -x;\n currentYOffset = -y;\n\n gameChanged = true;\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 }", "public Point getCenter() {\n return center;\n }", "public void centerJIF(JInternalFrame jif) {\n Dimension desktopSize = jDesktopPane1.getSize();\n // System.out.println(this.getParent()+\"---<>\"+desktopSize);\n Dimension jInternalFrameSize = jif.getSize();\n int width = (desktopSize.width - jInternalFrameSize.width) / 2;\n int height = (desktopSize.height - jInternalFrameSize.height) / 2;\n jif.setLocation(width, height);\n // jif.setVisible(true);\n }", "private void computeScreenLocation(MouseEvent mouseEvent)\r\n\t{\r\n\t\t\r\n\t\tscreenLocation.setLocation(mouseEvent.getX(), mouseEvent.getY());\r\n\t\tSwingUtilities.convertPointToScreen(screenLocation, (Component)mouseEvent.getSource());\r\n\t\r\n\t}", "public void centerJIF(JInternalFrame jif) {\n Dimension desktopSize = mainDesktopPane.getSize();\n Dimension jInternalFrameSize = jif.getSize();\n int width = (desktopSize.width - jInternalFrameSize.width) / 2;\n int height = (desktopSize.height - jInternalFrameSize.height) / 2;\n jif.setLocation(width, height);\n jif.setVisible(true);\n }", "public Confirm() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }", "public Point getCenter() {\n return new Point((int) getCenterX(), (int) getCenterY());\n }", "@Override\n public Location getDisplayedLocation() {\n this.displayedLocation = new Location((int)pane.getHvalue(), (int)pane.getVvalue(), curFloor, \"Unknown\");\n return displayedLocation;\n }", "public double getCenterX()\n {\n return mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n }", "void updatePosition() {\n if (gameScreen.cursorIsOnLeft()) \n {\n // set the panel's rightmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 11/12 - getWidth(), \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n else // Otherwise the cursor must be on the right half of the screen\n {\n // set the panel's leftmost edge to be 1/12th from the edge\n // set the panel's bottommost edge to be 1/6th from the edge\n setLocation(\n gameScreen.getScreenWidth() * 1/12, \n gameScreen.getScreenHeight() * 5/6 - getHeight());\n }\n }", "public planillaInsert() {\n initComponents();\n int lebar = this.getWidth()/2;\n int tinggi = this.getHeight()/2;\n int x = (Toolkit.getDefaultToolkit().getScreenSize().width/2)-lebar;\n int y = (Toolkit.getDefaultToolkit().getScreenSize().height/2)-tinggi;\n this.setLocation(x, y);\n }", "public Coords getCenter()\r\n {\r\n return new Coords(Math.round(x + width / 2), Math.round(y + height / 2));\r\n }", "public PointF getCenter() {\n return center;\n }", "public void centerCameraOn(GameObject thing) {\r\n\t\tthis.cameraX = (int)(thing.getX() - Game.WIDTH / 2);\r\n\t\tthis.cameraY = (int) (thing.getY() - Game.HEIGHT / 2);\r\n\t}", "public Vector2 getCenter() {\n\t\treturn new Vector2(position.x + size / 4f, position.y + size / 4f);\n\t}", "public double getCenter() {\n return 0.5 * (lo + hi);\n }", "public void setCenter(Point center) {\r\n\t\tthis.center = center;\r\n\t}", "public final float exactCenterX() {\n return (left + right) * 0.5f;\n }", "private void center() {\n if (autoCenter) {\n animateTranslationX();\n animateTranslationY();\n }\n }", "public final Vector getCenter() {\n\t\treturn (center == null) ? computeCenter() : center;\n\t}", "Point onScreen();", "private void updateLocation() {\n myLocationOnScreenRef.set(myComponent.getLocationOnScreen());\n }", "public int getYCenter() {\n return getYOrigin() + panelHeight/2;\n }", "public Login() {\n initComponents();\n Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();\n this.setLocation(dim.width/2-this.getSize().width/2, dim.height/2-this.getSize().height/2);\n }", "public void centerUserLocation(){\n ImageButton userLocation = (ImageButton) findViewById(R.id.userLocation);\n LatLng latLngUser = new LatLng(mapboxMap.getLocationComponent().getLastKnownLocation().getLatitude(),\n mapboxMap.getLocationComponent().getLastKnownLocation().getLongitude());\n\n userLocation.setOnClickListener(new View.OnClickListener() {\n @Override\n public void onClick(View v) {\n CameraPosition position = new CameraPosition.Builder()\n .target(latLngUser)\n .zoom(18)\n .tilt(0) // inclinaison de la camera max:60\n .build();\n\n mapboxMap.animateCamera(CameraUpdateFactory.newCameraPosition(position), 500);\n }\n });\n\n }", "public static void center(Window window)\n {\n DisplayMode displayMode = \n window.getGraphicsConfiguration().getDevice().getDisplayMode();\n\n window.setLocation(new Point(\n (displayMode.getWidth() - window.getSize().width) / 2,\n (displayMode.getHeight() - window.getSize().height) / 2));\n }", "public Point getLocationDialog(){\n try{\n return new Point( (int)this.getLocationOnScreen().getX() +(this.getWidth() /3), (int)this.getLocationOnScreen().getY()+this.menuBarData.getHeight());\n }catch(IllegalComponentStateException e){\n return new Point(100,100);\n }\n }", "public Vector2 getCenter() {\n return center;\n }", "public void setupCenter() {\r\n final JPanel centerPanel = new JPanel();\r\n centerPanel.setBackground(Color.BLACK);\r\n myGamePanel.setBackground(PANEL_COLOR);\r\n myGamePanel.setPreferredSize(\r\n new Dimension(myBoard.getWidth() * BLOCK_SIZE,\r\n myBoard.getHeight() * BLOCK_SIZE));\r\n centerPanel.add(myGamePanel);\r\n myFrame.add(centerPanel);\r\n }", "public Point2D getTopCenterPoint()\n {\n double x = mainVBox.getTranslateX() + (mainVBox.getWidth() / 2);\n double y = mainVBox.getTranslateY();\n return new Point2D(x, y);\n }", "public double getCenterY() {\n return this.getLayoutSlot().getY() + (int) (this.getLayoutSlot().getHeight() / 2);\n }", "public void componentMoved(ComponentEvent e)\n/* 415: */ {\n/* 416:482 */ TileGIS.this.mapPanel.setLocation(TileGIS.this.placeholder.getJComponent().getLocation());\n/* 417: */ }", "public void panCenterTo(float x, float y) {\n \t\tLocation location = mapDisplay.pointLocation(x, y);\n \t\tpanCenterTo(location);\n \t}", "public void setCenter() {\n\t\tthis.isCenter = true;\n\t}", "public int getCenterX() {\n\t\t\treturn (int) origin.x + halfWidth;\n\t\t}", "public double getCenterY() { return centerY.get(); }", "protected Vector3D getStartPosition(){\r\n\t\treturn new Vector3D(\r\n\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getX(),\r\n\t\t\t\tpnlSubDeviceButtons.getPosition( TransformSpace.GLOBAL).getY() + pnlSubDeviceButtons.getHeightXY( TransformSpace.GLOBAL)\r\n\t\t);\r\n\t}", "final public Vector2 getCenter()\n\t{\n\t\treturn center;\n\t}", "public void setCenter(Point centerPoint) {\n this.center = centerPoint;\n }", "public native vector kbAreaGetCenter(int areaID);", "@Override\n\tprotected Point getInitialLocation(Point initialSize)\n\t{\n\t\tShell shell = this.getShell();\n Monitor primary = shell.getMonitor();\n Rectangle bounds = primary.getBounds ();\n int x = bounds.x + (bounds.width - initialSize.x) / 2;\n int y = bounds.y + (bounds.height - initialSize.y) / 2;\n\t\treturn new Point(x, y);\n\t}", "public abstract Positionable findPositionForWindow(int y, int x);" ]
[ "0.706874", "0.7024103", "0.6916555", "0.67816025", "0.676986", "0.67113936", "0.6477343", "0.6462285", "0.6460198", "0.6460198", "0.64296436", "0.6326148", "0.6292712", "0.62834585", "0.62746143", "0.62683594", "0.62531585", "0.6250695", "0.6199036", "0.6197042", "0.6186882", "0.61620927", "0.61480963", "0.6139616", "0.61279845", "0.6080664", "0.60549223", "0.60492754", "0.60247827", "0.60145086", "0.5992218", "0.598833", "0.5982568", "0.59726113", "0.5963275", "0.59607875", "0.5941134", "0.592505", "0.5920288", "0.59181273", "0.58926755", "0.58803743", "0.586658", "0.5856257", "0.5797234", "0.5747278", "0.57434064", "0.5717882", "0.57067364", "0.56918323", "0.5691716", "0.5669911", "0.56697905", "0.566803", "0.56579167", "0.56537735", "0.5651437", "0.5647955", "0.5639569", "0.56344104", "0.56330615", "0.5621308", "0.5619266", "0.5616965", "0.5609136", "0.56070054", "0.5600314", "0.5584726", "0.5578129", "0.554961", "0.55460536", "0.5534721", "0.55209965", "0.5503807", "0.5501914", "0.54761213", "0.5476087", "0.5473342", "0.5457538", "0.5445815", "0.54112834", "0.54098487", "0.5405196", "0.5400241", "0.5397203", "0.539283", "0.5391612", "0.5389855", "0.53808075", "0.53795105", "0.53772867", "0.5374872", "0.536366", "0.5357026", "0.53541434", "0.5351548", "0.5347843", "0.5336917", "0.533496", "0.5333353" ]
0.7943692
0
Creates and answers an ActionListener that opens the help viewer.
protected ActionListener createHelpActionListener() { return null; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tg.printHelp(\"OthelloHelp.txt\");\n\t}", "@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }", "public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt) {\n\n HelpWindow helpWindow = new HelpWindow(this);\n helpWindow.setVisible(true);\n\n\n // HTMLDisplay helpdisplay = new HTMLDisplay( str, \"TerpPaint Help\" );\n //\t helpdisplay.setVisible( true );\n // System.out.println(\"help topics\");\n }", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n }", "private void mnHelpActionPerformed(java.awt.event.ActionEvent evt) {\n\n }", "protected void do_mntmStudentIHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRStudentHelpFrame studentHelpFrame = new DelVecchioMCSRStudentHelpFrame();\n\t\tstudentHelpFrame.setVisible(true);\n\t\t\n\t}", "protected void handleHelp(ActionEvent event) {\n\t}", "private void helpDocItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_helpDocItemActionPerformed\n helpBox.setVisible(true);\n }", "public void actionPerformed(ActionEvent event) \n\t\t\t\t{\n\t\t\t\t\thelpFrame = new JFrame(); \n\t\t\t\t\thelpText = new JTextField();\n\t\t\t\t\tscroller = new JScrollPane(helpText, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t\t\t\t\n\t\t\t\t helpFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\t helpFrame.setTitle(\"Help Instructions\");\n\t\t\t\t helpFrame.add(helpText, BorderLayout.CENTER);\n\t\t\t\t helpFrame.getContentPane().add(scroller, BorderLayout.CENTER);\n\t\t\t\t \n\t\t\t\t /**\n\t\t\t\t * Reads the help.txt file with the instructions \n\t\t\t\t */\n\t\t\t\t reader = null;\n\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t reader = new FileReader(\"help.txt\");\n\t\t\t\t helpText.read(reader, \"help.txt\");\n\t\t\t\t helpText.setEditable(false);\n\t\t\t\t }\n\t\t\t\t /**\n\t\t\t\t * @exception IOException signals that the help file was not found\n\t\t\t\t */ \n\t\t\t\t catch (IOException exception) \n\t\t\t\t {\n\t\t\t\t System.err.println(\"Help file not found\");\n\t\t\t\t exception.printStackTrace();\n\t\t\t\t } \n\t\t\t\t finally \n\t\t\t\t {\n\t\t\t\t if (reader != null) \n\t\t\t\t {\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t reader.close();\n\t\t\t\t } \n\t\t\t\t /**\n\t\t\t\t \t * @exception IOException signals that there was an error close the help file\n\t\t\t\t \t */ \n\t\t\t\t catch (IOException exception) \n\t\t\t\t {\n\t\t\t\t System.out.println(\"Error closing file\");\n\t\t\t\t exception.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t // displays help.txt on the helpframe\n\t\t\t\t helpFrame.setLocation(10, 270);\n\t\t\t\t helpFrame.setSize(700, 400);\n\t\t\t\t helpFrame.setVisible(true); \n\t\t\t\t}", "protected void HelpActionPerformed(ActionEvent e) {\n\t\tthis.setVisible(false);\n\t\tHelp frame = new Help();\n\t\tframe.UpFrame=this;\n\t\tframe.setVisible(true);\n\t}", "public void helpAboutAction() {\n new HelpAbout(this.parentFrame);\n }", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tJFrame hel=new JFrame(\"help\");\n\t\t\t\t\thel.setBounds(400, 200,675, 575);\n\t\t\t\t\thel.setResizable(false);\n\t\t\t\t\tJLabel l=new JLabel();\n\t\t\t\t\tl.setIcon(new ImageIcon(\"about.png\"));\n\t\t\t\t\n\t\t\t\t\thel.add(l);\n\t\t\t\t\thel.setVisible(true);\n\t\t\t\t}", "public void helpAbout_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "private void btn_HelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btn_HelpActionPerformed\n // go to help screen\n SIHS = new HelpScreen(value);\n SIHS.setVisible(true);\n\n\n }", "protected ActionListener createAboutActionListener() {\r\n return new AboutActionListener();\r\n }", "public static void actionPerformed()\r\n {\r\n AboutWindow.showAboutWindow();\r\n }", "@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }", "private ActionListener getSampleModelsMenuActionListener()\r\n {\r\n ActionListener actionListener = event ->\r\n {\r\n String actionCommand = event.getActionCommand();\r\n URI uri = null;\r\n try\r\n {\r\n uri = new URI(actionCommand);\r\n } \r\n catch (URISyntaxException e)\r\n {\r\n JOptionPane.showMessageDialog(\r\n frame, \"Invalid URI: \" + e.getMessage(), \r\n \"Error\", JOptionPane.ERROR_MESSAGE);\r\n return;\r\n }\r\n openUriInBackground(uri);\r\n };\r\n return actionListener;\r\n }", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}", "private void setupHelpButton() {\n\t\tImageIcon help_button_image = new ImageIcon(parent_frame.getResourceFileLocation() + \"help.png\");\n\t\tJButton help_button = new JButton(\"\",help_button_image);\n\t\thelp_button.setBorderPainted(false);\n\t\thelp_button.setBounds(1216, 24, 100, 100);\n\t\thelp_button.addActionListener(new ActionListener() {\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tHelp help_frame=new Help(PanelID.Quiz);\n\t\t\t\thelp_frame.setVisible(true);\n\t\t\t\tinput_from_user.requestFocusInWindow();//gets focus back to the spell here field\n\t\t\t}\n\t\t});\n\t\thelp_button.addMouseListener(new VoxMouseAdapter(help_button,null));\n\t\tadd(help_button);\n\t}", "protected void do_mntmFinancialHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRFinancialHelpFrame financialHelpFrame = new DelVecchioMCSRFinancialHelpFrame();\n\t\tfinancialHelpFrame.setVisible(true);\n\t}", "public void helpRequested(HelpEvent event) {\r\n }", "private void createActionListener() {\n this.addActionListener(new ActionListener() {\n @Override\n public void actionPerformed(ActionEvent e) {\n SearchBox source = (SearchBox) e.getSource();\n searchLinker.doSearch(source.getText());\n }\n });\n }", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n\t\tMainFrame_AboutBox dlg = new MainFrame_AboutBox(this);\n\t\tDimension dlgSize = dlg.getPreferredSize();\n\t\tDimension frmSize = getSize();\n\t\tPoint loc = getLocation();\n\t\tdlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);\n\t\tdlg.setModal(true);\n\t\tdlg.show();\n\t}", "protected void do_mntmParentHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRParentHelpFrame ParentHelpFrame = new DelVecchioMCSRParentHelpFrame();\n\t\tParentHelpFrame.setVisible(true);\n\t}", "private void showHelpDialog() {\n\n view.helpDialog();\n }", "public void helpSpecificAction() {\n new Help(getSpecificHelpTitle(), getSpecificHelp());\n }", "public void newHelp() {\n\t\tif(helpWindow){\n\t\t\tJOptionPane.showMessageDialog(null, \"Une fenêtre d'aide est déjà ouverte.\");\n\t\t}\n\t\telse {\n\t\t\thelpWindow = true;\n\t\t\t\n\t\t\tJFrame aide = new JFrame();\n\t\t\t\n\t\t\taide.setTitle(\"Aide\");\n\t\t\taide.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\taide.setSize(700,500);\n\t\t\taide.setLocationRelativeTo(null);\n\t\t\taide.setVisible(true);\n\n\t\t\tJTextArea helpText = new JTextArea();\n\t\t\thelpText.setText(Constants.HELP);\n\t\t\thelpText.setEditable(false);\n\n\t\t\tJScrollPane scrollbar = new JScrollPane(helpText);\n\t\t\tscrollbar.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);\n\t\t\tscrollbar.setHorizontalScrollBarPolicy(ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS);\n\n\t\t\taide.add(scrollbar);\n\t\t\t\n\t\t\taide.addWindowListener(new WindowAdapter() {\n\t\t\t public void windowClosed(WindowEvent e) {\n\t\t\t \thelpWindow = false;\n\t\t\t }\n\t\t\t});\n\t\t}\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\t// Handle The Various Menu Item Actions\n\t\tswitch (e.getActionCommand())\n\t\t{\n\t\t\t// File Menu Options\n\t\t\tcase \"New Window\":\n\t\t\t{\n\t\t\t\tSystem.out.println(\"User Selected 'File' > 'New Window'\");\n\n\t\t\t\t// Remove Action Listener's From Old Window Menu Bar And Close The Window\n\t\t\t\tNEW_WINDOW.removeActionListener(this);\n\t\t\t\tCLOSE.removeActionListener(this);\n\t\t\t\tUNDO.removeActionListener(this);\n\t\t\t\tREDO.removeActionListener(this);\n\t\t\t\tINSTRUCTIONS.removeActionListener(this);\n\t\t\t\tABOUT.removeActionListener(this);\n\t\t\t\tDEBUG.removeActionListener(this);\n\t\t\t\tWindow.close();\n\n\t\t\t\t// Call Main In The Launcher Class To Run A New Paint Window On The Event-Dispatch Thread\n\t\t\t\tLauncher.main(null);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"Close\":\n\t\t\t{\n\t\t\t\tSystem.out.println(\"User Selected 'File' > 'Close'\");\n\n\t\t\t\t// Close The Paint Application Window And Quit The Application\n\t\t\t\tWindow.close();\n\t\t\t\tSystem.exit(0);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Edit Menu Options\n\t\t\tcase \"Undo\":\n\t\t\t{\n\t\t\t\tSystem.out.println(\"User Selected 'Edit' > 'Undo'\");\n\n\t\t\t\t// Call The Undo Function In The Window Class\n\t\t\t\tWindow.undo();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"Redo\":\n\t\t\t{\n\t\t\t\tSystem.out.println(\"User Selected 'Edit' > 'Redo'\");\n\n\t\t\t\t// Call The Redo Function In The Window Class\n\t\t\t\tWindow.redo();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t// Help Menu Options\n\t\t\tcase \"Instructions\":\n\t\t\tcase \"About\":\n\t\t\t{\n\t\t\t\tSystem.out.println(\"User Selected 'Help' > '\" + e.getActionCommand() + \"'\");\n\n\t\t\t\t// Call The Show Help Function In The Window Class\n\t\t\t\tWindow.showHelp(e);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tcase \"Debug\":\n\t\t\t{\n\t\t\t\tSystem.out.println(\"User Selected 'Help' > 'Debug'\");\n\n\t\t\t\t// Call The Debug Function In The Window Class\n\t\t\t\tWindow.debug();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tdefault:\n\t\t\t{\n\t\t\t\t// Print The Un-Recognized Menu Item That Was Selected\n\t\t\t\tSystem.out.println(e.getActionCommand());\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "@Override\n\tprotected void handleHelp(ClickEvent event) {\n\t\t\n\t}", "public JMenu helpMenu() {\r\n final JMenu helpMenu = new JMenu(\"Help\");\r\n helpMenu.setMnemonic(KeyEvent.VK_H);\r\n final JMenuItem about = new JMenuItem(\"About...\");\r\n about.setMnemonic(KeyEvent.VK_A);\r\n about.addActionListener((theEvent) -> {\r\n final ImageIcon img = new ImageIcon(\"images//Lion.png\");\r\n final String sb = \"TCSS 305\\nAutumn 2016\\nKeldon Fischer\\n\";\r\n JOptionPane.showMessageDialog(null, sb, \r\n \"About\", \r\n JOptionPane.PLAIN_MESSAGE, img);\r\n });\r\n helpMenu.add(about);\r\n \r\n return helpMenu;\r\n }", "@Override\n public void actionPerformed(ActionEvent actionEvent) {\n\n //Simply opens a new Editor Window\n new EditorWindow().setVisible(true);\n\n }", "public void actionPerformed (ActionEvent e) { \n\t\ttry {\n\t\t\tnew HomeMenuGUI ();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogAbout();\r\n\t\t\t}", "public SpellCheckMenuBar()\n\t{\n\t\t// menu bar set up\n\t\tfile = new JMenu(\"File\");\n\t\thelp = new JMenu(\"Help\");\n\t\tnewFile = new JMenuItem(\"New File(s)\");\n\t\tfileClose = new JMenuItem(\"Close\");\n\t\thowToUse = new JMenuItem(\"How to use Spell Checker\");\n\t\tstats = new JMenu(\"Statistics\");\n\t\tprintStats = new JMenuItem(\"Print Statistics\");\n\t\n\t\t//ad items to menubar\n\t\tfile.add(newFile);\n\t\tfile.add(fileClose);\n\t\thelp.add(howToUse);\n\t\tstats.add(printStats);\n\t\tadd(file);\n\t\tadd(help);\n\t\tadd(stats);\n\n\t\t// menu bar listeners\n\t\t/*\n\t\t* closes program\n\t\t*/\n\t\tfileClose.addActionListener\n\t\t(\n\t\t\tnew ActionListener()\n\t\t\t{\n\t\t\t\tpublic void actionPerformed(ActionEvent event)\n\t\t\t\t{\t\n\t\t\t\t\t//System exits only if user responds with yes\n\t\t\t\t\tend = JOptionPane.showConfirmDialog(null, \"Are you sure you want to exit?\");\n\n\t\t\t\t\tif (end == JOptionPane.YES_OPTION) \n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.exit(0);\t\t\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t);\n\n\t\t/** \n\t\t* opens text file with instructions on how to use the program\n\t\t*/\n\t\thowToUse.addActionListener\n\t\t(\n\t\t\tnew ActionListener()\n\t\t\t{\n\t\t\t\tJFrame helpFrame; \n\t\t\t\tJTextField helpText;\n\t\t\t\tFileReader reader;\n\t\t\t\tJScrollPane scroller;\n\n\t\t\t\tpublic void actionPerformed(ActionEvent event) \n\t\t\t\t{\n\t\t\t\t\t// Creates the frame for the help instructions\n\t\t\t\t\thelpFrame = new JFrame(); \n\t\t\t\t\thelpText = new JTextField();\n\t\t\t\t\tscroller = new JScrollPane(helpText, JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);\n\t\t\t\t\t\n\t\t\t\t helpFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);\n\t\t\t\t helpFrame.setTitle(\"Help Instructions\");\n\t\t\t\t helpFrame.add(helpText, BorderLayout.CENTER);\n\t\t\t\t helpFrame.getContentPane().add(scroller, BorderLayout.CENTER);\n\t\t\t\t \n\t\t\t\t /**\n\t\t\t\t * Reads the help.txt file with the instructions \n\t\t\t\t */\n\t\t\t\t reader = null;\n\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t reader = new FileReader(\"help.txt\");\n\t\t\t\t helpText.read(reader, \"help.txt\");\n\t\t\t\t helpText.setEditable(false);\n\t\t\t\t }\n\t\t\t\t /**\n\t\t\t\t * @exception IOException signals that the help file was not found\n\t\t\t\t */ \n\t\t\t\t catch (IOException exception) \n\t\t\t\t {\n\t\t\t\t System.err.println(\"Help file not found\");\n\t\t\t\t exception.printStackTrace();\n\t\t\t\t } \n\t\t\t\t finally \n\t\t\t\t {\n\t\t\t\t if (reader != null) \n\t\t\t\t {\n\t\t\t\t try \n\t\t\t\t {\n\t\t\t\t reader.close();\n\t\t\t\t } \n\t\t\t\t /**\n\t\t\t\t \t * @exception IOException signals that there was an error close the help file\n\t\t\t\t \t */ \n\t\t\t\t catch (IOException exception) \n\t\t\t\t {\n\t\t\t\t System.out.println(\"Error closing file\");\n\t\t\t\t exception.printStackTrace();\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t \n\t\t\t\t // displays help.txt on the helpframe\n\t\t\t\t helpFrame.setLocation(10, 270);\n\t\t\t\t helpFrame.setSize(700, 400);\n\t\t\t\t helpFrame.setVisible(true); \n\t\t\t\t}\t\n\t\t\t}\n\t\t);\n\t}", "void showHelp() {\n\t\tif (helpScreen == null) {\n\t\t helpScreen = new Form(\"Walking Help\");\n\t\t helpScreen.append(\"^ = walk forward\\n\");\n\t\t helpScreen.append(\"v = walk backwards\\n\");\n\t\t helpScreen.append(\"< = turn left\\n\");\n\t\t helpScreen.append(\"> = turn right\\n\");\n\t\t helpScreen.append(\"fire = change reverb manually\\n\");\n\t\t}\n\t\thelpScreen.addCommand(toggleCommand);\n\t\thelpScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(helpScreen);\n }", "void aboutMenuItem_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "@FXML\n void helpEvent(ActionEvent event) {\n \tAlert help = new Alert(AlertType.INFORMATION);\n \thelp.setTitle(\"Fireworks Help\");\n \thelp.setHeaderText(null);\n \thelp.setContentText(\"This app models a firework in flight. \" + \n \t\t\t\"The firework's flight path during simulation is affected by:\\n\\n\" +\n \t \"a) Launcher angle [deg]: You can snap to an integer angle with the middle slider,\" +\n \t \" or you can directly input any real-valued angle to the middle text box (the change will register once you press ENTER).\" + \n \t \"\\nAngles allowed are between -15 and +15 degrees.\\n\\n\" + \n \t \"b) Wind Speed [km/h]: You can snap to an integer speed with the left-most slider,\" +\n \t \" or you can directly input any real-valued speed to the middle text box (the change will register once you press ENTER). \" +\n \t \"\\nSpeeds allowed are between -20 and +20 km/h.\\n\\n\" +\n \t \"You can change these values at any time during simulation!\\n\" + \n \t \"(Copyright Adan Moran-MacDonald, 2016)\");\n \t\n \thelp.showAndWait();\n }", "public void handleHelp() {\n if (!helpWindow.isShowing()) {\n helpWindow.show();\n } else {\n helpWindow.focus();\n }\n }", "public void actionPerformed(java.awt.event.ActionEvent e) {\n\t\t\t\t\tif (e.getActionCommand().equals(\"Explorer\")) {\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\tHistorique.ecrire(\"Ouverture de : \"+e);\r\n\t\t\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tOpenWithDefaultViewer.open(GestionRepertoire.RecupRepTravail());\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}", "public void aboutMenu(ActionEvent actionEvent) {\n anchorHelp.setVisible(true);\n paneNotation.setVisible(false);\n paneAbout.setVisible(true);\n }", "@Override\n public void actionPerformed( ActionEvent e ) {\n setContentPanel( about2 );\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tString url = \"Aide.html\";\r\n\t\t\t\tFile htmlFile = new File(url);\r\n\t\t\t\ttry {\r\n\t\t\t\t\tDesktop.getDesktop().browse(htmlFile.toURI());\r\n\t\t\t\t} catch (IOException e1) {\r\n\t\t\t\t\t// TODO Auto-generated catch block\r\n\t\t\t\t\te1.printStackTrace();\r\n\t\t\t\t}\r\n\t\t\t}", "public helpFrame() {\n this.setTitle(\"Help\");\n JPanel panel = new JPanel();\n panel.setLayout(new BoxLayout(panel, BoxLayout.Y_AXIS));\n\n JLabel helpLabel = new JLabel(\"This is helpful\");\n JTextArea helpArea = new JTextArea(\"Executable refers to the program which will be run, eg python, ls \" +\n \"\\n\\nInput file is the file, or files, to be read by the running program.\" +\n \"\\n\\nExecutable arguments are the parameters given to that program, eg example.py, -l\" +\n \"\\n\\nSearch text is the string Triana will look for in the executables output. \" +\n \"The integer directly after the search string will be sent to the next unit in the workflow. \" +\n \"If this unit is a collection FileUnit, the number will be used as the number of files in the collection.\");\n helpArea.setEditable(false);\n helpArea.setLineWrap(true);\n helpArea.setWrapStyleWord(true);\n\n JScrollPane scrollPane = new JScrollPane(helpArea);\n\n panel.add(helpLabel);\n panel.add(scrollPane);\n JButton ok = new JButton(\"Ok\");\n ok.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n dispose();\n }\n });\n panel.add(ok);\n this.add(panel);\n this.setSize(400, 200);\n this.setVisible(true);\n }", "private void jMenuItem141ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem141ActionPerformed\n URI uri = null;\n try {\n uri = new URI(\"http://manual.audacityteam.org/quick_help.html\");\n }\n catch (URISyntaxException ex) {\n Logger.getLogger(NewJFrame.class.getName()).log(Level.SEVERE, null, ex);\n }\n Desktop desktop = Desktop.isDesktopSupported() ? Desktop.getDesktop() : null;\n if (desktop != null && desktop.isSupported(Desktop.Action.BROWSE)) {\n try {\n desktop.browse(uri);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n }", "public void actionPerformed(ActionEvent e)\n {\n new AutoAnswerOptionsDialog(providerService, parentMenu)\n .setVisible(true);\n }", "@Override\r\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tJButton btn = (JButton)e.getSource();\r\n\t\tif(btn==btnVclListen)\r\n\t\t{\r\n\t\t\tSystem.out.println(\"ExerciseVocabulary_listen --> btnlisten_Click\");\r\n\t\t}\r\n\t\telse if(btn == btnFinal){\r\n\t\t\tSystem.out.println(\"ExerciseVocabulary_listen --> btnfinal_Click\");\r\n\t\t\t//Vocabulary vocabulary = new Vocabulary();\r\n\t\t}\r\n\t\telse if(btn == btnOpenfile){\r\n\t\t\tSystem.out.println(\"ExerciseVocabulary_listen --> btnOpen_Click\");\r\n\t\t\t//Vocabulary vocabulary = new Vocabulary();\r\n\t\t}\r\n\t\telse if(btn == btnHome){\r\n\t\t\tSystem.out.println(\"ExerciseVocabulary_listen --> btnHome_Click\");\r\n\t\t\tExVclListen.frame.setVisible(false);\r\n\t\t\tmenuVocabulary vcl = new menuVocabulary();\r\n\t\t\t\r\n\t\t\t//Vocabulary vocabulary = new Vocabulary();\r\n\t\t}\r\n\t}", "@Override\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tview.setREADMEVisible(true);\n\t\t}", "public void actionPerformed(ActionEvent e) {\r\n JTextPane pane = new JTextPane();\r\n JScrollPane scroller = new JScrollPane();\r\n scroller.getViewport().add(pane);\r\n JDialog dialog = new JDialog();\r\n dialog.getContentPane().add(scroller);\r\n dialog.pack();\r\n dialog.setSize(800, 500);\r\n dialog.setVisible(true);\r\n String htmlDocument = \"userguide.html\";\r\n \r\n try {\r\n java.net.URL url = \r\n new java.net.URL(\"file:docs\" + \r\n System.getProperty(\"file.separator\") + \r\n htmlDocument);\r\n pane.setPage(url);\r\n }\r\n catch(Exception ex) {\r\n updateStatus(ex.getMessage());\r\n }\r\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tdoOpen();\n\t\t\t}", "public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }", "private void helpWindow() {\n\n\t\t// Open a new window\n\t\tJFrame frame2 = new JFrame(\"Help\");\n\n\t\t// Create mainPanel2\n\t\tContainer mainPanel2 = frame2.getContentPane();\n\t\tmainPanel2.setLayout(new BoxLayout(mainPanel2, BoxLayout.Y_AXIS));\n\t\tmainPanel2.setForeground(Color.WHITE);\n\t\tmainPanel2.setBackground(Color.BLACK);\n\n\t\t// Add a jeditorpane\n\t\tJEditorPane instructions = new JEditorPane();\n\t\tinstructions.setText(\"TO PLAY NOTES:\\n \" + \"Click a key or use the following format: \\n \"\n\t\t\t\t+ \"\tA B B A --> Basic musical notes \\n\" + \"\tD# --> Make a note sharp \\n\"\n\t\t\t\t+ \"\tA R C --> R adds a rest \\n\" + \"\tE5 --> Play E in 5th octave \\n\"\n\t\t\t\t+ \"\tC5q+E5q+G5q A+G A+G --> Play chord using +\\n\\n\"\n\t\t\t\t+ \"To change note lengths the following characters can be used:\\n\" + \"\tw whole\\n\" + \"\th half\\n\"\n\t\t\t\t+ \"\tq quarter\\n\" + \"\ti eighth\\n\" + \"\ts sixteenth\\n\\n\" + \"TO PLAY RHYTHMS:\\n\"\n\t\t\t\t+ \"The following drum sounds are available:\\n\" + \"\tO bass drum\\n\" + \"\to bass drum 2\\n\"\n\t\t\t\t+ \"\t^ hi hat\\n\" + \"\t* snare drum\\n\" + \"\t! crash cymbal\\n\" + \"\t. ride cymbal\");\n\t\tinstructions.setForeground(Color.WHITE);\n\t\tinstructions.setBackground(Color.BLACK);\n\t\tinstructions.setFont(new Font(\"Ariel\", Font.PLAIN, 16));\n\n\t\t// Add instructions to the mainPanel\n\t\tmainPanel2.add(instructions);\n\n\t\t// Set the frame size and visible\n\t\tframe2.setSize(500, 550);\n\t\tframe2.setVisible(true);\n\n\t}", "protected void ACTION_B_HELP(ActionEvent arg0) {\n\t\t\r\n\t\tString msg = \"Network Packet Sniffer is JAva packet capturing and traffic analysis application\"\r\n\t\t\t\t+ \"\\n CAPTURE : Start capturing packets on the interface\"\r\n\t\t\t\t+ \"\\nSTOP : Stop capturing packets on the interface\"\r\n\t\t\t\t+ \"\\n LIST : List Network Interfaces on the host\"\r\n\t\t\t\t+ \"\\n SELECT : Select Interface to capture Packets with\"\r\n\t\t\t\t+ \"\\n FILTER : Filter on the selected port when filtering is enabled\"\r\n\t\t\t\t+ \"\\n ENABLE : Enable Port Filtering\"\r\n\t\t\t\t+ \"\\n HELP : Displays the help screen\"\r\n\t\t\t\t+ \"\\n SAVE : Save the information about the packet\"\r\n\t\t\t\t+ \"\\n LOAD : Load the saved data on the interface \"\r\n\t\t\t\t+ \"\\n \";\r\n\t\t\r\n\t\tJOptionPane.showMessageDialog(null, msg);\r\n\t}", "private void openHelpDialog() {\r\n\t\t// Get view and put relevant information into the view.\r\n\t\tLayoutInflater li = LayoutInflater.from(this);\r\n\t\tView view = li.inflate(R.layout.archive_help_dialog, null);\r\n\r\n\t\tnew AlertDialog.Builder(this)\r\n\t\t\t\t.setTitle(\r\n\t\t\t\t\t\tgetResources().getString(R.string.action_archive)\r\n\t\t\t\t\t\t\t\t+ \" \"\r\n\t\t\t\t\t\t\t\t+ getResources()\r\n\t\t\t\t\t\t\t\t\t\t.getString(R.string.action_help))\r\n\t\t\t\t.setIcon(R.drawable.icon)\r\n\t\t\t\t.setView(view)\r\n\t\t\t\t.setNegativeButton(R.string.dialog_general_button_close,\r\n\t\t\t\t\t\tnew DialogInterface.OnClickListener() {\r\n\t\t\t\t\t\t\t@Override\r\n\t\t\t\t\t\t\tpublic void onClick(DialogInterface dialog,\r\n\t\t\t\t\t\t\t\t\tint whichButton) {\r\n\t\t\t\t\t\t\t}\r\n\t\t\t\t\t\t}).show();\r\n\t}", "public void showHelp();", "private void jBtnHelpActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnHelpActionPerformed\n // TODO add your handling code here:\n if (Desktop.isDesktopSupported()) {\n try {\n File myFile = new File(\"help.txt\");\n Desktop.getDesktop().open(myFile);\n } catch (IOException ex) {\n // no application registered for PDFs\n }\n }\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == info) {\r\n\t\t\t\t\tmenu.setVisible(false);\r\n\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t.showMessageDialog(null,\r\n\t\t\t\t\t\t\t\t\t\"Dies ist eine Uhr mit einstellbaren Wecker\\nVersion 1.0\");\r\n\t\t\t\t}\r\n\t\t\t}", "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n // TODO add your handling code here:\n // Show the About form\n About myAbout = new About(this, true);\n myAbout.setVisible(true);\n }", "@FXML\n public void handleHelp() {\n if (!helpWindow.isShowing()) {\n helpWindow.show();\n } else {\n helpWindow.focus();\n }\n }", "public void actionPerformed(ActionEvent arg0) {\n\t\t \t \ttry {\n\t\t\t\t\t\tDesktop.getDesktop().open(new File(new File(\"\").getAbsolutePath() + \n\t\t\t\t\t\t\t\t\"\\\\src\\\\pdf\\\\DocumentationUtilisateur.pdf\"));\n\t\t\t\t\t} catch (IOException e) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te.printStackTrace();\n\t\t\t\t\t}\n\t\t }", "private void setActionListener() {\r\n\t\tactListener = new ActionListener() {\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tactController.handleMenuAction(e);\r\n\t\t\t}\r\n\t\t};\r\n\t}", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\t\n\t\t// New project clicked\n\t\tif(e.getSource() == windowTemplate.getNewProjectMenuItem()) {\n\t\t\tnewProject();\n\t\t}\n\t\t\n\t\t// Save project clicked\n\t\tif(e.getSource() == windowTemplate.getSaveProjectMenuItem()) {\n\t\t\tsaveProject();\n\t\t}\n\t\t\n\t\t// Load project clicked\n\t\tif(e.getSource() == windowTemplate.getLoadProjectMenuItem()) {\n\t\t\tloadProject();\n\t\t}\n\t\t\n\t\t// Help clicked\n\t\tif(e.getSource() == windowTemplate.getHelpMenuItem()) {\n\t\t\thelpTemplate.getFrame().setVisible(true);\n\t\t}\n\t\t\n\t\t// About clicked\n\t\tif(e.getSource() == windowTemplate.getAboutMenuItem()) {\n\t\t\tString message = \"Easynotes v1.0\\nCreated by: Steven Raines\\nCreated on: 8/28/2019\";\n\t\t\tJOptionPane.showMessageDialog(windowTemplate, message);\n\t\t}\n\t\t\n\t}", "@FXML\n\tvoid helpBTNE(MouseEvent event) throws IOException {\n\t\tMainAllControllers.setWindowVar(\"UserHelp\");\n\t\tMainAllControllers.changeWin();\n\t}", "private void jMenu_HelpTabMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu_HelpTabMouseClicked\n DigPopGUIUtilityClass.loadDefaultHelpGUIByScreenName(SCREEN_NAME);\n }", "private void actionOnClicHelp() {\r\n\t\ttry {\r\n\t\t\tGUIGeneralMethods.openWebPage(new URL(Constants.C_HELPING_URL));\r\n\t\t} catch (URISyntaxException | IOException e) {\r\n\t\t\tJOptionPane.showMessageDialog(frame, Constants.C_ERROR_WHILE_BROWSING_HELP, Constants.C_ERROR_DIALOG_TITLE,\r\n\t\t\t\t\tJOptionPane.ERROR_MESSAGE); \r\n\t\t\t//e.printStackTrace();\r\n\t\t}\r\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tfireDetailEvent(new DetailEvent(this, 'H'));\r\n\t\t\t}", "@FXML\r\n\tvoid help_btn_clicked(MouseEvent event) {\r\n\t\tDialog<String> dia = new Dialog<>();\r\n\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\tdia.setTitle(\"Help Dialog\");\r\n\t\tdia.setHeaderText(\"Guide:\");\r\n\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-info-48.png\").toString()));\r\n\t\t// Add a custom icon.\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-help-24.png\").toString()));\r\n\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\tdia.setContentText(\r\n\t\t\t\t\"Main Sale Pattern Screen\\nIn this screen you can choose sale from table,add sale, delete and open\\n\"\r\n\t\t\t\t\t\t+ \"for full information, click on specific sale and choose an action, in addition you can click\"\r\n\t\t\t\t\t\t+ \"on \\\"Statistics\\\" for statistic inforamtion\");\r\n\t\tdia.show();\r\n\t}", "public help() {\n initComponents();\n }", "private void showHelp() {\n\t\tJOptionPane.showMessageDialog(this, \"Created by Mario Bobić\", \"About File Encryptor\", JOptionPane.INFORMATION_MESSAGE);\n\t}", "@FXML\n private void showHelp(ActionEvent actionEvent)\n {\n DialogBox.showInformation(\"Welcome To Keycrypt\",\n \"Enter the password which corresponds to your access level. \" +\n \"Ask your system administrator which password you have access to.\\n\\n\" +\n \"The password entered will grant you access only to specific directories \" +\n \"within the application.\");\n }", "@SuppressWarnings(\"unchecked\")\n // <editor-fold defaultstate=\"collapsed\" desc=\"Generated Code\">//GEN-BEGIN:initComponents\n private void initComponents() {\n\n Hello = new javax.swing.JPanel();\n jLabel1 = new javax.swing.JLabel();\n events = new javax.swing.JPanel();\n chooseHelp = new javax.swing.JPanel();\n general = new javax.swing.JButton();\n browsing = new javax.swing.JButton();\n running = new javax.swing.JButton();\n jButton1 = new javax.swing.JButton();\n jScrollPane1 = new javax.swing.JScrollPane();\n helpTxt = new javax.swing.JTextArea();\n\n setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);\n\n Hello.setBackground(new java.awt.Color(56, 105, 100));\n\n jLabel1.setFont(new java.awt.Font(\"Segoe UI\", 1, 18)); // NOI18N\n jLabel1.setForeground(new java.awt.Color(255, 255, 255));\n jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);\n jLabel1.setText(\"Help\");\n\n javax.swing.GroupLayout HelloLayout = new javax.swing.GroupLayout(Hello);\n Hello.setLayout(HelloLayout);\n HelloLayout.setHorizontalGroup(\n HelloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(HelloLayout.createSequentialGroup()\n .addGap(160, 160, 160)\n .addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, 291, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addContainerGap(190, Short.MAX_VALUE))\n );\n HelloLayout.setVerticalGroup(\n HelloLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(jLabel1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 71, Short.MAX_VALUE)\n );\n\n events.setBackground(new java.awt.Color(18, 86, 104));\n\n chooseHelp.setBackground(new java.awt.Color(56, 105, 126));\n\n general.setText(\"General\");\n general.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n generalActionPerformed(evt);\n }\n });\n\n browsing.setText(\"Browsing Files\");\n browsing.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n browsingActionPerformed(evt);\n }\n });\n\n running.setText(\"Running the program\");\n running.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n runningActionPerformed(evt);\n }\n });\n\n jButton1.setText(\"Saving Report File\");\n jButton1.addActionListener(new java.awt.event.ActionListener() {\n public void actionPerformed(java.awt.event.ActionEvent evt) {\n jButton1ActionPerformed(evt);\n }\n });\n\n javax.swing.GroupLayout chooseHelpLayout = new javax.swing.GroupLayout(chooseHelp);\n chooseHelp.setLayout(chooseHelpLayout);\n chooseHelpLayout.setHorizontalGroup(\n chooseHelpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(general, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(browsing, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(running, javax.swing.GroupLayout.DEFAULT_SIZE, 187, Short.MAX_VALUE)\n .addComponent(jButton1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n chooseHelpLayout.setVerticalGroup(\n chooseHelpLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(chooseHelpLayout.createSequentialGroup()\n .addGap(82, 82, 82)\n .addComponent(general)\n .addGap(18, 18, 18)\n .addComponent(browsing)\n .addGap(18, 18, 18)\n .addComponent(running)\n .addGap(18, 18, 18)\n .addComponent(jButton1)\n .addContainerGap(119, Short.MAX_VALUE))\n );\n\n helpTxt.setEditable(false);\n helpTxt.setColumns(20);\n helpTxt.setFont(new java.awt.Font(\"Segoe UI\", 0, 14)); // NOI18N\n helpTxt.setLineWrap(true);\n helpTxt.setRows(5);\n helpTxt.setBorder(new javax.swing.border.MatteBorder(null));\n jScrollPane1.setViewportView(helpTxt);\n\n javax.swing.GroupLayout eventsLayout = new javax.swing.GroupLayout(events);\n events.setLayout(eventsLayout);\n eventsLayout.setHorizontalGroup(\n eventsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(eventsLayout.createSequentialGroup()\n .addComponent(chooseHelp, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(jScrollPane1))\n );\n eventsLayout.setVerticalGroup(\n eventsLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(chooseHelp, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(jScrollPane1)\n );\n\n javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());\n getContentPane().setLayout(layout);\n layout.setHorizontalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addComponent(Hello, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n .addComponent(events, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)\n );\n layout.setVerticalGroup(\n layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)\n .addGroup(layout.createSequentialGroup()\n .addComponent(Hello, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)\n .addGap(0, 0, 0)\n .addComponent(events, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))\n );\n\n pack();\n }", "private void showHelp() {\n\t\tif (_OpenHelpFrame != null) {\n\t\t\t_OpenHelpFrame.requestFocus();\n\t\t\treturn;\n\t\t}\n\n\t\tfinal JTextArea textPane = new JTextArea();\n\t\ttextPane.setEditable(JEntityEditor.this.security.level >= JEntityEditor.this.entity\n\t\t\t\t.getPermission(Entity.PERMISSION_EDIT_HELP).level);\n\t\ttextPane.setLineWrap(true);\n\t\ttextPane.setWrapStyleWord(true);\n\t\ttextPane.setText(state.help == null ? \"\" : state.help);\n\n\t\t_OpenHelpFrame = new JFrame();\n\t\t_OpenHelpFrame.setMinimumSize(new Dimension(300, 400));\n\t\t_OpenHelpFrame.setModalExclusionType(Dialog.ModalExclusionType.NO_EXCLUDE);\n\t\t_OpenHelpFrame.setAlwaysOnTop(true);\n\t\t_OpenHelpFrame.setLocationRelativeTo(this);\n\t\t_OpenHelpFrame.setLocation(this.getWidth(), 0);\n\t\t_OpenHelpFrame.setTitle(\"Help\");\n\t\t_OpenHelpFrame.addWindowListener(new WindowListenerAdapter() {\n\n\t\t\t@Override\n\t\t\tprotected void event(WindowEvent e) {\n\t\t\t\tif (e.getID() != WindowEvent.WINDOW_CLOSING && e.getID() != WindowEvent.WINDOW_CLOSED)\n\t\t\t\t\treturn;\n\t\t\t\tif (security.level >= JEntityEditor.this.entity.getPermission(Entity.PERMISSION_EDIT_HELP).level)\n\t\t\t\t\tstate.help = textPane.getText();\n\t\t\t\t_OpenHelpFrame = null;\n\t\t\t}\n\t\t});\n\t\t_OpenHelpFrame.add(new JScrollPane(textPane));\n\t\t_OpenHelpFrame.setVisible(true);\n\t}", "public void actionPerformed(ActionEvent oEvent) {\n if (oEvent.getActionCommand().equals(\"OK\") ||\n oEvent.getActionCommand().equals(\"Cancel\")) {\n //Close this window\n this.setVisible(false);\n this.dispose();\n }\n else if (oEvent.getActionCommand().equals(\"SummaryOptions\")) {\n ShortOutputFileSetup oOutputFrame = new ShortOutputFileSetup(this,\n m_oOutputBehaviors, m_oWindow);\n oOutputFrame.pack();\n oOutputFrame.setLocationRelativeTo(null);\n oOutputFrame.setVisible(true);\n }\n else if (oEvent.getActionCommand().equals(\"DetailedOutputOptions\")) {\n //Open detailed output file setup window\n DetailedOutputFileSetup outputFrame = new DetailedOutputFileSetup(this,\n m_oOutputBehaviors, m_oWindow);\n outputFrame.pack();\n outputFrame.setLocationRelativeTo(null);\n outputFrame.setVisible(true);\n }\n }", "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n //show the about form\n AboutTSP myAbout = new AboutTSP(this, true);\n myAbout.setVisible(true);\n }", "protected abstract void addHelpHandler(boolean hoverListener);", "public void addOpenListener(ActionListener actionListener) {\r\n jOpen.addActionListener(actionListener);\r\n }", "@FXML\n public void handleHelp() {\n HelpWindow helpWindow = new HelpWindow();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"191\", \"Type: \",\"org.eclipse.jdt.core.dom.VariableDeclarationStatement\", \"Method: \",\"handleHelp\", \"Class: \",\"MainWindow\", \"VariableName: \",\"HelpWindow\", \"VariableName: \",\"helpWindow\", \"VariableName: \",\"HelpWindow\");\n helpWindow.show();\n\t\tTemplateClass.instrum(\"LineNumber: \",\"192\", \"Type: \",\"org.eclipse.jdt.core.dom.ExpressionStatement\", \"Method: \",\"handleHelp\", \"Class: \",\"MainWindow\");\n }", "private void openDialogHelpJButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_openDialogHelpJButtonActionPerformed\n setCursor(new java.awt.Cursor(java.awt.Cursor.WAIT_CURSOR));\n BareBonesBrowserLaunch.openURL(\"http://cruxtoolkit.sourceforge.net/\");\n setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));\n }", "public AboutAction(CyApplicationManager appMgr,CySwingApplication swingApp) {\n\t\tsuper(Messages.AC_ABOUT,appMgr,swingApp);\n\t\tsetPreferredMenu(\"Plugins.\" + Messages.AC_MENU_ANALYSIS);\n\t}", "protected void showHelp() {\n try {\n String appletPath = getClass().getName().replace('.', '/');\n URL url = new URL(getCodeBase(), appletPath+\"Help.html\");\n getAppletContext().showDocument(url, \"Help\");\n } catch (IOException e) {\n showStatus(\"Help file not found\");\n }\n\n }", "public void showHelp(CommandSender sender) {\n\t\t\n\t}", "public void showHelp(OnClickListener cl) {\n\t\tBuilder adb = new AlertDialog.Builder(this);\n\t\tadb.setIcon(R.drawable.icon);\n \tadb.setTitle(\"Wallpaper Wizard\");\n \tadb.setMessage(Html.fromHtml(\"<b>Tap</b> the images you like, and I will \" + \n \t\t\t\"learn your preferences to suggest new images.<p>\" + \n \t\t\t\"<b>Press and Hold</b> an image to set it as your wallpaper \" + \n \t\t\t\"and save it to the 'wizard' directory on your SD card. \" + \n \t\t\t\"<p>All proceeds from ads will benefit the computer science \" + \n \t\t\t\"program at <b>Centenary College of Louisiana</b>.\"));\n \tadb.setPositiveButton(\"OK\", cl);\n \tadb.show(); \t\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n frame.setVisible(false);//when user clicks health assistant button the visibility of the frame for the home screen will be set to false\n new HealthAssistant();//displays the health assistant page\n }", "public void actionListenner()\n\t{\n\t\t// Add action Listener to each JButton.\n\t\t// WelcomePanel\n\t\tview.getFrame().add(view.getWelcomePanel().getWelcomePanel());\t\n\t\tview.getFrame().setVisible(true);\n\t\t\n\t\t// welcomeButton\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().remove(view.getWelcomePanel().getWelcomePanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\t\n\t\tview.getWelcomePanel().getWelcomeButton().addActionListener(event -> view.getFrame().pack());\n\n\t\t// MainPanel\n\t\t// playgameButton\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\t\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().add(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getPlaygameButtun().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//leaderboardButton\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.add(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t//quit\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().remove(view.getMainPanel().getMainPanel()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().add(view.getQuitPanel().getQuitPane()));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getMainPanel().getQuitButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// PlayerPanel\n\t\t// createButton\n\t\tview.getPlayerPanel().getCreateButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\n\t\t\t\tString input = view.getPlayerPanel().getInputBox().getText();\n\t\t\t\tSystem.out.println(input);\n\t\t\t\t\n\t\t\t\t\n\t\t\t\tboolean validname = gameInfo.getModel().getLeaderboard().isValidNewPlayers(input);\n\t\t\t\tSystem.out.println(validname);\n\t\t\t\t\n\t\t\t\tif(validname)\n\t\t\t\t{\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().addNewPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(input);\n\t\t\t\t\tgameInfo.getModel().getGameRule().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(input);\n\t\t\t\t\tview.getInGamePanel().setLabelName(input);\t\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setPlayerName(input);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setLevelLabel(Integer.toString(1));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLevel(1);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(0));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(0);\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\n\t\t\t\t\tview.getFrame().add(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().setFocusable(true);\n\t\t\t\t\tview.getInGamePanel().getInGamePanel().requestFocusInWindow();\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tview.getFrame().setSize(800, 890);\n\t\t\t\t\tview.getFrame().repaint();\t\t\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tif(!validname)\n\t\t\t\t{\n\t\t\t\t\tview.getPlayerPanel().getInputBox().setText(\"INVALID NAME\");\n\t\t\t\t\tview.getPlayerPanel().getInputBox().addMouseListener(new MouseAdapter(){\n\t\t\t @Override\n\t\t\t public void mouseClicked(MouseEvent e){\n\t\t\t \tview.getPlayerPanel().getInputBox().setText(\"\");\n\t\t\t }\n\t\t\t });\n\t\t\t\t}\n\t\t\t}\n\t\t});\n\t\t\n\t\t// loadPlayer\n\t\tint numberOfLoadPlayer = view.getPlayerPanel().getExistPlayerButton().length;\n\t\tfor(int i = 0; i < numberOfLoadPlayer; i++)\n\t\t{\n\t\t\tview.getPlayerPanel().getExistPlayerButton()[i].addMouseListener(new MouseAdapter()\n\t\t\t{\n\t\t\t\tpublic void mousePressed(MouseEvent e)\n\t\t\t\t{\n\t\t\t\t\tObject o = e.getSource();\n\t\t\t\t\tJButton pressedButton = (JButton) o;\n\t\t\t\t\tString text = pressedButton.getText();\n\t\t\t\t\t\n\t\t\t\t\tview.getInGamePanel().setPlayerInGamePanel(text);\n\t\t\t\t\tview.getInGamePanel().setScoreLabel(Integer.toString(gameInfo.getModel().getGameRule().getScores()));\n\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setScores(gameInfo.getModel().getGameRule().getScores());\n\t\t\t\t\tview.getInGamePanel().setLabelName(text);\n\t\t\t\t\t\n\t\t\t\t\tgameInfo.getModel().getLeaderboard().loadPlayer(text);\n\t\t\t\t\t\n\t\t\t\t\tview.getPlayerPanel().setLoadPlayer(gameInfo.getModel().getLeaderboard().loadPlayer(text));\t\t\t\n\t\t\t\t\tview.setSelectLevelPanel();\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\tview.getFrame().remove(view.getPlayerPanel().getPlayerPanel());\t\t\n\t\t\t\t\tview.getFrame().add(view.getSelectLevelPanel().getSelectLevelPanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\t//view.getFrame().pack();\n\t\t\t\t\tview.getFrame().setVisible(true);\n\t\t\t\t\t\n\t\t\t\t\t// InGamePanel\n\t\t\t\t\t//case select level unlock\n\t\t\t\t\tfor(int i = 1; i <= 5; i++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(gameInfo.getModel().getLeaderboard().loadPlayer(text).isLevelUnlocked(i) == true)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tString selectLevel = Integer.toString(i);\n\t\t\t\t\t\t\tint level = i;\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setPlayerName(gameInfo.getModel().getLeaderboard().loadPlayer(text).getName()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getBoardGamePanel().setLevel(gameInfo.getModel().getGameRule().getLevel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> gameInfo.getModel().getGameRule().setLevel(level));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setLevelLabel(selectLevel));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().remove(view.getSelectLevelPanel().getSelectLevelPanel()));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setSize(800, 890));\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().requestFocusInWindow());\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getInGamePanel().getInGamePanel().setFocusable(true));\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().repaint());\t\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\t\t\tview.getSelectLevelPanel().getLevelButton()[i].addActionListener(event -> view.getFrame().setVisible(true));\t\n\t\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}\t\t\n\t\t\t\t}\t\n\t\t});\t\t\n\t\t}\n\t\t\n\t\t// back\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getPlayerPanel().getPlayerPanel()));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPlayerPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// LeaderboardPanel\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().remove(view.getLeaderboardPanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardPanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// QuitPanel\n\t\t// no\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().remove(view.getQuitPanel().getQuitPane()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().setSize(600, 800));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().add(view.getMainPanel().getMainPanel()));\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().repaint());\t\n\t\tview.getQuitPanel().getNo().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// yes\n\t\tview.getQuitPanel().getYes().addActionListener(event -> view.getFrame().dispatchEvent(new WindowEvent(view.getFrame(), WindowEvent.WINDOW_CLOSING)));\n\t\t\n\t\t\n\t\t// InGamePanel\n\t\tview.getInGamePanel().getInGamePanel().addKeyListener(new KeyAdapter() {\n\t\t\tpublic void keyTyped(KeyEvent e) {}\n\t\t\t\n\t\t\t@Override\n\t\t\tpublic void keyPressed(KeyEvent e) {\n\t\t\t\tswitch (e.getKeyCode()) {\n\n\t\t\t\t// Case press esc to pause the game\n\t\t\t\tcase KeyEvent.VK_ESCAPE:\t\n\t\t\t\t\tview.getInGamePanel().setGameStart(false);\n\t\t\t\t\tview.getFrame().remove(view.getInGamePanel().getInGamePanel());\n\t\t\t\t\tview.getFrame().add(view.getPausePanel().getPausePanel());\n\t\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\t\tview.getFrame().pack();\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_LEFT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_LEFT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_RIGHT:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.MOVE_RIGHT);\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_Z:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.ROTATE_LEFT);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_SPACE:\n\t\t\t\t\tmessage = new Message(Message.ValveResponse.FASTER);\n\t\t\t\t\t\n\t\t\t\t\ttry \n\t\t\t\t\t{\n\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t} \n\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\tbreak;\n\t\t\t\t\n\t\t\t\tcase KeyEvent.VK_ENTER:\n\t\t\t\t\tif(lost)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setLost(false);\n\t\t\t\t\t\tlost = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.RESTART);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tif(winLevel)\n\t\t\t\t\t{\n\t\t\t\t\t\tview.getInGamePanel().setGameStart(true);\n\t\t\t\t\t\tview.getInGamePanel().getBoardGamePanel().setWinLevel(false);\n\t\t\t\t\t\twinLevel = false;\n\t\t\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEXTLEVEL);\n\t\t\t\t\t\ttry \n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t\t\t} \n\t\t\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tbreak;\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tpublic void keyReleased(KeyEvent e) {}\n\t\t});\n\t\t\n\t\t// PausePanel\n\t\t// back\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getInGamePanel().setGameStart(true));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().setSize(800, 890));\t\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().add(view.getInGamePanel().getInGamePanel()));\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t\t\t\t\n\t\t// LeaderBoardInPausePanel\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().add(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getLeaderboardsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\n\t\t// ControlsPanel\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().remove(view.getPausePanel().getPausePanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().add(view.getControlsPanel().getControlsPanel()));\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getPausePanel().getControlsButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\tview.getPausePanel().getReturnToMainManuButton().addActionListener(new ActionListener()\n\t\t{\n\t\t\tpublic void actionPerformed(ActionEvent e)\n\t\t\t{\t\t\t\t\n\t\t\t\tmessage = new Message(Message.ValveResponse.GET_NEWGAME);\n\t\t\t\n\t\t\t\ttry \n\t\t\t\t{\n\t\t\t\t\tviewToControllerQueue.put(message);\n\t\t\t\t} \n\t\t\t\tcatch (InterruptedException e1) {}\n\t\t\t\t\n\t\t\t\tview.getFrame().remove(view.getPausePanel().getPausePanel());\n\t\t\t\tview.getFrame().add(view.getMainPanel().getMainPanel());\t\n\t\t\t\tview.getFrame().pack();\n\t\t\t\tview.getFrame().setSize(600, 800);\t\n\t\t\t\tview.getFrame().repaint();\n\t\t\t\t\n\t\t\t\t//viewAllPanels.getFrame().pack();\n\t\t\t}\n\t\t});\n\t\t\n\t\t\n\t\t// LeaderboardInGame\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(Event -> view.getFrame().remove(view.getLeaderboardInPausePanel().getLeaderboardPanel()));\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getLeaderboardInPausePanel().getBackButton().addActionListener(event -> view.getFrame().pack());\n\t\t\t\n\t\t// ControlPanel\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().remove(view.getControlsPanel().getControlsPanel()));\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().add(view.getPausePanel().getPausePanel()));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().repaint());\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().setSize(600, 800));\t\n\t\tview.getControlsPanel().getBack().addActionListener(event -> view.getFrame().pack());\n\t}", "@SuppressWarnings(\"resource\")\n\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\tObject a = e.getSource();\n\t\t\tif (a==UserManual){\n\t\t\t\t//Opens up user manual as a PDF file\n\t\t\t\tFile file = new File(\"Schools\\\\UserManual.pdf\");\n\t\t\t if (file.toString().endsWith(\".pdf\"))\n\t\t\t\t\ttry {\n\t\t\t\t\t\tRuntime.getRuntime().exec(\"rundll32 url.dll,FileProtocolHandler \" + file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t\telse {\n\t\t\t Desktop desktop = Desktop.getDesktop();\n\t\t\t try {\n\t\t\t\t\t\tdesktop.open(file);\n\t\t\t\t\t} catch (IOException e1) {\n\t\t\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\t\t\te1.printStackTrace();\n\t\t\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t\tif(a==back51){\n\t\t\t\ttranscript.setVisible(false);\n\t\t\t\tstudentinfo.setVisible(true);\n\t\t\t}\n\t\t\tif (a == transcriptupdate) {\n\t\t\t\tTranscriptedit();\n\t\t\t}\n\t\t\tif (a == StudentButton) {\n\t\t\t\tAttendancer = false;\n\t\t\t\tcall.StudentStuff();\n\t\t\t}\n\t\t\tif (a == TeacherButton) {\n\t\t\t\tAttendancer = true;\n\t\t\t\tcall.TeacherStuff();\n\t\t\t}\n\t\t\tif (a == AdminButton) {\n\t\t\t\tcall.AdminStuff();\n\t\t\t}\n\t\t\tif (a == SearchBar) {\n\t\t\t}\n\t\t\tif (a == search2) {\n\t\t\t\tFile directory = new File(\"Schools\\\\\" + SearchBar2.getText()\n\t\t\t\t\t\t+ \".hi\");\n\t\t\t\tif (!directory.exists()) {\n\t\t\t\t\tSearchBar2.setText(\"Student does not exist.\");\n\t\t\t\t} else if (SearchBar2.getText().equals(\"\")) {\n\t\t\t\t\tSearchBar2.setText(\"Student does not exist.\");\n\t\t\t\t} else {\n\t\t\t\t\tcall.StudentStuff2();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == search) {\n\t\t\t\tcall.Studentinfo();\n\t\t\t}\n\t\t\tif (a == NewStudent) {\n\t\t\t\tcall.AddStudent();\n\t\t\t}\n\t\t\tif (a == Add) {\n\t\t\t\tcall.Add();\n\t\t\t\tStudentNum.setText(\"Student Number\");\n\t\t\t\tStudentname.setText(\"Student Name\");\n\t\t\t}\n\t\t\tif (a == back) {\n\t\t\t\tMainFrame1.setVisible(true);\n\t\t\t\tAdminFrame1.setVisible(false);\n\t\t\t\tStudentframe.setVisible(false);\n\t\t\t\tteacherFrame.setVisible(false);\n\t\t\t}\n\t\t\tif (a == back2) {\n\t\t\t\tAdminFrame1.setVisible(true);\n\t\t\t\tnames.clear();\n\t\t\t\tcall.chooseFile();\n\t\t\t\tStudentname.setText(\"Student Name\");\n\t\t\t\tStudentNum.setText(\"Student Number\");\n\t\t\t\tAddStudent1.setVisible(false);\n\t\t\t}\n\t\t\tif (a == update) {\n\t\t\t\tString updater = text.getText();\n\t\t\t\tString names2 = SearchBar.getText();\n\t\t\t\ttry {\n\t\t\t\t\tPrintWriter out;\n\t\t\t\t\tout = new PrintWriter(new FileWriter(\"Schools\\\\\" + names2\n\t\t\t\t\t\t\t+ \".hi\" + \"\\\\\" + \"Student Information.txt\", false));\n\t\t\t\t\tout.print(updater);\n\t\t\t\t\tout.close();\n\t\t\t\t} catch (Exception e1) {\n\t\n\t\t\t\t\te1.printStackTrace();\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == back3) {\n\t\t\t\tstudentinfo.setVisible(false);\n\t\t\t\tSearchBar.setText(\"Search...\");\n\t\t\t\ttext.setText(\"\");\n\t\t\t\tcall.AdminStuff();\n\t\t\t}\n\t\t\tif (a == back4) {\n\t\t\t\tStudentframe2.setVisible(false);\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tSearchBar2.setText(\"Enter Student Number\");\n\t\t\t\tcall.StudentStuff();\n\t\t\t}\n\t\t\tif (a == back6) {\n\t\t\t\tCoursesFrame.setVisible(false);\n\t\t\t\tStudentStuff2();\n\t\t\t}\n\t\t\tif (a == CourseSelect) {\n\t\t\t\tif (checker == 0) {\n\t\t\t\t\tCourses();\n\t\t\t\t} else {\n\t\t\t\t\tCoursesFrame.setVisible(true);\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == Save) {\n\t\t\t\tcall.Confirm();\n\t\t\t}\n\t\t\tif (a == Yes) {\n\t\t\t\ttry {\n\t\t\t\t\tFile file = new File(\"Schools\\\\\" + SearchBar2.getText() + \".hi\"\n\t\t\t\t\t\t\t+ \"\\\\Current Classes\");\n\t\t\t\t\tif (!file.exists()) {\n\t\t\t\t\t\tif (file.mkdir()) {\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tint x = 0;\n\t\t\t\t\twhile (StudentCourseList[x] != null) {\n\t\t\t\t\t\tPrintWriter out = new PrintWriter(new FileWriter(file\n\t\t\t\t\t\t\t\t+ \"\\\\\" + StudentCourseList[x] + \".txt\", true));\n\t\t\t\t\t\tout = new PrintWriter(new FileWriter(file + \"\\\\\"\n\t\t\t\t\t\t\t\t+ StudentCourseList[x] + \"_Attendance.txt\", true));\n\t\t\t\t\t\tout.close();\n\t\t\t\t\t\tx++;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception e2) {\n\t\t\t\t}\n\t\t\t\tConfirmation.setVisible(false);\n\t\t\t\tCoursesFrame.setVisible(false);\n\t\t\t\tStudentframe2.setVisible(false);\n\t\t\t\tStudentStuff();\n\t\t\t}\n\t\t\tif (a == No) {\n\t\t\t\tConfirmation.setVisible(false);\n\t\t\t}\n\t\t\tif (a == Marks) {\n\t\t\t\tCurrentMarks();\n\t\t\t}\n\t\t\tif (a == TeacherButton) {\n\t\t\t\tTeacherStuff();\n\t\t\t}\n\t\t\tif (a == search3) {\n\t\t\t\tif (checker2 == 0) {\n\t\t\t\t\tFile directory = new File(\"Schools\\\\Available Classes\\\\\"\n\t\t\t\t\t\t\t+ SearchBar3.getText() + \".txt\");\n\t\t\t\t\tif (!directory.exists()) {\n\t\t\t\t\t\tSearchBar3.setText(\"Course does not exist.\");\n\t\t\t\t\t} else if (directory.exists()) {\n\t\t\t\t\t\tTeacherStuff2();\n\t\t\t\t\t}\n\t\t\t\t\tchecker2 = 1;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a == back7) {\n\t\t\t\tSearchBar3.setText(\"Enter Course Code\");\n\t\t\t\tteacherFrame2.setVisible(false);\n\t\t\t\tTeacherStuff();\n\t\t\t\tchecker3 = 1;\n\t\t\t\tchecker2 = 0;\n\t\t\t}\n\t\t\tif (a == ClassList) {\n\t\n\t\t\t\tbackaroo = false;\n\t\t\t\tteacherFrame2.setVisible(false);\n\t\t\t\tselectedStudent = ClassList.getSelectedItem().toString();\n\t\t\t\tTeacherStuff3();\n\t\t\t\tTeacherStuff4();\n\t\t\t\tAddingMarks();\n\t\t\t}\n\t\t\tif (a == CourseList) {\n\t\t\t\tback10.addActionListener(this);\n\t\t\t\tbackaroo = true;\n\t\t\t\tStudentMarksFrame1.setVisible(false);\n\t\t\t\tselectedClass = CourseList.getSelectedItem().toString();\n\t\t\t\tSearchBar3.setText(selectedClass);\n\t\t\t\tselectedStudent = SearchBar2.getText();\n\t\t\t\tTeacherStuff3();\n\t\t\t\tTeacherStuff4();\n\t\t\t\tAttendance();\n\t\t\t}\n\t\t\tif (a == back8) {\n\t\t\t\tTeacherFrame3.setVisible(false);\n\t\t\t\tMarkFrame.setVisible(false);\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tAddFrame.setVisible(false);\n\t\t\t\tteacherFrame2.setVisible(true);\n\t\t\t}\n\t\t\tif (a == AddMark) {\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tAddingMarks2();\n\t\t\t}\n\t\t\tif (a == Enter) {\n\t\t\t\tString input = new String();\n\t\t\t\ttry {\n\t\t\t\t\tdouble percent = Double.parseDouble(Percentage.getText());\n\t\t\t\t\tint worth = Integer.parseInt(MarkWeighting.getText());\n\t\t\t\t\tif (Categories.getText().contains(\"K\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"K/U,\" + AssignName.getText() + \",\" + percent + \",\"\n\t\t\t\t\t\t\t\t+ worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"T\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"T/I,\" + AssignName.getText() + \",\" + percent + \",\"\n\t\t\t\t\t\t\t\t+ worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"A\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"App,\" + AssignName.getText() + \",\" + percent + \",\"\n\t\t\t\t\t\t\t\t+ worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"C\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"Comm,\" + AssignName.getText() + \",\" + percent\n\t\t\t\t\t\t\t\t+ \",\" + worth;\n\t\t\t\t\t} else if (Categories.getText().contains(\"E\")\n\t\t\t\t\t\t\t&& AssignName.getText() != null && percent >= 0\n\t\t\t\t\t\t\t&& worth != 0) {\n\t\t\t\t\t\tinput = \"Exam,\" + AssignName.getText() + \",\" + percent\n\t\t\t\t\t\t\t\t+ \",\" + worth;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tJFrame Invalid = new JFrame();\n\t\t\t\t\t\tJLabel l1 = new JLabel(\"INVALID\");\n\t\t\t\t\t\tInvalid.add(l1);\n\t\t\t\t\t\tInvalid.setSize(100, 100);\n\t\t\t\t\t\tInvalid.setLocationRelativeTo(null);\n\t\t\t\t\t\tInvalid.setVisible(true);\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception Arg7) {\n\t\t\t\t}\n\t\t\t\tPrintWriter out;\n\t\t\t\tif (checker4 == 0) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tout = new PrintWriter(new FileWriter((\"Schools\\\\\"\n\t\t\t\t\t\t\t\t+ selectedStudent + \".hi\\\\Current Classes\\\\\"\n\t\t\t\t\t\t\t\t+ SearchBar3.getText() + \".txt\"), true));\n\t\t\t\t\t\tout.append(System.getProperty(\"line.separator\"));\n\t\t\t\t\t\tout.append(input);\n\t\t\t\t\t\tout.close();\n\t\t\t\t\t} catch (Exception e1) {\n\t\t\t\t\t}\n\t\t\t\t\tchecker4 = 1;\n\t\t\t\t}\n\t\t\t\tAddFrame.setVisible(false);\n\t\t\t}\n\t\t\tif (a == back9) {\n\t\t\t\tStudentframe2.setVisible(true);\n\t\t\t\tStudentMarksFrame1.setVisible(false);\n\t\t\t}\n\t\t\tif (a == back10) {\n\t\t\t\tStudentframe2.setVisible(true);\n\t\t\t\tTeacherFrame3.setVisible(false);\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\tCourseList.removeAll();\n\t\t\t}\n\t\t\tif (a == AttendanceB) {\n\t\t\t\tAddFrame.setVisible(false);\n\t\t\t\tAttendance();\n\t\t\t}\n\t\t\tif (a == transcriptb) {\n\t\t\t\tTranscript();\n\t\t\t}\n\t\t\tif (a == AttendanceEnter) {\n\t\t\t\tAttendanceFrame.setVisible(false);\n\t\t\t\ttry {\n\t\t\t\t\tif (checker6 == true) {\n\t\t\t\t\t\tBufferedWriter pw = new BufferedWriter(\n\t\t\t\t\t\t\t\tnew FileWriter(\n\t\t\t\t\t\t\t\t\t\t(\"Schools\\\\\" + selectedStudent\n\t\t\t\t\t\t\t\t\t\t\t\t+ \".hi\\\\Current Classes\\\\\"\n\t\t\t\t\t\t\t\t\t\t\t\t+ SearchBar3.getText() + \"_Attendance.txt\"),\n\t\t\t\t\t\t\t\t\t\ttrue));\n\t\t\t\t\t\tpw.append((AttendanceT.getText() + \",\"));\n\t\t\t\t\t\tpw.close();\n\t\t\t\t\t\tchecker6 = false;\n\t\t\t\t\t}\n\t\t\t\t} catch (Exception Arg8) {\n\t\t\t\t}\n\t\t\t}\n\t\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tSystem.err.println(\"action\");\n\t\t\t\tFTPSiteDialog dialog = new FTPSiteDialog(FTP_Client_Frame.this);\n\t\t\t\tdialog.setVisible(true);\n\t\t\t}", "private MenuManager createHelpMenu(IWorkbenchWindow window) {\n\t\tMenuManager menu = new MenuManager(Messages.getString(\"IU.Strings.42\")); //$NON-NLS-1$\n\t\t\n\t\t\n\t\tmenu.add(getAction(ActionFactory.HELP_CONTENTS.getId()));\t\n\t\tmenu.add(new Separator());\n\t\tIWorkbenchAction about = ActionFactory.ABOUT.create(window);\n\t\tabout.setText(Messages.getString(\"IU.Strings.43\")); //$NON-NLS-1$\n\t\tmenu.add(about);\n\t\t\n\t\treturn menu;\t\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\n\t\t\t\tKF5SDKConfig.INSTANCE.startHelpCenterActivity(MainActivity.this, HelpCenterType.HELPCENTERDEFAULT );\n\n\t\t\t}", "@Override\n\tpublic void mouseClicked(MouseEvent me)\n\t{\n\t\tif (me.getSource() == help1)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Select whether you want to publish your article <br>under your username, first name or your full<br> name (first and surname).</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Article titles should be short and snappy, you may use symbols <br>but use them sparingly.<br><br>A web-friendly-url is what's displayed in the URL box at<br>the top of the users web browser.<br>It should contain NO symbols and NO spaces, only lower case letters,<br>numbers, and dashes. Only edit it if absolutely necessary.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help3)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Select the category that best fits your article, if you<br>find that the categories don't quite fit your article, send us a<br>message in the contact section and we'll set you up a new category.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help4)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Each article requires a short introduction and 200x200 pixel icon image<br>for the homepage. <br><br>NOTE: Ensure that the image you're using is not copyright.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help5)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Each article requires a main image to be displayed at the<br>top of the article page.<br><br>NOTE: Ensure that the image you're using is not copyright.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help6)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>\" +\n\t\t\t\t\t\"An article is made up of multiple text and image areas. You can use the buttons<br>\" +\n\t\t\t\t\t\"at the bottom of the page in the toolbar to add new areas. It's advised that you<br>\" +\n\t\t\t\t\t\"start with a text area to explain what your article is all about.<br><br>\" +\n\t\t\t\t\t\"You can have up to 17 areas in total.<br><br>\" +\n\t\t\t\t\t\"Images are displayed int he center of the page and should be no larger than<br>\" +\n\t\t\t\t\t\"720 * 350 pixels. The box the image is displayed in is to aspect ratio so<br>\" +\n\t\t\t\t\t\"make sure your image looks good in it, although the actual image will be<br>\" +\n\t\t\t\t\t\"twice as big.<br><br>\" +\n\t\t\t\t\t\"Text areas should be no more than 20,000 letters, although if you're<br>\" +\n\t\t\t\t\t\"planning on writing that much, you should probably split it up over<br>\" +\n\t\t\t\t\t\"multiple text areas and use images to make it more appealing.</body></html>\");\n\t\t}\n\t}", "private void jMenu_AboutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu_AboutMouseClicked\n new About().setVisible(true);\n }", "@FXML\n\tpublic void OpenHelpContentPage() {\n\n\t\tif (!Desktop.isDesktopSupported()) {\n\t\t\tSystem.out.println(\"Desktop not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tif (!Desktop.getDesktop().isSupported(Desktop.Action.OPEN)) {\n\t\t\tSystem.out.println(\"File opening not supported\");\n\t\t\treturn;\n\t\t}\n\n\t\tfinal Task<Void> task = new Task<Void>() {\n\t\t\t@Override\n\t\t\tpublic Void call() throws Exception {\n\t\t\t\ttry {\n\t\t\t\t\tFile sx3InstallLocation = SX3Manager.getInstance().getInstallLocation().getParentFile()\n\t\t\t\t\t\t\t.getAbsoluteFile();\n\t\t\t\t\tDesktop.getDesktop().open(new File(\n\t\t\t\t\t\t\tsx3InstallLocation + File.separator + \"Cypress_EZ-USB_SX3_ConfigurationUtility.pdf\"));\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tSystem.err.println(e.toString());\n\t\t\t\t}\n\t\t\t\treturn null;\n\t\t\t}\n\t\t};\n\n\t\tfinal Thread thread = new Thread(task);\n\t\tthread.setDaemon(true);\n\t\tthread.start();\n\t}", "Help createHelp();", "public void displayHelpMenuView()\n {\n System.out.println(\"\\nHelp menu selected.\");\n }", "void setMainAction(LinkActionGUI linkActionGUI);", "@Override\n\tpublic void actionPerformed(ActionEvent e) {\n\t\tif(e.getActionCommand()==\"IND\"){\n\t\t\tframeVE.setVisible(false);\n\t\t\tAdminIndView View = new AdminIndView();\n\t\t\tView.AdminViewInd(getSelectedEmp());\n\t\t\t\n\t\t}\n\t\tif(e.getActionCommand()==\"GROUP\"){\n\t\t\tframeVE.setVisible(false);\n\t\t\tAdminView View = new AdminView();\n\t\t\tView.AdminPageView();\n\t\t\t\n\t\t}\n\t\tif(e.getActionCommand()==\"Back\"){\n\t\t\tframeVE.setVisible(false);\n\t\t\tAdminFunctionPage AFP = new AdminFunctionPage();\n\t\t\tAFP.AdminControl();\n\t\t}\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\tsetVisible(false);\r\n\t\t\t\tnew Questions();\r\n\t\t\t}", "private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJFrame cheyFrame = new JFrame(\"Cheyanne\");\r\n\t\t\t\tJPanel cheyPanel = new JPanel();\r\n\r\n\t\t\t\t// Can be any size- opens second window. (w,h)\r\n\t\t\t\tcheyFrame.setSize(250, 400);\r\n\r\n\t\t\t\t// Labels for information\r\n\t\t\t\t// Path must be relative to res folder!\r\n\t\t\t\t// src/res/nameoffile.extension\r\n\t\t\t\tJLabel cheyPic = new JLabel(new ImageIcon(\"src/res/cheyCat.png\"));\r\n\t\t\t\tJLabel cheyName = new JLabel(\"*Name- Cheyanne Flickinger\");\r\n\t\t\t\tJLabel cheyEducation = new JLabel(\"*Education- Media Arts | CSS Certificate\");\r\n\t\t\t\tJLabel cheyJob = new JLabel(\"*Job Description- Makes things prettier\");\r\n\r\n\t\t\t\t// adding to frame\r\n\t\t\t\tcheyFrame.add(cheyPanel);\r\n\t\t\t\tcheyPanel.add(cheyPic);\r\n\t\t\t\tcheyPanel.add(cheyName);\r\n\t\t\t\tcheyPanel.add(cheyEducation);\r\n\t\t\t\tcheyPanel.add(cheyJob);\r\n\t\t\t\tcheyFrame.setVisible(true);\r\n\t\t\t}", "public ActionListener getOpenActionListener() {\n ActionListener al =\n new ActionListener() {\n public void actionPerformed( ActionEvent ae ) {\n JFileChooser chooser;\n if ( _last_directory == null && _build_file != null ) {\n _last_directory = _build_file.getParentFile();\n }\n if ( _last_directory == null ) {\n chooser = new JFileChooser();\n }\n else {\n chooser = new JFileChooser( _last_directory );\n }\n int rtn = chooser.showOpenDialog( AntelopePanel.this );\n if ( rtn == JFileChooser.CANCEL_OPTION ) {\n return ;\n }\n _build_file = chooser.getSelectedFile();\n if ( _build_file != null ) {\n _last_directory = _build_file.getParentFile();\n openBuildFile( _build_file );\n }\n }\n };\n return al;\n }", "public void helpGenericAction() {\n new Help(getGenericHelpTitle(), getGenericHelp());\n }" ]
[ "0.7521318", "0.7507551", "0.7429133", "0.7158624", "0.7086977", "0.70172554", "0.6952981", "0.6911648", "0.68973505", "0.6892538", "0.68529093", "0.6811914", "0.6790963", "0.67817533", "0.67513335", "0.67275953", "0.67165494", "0.6686641", "0.6676961", "0.6630445", "0.6626769", "0.6599028", "0.6543412", "0.6543259", "0.64856976", "0.6482093", "0.64107907", "0.6363756", "0.6335683", "0.63171005", "0.62947714", "0.6282734", "0.62682045", "0.6260497", "0.6248414", "0.623673", "0.6233006", "0.62289345", "0.6210567", "0.62096196", "0.6208776", "0.62059504", "0.61963975", "0.6194878", "0.6188029", "0.6178461", "0.6177042", "0.6173168", "0.61704856", "0.6165158", "0.6151494", "0.6143318", "0.61355466", "0.61195976", "0.61105216", "0.6102307", "0.6091894", "0.6066969", "0.6064427", "0.6063249", "0.60593265", "0.60574627", "0.6049553", "0.6044082", "0.6043789", "0.60181934", "0.6012513", "0.60076535", "0.60063523", "0.60024816", "0.5994885", "0.5990205", "0.59883684", "0.5980363", "0.5976676", "0.5974532", "0.5971848", "0.59579724", "0.59559005", "0.5945571", "0.59371686", "0.59231174", "0.5922941", "0.59158486", "0.5907322", "0.5903675", "0.5897618", "0.589507", "0.5878389", "0.58778316", "0.58724004", "0.58698434", "0.5866154", "0.5861991", "0.585505", "0.5852811", "0.584987", "0.5848715", "0.5848634", "0.5847195" ]
0.7297503
3
Creates and answers an ActionListener that opens the about dialog.
protected ActionListener createAboutActionListener() { return new AboutActionListener(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void actionPerformed(ActionEvent e) {\n\t\t\t\tdialogAbout();\r\n\t\t\t}", "public static void actionPerformed()\r\n {\r\n AboutWindow.showAboutWindow();\r\n }", "public void helpAbout_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "void aboutMenuItem_actionPerformed(ActionEvent e) {\n AboutDialog dlg = new AboutDialog(this, \"About InfoFilter Application\", true);\n Point loc = this.getLocation();\n\n dlg.setLocation(loc.x + 50, loc.y + 50);\n dlg.show();\n }", "public AboutAction() {\r\n _dialog = new AboutDialog(this);\r\n }", "public void helpAboutAction() {\n new HelpAbout(this.parentFrame);\n }", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n }", "public void jMenuHelpAbout_actionPerformed(ActionEvent e) {\n\t\tMainFrame_AboutBox dlg = new MainFrame_AboutBox(this);\n\t\tDimension dlgSize = dlg.getPreferredSize();\n\t\tDimension frmSize = getSize();\n\t\tPoint loc = getLocation();\n\t\tdlg.setLocation((frmSize.width - dlgSize.width) / 2 + loc.x, (frmSize.height - dlgSize.height) / 2 + loc.y);\n\t\tdlg.setModal(true);\n\t\tdlg.show();\n\t}", "public void aboutMenu(ActionEvent actionEvent) {\n anchorHelp.setVisible(true);\n paneNotation.setVisible(false);\n paneAbout.setVisible(true);\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n helpPopUp();\n }", "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n // TODO add your handling code here:\n // Show the About form\n About myAbout = new About(this, true);\n myAbout.setVisible(true);\n }", "@Override\n public void actionPerformed( ActionEvent e ) {\n setContentPanel( about2 );\n }", "private void aboutButtonActionPerformed(java.awt.event.ActionEvent evt) {\r\n\t\t\tAboutBox aboutBox = new AboutBox(mazeFrame, true);\r\n\t\t\taboutBox.setVisible(true);\r\n\t\t}", "protected void aboutUs(ActionEvent arg0) {\n\t\tJOptionPane.showMessageDialog(this,\r\n\t\t\t\t\"A Curriculum Design of DBMS By psiphonc in NOV.2019\");\r\n\t}", "private void jMenu_AboutMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jMenu_AboutMouseClicked\n new About().setVisible(true);\n }", "@FXML\n private EventHandler<ActionEvent> handleAbout() {\n\t\treturn new EventHandler<ActionEvent>() {\n public void handle(ActionEvent e) {\n \t Alert alert = new Alert(AlertType.INFORMATION);\n\t\t alert.setTitle(messages.getString(\"menu_about\"));\n\t\t alert.setHeaderText(messages.getString(\"menu_about\")+\" \"+messages.getString(\"MainApp_title\"));\n\t\t String about_info = messages.getString(\"about_website\") + \" \" + messages.getString(\"MainApp_website\");\n\t\t alert.setContentText(about_info);\n\t\t alert.showAndWait();\n }\n\t\t};\n }", "private void actionOnClicAbout() {\r\n\t\tAboutCalSevWindow aboutWin = new AboutCalSevWindow();\r\n\t\taboutWin.setVisible(true);\r\n\t}", "private void showAbout() {\r\n\t\tshowMessage(\"About\", \" Curtis Baldwin's Intelligent Building\"); // About message created when about button\r\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t// pressed\r\n\t}", "private void popupMenuAbout() {\n\t\t//\n\t\t// Display the dialog\n\t\t//\n\t\tAboutDialog aboutDialog = new AboutDialog(parent.getShell(), SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);\n\t\taboutDialog.open();\n\t}", "private void openAbout() {\r\n\t\tJDialogAbout jDialogAbout = new JDialogAbout();\r\n\t\tjDialogAbout.setVisible(true);\r\n\t}", "@FXML public void showAbout() {\n\t\tPopupMessage.getInstance().showAlert(AlertType.INFORMATION, \n\t\t\t\t\t\t\t\t\t\t\taboutTitle,\n\t\t\t\t\t\t\t\t\t\t\taboutHeader, \n\t\t\t\t\t\t\t\t\t\t\taboutDetails);\n\t}", "private OnClickListener aboutApplication() {\n\t\tOnClickListener listener = new OnClickListener() {\n\t\t\t final DialogInterface.OnClickListener dialogClickListener = new DialogInterface.OnClickListener() {\n\t\t @Override\n\t\t public void onClick(DialogInterface dialog, int which) {\n\t\t switch (which){\n\t\t //Cancel the current popup dialog\n\t\t\t case DialogInterface.BUTTON_NEUTRAL:\n\t\t\t dialog.cancel();\n\t\t\t break;\n\t\t\t }\n\t\t }\n\t\t };\n\t\t\t@SuppressWarnings(\"deprecation\")\n\t\t\t@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t//Show details on a popup window\n\t\t\t\tAlertDialog alertDialog = new AlertDialog.Builder(GameInitializerActivity.this).create();\n\t\t\t\tLayoutInflater factory = LayoutInflater.from(GameInitializerActivity.this);\n\t\t\t\tfinal View view = factory.inflate(R.layout.activity_about_popupwindow, null);\n\t\t\t\talertDialog.setView(view);\n\t\t\t\talertDialog.setButton3(\"OK. I Got this !!\", dialogClickListener);\n\t\t\t\talertDialog.show();\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t};\n\t\treturn listener;\n\t}", "private void helpAbout() {\n JOptionPane.showMessageDialog(this, new ConsoleWindow_AboutBoxPanel1(), \"About\", JOptionPane.PLAIN_MESSAGE);\n }", "private void aboutJMenuItemActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_aboutJMenuItemActionPerformed\n //show the about form\n AboutTSP myAbout = new AboutTSP(this, true);\n myAbout.setVisible(true);\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n switch (item.getItemId()) {\n case R.id.action_about:\n \t \t//Toast.makeText(getApplicationContext(),\"Show About\", Toast.LENGTH_LONG).show();\n \t \tAboutDialog about = new AboutDialog(this);\n \t \tabout.setTitle(\"About Streetview\");\n \t\t\t\tabout.show();\n return true;\n default:\n return super.onOptionsItemSelected(item);\n }\n }", "public AboutAction(CyApplicationManager appMgr,CySwingApplication swingApp) {\n\t\tsuper(Messages.AC_ABOUT,appMgr,swingApp);\n\t\tsetPreferredMenu(\"Plugins.\" + Messages.AC_MENU_ANALYSIS);\n\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(frame, \n//\" Programming language: Java\\n\"+\n\" Developer: Monish Gupta\\n\"+\n\" monishgupta.blogspot.com\", \"About\", JOptionPane.PLAIN_MESSAGE);\n\t\t\t}", "private void aboutHandler() {\n JOptionPane.showMessageDialog(\n this.getParent(),\n \"YetAnotherChessGame v1.0 by:\\nBen Katz\\nMyles David\\n\"\n + \"Danielle Bushrow\\n\\nFinal Project for CS2114 @ VT\");\n }", "protected void aboutUs(ActionEvent ae) {\n\t\tString info = \"【猿来入此】出品\\n\";\n\t\tinfo += \"网址:http://programmer.ischoolbar.com \\n\";\n\t\tinfo += \"每天更新一个项目,并附带视频教程!\";\n\t\tString[] buttons = {\"迫不及待去看看!\",\"心情不好以后再说!\"};\n\t\tint ret = JOptionPane.showOptionDialog(this, info, \"关于我们\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.DEFAULT_OPTION, new ImageIcon(LoginFrm.class.getResource(\"/images/logo.png\")), buttons, null);\n\t\tif(ret == 0){\n\t\t\t//采用Java 调用系统浏览器打开制定\n\t\t\ttry {\n\t\t\t\tURI uri = new URI(\"http://programmer.ischoolbar.com\");\n\t\t\t\tDesktop.getDesktop().browse(uri);\n\t\t\t\t//Runtime.getRuntime().exec(\"explorer http://programmer.ischoolbar.com\");\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}else{\n\t\t\tJOptionPane.showMessageDialog(this, \"你真是狠心,坏淫!\");\n\t\t}\n\t}", "private void dialogAbout() {\n\t\tGraphicalUserInterfaceAbout.start();\r\n\t}", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(null, ApplicationSession.instance().getString(\"info\"), \"info\", JOptionPane.INFORMATION_MESSAGE, null);\t\n\t\t\t}", "private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed\r\n AboutWindow about = new AboutWindow();\r\n about.setVisible(true);\r\n }", "@Override\r\n\t\t\tpublic void actionPerformed(ActionEvent e) {\r\n\t\t\t\tif (e.getSource() == info) {\r\n\t\t\t\t\tmenu.setVisible(false);\r\n\t\t\t\t\tJOptionPane\r\n\t\t\t\t\t\t\t.showMessageDialog(null,\r\n\t\t\t\t\t\t\t\t\t\"Dies ist eine Uhr mit einstellbaren Wecker\\nVersion 1.0\");\r\n\t\t\t\t}\r\n\t\t\t}", "@Override\n\tpublic void actionPerformed(ActionEvent arg0) {\n\t\tg.printHelp(\"OthelloHelp.txt\");\n\t}", "@FXML\n private void aboutMenuItem() {\n\n // Creating an alert dialog\n Alert alert = new Alert(Alert.AlertType.INFORMATION);\n alert.setTitle(\"About\");\n alert.setHeaderText(\"Poster Grabber 1.0\");\n alert.setContentText(\"Poster Grabber is a very simple tool that grabs movie's poster in any desired quality.\\nIt's highly dependant on TheMovieDB API, and won't function without an internet connection.\");\n alert.initOwner(primaryStage);\n\n // Setting custom style\n DialogPane dialogPane = alert.getDialogPane();\n dialogPane.getStylesheets().add(getClass().getResource(\"/AboutDialog.css\").toExternalForm());\n dialogPane.getStyleClass().add(\"myDialog\");\n\n // Displaying the alert dialog\n alert.show();\n }", "public void aboutApp() {\n\n\t\tFXMLLoader loader = new FXMLLoader(getClass().getResource(\"/view/AboutApp.fxml\"), I18n.getResourceBundle());\n\n\t\tUtilMethods.createDialog(loader, controller.getStage());\n\n\t}", "@Override\n\t\t\t\tpublic void actionPerformed(ActionEvent arg0) {\n\t\t\t\t\tJFrame hel=new JFrame(\"help\");\n\t\t\t\t\thel.setBounds(400, 200,675, 575);\n\t\t\t\t\thel.setResizable(false);\n\t\t\t\t\tJLabel l=new JLabel();\n\t\t\t\t\tl.setIcon(new ImageIcon(\"about.png\"));\n\t\t\t\t\n\t\t\t\t\thel.add(l);\n\t\t\t\t\thel.setVisible(true);\n\t\t\t\t}", "public void handleAbout() {\n displayAuxiliaryWindow(aboutWindow);\n }", "@Override\n\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\tJOptionPane.showMessageDialog(mainscreen, \"Created by Saadia Aman and Ammar Israr\");\n\t\t\t}", "public static void goToAboutWindow()\n {\n AboutWindow aboutWindow = new AboutWindow();\n aboutWindow.setVisible(true);\n aboutWindow.setFatherWindow(actualWindow, false);\n }", "@FXML\r\n private void handleAbout() {\r\n FxUtil.showAlert(Alert.AlertType.INFORMATION, mainApp.getResourceMessage().getString(\"about.title\"), String.format(mainApp.getResourceMessage().getString(\"about.header\"), Resource.VERSION), String.format(mainApp.getResourceMessage().getString(\"about.text\"), Resource.VERSION));\r\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_about) {\n\t\t\taboutDialog.show();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "protected void handleHelp(ActionEvent event) {\n\t}", "public void actionPerformed (ActionEvent e)\n\t\t{\n\t\t\tif(e.getActionCommand().equals(\"About\") )\n\t\t\t{\n\t\t\t\t//Instance of the AboutDialog class created here\n\t\t\t\tnew AboutDialog(CalculatorWindow.this);\n\t\t\t}\n\t\t\telse if (e.getActionCommand ( ).equals (\"Exit\"))\n\t\t\t{\n\t\t\t\texitChoice = JOptionPane.showConfirmDialog(null, \"Are you sure you want to exit?\",\n\t\t\t\t\t\t\"Exit calculator\", JOptionPane.YES_NO_OPTION);\n\t\t\t\tif(exitChoice == JOptionPane.YES_OPTION)\n\t\t\t\t{\n\t\t\t\t\tdispose();\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (e.getActionCommand ( ).equals (\"Settings\"))\n\t\t\t{\n\t\t\t\t//instance of the SettingsDialog class created here\n\t\t\t\tSettingsDialog settings = new SettingsDialog(CalculatorWindow.this);\n\t\t\t\t\t\n\t\t\t\tisIncognito = settings.isIncognito();\n\t\t\t\tbgColor = settings.getColor ( );\n\t\t\t\tif(settings.getSizeOption()==0)\n\t\t\t\t{\n\t\t\t\t\tsetResize(0);\n\t\t\t\t}\n\t\t\t\telse if(settings.getSizeOption()==1)\n\t\t\t\t{\n\t\t\t\t\tsetResize(1);\n\t\t\t\t}\n\t\t\t\telse if(settings.getSizeOption()==2)\n\t\t\t\t{\n\t\t\t\t\tsetResize (2);\n\t\t\t\t}\n\t\t\t\tif(bgColor == white)\n\t\t\t\t{\n\t\t\t\t\tresetIncognito();\n\t\t\t\t}\n\t\t\t\telse\n\t\t\t\t{\n\t\t\t\t\tsetBgColor(bgColor);\n\t\t\t\t}\t\t\t\n\t\t\t\tif(isIncognito == true && incognito == false)\n\t\t\t\t{\n\t\t\t\t\tsetIncognito();\n\t\t\t\t\tincognito = true;\n\t\t\t\t}\n\t\t\t\telse if (isIncognito == false && incognito == true \n\t\t\t\t\t\t\t\t&& settings.getColorChosen ( ) == false)\n\t\t\t\t{\n\t\t\t\t\tresetIncognito();\n\t\t\t\t\tincognito = false;\n\t\t\t\t}\n\t\t\t}\n\t\t\telse if (e.getActionCommand().equals(\"Readme\"))\n\t\t\t{\n\t\t\t\ttry\n\t\t\t\t{\n\t\t\t\t\tRuntime.getRuntime().exec(\"notepad src/Readme.txt\");\n\t\t\t\t}\n\t\t\t\tcatch(IOException ex)\n\t\t\t\t{\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}", "public void handleAbout(ApplicationEvent evt) {\n HelpManager hm = (HelpManager) bio.getManager(HelpManager.class);\n if (hm == null) evt.setHandled(false);\n else {\n evt.setHandled(true);\n hm.helpAbout();\n }\n }", "public void AboutDialog() {\r\n final Dialog dialog = new Dialog(this); // Context, this, etc.\r\n dialog.setContentView(R.layout.about_dialog);\r\n dialog.setTitle(R.string.dialog_title);\r\n\r\n Button dialogButton = (Button) dialog.findViewById(R.id.dialog_cancel);\r\n // if button is clicked, close the custom dialog\r\n dialogButton.setOnClickListener(new View.OnClickListener() {\r\n @Override\r\n public void onClick(View v) {\r\n dialog.dismiss();\r\n }\r\n });\r\n\r\n\r\n dialog.show();\r\n }", "private void showAboutDialog() {\n\n view.aboutDialog();\n }", "@Override\n\tpublic void actionPerformed(ActionEvent e)\n\t{\n\t\t\n\t\t// New project clicked\n\t\tif(e.getSource() == windowTemplate.getNewProjectMenuItem()) {\n\t\t\tnewProject();\n\t\t}\n\t\t\n\t\t// Save project clicked\n\t\tif(e.getSource() == windowTemplate.getSaveProjectMenuItem()) {\n\t\t\tsaveProject();\n\t\t}\n\t\t\n\t\t// Load project clicked\n\t\tif(e.getSource() == windowTemplate.getLoadProjectMenuItem()) {\n\t\t\tloadProject();\n\t\t}\n\t\t\n\t\t// Help clicked\n\t\tif(e.getSource() == windowTemplate.getHelpMenuItem()) {\n\t\t\thelpTemplate.getFrame().setVisible(true);\n\t\t}\n\t\t\n\t\t// About clicked\n\t\tif(e.getSource() == windowTemplate.getAboutMenuItem()) {\n\t\t\tString message = \"Easynotes v1.0\\nCreated by: Steven Raines\\nCreated on: 8/28/2019\";\n\t\t\tJOptionPane.showMessageDialog(windowTemplate, message);\n\t\t}\n\t\t\n\t}", "public void processAbout() {\n AppMessageDialogSingleton dialog = AppMessageDialogSingleton.getSingleton();\n \n // POP UP THE DIALOG\n dialog.show(\"About This Application\", \"Application Name: Metro Map Maker\\n\"\n + \"Written By: Myungsuk Moon and Richard McKenna\\n\"\n + \"Framework Used: DesktopJavaFramework (by Richard McKenna)\\n\"\n + \"Year of Work: 2017\");\n }", "@FXML\n private void handleAboutButton(ActionEvent event) \n {\n \n Switchable.switchTo(\"AboutView\");\n }", "void showAbout() {\n\t\tif (aboutScreen == null) {\n\t\t aboutScreen = new Form(\"About AMMS Mansion demo\");\n\t\t aboutScreen.append(\"This MIDlet demonstrates the 3D audio capabilities of AMMS API.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"Copyright (c) 2006 Nokia. All rights reserved.\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t aboutScreen.append(\"\\n\");\n\t\t}\n\t\taboutScreen.addCommand(toggleCommand);\n\t\taboutScreen.setCommandListener(this);\n\t\tdisplay.setCurrent(aboutScreen);\n }", "private void mnHelpActionPerformed(java.awt.event.ActionEvent evt) {\n\n }", "public void showAbout() {\n\t\t/* track \"About\" */\n\t\ttracker.trackEvent(\"Listings\", \"Click\", \"About\", 0);\n\n\t\tUri uri = Uri.parse(\"http://static.flipzu.com/about-android.html\");\n\t\tIntent intent = new Intent(Intent.ACTION_VIEW, uri);\n\t\tstartActivity(intent);\n\t}", "protected void aboutUs(ActionEvent ae) {\n\t\tString info =\"欢迎您使用该系统!!!\\n\";\n\t\tinfo +=\"愿为您提供最好的服务!\\n\";\n\t\tinfo +=\"最好的防脱发洗发水!!!\";\n\t\t//JOptionPane.showMessageDialog(this,info);\n\t\tString[] buttons = {\"迫不及待去看看!\",\"心情不好以后再说!\"};\n\t\tint ret=JOptionPane.showOptionDialog(this, info,\"关于我们\", JOptionPane.YES_NO_CANCEL_OPTION, JOptionPane.DEFAULT_OPTION, new ImageIcon(LoginFrm.class.getResource(\"/images/logo.png\")), buttons, null);\n\t\tif(ret==0) \n\t\t{\n\t\t\ttry {\n\t\t\t\tURI uri = new URI(\"https://s.taobao.com/search?q=%E9%98%B2%E8%84%B1%E5%8F%91%E6%B4%97%E5%8F%91%E6%B0%B4&imgfile=&commend=all&ssid=s5-e&search_type=item&sourceId=tb.index&spm=a21bo.2017.201856-taobao-item.1&ie=utf8&initiative_id=tbindexz_20170306\");\n\t\t\t\tDesktop.getDesktop().browse(uri);\n\t\t\t} catch (Exception e) {\n\t\t\t\t// TODO Auto-generated catch block\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\telse \n\t\t{\n\t\t\tJOptionPane.showMessageDialog(this, \"你真是狠心,坏淫!\");\n\t\t}\n\t}", "private JMenuItem getAboutMenuItem() {\n if (aboutMenuItem == null) {\n aboutMenuItem = new JMenuItem();\n aboutMenuItem.setText(\"About\");\n aboutMenuItem.addActionListener(new ActionListener() {\n public void actionPerformed(ActionEvent e) {\n JDialog aboutDialog = getAboutDialog();\n aboutDialog.pack();\n Point loc = getJFrame().getLocation();\n loc.translate(20, 20);\n aboutDialog.setLocation(loc);\n aboutDialog.setVisible(true);\n }\n });\n }\n return aboutMenuItem;\n }", "@Override\n public void actionPerformed(ActionEvent e) {\n aboutpanel.setVisible(false);\n glcanvas.requestFocusInWindow();\n }", "private void showAbout() {\n JOptionPane.showMessageDialog(this,\n \"TalkBox\\n\" + VERSION,\n \"About TalkBox\",\n JOptionPane.INFORMATION_MESSAGE);\n }", "@Action\n public void showAboutBox()\n {\n if (aboutBox == null)\n {\n JFrame mainFrame = SWAPdmtApp.getApplication().getMainFrame();\n aboutBox = new SWAPdmtAboutBox(mainFrame);\n aboutBox.setLocationRelativeTo(mainFrame);\n }\n SWAPdmtApp.getApplication().show(aboutBox);\n }", "private void menu_AboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_menu_AboutActionPerformed\n new frm_About().setVisible(true); \n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_about_us) {\n final Dialog dialog = new Dialog(this);\n dialog.setContentView(R.layout.dialog_about_us);\n dialog.setTitle(this.getString(R.string.about_us));\n dialog.show();\n return true;\n }\n\n return super.onOptionsItemSelected(item);\n }", "protected void do_mntmStudentIHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRStudentHelpFrame studentHelpFrame = new DelVecchioMCSRStudentHelpFrame();\n\t\tstudentHelpFrame.setVisible(true);\n\t\t\n\t}", "private void showAbout() {\n toolbar.setTitle(R.string.about);\n AboutFragment aboutFragment = new AboutFragment();\n displaySelectedFragment(aboutFragment);\n }", "protected ActionListener createHelpActionListener() {\r\n return null;\r\n }", "private void about() {\n System.out.println(Strings.MAIN_ABOUT_MESSAGE);\n System.out.println();\n }", "public void aboutOnClick(View view) {\n // Configure \"About\" dialog\n AlertDialog.Builder dialog = new AlertDialog.Builder(this);\n dialog.setTitle(getResources().getString(R.string.about_title));\n dialog.setCancelable(false);\n dialog.setPositiveButton(\"OK\", new DialogInterface.OnClickListener() {\n\n @Override\n public void onClick(DialogInterface dialog, int which) {\n // Do nothing, just dismiss the dialog\n }\n });\n\n dialog.setMessage(getDeviceReport());\n\n dialog.show();\n }", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\t\n\t\tAlertDialog.Builder alertDialogBuilder = new AlertDialog.Builder(this);\n\t\t\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.action_about) {\n\t\t\talertDialogBuilder.setTitle(\"About Timeline-Enhanced Portrait Charts\");\n\t\t\talertDialogBuilder.setMessage(\"Programming by Joohan Lee under the supervision of Dr. Geoffrey M. Draper. This app is a research project funded by Brigham Young University Hawaii.\");\n\t\t\talertDialogBuilder.setPositiveButton(\"OK\", null);\n\t\t\tAlertDialog alertDialog = alertDialogBuilder.create();\n\t\t\talertDialog.show();\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "@Override\n\tpublic boolean onOptionsItemSelected(MenuItem item) {\n\t\tint id = item.getItemId();\n\t\tif (id == R.id.about) {\n\t\t\tAboutDialogFragment aboutDialogFragment=new AboutDialogFragment();\n\t\t\taboutDialogFragment.show(getSupportFragmentManager(), ABOUT_DIALOG_TAG);\n\t\t\treturn true;\n\t\t}\n\t\treturn super.onOptionsItemSelected(item);\n\t}", "public void actionPerformed(ActionEvent e)\n {\n new AutoAnswerOptionsDialog(providerService, parentMenu)\n .setVisible(true);\n }", "public void onClickAbout (View v)\n\t{\n\t\tstartActivity (new Intent(getApplicationContext(), AboutViewController.class));\n\t}", "public void helpPressed() {\n Stage mainStage = (Stage)pane.getScene().getWindow();\n PresentationCtrl.getInstance().showNotification(\"Information\", \"Information\", null,\n \"- Click <Clear> button to clear the history\\n\\n- Click <Refresh> button to refresh the history\" +\n \"\\n\\n- Double clicks on a row to see the detailed information\", mainStage);\n }", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"About\");\n\t\t\taboutMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJDialog aboutDialog = getAboutDialog();\n\t\t\t\t\taboutDialog.pack();\n\t\t\t\t\tPoint loc = getJFrame().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\taboutDialog.setLocation(loc);\n\t\t\t\t\taboutDialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn aboutMenuItem;\n\t}", "@Override\n\t\t\tpublic void onClick(View v) {\n\t\t\t\t// TODO Auto-generated method stub\n\t\t\t\tnew AlertDialog.Builder(Portal.this)\n\t\t\t\t.setTitle(R.string.about_me)\n\t\t\t\t.setMessage(R.string.about_me_message)\n\t\t\t\t.setNeutralButton(R.string.close, new DialogInterface.OnClickListener() {\n\t\t\t\t\t\n\t\t\t\t\t@Override\n\t\t\t\t\tpublic void onClick(DialogInterface dialog, int which) {\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})\n\t\t\t\t.show();\n\t\t\t}", "public aboutIF() {\n initComponents();\n \n }", "private void createAboutButton(final ToolBar bar) {\r\n // image's source:\r\n // http://commons.wikimedia.org/wiki/File:Information.png\r\n createButton(bar, \"images/Information.png\", \"About\",\r\n new SelectionAdapter() {\r\n @Override\r\n public void widgetSelected(final SelectionEvent arg0) {\r\n displayInfo(\"The parity game played is a max priority parity game.\\n\"\r\n + \"Player 0 has round vertices, player 1 has square vertices.\\n\"\r\n + \"Player 0 wins even priorities and player 1 wins odd priorities.\\n\"\r\n + \"Once solved, the winning region of player 0 is displayed in green.\\n\"\r\n + \"The winning region of player 1 is displayed in blue.\");\r\n // TODO: display this in a read-only text-box such that links can easily be copied\r\n displayInfo(\"The images for loading, generating and solving arenas are public domain and were retrieved from:\\n\"\r\n + \"https://openclipart.org/detail/119905/load-cedric-bosdonnat-01-by-anonymous\\n\"\r\n + \"http://pixabay.com/de/w%C3%BCrfel-sechs-gesichter-rollen-35637/\\n\"\r\n + \"and\\n\"\r\n + \"http://pixabay.com/de/puzzle-st%C3%BCck-stichs%C3%A4ge-konzept-308908/\\n\"\r\n + \"respecitvely.\\n\"\r\n + \"The image for saving arenas is under creative commons attribution license, created by VistaICO.com and was retrieved from:\\n\"\r\n + \"https://www.iconfinder.com/icons/49256/disk_save_icon\\n\"\r\n + \"Furthermore, the libraries SWT and Zest under the EPL\\n\"\r\n + \"and the libraries Apache Commons and Google Guava under the Apache license have been used.\\n\");\r\n }\r\n });\r\n }", "public void showAboutWindow() {\n /*\n * Note: on Windows, this is called from the Windows system tray\n * handler thread (created in the Windows DLL), and not from the\n * Swing Event handler thread. It is unsafe to call\n * GUIMediator.shutdownAboutWindow();\n * directly as Swing is not synchronized!\n * Instead, we should create an AWT Event and post it to the\n * default Toookit's EventQueue, and the application should\n * implement a Listener for that Event.\n */\n SwingUtilities.invokeLater(\n new Runnable() {\n public void run() {\n GUIMediator.showAboutWindow();\n }\n });\n }", "public static void showAboutWindow()\n {\n if (aboutWindow == null)\n {\n aboutWindow = new AboutWindow(null);\n\n /*\n * When the global/shared AboutWindow closes, don't keep a reference\n * to it and let it be garbage-collected.\n */\n aboutWindow.addWindowListener(new WindowAdapter()\n {\n @Override\n public void windowClosed(WindowEvent e)\n {\n if (aboutWindow == e.getWindow())\n aboutWindow = null;\n }\n });\n }\n aboutWindow.setVisible(true);\n }", "@Override\n\tpublic void mouseClicked(MouseEvent me)\n\t{\n\t\tif (me.getSource() == help1)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Select whether you want to publish your article <br>under your username, first name or your full<br> name (first and surname).</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help2)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Article titles should be short and snappy, you may use symbols <br>but use them sparingly.<br><br>A web-friendly-url is what's displayed in the URL box at<br>the top of the users web browser.<br>It should contain NO symbols and NO spaces, only lower case letters,<br>numbers, and dashes. Only edit it if absolutely necessary.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help3)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Select the category that best fits your article, if you<br>find that the categories don't quite fit your article, send us a<br>message in the contact section and we'll set you up a new category.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help4)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Each article requires a short introduction and 200x200 pixel icon image<br>for the homepage. <br><br>NOTE: Ensure that the image you're using is not copyright.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help5)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>Each article requires a main image to be displayed at the<br>top of the article page.<br><br>NOTE: Ensure that the image you're using is not copyright.</body></html>\");\n\t\t}\n\t\telse if (me.getSource() == help6)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(Home.toolbar, \"<html><body>\" +\n\t\t\t\t\t\"An article is made up of multiple text and image areas. You can use the buttons<br>\" +\n\t\t\t\t\t\"at the bottom of the page in the toolbar to add new areas. It's advised that you<br>\" +\n\t\t\t\t\t\"start with a text area to explain what your article is all about.<br><br>\" +\n\t\t\t\t\t\"You can have up to 17 areas in total.<br><br>\" +\n\t\t\t\t\t\"Images are displayed int he center of the page and should be no larger than<br>\" +\n\t\t\t\t\t\"720 * 350 pixels. The box the image is displayed in is to aspect ratio so<br>\" +\n\t\t\t\t\t\"make sure your image looks good in it, although the actual image will be<br>\" +\n\t\t\t\t\t\"twice as big.<br><br>\" +\n\t\t\t\t\t\"Text areas should be no more than 20,000 letters, although if you're<br>\" +\n\t\t\t\t\t\"planning on writing that much, you should probably split it up over<br>\" +\n\t\t\t\t\t\"multiple text areas and use images to make it more appealing.</body></html>\");\n\t\t}\n\t}", "public interface OnAboutListener {\n public void onAbout();\n }", "public void HelpTopicsActionPerformed(java.awt.event.ActionEvent evt) {\n\n HelpWindow helpWindow = new HelpWindow(this);\n helpWindow.setVisible(true);\n\n\n // HTMLDisplay helpdisplay = new HTMLDisplay( str, \"TerpPaint Help\" );\n //\t helpdisplay.setVisible( true );\n // System.out.println(\"help topics\");\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if(id == R.id.action_Index)\n {\n Intent Intent = new Intent();\n Intent.setClass(this, MainActivity.class);\n startActivity(Intent);\n }\n else if (id == R.id.action_settings) {\n return true;\n }\n else if(id == R.id.action_about)\n {\n AlertDialog.Builder AuthorAbout = new AlertDialog.Builder(this);\n\n AuthorAbout.setTitle(\"關於本系統作者\");\n AuthorAbout.setMessage(\"管理員 歐晉佑\");\n\n DialogInterface.OnClickListener AboutListener = new DialogInterface.OnClickListener()\n {\n public void onClick(DialogInterface di,int i)\n {\n Toast t = Toast.makeText(SystemIndexActivity.this,\"Hellow\",Toast.LENGTH_SHORT);\n t.show();\n }\n };\n AuthorAbout.setPositiveButton(\"我了解了\", AboutListener);\n AuthorAbout.show();\n }\n else if (id == R.id.action_reset)\n {\n\n }\n return super.onOptionsItemSelected(item);\n }", "public void actionPerformed (ActionEvent e) { \n\t\ttry {\n\t\t\tnew HomeMenuGUI ();\n\t\t} catch (IOException e1) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te1.printStackTrace();\n\t\t}\n\t}", "@FXML\r\n\tvoid help_btn_clicked(MouseEvent event) {\r\n\t\tDialog<String> dia = new Dialog<>();\r\n\t\tStage stage = (Stage) dia.getDialogPane().getScene().getWindow();\r\n\t\tDialogPane dialogPane = dia.getDialogPane();\r\n\t\tdialogPane.getStylesheets().add(getClass().getResource(\"/client/boundry/dialog.css\").toExternalForm());\r\n\t\tdialogPane.getStyleClass().add(\"dialog\");\r\n\t\tdia.setTitle(\"Help Dialog\");\r\n\t\tdia.setHeaderText(\"Guide:\");\r\n\t\tdia.setGraphic(new ImageView(this.getClass().getResource(\"/icons8-info-48.png\").toString()));\r\n\t\t// Add a custom icon.\r\n\t\tstage.getIcons().add(new Image(this.getClass().getResource(\"/icons8-help-24.png\").toString()));\r\n\t\tdia.getDialogPane().getButtonTypes().addAll(ButtonType.OK);\r\n\t\tdia.setContentText(\r\n\t\t\t\t\"Main Sale Pattern Screen\\nIn this screen you can choose sale from table,add sale, delete and open\\n\"\r\n\t\t\t\t\t\t+ \"for full information, click on specific sale and choose an action, in addition you can click\"\r\n\t\t\t\t\t\t+ \"on \\\"Statistics\\\" for statistic inforamtion\");\r\n\t\tdia.show();\r\n\t}", "public void helpRequested(HelpEvent event) {\r\n }", "protected void HelpActionPerformed(ActionEvent e) {\n\t\tthis.setVisible(false);\n\t\tHelp frame = new Help();\n\t\tframe.UpFrame=this;\n\t\tframe.setVisible(true);\n\t}", "private void openAbout() {\r\n \tIntent intent = new Intent(this, AboutActivity.class);\r\n \tstartActivity(intent);\r\n }", "public AboutProjectDialog(MainFrame mf) {\n super(mf, \"About\");\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n if (id == R.id.help_action) {\n final AlertDialog.Builder builder = new AlertDialog.Builder(this);\n builder.setTitle(R.string.help_title);\n builder.setMessage(R.string.help_text);\n builder.setPositiveButton(android.R.string.ok, null);\n builder.show();\n return true;\n }\n return super.onOptionsItemSelected(item);\n }", "private JMenuItem getAboutMenuItem() {\n\t\tif (aboutMenuItem == null) {\n\t\t\taboutMenuItem = new JMenuItem();\n\t\t\taboutMenuItem.setText(\"O aplikácii SluchAnal\");\n\t\t\taboutMenuItem.addActionListener(new ActionListener() {\n\t\t\t\tpublic void actionPerformed(ActionEvent e) {\n\t\t\t\t\tJDialog aboutDialog = getAboutDialog();\n\t\t\t\t\taboutDialog.pack();\n\t\t\t\t\tPoint loc = getHlavneOkno().getLocation();\n\t\t\t\t\tloc.translate(20, 20);\n\t\t\t\t\taboutDialog.setLocation(loc);\n\t\t\t\t\taboutDialog.setVisible(true);\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t\treturn aboutMenuItem;\n\t}", "public AboutDialog( MainJFrame pMainFrame_ ) \n {\n this( pMainFrame_, pMainFrame_.getInit() );\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n if (mToggle.onOptionsItemSelected(item)) {\n return true;\n }\n if (item.getItemId() == R.id.moreInfo) {\n AlertDialog.Builder builder = new AlertDialog.Builder(EventsActivity.this, R.style.AlertDialog);\n builder.setMessage(\"This page allows you to add entries into an events diary to keep track of the person you are caring for. \" +\n \"\\n\\nYou can add entries like dentist appointments, visits by relatives or even just a trip to the shop.\" +\n \"\\n\\nOnce you have created an event, press on it to edit the details.\")\n .setTitle(\"Events Diary\");\n // Add the buttons\n builder.setNegativeButton(\"Close\", new DialogInterface.OnClickListener() {\n public void onClick(DialogInterface dialog, int id) {\n // User cancelled the dialog\n dialog.cancel();\n\n }\n });\n AlertDialog dialog = builder.show();\n }\n return super.onOptionsItemSelected(item);\n }", "protected void do_mntmFinancialHelp_actionPerformed(ActionEvent arg0) {\n\t\tDelVecchioMCSRFinancialHelpFrame financialHelpFrame = new DelVecchioMCSRFinancialHelpFrame();\n\t\tfinancialHelpFrame.setVisible(true);\n\t}", "@Override\n\tpublic void onClick(View v) {\n\t\tswitch (v.getId()) {\n\t\tcase R.id.btnAbout:\n\t\t\tif (v.getId() == R.id.menuTerm)\n\t\t\t\tshowDialogTermAbout(false);\n\t\t\telse\n\t\t\t\tshowDialogTermAbout(true);\n\t\t\tbreak;\n\t\tdefault:\n\t\t\tbreak;\n\t\t}\n\t}", "public void onClick(View v) {\n\t\t\t\tIntent intent=new Intent(MainActivity.this,about.class);\n\t\t intent.setAction(\"about\");\n\t\t showactivity(intent);\n\t\t\t}", "@Override\r\n public void doHelpAction() {\n BIReportService.getInstance().traceHelpClick(project.getBasePath(), ConversionHelpEnum.PATH_SETTING);\r\n\r\n ApplicationManager.getApplication().invokeLater(() -> {\r\n BrowserUtil.browse(allianceDomain + HmsConvertorBundle.message(\"directory_url\"));\r\n }, ModalityState.any());\r\n }", "@Override\n public boolean onOptionsItemSelected(MenuItem item) {\n int id = item.getItemId();\n\n //noinspection SimplifiableIfStatement\n if (id == R.id.action_new) {\n newArt();\n }\n if (id == R.id.action_moreinfo) {\n new AlertDialog.Builder(this)\n .setMessage(\"Do you want to get the information from the MoMa\")\n .setCancelable(false)\n .setNegativeButton(\"No\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n }\n })\n .setPositiveButton(\"Yes\", new DialogInterface.OnClickListener() {\n @Override\n public void onClick(DialogInterface dialog, int which) {\n Uri webpage = Uri.parse(\"http://www.moma.org/collection/artists/4057\");\n Intent intent = new Intent(Intent.ACTION_VIEW, webpage);\n if (intent.resolveActivity(getPackageManager()) != null) {\n startActivity(intent);\n }\n }\n })\n .create()\n .show();\n }\n\n return super.onOptionsItemSelected(item);\n }", "public abstract String about();", "@Override\n\tpublic void actionPerformed(final ActionEvent event) {\n\t\tshowNew();\n\t}", "@Override\n\t\t\tpublic void handle(ActionEvent event) {\n\t\t\t\tlogger.info(\"click rootstage's help button\");\n\t\t\t\tshowRootDocumentScreen(ID_HELP);\n\t\t\t}", "public void actionPerformed(ActionEvent e) {\n\t\t\t\tJFrame cheyFrame = new JFrame(\"Cheyanne\");\r\n\t\t\t\tJPanel cheyPanel = new JPanel();\r\n\r\n\t\t\t\t// Can be any size- opens second window. (w,h)\r\n\t\t\t\tcheyFrame.setSize(250, 400);\r\n\r\n\t\t\t\t// Labels for information\r\n\t\t\t\t// Path must be relative to res folder!\r\n\t\t\t\t// src/res/nameoffile.extension\r\n\t\t\t\tJLabel cheyPic = new JLabel(new ImageIcon(\"src/res/cheyCat.png\"));\r\n\t\t\t\tJLabel cheyName = new JLabel(\"*Name- Cheyanne Flickinger\");\r\n\t\t\t\tJLabel cheyEducation = new JLabel(\"*Education- Media Arts | CSS Certificate\");\r\n\t\t\t\tJLabel cheyJob = new JLabel(\"*Job Description- Makes things prettier\");\r\n\r\n\t\t\t\t// adding to frame\r\n\t\t\t\tcheyFrame.add(cheyPanel);\r\n\t\t\t\tcheyPanel.add(cheyPic);\r\n\t\t\t\tcheyPanel.add(cheyName);\r\n\t\t\t\tcheyPanel.add(cheyEducation);\r\n\t\t\t\tcheyPanel.add(cheyJob);\r\n\t\t\t\tcheyFrame.setVisible(true);\r\n\t\t\t}", "private void jMenuItem148ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem148ActionPerformed\n // TODO add your handling code here:\n AboutAudacity aboutAudacity = new AboutAudacity();\n aboutAudacity.setVisible(true);\n }" ]
[ "0.8180485", "0.8141721", "0.8034589", "0.7683346", "0.76320654", "0.75742286", "0.75679016", "0.7518551", "0.73509", "0.7272084", "0.7183523", "0.7093702", "0.70468724", "0.70045483", "0.6984801", "0.6933303", "0.69181895", "0.69034404", "0.6900191", "0.6880618", "0.6828189", "0.6791936", "0.679164", "0.67825025", "0.6771393", "0.6765499", "0.67528653", "0.6722533", "0.6712559", "0.66944915", "0.6690371", "0.6675334", "0.66613215", "0.6610818", "0.6607632", "0.6600899", "0.6595024", "0.65776175", "0.6567503", "0.65437484", "0.65427065", "0.65245444", "0.6524402", "0.65097684", "0.6506887", "0.6503645", "0.6490658", "0.64695483", "0.6413461", "0.6374672", "0.6360822", "0.63345623", "0.63331115", "0.6330315", "0.6328217", "0.6306022", "0.62935317", "0.6285424", "0.62786674", "0.6268225", "0.62500966", "0.6242623", "0.6231262", "0.6224686", "0.62240285", "0.6215287", "0.6209672", "0.62023294", "0.62020004", "0.6165139", "0.6162636", "0.61452335", "0.6132821", "0.61122423", "0.6109726", "0.610546", "0.6101644", "0.60947216", "0.60914874", "0.6084888", "0.6084296", "0.6084073", "0.60480547", "0.60456675", "0.6013464", "0.60035646", "0.60023797", "0.5996153", "0.5994144", "0.5992649", "0.5989762", "0.59880185", "0.5985238", "0.5979822", "0.5975367", "0.5971515", "0.5970883", "0.5955912", "0.5954821", "0.5929062" ]
0.7994482
3
TODO Autogenerated method stub
@Override public void windowActivated(WindowEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void windowDeactivated(WindowEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void windowDeiconified(WindowEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void windowIconified(WindowEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void windowOpened(WindowEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void componentHidden(ComponentEvent e) { }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\r\n\tpublic void comer() \r\n\t{\n\t\t\r\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n public void perish() {\n \n }", "@Override\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "@Override\r\n\tpublic void anularFact() {\n\t\t\r\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n\tprotected void interr() {\n\t}", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n protected void getExras() {\n }", "@Override\r\n\tpublic void publierEnchere() {\n\t\t\r\n\t}", "@Override\n\tpublic void nefesAl() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void func_104112_b() {\n \n }", "@Override\n\tprotected void initdata() {\n\n\t}", "@Override\n\tpublic void nghe() {\n\n\t}", "@Override\n public void function()\n {\n }", "@Override\n public void function()\n {\n }", "public final void mo51373a() {\n }", "@Override\r\n\tpublic void stehReagieren() {\r\n\t\t//\r\n\t}", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n\tprotected void initData() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\tprotected void InitData() {\n\t\t\r\n\t}", "public void designBasement() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "public void gored() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\r\n\t}", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n protected void initialize() {\n\n \n }", "public void mo38117a() {\n }", "@Override\n\tprotected void getData() {\n\t\t\n\t}", "Constructor() {\r\n\t\t \r\n\t }", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void dibujar() {\n\t\t\r\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "@Override\r\n\tprotected void initData() {\n\t\t\r\n\t}", "private stendhal() {\n\t}", "@Override\n\tprotected void update() {\n\t\t\n\t}", "@Override\n\t\t\tpublic void ic() {\n\t\t\t\t\n\t\t\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tprotected void initData() {\n\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\t\t\n\t}", "@Override\n public void init() {\n\n }", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\n\tprotected void initialize() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void init() {\n\t\t\r\n\t}", "@Override\n\tpublic void debite() {\n\t\t\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "@Override\r\n\tpublic void init() {\n\r\n\t}", "public contrustor(){\r\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "@Override\r\n\tpublic void dispase() {\n\r\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "@Override\n\tpublic void dtd() {\n\t\t\n\t}", "@Override\n\tprotected void logic() {\n\n\t}", "@Override\n\tprotected void lazyLoad() {\n\t\t\n\t}", "public void mo4359a() {\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}", "@Override\n public void memoria() {\n \n }", "@Override\n\t\tpublic void method() {\n\t\t\t\n\t\t}", "private RepositorioAtendimentoPublicoHBM() {\r\t}", "@Override\n protected void initialize() \n {\n \n }", "@Override\r\n\tpublic void getProposition() {\n\r\n\t}", "@Override\n\tpublic void particular1() {\n\t\t\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n\tpublic void init() {\n\n\t}", "@Override\n protected void prot() {\n }", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "@Override\n\tprotected void initValue()\n\t{\n\n\t}", "public void mo55254a() {\n }" ]
[ "0.6671074", "0.6567672", "0.6523024", "0.6481211", "0.6477082", "0.64591026", "0.64127725", "0.63762105", "0.6276059", "0.6254286", "0.623686", "0.6223679", "0.6201336", "0.61950207", "0.61950207", "0.61922914", "0.6186996", "0.6173591", "0.61327106", "0.61285484", "0.6080161", "0.6077022", "0.6041561", "0.6024072", "0.6020252", "0.59984857", "0.59672105", "0.59672105", "0.5965777", "0.59485507", "0.5940904", "0.59239364", "0.5910017", "0.5902906", "0.58946234", "0.5886006", "0.58839184", "0.58691067", "0.5857751", "0.58503544", "0.5847024", "0.58239377", "0.5810564", "0.5810089", "0.5806823", "0.5806823", "0.5800025", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5792378", "0.5790187", "0.5789414", "0.5787092", "0.57844025", "0.57844025", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5774479", "0.5761362", "0.57596046", "0.57596046", "0.575025", "0.575025", "0.575025", "0.5747959", "0.57337177", "0.57337177", "0.57337177", "0.5721452", "0.5715831", "0.57142824", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.57140535", "0.5711723", "0.57041645", "0.56991017", "0.5696783", "0.56881124", "0.56774884", "0.56734604", "0.56728", "0.56696945", "0.5661323", "0.5657007", "0.5655942", "0.5655942", "0.5655942", "0.56549734", "0.5654792", "0.5652974", "0.5650185" ]
0.0
-1
TODO Autogenerated method stub
@Override public void componentMoved(ComponentEvent e) { }
{ "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
/ JADX WARNING: Removed duplicated region for block: B:3:0x0011 / Code decompiled incorrectly, please refer to instructions dump.
public boolean match(android.net.Uri r8) { /* r7 = this; r4 = 0 java.util.Map<java.lang.String, com.facebook.secure.switchoff.RegexWithNegation> r5 = r7.mUriComponentPattern java.util.Set r5 = r5.entrySet() java.util.Iterator r5 = r5.iterator() L_0x000b: boolean r6 = r5.hasNext() if (r6 == 0) goto L_0x0031 java.lang.Object r2 = r5.next() java.util.Map$Entry r2 = (java.util.Map.Entry) r2 java.lang.Object r0 = r2.getKey() java.lang.String r0 = (java.lang.String) r0 java.lang.String r1 = getUriComponentValue(r8, r0) if (r1 != 0) goto L_0x0024 L_0x0023: return r4 L_0x0024: java.lang.Object r3 = r2.getValue() com.facebook.secure.switchoff.RegexWithNegation r3 = (com.facebook.secure.switchoff.RegexWithNegation) r3 boolean r6 = r3.match(r1) if (r6 != 0) goto L_0x000b goto L_0x0023 L_0x0031: r4 = 1 goto L_0x0023 */ throw new UnsupportedOperationException("Method not decompiled: com.facebook.secure.switchoff.UriMatcher.match(android.net.Uri):boolean"); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "protected void processBlock(byte[] paramArrayOfByte)\r\n/* 150: */ {\r\n/* 151:236 */ int i5 = decodeBEInt(paramArrayOfByte, 0);\r\n/* 152:237 */ int i6 = decodeBEInt(paramArrayOfByte, 4);\r\n/* 153:238 */ int i7 = decodeBEInt(paramArrayOfByte, 8);\r\n/* 154:239 */ int i8 = decodeBEInt(paramArrayOfByte, 12);\r\n/* 155:240 */ int i9 = decodeBEInt(paramArrayOfByte, 16);\r\n/* 156:241 */ int i10 = decodeBEInt(paramArrayOfByte, 20);\r\n/* 157:242 */ int i11 = decodeBEInt(paramArrayOfByte, 24);\r\n/* 158:243 */ int i12 = decodeBEInt(paramArrayOfByte, 28);\r\n/* 159:244 */ int j = this.V00 ^ this.V10;\r\n/* 160:245 */ int k = this.V01 ^ this.V11;\r\n/* 161:246 */ int m = this.V02 ^ this.V12;\r\n/* 162:247 */ int n = this.V03 ^ this.V13;\r\n/* 163:248 */ int i1 = this.V04 ^ this.V14;\r\n/* 164:249 */ int i2 = this.V05 ^ this.V15;\r\n/* 165:250 */ int i3 = this.V06 ^ this.V16;\r\n/* 166:251 */ int i4 = this.V07 ^ this.V17;\r\n/* 167:252 */ j ^= this.V20;\r\n/* 168:253 */ k ^= this.V21;\r\n/* 169:254 */ m ^= this.V22;\r\n/* 170:255 */ n ^= this.V23;\r\n/* 171:256 */ i1 ^= this.V24;\r\n/* 172:257 */ i2 ^= this.V25;\r\n/* 173:258 */ i3 ^= this.V26;\r\n/* 174:259 */ i4 ^= this.V27;\r\n/* 175:260 */ int i = i4;\r\n/* 176:261 */ i4 = i3;\r\n/* 177:262 */ i3 = i2;\r\n/* 178:263 */ i2 = i1;\r\n/* 179:264 */ i1 = n ^ i;\r\n/* 180:265 */ n = m ^ i;\r\n/* 181:266 */ m = k;\r\n/* 182:267 */ k = j ^ i;\r\n/* 183:268 */ j = i;\r\n/* 184:269 */ this.V00 = (j ^ this.V00);\r\n/* 185:270 */ this.V01 = (k ^ this.V01);\r\n/* 186:271 */ this.V02 = (m ^ this.V02);\r\n/* 187:272 */ this.V03 = (n ^ this.V03);\r\n/* 188:273 */ this.V04 = (i1 ^ this.V04);\r\n/* 189:274 */ this.V05 = (i2 ^ this.V05);\r\n/* 190:275 */ this.V06 = (i3 ^ this.V06);\r\n/* 191:276 */ this.V07 = (i4 ^ this.V07);\r\n/* 192:277 */ this.V00 = (i5 ^ this.V00);\r\n/* 193:278 */ this.V01 = (i6 ^ this.V01);\r\n/* 194:279 */ this.V02 = (i7 ^ this.V02);\r\n/* 195:280 */ this.V03 = (i8 ^ this.V03);\r\n/* 196:281 */ this.V04 = (i9 ^ this.V04);\r\n/* 197:282 */ this.V05 = (i10 ^ this.V05);\r\n/* 198:283 */ this.V06 = (i11 ^ this.V06);\r\n/* 199:284 */ this.V07 = (i12 ^ this.V07);\r\n/* 200:285 */ i = i12;\r\n/* 201:286 */ i12 = i11;\r\n/* 202:287 */ i11 = i10;\r\n/* 203:288 */ i10 = i9;\r\n/* 204:289 */ i9 = i8 ^ i;\r\n/* 205:290 */ i8 = i7 ^ i;\r\n/* 206:291 */ i7 = i6;\r\n/* 207:292 */ i6 = i5 ^ i;\r\n/* 208:293 */ i5 = i;\r\n/* 209:294 */ this.V10 = (j ^ this.V10);\r\n/* 210:295 */ this.V11 = (k ^ this.V11);\r\n/* 211:296 */ this.V12 = (m ^ this.V12);\r\n/* 212:297 */ this.V13 = (n ^ this.V13);\r\n/* 213:298 */ this.V14 = (i1 ^ this.V14);\r\n/* 214:299 */ this.V15 = (i2 ^ this.V15);\r\n/* 215:300 */ this.V16 = (i3 ^ this.V16);\r\n/* 216:301 */ this.V17 = (i4 ^ this.V17);\r\n/* 217:302 */ this.V10 = (i5 ^ this.V10);\r\n/* 218:303 */ this.V11 = (i6 ^ this.V11);\r\n/* 219:304 */ this.V12 = (i7 ^ this.V12);\r\n/* 220:305 */ this.V13 = (i8 ^ this.V13);\r\n/* 221:306 */ this.V14 = (i9 ^ this.V14);\r\n/* 222:307 */ this.V15 = (i10 ^ this.V15);\r\n/* 223:308 */ this.V16 = (i11 ^ this.V16);\r\n/* 224:309 */ this.V17 = (i12 ^ this.V17);\r\n/* 225:310 */ i = i12;\r\n/* 226:311 */ i12 = i11;\r\n/* 227:312 */ i11 = i10;\r\n/* 228:313 */ i10 = i9;\r\n/* 229:314 */ i9 = i8 ^ i;\r\n/* 230:315 */ i8 = i7 ^ i;\r\n/* 231:316 */ i7 = i6;\r\n/* 232:317 */ i6 = i5 ^ i;\r\n/* 233:318 */ i5 = i;\r\n/* 234:319 */ this.V20 = (j ^ this.V20);\r\n/* 235:320 */ this.V21 = (k ^ this.V21);\r\n/* 236:321 */ this.V22 = (m ^ this.V22);\r\n/* 237:322 */ this.V23 = (n ^ this.V23);\r\n/* 238:323 */ this.V24 = (i1 ^ this.V24);\r\n/* 239:324 */ this.V25 = (i2 ^ this.V25);\r\n/* 240:325 */ this.V26 = (i3 ^ this.V26);\r\n/* 241:326 */ this.V27 = (i4 ^ this.V27);\r\n/* 242:327 */ this.V20 = (i5 ^ this.V20);\r\n/* 243:328 */ this.V21 = (i6 ^ this.V21);\r\n/* 244:329 */ this.V22 = (i7 ^ this.V22);\r\n/* 245:330 */ this.V23 = (i8 ^ this.V23);\r\n/* 246:331 */ this.V24 = (i9 ^ this.V24);\r\n/* 247:332 */ this.V25 = (i10 ^ this.V25);\r\n/* 248:333 */ this.V26 = (i11 ^ this.V26);\r\n/* 249:334 */ this.V27 = (i12 ^ this.V27);\r\n/* 250:335 */ this.V14 = (this.V14 << 1 | this.V14 >>> 31);\r\n/* 251:336 */ this.V15 = (this.V15 << 1 | this.V15 >>> 31);\r\n/* 252:337 */ this.V16 = (this.V16 << 1 | this.V16 >>> 31);\r\n/* 253:338 */ this.V17 = (this.V17 << 1 | this.V17 >>> 31);\r\n/* 254:339 */ this.V24 = (this.V24 << 2 | this.V24 >>> 30);\r\n/* 255:340 */ this.V25 = (this.V25 << 2 | this.V25 >>> 30);\r\n/* 256:341 */ this.V26 = (this.V26 << 2 | this.V26 >>> 30);\r\n/* 257:342 */ this.V27 = (this.V27 << 2 | this.V27 >>> 30);\r\n/* 258:343 */ for (int i13 = 0; i13 < 8; i13++)\r\n/* 259: */ {\r\n/* 260:344 */ i = this.V00;\r\n/* 261:345 */ this.V00 |= this.V01;\r\n/* 262:346 */ this.V02 ^= this.V03;\r\n/* 263:347 */ this.V01 ^= 0xFFFFFFFF;\r\n/* 264:348 */ this.V00 ^= this.V03;\r\n/* 265:349 */ this.V03 &= i;\r\n/* 266:350 */ this.V01 ^= this.V03;\r\n/* 267:351 */ this.V03 ^= this.V02;\r\n/* 268:352 */ this.V02 &= this.V00;\r\n/* 269:353 */ this.V00 ^= 0xFFFFFFFF;\r\n/* 270:354 */ this.V02 ^= this.V01;\r\n/* 271:355 */ this.V01 |= this.V03;\r\n/* 272:356 */ i ^= this.V01;\r\n/* 273:357 */ this.V03 ^= this.V02;\r\n/* 274:358 */ this.V02 &= this.V01;\r\n/* 275:359 */ this.V01 ^= this.V00;\r\n/* 276:360 */ this.V00 = i;\r\n/* 277:361 */ i = this.V05;\r\n/* 278:362 */ this.V05 |= this.V06;\r\n/* 279:363 */ this.V07 ^= this.V04;\r\n/* 280:364 */ this.V06 ^= 0xFFFFFFFF;\r\n/* 281:365 */ this.V05 ^= this.V04;\r\n/* 282:366 */ this.V04 &= i;\r\n/* 283:367 */ this.V06 ^= this.V04;\r\n/* 284:368 */ this.V04 ^= this.V07;\r\n/* 285:369 */ this.V07 &= this.V05;\r\n/* 286:370 */ this.V05 ^= 0xFFFFFFFF;\r\n/* 287:371 */ this.V07 ^= this.V06;\r\n/* 288:372 */ this.V06 |= this.V04;\r\n/* 289:373 */ i ^= this.V06;\r\n/* 290:374 */ this.V04 ^= this.V07;\r\n/* 291:375 */ this.V07 &= this.V06;\r\n/* 292:376 */ this.V06 ^= this.V05;\r\n/* 293:377 */ this.V05 = i;\r\n/* 294:378 */ this.V04 ^= this.V00;\r\n/* 295:379 */ this.V00 = ((this.V00 << 2 | this.V00 >>> 30) ^ this.V04);\r\n/* 296:380 */ this.V04 = ((this.V04 << 14 | this.V04 >>> 18) ^ this.V00);\r\n/* 297:381 */ this.V00 = ((this.V00 << 10 | this.V00 >>> 22) ^ this.V04);\r\n/* 298:382 */ this.V04 = (this.V04 << 1 | this.V04 >>> 31);\r\n/* 299:383 */ this.V05 ^= this.V01;\r\n/* 300:384 */ this.V01 = ((this.V01 << 2 | this.V01 >>> 30) ^ this.V05);\r\n/* 301:385 */ this.V05 = ((this.V05 << 14 | this.V05 >>> 18) ^ this.V01);\r\n/* 302:386 */ this.V01 = ((this.V01 << 10 | this.V01 >>> 22) ^ this.V05);\r\n/* 303:387 */ this.V05 = (this.V05 << 1 | this.V05 >>> 31);\r\n/* 304:388 */ this.V06 ^= this.V02;\r\n/* 305:389 */ this.V02 = ((this.V02 << 2 | this.V02 >>> 30) ^ this.V06);\r\n/* 306:390 */ this.V06 = ((this.V06 << 14 | this.V06 >>> 18) ^ this.V02);\r\n/* 307:391 */ this.V02 = ((this.V02 << 10 | this.V02 >>> 22) ^ this.V06);\r\n/* 308:392 */ this.V06 = (this.V06 << 1 | this.V06 >>> 31);\r\n/* 309:393 */ this.V07 ^= this.V03;\r\n/* 310:394 */ this.V03 = ((this.V03 << 2 | this.V03 >>> 30) ^ this.V07);\r\n/* 311:395 */ this.V07 = ((this.V07 << 14 | this.V07 >>> 18) ^ this.V03);\r\n/* 312:396 */ this.V03 = ((this.V03 << 10 | this.V03 >>> 22) ^ this.V07);\r\n/* 313:397 */ this.V07 = (this.V07 << 1 | this.V07 >>> 31);\r\n/* 314:398 */ this.V00 ^= RC00[i13];\r\n/* 315:399 */ this.V04 ^= RC04[i13];\r\n/* 316: */ }\r\n/* 317:401 */ for (i13 = 0; i13 < 8; i13++)\r\n/* 318: */ {\r\n/* 319:402 */ i = this.V10;\r\n/* 320:403 */ this.V10 |= this.V11;\r\n/* 321:404 */ this.V12 ^= this.V13;\r\n/* 322:405 */ this.V11 ^= 0xFFFFFFFF;\r\n/* 323:406 */ this.V10 ^= this.V13;\r\n/* 324:407 */ this.V13 &= i;\r\n/* 325:408 */ this.V11 ^= this.V13;\r\n/* 326:409 */ this.V13 ^= this.V12;\r\n/* 327:410 */ this.V12 &= this.V10;\r\n/* 328:411 */ this.V10 ^= 0xFFFFFFFF;\r\n/* 329:412 */ this.V12 ^= this.V11;\r\n/* 330:413 */ this.V11 |= this.V13;\r\n/* 331:414 */ i ^= this.V11;\r\n/* 332:415 */ this.V13 ^= this.V12;\r\n/* 333:416 */ this.V12 &= this.V11;\r\n/* 334:417 */ this.V11 ^= this.V10;\r\n/* 335:418 */ this.V10 = i;\r\n/* 336:419 */ i = this.V15;\r\n/* 337:420 */ this.V15 |= this.V16;\r\n/* 338:421 */ this.V17 ^= this.V14;\r\n/* 339:422 */ this.V16 ^= 0xFFFFFFFF;\r\n/* 340:423 */ this.V15 ^= this.V14;\r\n/* 341:424 */ this.V14 &= i;\r\n/* 342:425 */ this.V16 ^= this.V14;\r\n/* 343:426 */ this.V14 ^= this.V17;\r\n/* 344:427 */ this.V17 &= this.V15;\r\n/* 345:428 */ this.V15 ^= 0xFFFFFFFF;\r\n/* 346:429 */ this.V17 ^= this.V16;\r\n/* 347:430 */ this.V16 |= this.V14;\r\n/* 348:431 */ i ^= this.V16;\r\n/* 349:432 */ this.V14 ^= this.V17;\r\n/* 350:433 */ this.V17 &= this.V16;\r\n/* 351:434 */ this.V16 ^= this.V15;\r\n/* 352:435 */ this.V15 = i;\r\n/* 353:436 */ this.V14 ^= this.V10;\r\n/* 354:437 */ this.V10 = ((this.V10 << 2 | this.V10 >>> 30) ^ this.V14);\r\n/* 355:438 */ this.V14 = ((this.V14 << 14 | this.V14 >>> 18) ^ this.V10);\r\n/* 356:439 */ this.V10 = ((this.V10 << 10 | this.V10 >>> 22) ^ this.V14);\r\n/* 357:440 */ this.V14 = (this.V14 << 1 | this.V14 >>> 31);\r\n/* 358:441 */ this.V15 ^= this.V11;\r\n/* 359:442 */ this.V11 = ((this.V11 << 2 | this.V11 >>> 30) ^ this.V15);\r\n/* 360:443 */ this.V15 = ((this.V15 << 14 | this.V15 >>> 18) ^ this.V11);\r\n/* 361:444 */ this.V11 = ((this.V11 << 10 | this.V11 >>> 22) ^ this.V15);\r\n/* 362:445 */ this.V15 = (this.V15 << 1 | this.V15 >>> 31);\r\n/* 363:446 */ this.V16 ^= this.V12;\r\n/* 364:447 */ this.V12 = ((this.V12 << 2 | this.V12 >>> 30) ^ this.V16);\r\n/* 365:448 */ this.V16 = ((this.V16 << 14 | this.V16 >>> 18) ^ this.V12);\r\n/* 366:449 */ this.V12 = ((this.V12 << 10 | this.V12 >>> 22) ^ this.V16);\r\n/* 367:450 */ this.V16 = (this.V16 << 1 | this.V16 >>> 31);\r\n/* 368:451 */ this.V17 ^= this.V13;\r\n/* 369:452 */ this.V13 = ((this.V13 << 2 | this.V13 >>> 30) ^ this.V17);\r\n/* 370:453 */ this.V17 = ((this.V17 << 14 | this.V17 >>> 18) ^ this.V13);\r\n/* 371:454 */ this.V13 = ((this.V13 << 10 | this.V13 >>> 22) ^ this.V17);\r\n/* 372:455 */ this.V17 = (this.V17 << 1 | this.V17 >>> 31);\r\n/* 373:456 */ this.V10 ^= RC10[i13];\r\n/* 374:457 */ this.V14 ^= RC14[i13];\r\n/* 375: */ }\r\n/* 376:459 */ for (i13 = 0; i13 < 8; i13++)\r\n/* 377: */ {\r\n/* 378:460 */ i = this.V20;\r\n/* 379:461 */ this.V20 |= this.V21;\r\n/* 380:462 */ this.V22 ^= this.V23;\r\n/* 381:463 */ this.V21 ^= 0xFFFFFFFF;\r\n/* 382:464 */ this.V20 ^= this.V23;\r\n/* 383:465 */ this.V23 &= i;\r\n/* 384:466 */ this.V21 ^= this.V23;\r\n/* 385:467 */ this.V23 ^= this.V22;\r\n/* 386:468 */ this.V22 &= this.V20;\r\n/* 387:469 */ this.V20 ^= 0xFFFFFFFF;\r\n/* 388:470 */ this.V22 ^= this.V21;\r\n/* 389:471 */ this.V21 |= this.V23;\r\n/* 390:472 */ i ^= this.V21;\r\n/* 391:473 */ this.V23 ^= this.V22;\r\n/* 392:474 */ this.V22 &= this.V21;\r\n/* 393:475 */ this.V21 ^= this.V20;\r\n/* 394:476 */ this.V20 = i;\r\n/* 395:477 */ i = this.V25;\r\n/* 396:478 */ this.V25 |= this.V26;\r\n/* 397:479 */ this.V27 ^= this.V24;\r\n/* 398:480 */ this.V26 ^= 0xFFFFFFFF;\r\n/* 399:481 */ this.V25 ^= this.V24;\r\n/* 400:482 */ this.V24 &= i;\r\n/* 401:483 */ this.V26 ^= this.V24;\r\n/* 402:484 */ this.V24 ^= this.V27;\r\n/* 403:485 */ this.V27 &= this.V25;\r\n/* 404:486 */ this.V25 ^= 0xFFFFFFFF;\r\n/* 405:487 */ this.V27 ^= this.V26;\r\n/* 406:488 */ this.V26 |= this.V24;\r\n/* 407:489 */ i ^= this.V26;\r\n/* 408:490 */ this.V24 ^= this.V27;\r\n/* 409:491 */ this.V27 &= this.V26;\r\n/* 410:492 */ this.V26 ^= this.V25;\r\n/* 411:493 */ this.V25 = i;\r\n/* 412:494 */ this.V24 ^= this.V20;\r\n/* 413:495 */ this.V20 = ((this.V20 << 2 | this.V20 >>> 30) ^ this.V24);\r\n/* 414:496 */ this.V24 = ((this.V24 << 14 | this.V24 >>> 18) ^ this.V20);\r\n/* 415:497 */ this.V20 = ((this.V20 << 10 | this.V20 >>> 22) ^ this.V24);\r\n/* 416:498 */ this.V24 = (this.V24 << 1 | this.V24 >>> 31);\r\n/* 417:499 */ this.V25 ^= this.V21;\r\n/* 418:500 */ this.V21 = ((this.V21 << 2 | this.V21 >>> 30) ^ this.V25);\r\n/* 419:501 */ this.V25 = ((this.V25 << 14 | this.V25 >>> 18) ^ this.V21);\r\n/* 420:502 */ this.V21 = ((this.V21 << 10 | this.V21 >>> 22) ^ this.V25);\r\n/* 421:503 */ this.V25 = (this.V25 << 1 | this.V25 >>> 31);\r\n/* 422:504 */ this.V26 ^= this.V22;\r\n/* 423:505 */ this.V22 = ((this.V22 << 2 | this.V22 >>> 30) ^ this.V26);\r\n/* 424:506 */ this.V26 = ((this.V26 << 14 | this.V26 >>> 18) ^ this.V22);\r\n/* 425:507 */ this.V22 = ((this.V22 << 10 | this.V22 >>> 22) ^ this.V26);\r\n/* 426:508 */ this.V26 = (this.V26 << 1 | this.V26 >>> 31);\r\n/* 427:509 */ this.V27 ^= this.V23;\r\n/* 428:510 */ this.V23 = ((this.V23 << 2 | this.V23 >>> 30) ^ this.V27);\r\n/* 429:511 */ this.V27 = ((this.V27 << 14 | this.V27 >>> 18) ^ this.V23);\r\n/* 430:512 */ this.V23 = ((this.V23 << 10 | this.V23 >>> 22) ^ this.V27);\r\n/* 431:513 */ this.V27 = (this.V27 << 1 | this.V27 >>> 31);\r\n/* 432:514 */ this.V20 ^= RC20[i13];\r\n/* 433:515 */ this.V24 ^= RC24[i13];\r\n/* 434: */ }\r\n/* 435: */ }", "public int c(Block parambec)\r\n/* 119: */ {\r\n/* 120:131 */ return 0;\r\n/* 121: */ }", "private void method_7083() {\r\n // $FF: Couldn't be decompiled\r\n }", "private void b()\r\n/* 67: */ {\r\n/* 68: 73 */ this.c.clear();\r\n/* 69: 74 */ this.e.clear();\r\n/* 70: */ }", "public final void mo56977b() {\n /*\n r2 = this;\n com.ss.android.ugc.aweme.common.e r0 = r2.f67572c\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.i r0 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28951i) r0\n if (r0 == 0) goto L_0x001a\n com.ss.android.ugc.aweme.common.a r1 = r2.f67571b\n com.ss.android.ugc.aweme.feed.ui.masklayer2.a.d r1 = (com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28944d) r1\n if (r1 == 0) goto L_0x0014\n java.lang.Object r1 = r1.getData()\n java.lang.String r1 = (java.lang.String) r1\n if (r1 != 0) goto L_0x0016\n L_0x0014:\n java.lang.String r1 = \"\"\n L_0x0016:\n r0.mo74240a(r1)\n return\n L_0x001a:\n return\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.p280ss.android.ugc.aweme.feed.p1238ui.masklayer2.p1239a.C28946e.mo56977b():void\");\n }", "protected void method_2241() {\r\n // $FF: Couldn't be decompiled\r\n }", "private final void zzR(Object var1_1, zzha var2_2) {\n block94: {\n var3_3 = this;\n var4_4 = var1_1;\n var5_5 = var2_2;\n var6_6 = this.zzh;\n if (var6_6 != 0) break block94;\n var7_7 = this.zzc;\n var6_6 = ((int[])var7_7).length;\n var8_8 = zzja.zzb;\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n var11_11 = var9_9;\n var13_13 = 0;\n for (var12_12 = 0; var12_12 < var6_6; var12_12 += 3) {\n block95: {\n var14_14 = var3_3.zzA(var12_12);\n var15_15 = var3_3.zzc;\n var16_16 = var15_15[var12_12];\n var17_17 = zzja.zzC(var14_14);\n var18_18 = 17;\n var19_19 = 1;\n if (var17_17 <= var18_18) {\n var20_20 = var3_3.zzc;\n var21_21 = var12_12 + 2;\n var18_18 = var20_20[var21_21];\n if ((var21_21 = var18_18 & var9_9) != var11_11) {\n var22_22 = var21_21;\n var13_13 = var8_8.getInt(var4_4, var22_22);\n var11_11 = var21_21;\n }\n var18_18 >>>= 20;\n var18_18 = var19_19 << var18_18;\n } else {\n var18_18 = 0;\n var20_20 = null;\n }\n var24_23 = var14_14 &= var9_9;\n switch (var17_17) lbl-1000:\n // 56 sources\n\n {\n default: {\n var17_17 = 0;\n break block95;\n }\n case 68: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 67: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 66: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 65: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 64: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 63: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 62: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 61: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n ** GOTO lbl-1000\n }\n case 60: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n ** GOTO lbl-1000\n }\n case 59: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 58: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = (int)zzja.zzH(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n ** GOTO lbl-1000\n }\n case 57: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 56: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 55: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var9_9 = zzja.zzF(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n ** GOTO lbl-1000\n }\n case 54: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 53: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var24_23 = zzja.zzG(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n ** GOTO lbl-1000\n }\n case 52: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var10_10 = zzja.zzE(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n ** GOTO lbl-1000\n }\n case 51: {\n var14_14 = (int)var3_3.zzM(var4_4, var16_16, var12_12);\n if (var14_14 == 0) ** GOTO lbl-1000\n var28_26 = zzja.zzD(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n ** GOTO lbl-1000\n }\n case 50: {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var3_3.zzS(var5_5, var16_16, var26_24, var12_12);\n ** GOTO lbl-1000\n }\n case 49: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzaa(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 48: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzN(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 47: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 46: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 45: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 44: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 43: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 42: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzW(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 41: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 40: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 39: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 38: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 37: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 36: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 35: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, (boolean)var19_19);\n ** GOTO lbl-1000\n }\n case 34: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var16_16 = 0;\n var15_15 = null;\n zzjk.zzN(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 33: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzS(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 32: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzP(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 31: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzU(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 30: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzV(var14_14, (List)var26_24, var5_5, false);\n ** GOTO lbl290\n }\n case 29: {\n var16_16 = 0;\n var15_15 = null;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzR(var14_14, (List)var26_24, var5_5, false);\nlbl290:\n // 6 sources\n\n var17_17 = 0;\n break block95;\n }\n case 28: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzY(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 27: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n zzjk.zzZ(var14_14, (List)var26_24, var5_5, var27_25);\n ** GOTO lbl-1000\n }\n case 26: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzX(var14_14, (List)var26_24, var5_5);\n ** GOTO lbl-1000\n }\n case 25: {\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n var17_17 = 0;\n zzjk.zzW(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 24: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzT(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 23: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzO(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 22: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzQ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 21: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzM(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 20: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzL(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 19: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzK(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 18: {\n var17_17 = 0;\n var30_27 = var3_3.zzc;\n var14_14 = var30_27[var12_12];\n var26_24 = (List)var8_8.getObject(var4_4, var24_23);\n zzjk.zzJ(var14_14, (List)var26_24, var5_5, false);\n break block95;\n }\n case 17: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzs(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 16: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzq(var16_16, var24_23);\n }\n break block95;\n }\n case 15: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzp(var16_16, var9_9);\n }\n break block95;\n }\n case 14: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzd(var16_16, var24_23);\n }\n break block95;\n }\n case 13: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzb(var16_16, var9_9);\n }\n break block95;\n }\n case 12: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzg(var16_16, var9_9);\n }\n break block95;\n }\n case 11: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzo(var16_16, var9_9);\n }\n break block95;\n }\n case 10: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = (zzgs)var8_8.getObject(var4_4, var24_23);\n var5_5.zzn(var16_16, (zzgs)var26_24);\n }\n break block95;\n }\n case 9: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n var27_25 = var3_3.zzv(var12_12);\n var5_5.zzr(var16_16, var26_24, var27_25);\n }\n break block95;\n }\n case 8: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var26_24 = var8_8.getObject(var4_4, var24_23);\n zzja.zzT(var16_16, var26_24, var5_5);\n }\n break block95;\n }\n case 7: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = (int)zzkh.zzh(var4_4, var24_23);\n var5_5.zzl(var16_16, (boolean)var9_9);\n }\n break block95;\n }\n case 6: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzk(var16_16, var9_9);\n }\n break block95;\n }\n case 5: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzj(var16_16, var24_23);\n }\n break block95;\n }\n case 4: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var9_9 = var8_8.getInt(var4_4, var24_23);\n var5_5.zzi(var16_16, var9_9);\n }\n break block95;\n }\n case 3: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzh(var16_16, var24_23);\n }\n break block95;\n }\n case 2: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var24_23 = var8_8.getLong(var4_4, var24_23);\n var5_5.zzc(var16_16, var24_23);\n }\n break block95;\n }\n case 1: {\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var10_10 = zzkh.zzj(var4_4, var24_23);\n var5_5.zze(var16_16, var10_10);\n }\n break block95;\n }\n case 0: \n }\n var17_17 = 0;\n var14_14 = var13_13 & var18_18;\n if (var14_14 != 0) {\n var28_26 = zzkh.zzl(var4_4, var24_23);\n var5_5.zzf(var16_16, var28_26);\n }\n }\n var9_9 = 1048575;\n var10_10 = 1.469367E-39f;\n }\n var7_7 = var3_3.zzn;\n var4_4 = var7_7.zzd(var4_4);\n var7_7.zzi(var4_4, var5_5);\n return;\n }\n this.zzo.zzb(var1_1);\n throw null;\n }", "public void b(World paramaqu, Random paramRandom, BlockPosition paramdt, Block parambec)\r\n/* 77: */ {\r\n/* 78: 93 */ BlockPosition localdt1 = paramdt.up();\r\n/* 79: */ label260:\r\n/* 80: 95 */ for (int i = 0; i < 128; i++)\r\n/* 81: */ {\r\n/* 82: 96 */ BlockPosition localdt2 = localdt1;\r\n/* 83: 97 */ for (int j = 0; j < i / 16; j++)\r\n/* 84: */ {\r\n/* 85: 98 */ localdt2 = localdt2.offset(paramRandom.nextInt(3) - 1, (paramRandom.nextInt(3) - 1) * paramRandom.nextInt(3) / 2, paramRandom.nextInt(3) - 1);\r\n/* 86: 99 */ if ((paramaqu.getBlock(localdt2.down()).getType() != BlockList.grass) || (paramaqu.getBlock(localdt2).getType().blocksMovement())) {\r\n/* 87: */ break label260;\r\n/* 88: */ }\r\n/* 89: */ }\r\n/* 90:104 */ if (paramaqu.getBlock(localdt2).getType().material == Material.air)\r\n/* 91: */ {\r\n/* 92: */ Object localObject;\r\n/* 93:108 */ if (paramRandom.nextInt(8) == 0)\r\n/* 94: */ {\r\n/* 95:109 */ localObject = paramaqu.b(localdt2).a(paramRandom, localdt2);\r\n/* 96:110 */ avy localavy = ((EnumFlowerVariant)localObject).a().a();\r\n/* 97:111 */ Block localbec = localavy.instance().setData(localavy.l(), (Comparable)localObject);\r\n/* 98:112 */ if (localavy.f(paramaqu, localdt2, localbec)) {\r\n/* 99:113 */ paramaqu.setBlock(localdt2, localbec, 3);\r\n/* 100: */ }\r\n/* 101: */ }\r\n/* 102: */ else\r\n/* 103: */ {\r\n/* 104:116 */ localObject = BlockList.tallgrass.instance().setData(bbh.a, bbi.b);\r\n/* 105:117 */ if (BlockList.tallgrass.f(paramaqu, localdt2, (Block)localObject)) {\r\n/* 106:118 */ paramaqu.setBlock(localdt2, (Block)localObject, 3);\r\n/* 107: */ }\r\n/* 108: */ }\r\n/* 109: */ }\r\n/* 110: */ }\r\n/* 111: */ }", "void m5768b() throws C0841b;", "protected void method_2145() {\r\n // $FF: Couldn't be decompiled\r\n }", "private c b(c blk, int i) {\n/* 585 */ int w = blk.g;\n/* 586 */ int h = blk.h;\n/* */ \n/* */ \n/* 589 */ if (blk.a() != 4) {\n/* 590 */ if (this.j == null || this.j.a() != 4) {\n/* 591 */ this.j = (c)new d();\n/* */ }\n/* 593 */ this.j.g = w;\n/* 594 */ this.j.h = h;\n/* 595 */ this.j.e = blk.e;\n/* 596 */ this.j.f = blk.f;\n/* 597 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 601 */ float[] outdata = (float[])blk.b();\n/* */ \n/* */ \n/* 604 */ if (outdata == null || outdata.length < w * h) {\n/* 605 */ outdata = new float[h * w];\n/* 606 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* 610 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* */ \n/* */ \n/* 614 */ if (this.m == null)\n/* 615 */ this.m = new e(); \n/* 616 */ if (this.n == null)\n/* 617 */ this.n = new e(); \n/* 618 */ if (this.o == null)\n/* 619 */ this.o = new e(); \n/* 620 */ this.o.g = blk.g;\n/* 621 */ this.o.h = blk.h;\n/* 622 */ this.o.e = blk.e;\n/* 623 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* 626 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 627 */ int[] data0 = (int[])this.m.b();\n/* 628 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 629 */ int[] data1 = (int[])this.n.b();\n/* 630 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 631 */ int[] data2 = (int[])this.o.b();\n/* */ \n/* */ \n/* 634 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 636 */ blk.i = 0;\n/* 637 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 642 */ int k = w * h - 1;\n/* 643 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 644 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 645 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 647 */ switch (i) {\n/* */ \n/* */ case 0:\n/* 650 */ for (j = h - 1; j >= 0; j--) {\n/* 651 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 652 */ outdata[k] = 0.299F * data0[k0] + 0.587F * data1[k1] + 0.114F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 658 */ k0 -= this.m.j - w;\n/* 659 */ k1 -= this.n.j - w;\n/* 660 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 1:\n/* 666 */ for (j = h - 1; j >= 0; j--) {\n/* 667 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 668 */ outdata[k] = -0.16875F * data0[k0] - 0.33126F * data1[k1] + 0.5F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 674 */ k0 -= this.m.j - w;\n/* 675 */ k1 -= this.n.j - w;\n/* 676 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ \n/* */ case 2:\n/* 682 */ for (j = h - 1; j >= 0; j--) {\n/* 683 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--) {\n/* 684 */ outdata[k] = 0.5F * data0[k0] - 0.41869F * data1[k1] - 0.08131F * data2[k2];\n/* */ }\n/* */ \n/* */ \n/* */ \n/* */ \n/* 690 */ k0 -= this.m.j - w;\n/* 691 */ k1 -= this.n.j - w;\n/* 692 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ } else {\n/* 697 */ if (i >= 3) {\n/* */ \n/* */ \n/* */ \n/* */ \n/* 702 */ e indb = new e(blk.e, blk.f, w, h);\n/* */ \n/* */ \n/* */ \n/* */ \n/* 707 */ this.e.getInternCompData((c)indb, i);\n/* 708 */ int[] indata = (int[])indb.b();\n/* */ \n/* */ \n/* 711 */ int k = w * h - 1;\n/* 712 */ int k0 = indb.i + (h - 1) * indb.j + w - 1;\n/* 713 */ for (int j = h - 1; j >= 0; j--) {\n/* 714 */ for (int mink = k - w; k > mink; k--, k0--) {\n/* 715 */ outdata[k] = indata[k0];\n/* */ }\n/* */ \n/* 718 */ k0 += indb.g - w;\n/* */ } \n/* */ \n/* */ \n/* 722 */ blk.k = indb.k;\n/* 723 */ blk.i = 0;\n/* 724 */ blk.j = w;\n/* 725 */ return blk;\n/* */ } \n/* */ \n/* */ \n/* 729 */ throw new IllegalArgumentException();\n/* */ } \n/* 731 */ return blk;\n/* */ }", "protected void method_2247() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void a()\r\n/* 49: */ {\r\n/* 50: 64 */ HashSet<BlockPosition> localHashSet = Sets.newHashSet();\r\n/* 51: */ \r\n/* 52: 66 */ int m = 16;\r\n/* 53: 67 */ for (int n = 0; n < 16; n++) {\r\n/* 54: 68 */ for (int i1 = 0; i1 < 16; i1++) {\r\n/* 55: 69 */ for (int i2 = 0; i2 < 16; i2++) {\r\n/* 56: 70 */ if ((n == 0) || (n == 15) || (i1 == 0) || (i1 == 15) || (i2 == 0) || (i2 == 15))\r\n/* 57: */ {\r\n/* 58: 74 */ double d1 = n / 15.0F * 2.0F - 1.0F;\r\n/* 59: 75 */ double d2 = i1 / 15.0F * 2.0F - 1.0F;\r\n/* 60: 76 */ double d3 = i2 / 15.0F * 2.0F - 1.0F;\r\n/* 61: 77 */ double d4 = Math.sqrt(d1 * d1 + d2 * d2 + d3 * d3);\r\n/* 62: */ \r\n/* 63: 79 */ d1 /= d4;\r\n/* 64: 80 */ d2 /= d4;\r\n/* 65: 81 */ d3 /= d4;\r\n/* 66: */ \r\n/* 67: 83 */ float f2 = this.i * (0.7F + this.d.rng.nextFloat() * 0.6F);\r\n/* 68: 84 */ double d6 = this.e;\r\n/* 69: 85 */ double d8 = this.f;\r\n/* 70: 86 */ double d10 = this.g;\r\n/* 71: */ \r\n/* 72: 88 */ float f3 = 0.3F;\r\n/* 73: 89 */ while (f2 > 0.0F)\r\n/* 74: */ {\r\n/* 75: 90 */ BlockPosition localdt = new BlockPosition(d6, d8, d10);\r\n/* 76: 91 */ Block localbec = this.d.getBlock(localdt);\r\n/* 77: 93 */ if (localbec.getType().getMaterial() != Material.air)\r\n/* 78: */ {\r\n/* 79: 94 */ float f4 = this.h != null ? this.h.a(this, this.d, localdt, localbec) : localbec.getType().a((Entity)null);\r\n/* 80: 95 */ f2 -= (f4 + 0.3F) * 0.3F;\r\n/* 81: */ }\r\n/* 82: 98 */ if ((f2 > 0.0F) && ((this.h == null) || (this.h.a(this, this.d, localdt, localbec, f2)))) {\r\n/* 83: 99 */ localHashSet.add(localdt);\r\n/* 84: */ }\r\n/* 85:102 */ d6 += d1 * 0.300000011920929D;\r\n/* 86:103 */ d8 += d2 * 0.300000011920929D;\r\n/* 87:104 */ d10 += d3 * 0.300000011920929D;\r\n/* 88:105 */ f2 -= 0.225F;\r\n/* 89: */ }\r\n/* 90: */ }\r\n/* 91: */ }\r\n/* 92: */ }\r\n/* 93: */ }\r\n/* 94:111 */ this.j.addAll(localHashSet);\r\n/* 95: */ \r\n/* 96:113 */ float f1 = this.i * 2.0F;\r\n/* 97: */ \r\n/* 98:115 */ int i1 = MathUtils.floor(this.e - f1 - 1.0D);\r\n/* 99:116 */ int i2 = MathUtils.floor(this.e + f1 + 1.0D);\r\n/* 100:117 */ int i3 = MathUtils.floor(this.f - f1 - 1.0D);\r\n/* 101:118 */ int i4 = MathUtils.floor(this.f + f1 + 1.0D);\r\n/* 102:119 */ int i5 = MathUtils.floor(this.g - f1 - 1.0D);\r\n/* 103:120 */ int i6 = MathUtils.floor(this.g + f1 + 1.0D);\r\n/* 104:121 */ List<Entity> localList = this.d.b(this.h, new AABB(i1, i3, i5, i2, i4, i6));\r\n/* 105:122 */ Vec3 localbrw = new Vec3(this.e, this.f, this.g);\r\n/* 106:124 */ for (int i7 = 0; i7 < localList.size(); i7++)\r\n/* 107: */ {\r\n/* 108:125 */ Entity localwv = (Entity)localList.get(i7);\r\n/* 109:126 */ if (!localwv.aV())\r\n/* 110: */ {\r\n/* 111:129 */ double d5 = localwv.f(this.e, this.f, this.g) / f1;\r\n/* 112:131 */ if (d5 <= 1.0D)\r\n/* 113: */ {\r\n/* 114:132 */ double d7 = localwv.xPos - this.e;\r\n/* 115:133 */ double d9 = localwv.yPos + localwv.getEyeHeight() - this.f;\r\n/* 116:134 */ double d11 = localwv.zPos - this.g;\r\n/* 117: */ \r\n/* 118:136 */ double d12 = MathUtils.sqrt(d7 * d7 + d9 * d9 + d11 * d11);\r\n/* 119:137 */ if (d12 != 0.0D)\r\n/* 120: */ {\r\n/* 121:141 */ d7 /= d12;\r\n/* 122:142 */ d9 /= d12;\r\n/* 123:143 */ d11 /= d12;\r\n/* 124: */ \r\n/* 125:145 */ double d13 = this.d.a(localbrw, localwv.getAABB());\r\n/* 126:146 */ double d14 = (1.0D - d5) * d13;\r\n/* 127:147 */ localwv.receiveDamage(DamageSource.a(this), (int)((d14 * d14 + d14) / 2.0D * 8.0D * f1 + 1.0D));\r\n/* 128: */ \r\n/* 129:149 */ double d15 = EnchantmentProtection.a(localwv, d14);\r\n/* 130:150 */ localwv.xVelocity += d7 * d15;\r\n/* 131:151 */ localwv.yVelocity += d9 * d15;\r\n/* 132:152 */ localwv.zVelocity += d11 * d15;\r\n/* 133:154 */ if ((localwv instanceof EntityPlayer)) {\r\n/* 134:155 */ this.k.put((EntityPlayer)localwv, new Vec3(d7 * d14, d9 * d14, d11 * d14));\r\n/* 135: */ }\r\n/* 136: */ }\r\n/* 137: */ }\r\n/* 138: */ }\r\n/* 139: */ }\r\n/* 140: */ }", "private static void registerBlock(Block b)\n\t{\n\t}", "public void method_2139() {\r\n // $FF: Couldn't be decompiled\r\n }", "void a(bu var1_1, f var2_2, Map var3_3, double var4_4, double var6_5) {\n block6 : {\n var14_6 = fj.z;\n var8_7 = M.b();\n var9_8 = var2_2.a();\n while (var9_8.f()) {\n var10_9 = var9_8.a();\n if (var14_6) break block6;\n if (!var10_9.e() || var1_1.i((y.c.d)var10_9).bendCount() > 1) ** GOTO lbl-1000\n var11_10 = var1_1.i((y.c.d)var10_9);\n var12_11 = var11_10.getSourceRealizer();\n if (var1_1.i((y.c.d)var10_9).bendCount() == 0) {\n var11_10.appendBend(var11_10.getSourcePort().a(var12_11), var11_10.getSourcePort().b(var12_11) - 20.0 - var12_11.getHeight());\n }\n this.a(var1_1, var4_4, var6_5, (y.c.d)var10_9, true, false, false, var10_9.c());\n if (var14_6) lbl-1000: // 2 sources:\n {\n var8_7.a(var10_9, true);\n var8_7.a((Object)var3_3.get(var10_9), true);\n }\n var9_8.g();\n if (!var14_6) continue;\n }\n var1_1.a(as.a, var8_7);\n }\n var9_8 = new as();\n var9_8.a(5.0);\n var9_8.b(false);\n var9_8.a(true);\n try {\n var10_9 = new bI(1);\n var10_9.a(false);\n var10_9.b(true);\n var10_9.d().a(true);\n var10_9.a(var1_1, (ah)var9_8);\n return;\n }\n finally {\n var1_1.d_(as.a);\n }\n }", "static void method_1148() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final synchronized void mo5320b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r1 = 0;\t Catch:{ all -> 0x004c }\n r2 = 0;\t Catch:{ all -> 0x004c }\n if (r0 == 0) goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0007:\n r0 = r6.f24851a;\t Catch:{ all -> 0x004c }\n if (r0 != 0) goto L_0x0013;\t Catch:{ all -> 0x004c }\n L_0x000b:\n r0 = r6.f24854d;\t Catch:{ all -> 0x004c }\n r3 = r6.f24853c;\t Catch:{ all -> 0x004c }\n r0.deleteFile(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\t Catch:{ all -> 0x004c }\n L_0x0013:\n r0 = com.google.android.m4b.maps.cg.bx.m23058b();\t Catch:{ all -> 0x004c }\n r3 = r6.f24854d;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24853c;\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r3 = r3.openFileOutput(r4, r1);\t Catch:{ IOException -> 0x0032, all -> 0x002f }\n r4 = r6.f24851a;\t Catch:{ IOException -> 0x0033 }\n r4 = r4.m20837d();\t Catch:{ IOException -> 0x0033 }\n r3.write(r4);\t Catch:{ IOException -> 0x0033 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n L_0x002b:\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n goto L_0x0046;\n L_0x002f:\n r1 = move-exception;\n r3 = r2;\n goto L_0x003f;\n L_0x0032:\n r3 = r2;\n L_0x0033:\n r4 = r6.f24854d;\t Catch:{ all -> 0x003e }\n r5 = r6.f24853c;\t Catch:{ all -> 0x003e }\n r4.deleteFile(r5);\t Catch:{ all -> 0x003e }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n goto L_0x002b;\t Catch:{ all -> 0x004c }\n L_0x003e:\n r1 = move-exception;\t Catch:{ all -> 0x004c }\n L_0x003f:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x004c }\n com.google.android.m4b.maps.ap.C4655c.m20770a(r3);\t Catch:{ all -> 0x004c }\n throw r1;\t Catch:{ all -> 0x004c }\n L_0x0046:\n r6.f24851a = r2;\t Catch:{ all -> 0x004c }\n r6.f24852b = r1;\t Catch:{ all -> 0x004c }\n monitor-exit(r6);\n return;\n L_0x004c:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.b():void\");\n }", "public void onNeighborBlockChange(World var1, int var2, int var3, int var4, int var5)\n {\n byte var6 = 0;\n byte var7 = 1;\n\n if (var1.getBlockId(var2 - 1, var3, var4) == this.blockID || var1.getBlockId(var2 + 1, var3, var4) == this.blockID)\n {\n var6 = 1;\n var7 = 0;\n }\n\n int var8;\n\n for (var8 = var3; var1.getBlockId(var2, var8 - 1, var4) == this.blockID; --var8)\n {\n ;\n }\n\n if (var1.getBlockId(var2, var8 - 1, var4) != Block.glowStone.blockID)\n {\n var1.setBlock(var2, var3, var4, 0);\n } else\n {\n int var9;\n\n for (var9 = 1; var9 < 4 && var1.getBlockId(var2, var8 + var9, var4) == this.blockID; ++var9)\n {\n ;\n }\n\n if (var9 == 3 && var1.getBlockId(var2, var8 + var9, var4) == Block.glowStone.blockID)\n {\n boolean var10 = var1.getBlockId(var2 - 1, var3, var4) == this.blockID || var1.getBlockId(var2 + 1, var3, var4) == this.blockID;\n boolean var11 = var1.getBlockId(var2, var3, var4 - 1) == this.blockID || var1.getBlockId(var2, var3, var4 + 1) == this.blockID;\n\n if (var10 && var11)\n {\n var1.setBlock(var2, var3, var4, 0);\n } else if ((var1.getBlockId(var2 + var6, var3, var4 + var7) != Block.glowStone.blockID || var1.getBlockId(var2 - var6, var3, var4 - var7) != this.blockID) && (var1.getBlockId(var2 - var6, var3, var4 - var7) != Block.glowStone.blockID || var1.getBlockId(var2 + var6, var3, var4 + var7) != this.blockID))\n {\n var1.setBlock(var2, var3, var4, 0);\n }\n } else\n {\n var1.setBlock(var2, var3, var4, 0);\n }\n }\n }", "public void a(IBlockAccess paramard, BlockPosition paramdt)\r\n/* 119: */ {\r\n/* 120:148 */ bdv localbdv = e(paramard, paramdt);\r\n/* 121:149 */ if (localbdv != null)\r\n/* 122: */ {\r\n/* 123:150 */ Block localbec = localbdv.b();\r\n/* 124:151 */ BlockType localatr = localbec.getType();\r\n/* 125:152 */ if ((localatr == this) || (localatr.getMaterial() == Material.air)) {\r\n/* 126:153 */ return;\r\n/* 127: */ }\r\n/* 128:156 */ float f = localbdv.a(0.0F);\r\n/* 129:157 */ if (localbdv.d()) {\r\n/* 130:158 */ f = 1.0F - f;\r\n/* 131: */ }\r\n/* 132:160 */ localatr.a(paramard, paramdt);\r\n/* 133:161 */ if ((localatr == BlockList.J) || (localatr == BlockList.F)) {\r\n/* 134:162 */ f = 0.0F;\r\n/* 135: */ }\r\n/* 136:164 */ EnumDirection localej = localbdv.e();\r\n/* 137:165 */ this.B = (localatr.z() - localej.g() * f);\r\n/* 138:166 */ this.C = (localatr.B() - localej.h() * f);\r\n/* 139:167 */ this.D = (localatr.D() - localej.i() * f);\r\n/* 140:168 */ this.E = (localatr.A() - localej.g() * f);\r\n/* 141:169 */ this.F = (localatr.C() - localej.h() * f);\r\n/* 142:170 */ this.G = (localatr.E() - localej.i() * f);\r\n/* 143: */ }\r\n/* 144: */ }", "public void RemoveBlock(int NumOfB,ArrayList<Block> blocks,int[] i,int[] j){\r\n try {\r\n //2 blocks\r\n if (NumOfB == 2) {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[1], j[1]), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blockList.getBlock(blocks.get(0).getTypeOfBlock(), i[0], j[0]), blocks.get(0).getTypeOfBlock());\r\n }\r\n //3 blocks\r\n else {\r\n //update BlockList and map matrix\r\n map[i[0]][j[0]] = '0';\r\n map[i[1]][j[1]] = '0';\r\n map[i[2]][j[2]] = '0';\r\n blockList.RemovBlock(blocks.get(2), blocks.get(2).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(1), blocks.get(1).getTypeOfBlock());\r\n blockList.RemovBlock(blocks.get(0), blocks.get(0).getTypeOfBlock());\r\n }\r\n gamePage.Sounds(2);//remove sound\r\n MoveBlock(2);//check if there is block will move down\r\n }catch (ArrayIndexOutOfBoundsException e) {\r\n\r\n }\r\n }", "public void method_7081() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_2537() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final void mo1285b() {\n }", "private void m3421k(C0933b bVar) {\n int i;\n int i2 = bVar.f4379a;\n if (i2 == 1 || i2 == 8) {\n throw new IllegalArgumentException(\"should not dispatch add or move for pre layout\");\n }\n int z = m3423z(bVar.f4380b, i2);\n int i3 = bVar.f4380b;\n int i4 = bVar.f4379a;\n if (i4 == 2) {\n i = 0;\n } else if (i4 == 4) {\n i = 1;\n } else {\n throw new IllegalArgumentException(\"op should be remove or update.\" + bVar);\n }\n int i5 = 1;\n for (int i6 = 1; i6 < bVar.f4382d; i6++) {\n int z2 = m3423z(bVar.f4380b + (i * i6), bVar.f4379a);\n int i7 = bVar.f4379a;\n if (i7 == 2 ? z2 == z : i7 == 4 && z2 == z + 1) {\n i5++;\n } else {\n C0933b b = mo7621b(i7, z, i5, bVar.f4381c);\n mo7625l(b, i3);\n mo7620a(b);\n if (bVar.f4379a == 4) {\n i3 += i5;\n }\n z = z2;\n i5 = 1;\n }\n }\n Object obj = bVar.f4381c;\n mo7620a(bVar);\n if (i5 > 0) {\n C0933b b2 = mo7621b(bVar.f4379a, z, i5, obj);\n mo7625l(b2, i3);\n mo7620a(b2);\n }\n }", "public void b() {\n/* 134 */ for (int i = 0; i < this.b; i++)\n/* 135 */ this.c[i] = false; \n/* */ }", "public int getBlockID()\r\n/* 57: */ {\r\n/* 58: 46 */ return RedPowerMachine.blockFrame.cm;\r\n/* 59: */ }", "protected void method_2141() {\r\n // $FF: Couldn't be decompiled\r\n }", "public void a() {\n block8 : {\n block9 : {\n var1_1 = this.f();\n var2_2 = false;\n if (var1_1) break block8;\n this.j.c();\n var6_3 = this.k;\n var7_4 = this.b;\n var8_5 = (l)var6_3;\n var9_6 = var8_5.a(var7_4);\n if (var9_6 != null) break block9;\n this.a(false);\n var2_2 = true;\n ** GOTO lbl30\n }\n if (var9_6 != n.b) ** GOTO lbl26\n this.a(this.g);\n var11_7 = this.k;\n var12_8 = this.b;\n var13_9 = (l)var11_7;\n try {\n block10 : {\n var2_2 = var13_9.a(var12_8).d();\n break block10;\nlbl26: // 1 sources:\n var10_10 = var9_6.d();\n var2_2 = false;\n if (!var10_10) {\n this.b();\n }\n }\n this.j.g();\n }\n finally {\n this.j.d();\n }\n }\n if ((var3_12 = this.c) == null) return;\n if (var2_2) {\n var4_13 = var3_12.iterator();\n while (var4_13.hasNext()) {\n ((d)var4_13.next()).a(this.b);\n }\n }\n e.a(this.h, this.j, this.c);\n }\n\n /*\n * Exception decompiling\n */\n public final void a(ListenableWorker.a var1_1) {\n // This method has failed to decompile. When submitting a bug report, please provide this stack trace, and (if you hold appropriate legal rights) the relevant class file.\n // org.benf.cfr.reader.util.ConfusedCFRException: Tried to end blocks [4[TRYBLOCK]], but top level block is 10[WHILELOOP]\n // org.benf.cfr.reader.b.a.a.j.a(Op04StructuredStatement.java:432)\n // org.benf.cfr.reader.b.a.a.j.d(Op04StructuredStatement.java:484)\n // org.benf.cfr.reader.b.a.a.i.a(Op03SimpleStatement.java:607)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:692)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:182)\n // org.benf.cfr.reader.b.f.a(CodeAnalyser.java:127)\n // org.benf.cfr.reader.entities.attributes.f.c(AttributeCode.java:96)\n // org.benf.cfr.reader.entities.g.p(Method.java:396)\n // org.benf.cfr.reader.entities.d.e(ClassFile.java:890)\n // org.benf.cfr.reader.entities.d.b(ClassFile.java:792)\n // org.benf.cfr.reader.b.a(Driver.java:128)\n // org.benf.cfr.reader.a.a(CfrDriverImpl.java:63)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.decompileWithCFR(JavaExtractionWorker.kt:61)\n // com.njlabs.showjava.decompilers.JavaExtractionWorker.doWork(JavaExtractionWorker.kt:130)\n // com.njlabs.showjava.decompilers.BaseDecompiler.withAttempt(BaseDecompiler.kt:108)\n // com.njlabs.showjava.workers.DecompilerWorker$b.run(DecompilerWorker.kt:118)\n // java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n // java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n // java.lang.Thread.run(Thread.java:919)\n throw new IllegalStateException(\"Decompilation failed\");\n }\n\n public final void a(String string) {\n LinkedList linkedList = new LinkedList();\n linkedList.add((Object)string);\n while (!linkedList.isEmpty()) {\n String string2 = (String)linkedList.remove();\n if (((l)this.k).a(string2) != n.f) {\n k k2 = this.k;\n n n2 = n.d;\n String[] arrstring = new String[]{string2};\n ((l)k2).a(n2, arrstring);\n }\n linkedList.addAll((Collection)((a.i.r.p.c)this.l).a(string2));\n }\n }\n\n /*\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n */\n public final void a(boolean bl) {\n this.j.c();\n k k2 = this.j.k();\n l l2 = (l)k2;\n List list = l2.a();\n ArrayList arrayList = (ArrayList)list;\n boolean bl2 = arrayList.isEmpty();\n if (bl2) {\n f.a(this.a, RescheduleReceiver.class, false);\n }\n this.j.g();\n this.p.c((Object)bl);\n return;\n finally {\n this.j.d();\n }\n }\n\n public final void b() {\n this.j.c();\n k k2 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l2 = (l)k2;\n l2.a(n2, arrstring);\n k k3 = this.k;\n String string = this.b;\n long l3 = System.currentTimeMillis();\n l l4 = (l)k3;\n l4.b(string, l3);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n try {\n l5.a(string2, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(true);\n }\n }\n\n public final void c() {\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n long l2 = System.currentTimeMillis();\n l l3 = (l)k2;\n l3.b(string, l2);\n k k3 = this.k;\n n n2 = n.a;\n String[] arrstring = new String[]{this.b};\n l l4 = (l)k3;\n l4.a(n2, arrstring);\n k k4 = this.k;\n String string2 = this.b;\n l l5 = (l)k4;\n l5.f(string2);\n k k5 = this.k;\n String string3 = this.b;\n l l6 = (l)k5;\n try {\n l6.a(string3, -1L);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final void d() {\n k k2 = this.k;\n String string = this.b;\n n n2 = ((l)k2).a(string);\n if (n2 == n.b) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[]{this.b};\n h2.a(string2, String.format((String)\"Status for %s is RUNNING;not doing any work and rescheduling for later execution\", (Object[])arrobject), new Throwable[0]);\n this.a(true);\n return;\n }\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[]{this.b, n2};\n h4.a(string3, String.format((String)\"Status for %s is %s; not doing any work\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n }\n\n public void e() {\n this.j.c();\n this.a(this.b);\n a.i.e e2 = ((ListenableWorker.a.a)this.g).a;\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n try {\n l2.a(string, e2);\n this.j.g();\n return;\n }\n finally {\n this.j.d();\n this.a(false);\n }\n }\n\n public final boolean f() {\n if (this.r) {\n h h2 = h.a();\n String string = s;\n Object[] arrobject = new Object[]{this.o};\n h2.a(string, String.format((String)\"Work interrupted for %s\", (Object[])arrobject), new Throwable[0]);\n k k2 = this.k;\n String string2 = this.b;\n n n2 = ((l)k2).a(string2);\n if (n2 == null) {\n this.a(false);\n return true;\n }\n this.a(true ^ n2.d());\n return true;\n }\n return false;\n }\n\n /*\n * Loose catch block\n * Enabled aggressive block sorting\n * Enabled unnecessary exception pruning\n * Enabled aggressive exception aggregation\n * Lifted jumps to return sites\n */\n public void run() {\n int n2;\n block42 : {\n block41 : {\n i i2;\n Cursor cursor;\n block48 : {\n block46 : {\n ListenableWorker listenableWorker;\n block47 : {\n a.i.e e2;\n block44 : {\n g g2;\n block45 : {\n block40 : {\n boolean bl;\n Iterator iterator;\n j j2;\n StringBuilder stringBuilder;\n block43 : {\n a.i.r.p.n n3 = this.m;\n String string = this.b;\n o o2 = (o)n3;\n if (o2 == null) throw null;\n n2 = 1;\n i i3 = i.a((String)\"SELECT DISTINCT tag FROM worktag WHERE work_spec_id=?\", (int)n2);\n if (string == null) {\n i3.bindNull(n2);\n } else {\n i3.bindString(n2, string);\n }\n o2.a.b();\n Cursor cursor2 = a.f.l.a.a(o2.a, (a.g.a.e)i3, false);\n ArrayList arrayList = new ArrayList(cursor2.getCount());\n while (cursor2.moveToNext()) {\n arrayList.add((Object)cursor2.getString(0));\n }\n this.n = arrayList;\n stringBuilder = new StringBuilder(\"Work [ id=\");\n stringBuilder.append(this.b);\n stringBuilder.append(\", tags={ \");\n iterator = arrayList.iterator();\n bl = true;\n break block43;\n finally {\n cursor2.close();\n i3.b();\n }\n }\n while (iterator.hasNext()) {\n String string = (String)iterator.next();\n if (bl) {\n bl = false;\n } else {\n stringBuilder.append(\", \");\n }\n stringBuilder.append(string);\n }\n stringBuilder.append(\" } ]\");\n this.o = stringBuilder.toString();\n if (this.f()) {\n return;\n }\n this.j.c();\n k k2 = this.k;\n String string = this.b;\n l l2 = (l)k2;\n this.e = j2 = l2.d(string);\n if (j2 == null) {\n h h2 = h.a();\n String string2 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.b;\n h2.b(string2, String.format((String)\"Didn't find WorkSpec for id %s\", (Object[])arrobject), new Throwable[0]);\n this.a(false);\n return;\n }\n if (j2.b != n.a) {\n this.d();\n this.j.g();\n h h4 = h.a();\n String string3 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h4.a(string3, String.format((String)\"%s is not in ENQUEUED state. Nothing more to do.\", (Object[])arrobject), new Throwable[0]);\n return;\n }\n if (j2.d() || this.e.c()) {\n long l3 = System.currentTimeMillis();\n boolean bl2 = this.e.n == 0L;\n if (!bl2 && l3 < this.e.a()) {\n h h5 = h.a();\n String string4 = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h5.a(string4, String.format((String)\"Delaying execution for %s because it is being executed before schedule.\", (Object[])arrobject), new Throwable[0]);\n this.a((boolean)n2);\n return;\n }\n }\n this.j.g();\n if (!this.e.d()) break block40;\n e2 = this.e.e;\n break block44;\n }\n g2 = g.a(this.e.d);\n if (g2 != null) break block45;\n h h6 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.d;\n h6.b(string, String.format((String)\"Could not create Input Merger %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n ArrayList arrayList = new ArrayList();\n arrayList.add((Object)this.e.e);\n k k3 = this.k;\n String string = this.b;\n l l4 = (l)k3;\n if (l4 == null) throw null;\n i2 = i.a((String)\"SELECT output FROM workspec WHERE id IN (SELECT prerequisite_id FROM dependency WHERE work_spec_id=?)\", (int)n2);\n if (string == null) {\n i2.bindNull(n2);\n } else {\n i2.bindString(n2, string);\n }\n l4.a.b();\n cursor = a.f.l.a.a(l4.a, (a.g.a.e)i2, false);\n ArrayList arrayList2 = new ArrayList(cursor.getCount());\n while (cursor.moveToNext()) {\n arrayList2.add((Object)a.i.e.b(cursor.getBlob(0)));\n }\n arrayList.addAll((Collection)arrayList2);\n e2 = g2.a((List<a.i.e>)arrayList);\n }\n a.i.e e3 = e2;\n UUID uUID = UUID.fromString((String)this.b);\n List<String> list = this.n;\n WorkerParameters.a a2 = this.d;\n int n5 = this.e.k;\n a.i.b b2 = this.h;\n WorkerParameters workerParameters = new WorkerParameters(uUID, e3, list, a2, n5, b2.a, this.i, b2.c);\n if (this.f == null) {\n this.f = this.h.c.a(this.a, this.e.c, workerParameters);\n }\n if ((listenableWorker = this.f) != null) break block47;\n h h7 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h7.b(string, String.format((String)\"Could not create Worker %s\", (Object[])arrobject), new Throwable[0]);\n break block46;\n }\n if (!listenableWorker.isUsed()) break block48;\n h h8 = h.a();\n String string = s;\n Object[] arrobject = new Object[n2];\n arrobject[0] = this.e.c;\n h8.b(string, String.format((String)\"Received an already-used Worker %s; WorkerFactory should return new instances\", (Object[])arrobject), new Throwable[0]);\n }\n this.e();\n return;\n }\n this.f.setUsed();\n this.j.c();\n k k4 = this.k;\n String string = this.b;\n l l5 = (l)k4;\n if (l5.a(string) != n.a) break block41;\n k k5 = this.k;\n n n7 = n.b;\n String[] arrstring = new String[n2];\n arrstring[0] = this.b;\n l l6 = (l)k5;\n l6.a(n7, arrstring);\n k k6 = this.k;\n String string5 = this.b;\n l l7 = (l)k6;\n try {\n l7.e(string5);\n break block42;\n }\n finally {\n cursor.close();\n i2.b();\n }\n catch (Throwable throwable) {\n throw throwable;\n }\n finally {\n this.j.d();\n }\n }\n n2 = 0;\n }\n this.j.g();\n if (n2 != 0) {\n if (this.f()) {\n return;\n }\n c c2 = new c();\n ((a.i.r.q.m.b)this.i).c.execute((Runnable)new a.i.r.k(this, c2));\n c2.a((Runnable)new a.i.r.l(this, c2, this.o), ((a.i.r.q.m.b)this.i).a);\n return;\n }\n this.d();\n return;\n finally {\n this.j.d();\n }\n }\n\n public static class a {\n public Context a;\n public ListenableWorker b;\n public a.i.r.q.m.a c;\n public a.i.b d;\n public WorkDatabase e;\n public String f;\n public List<d> g;\n public WorkerParameters.a h = new WorkerParameters.a();\n\n public a(Context context, a.i.b b2, a.i.r.q.m.a a2, WorkDatabase workDatabase, String string) {\n this.a = context.getApplicationContext();\n this.c = a2;\n this.d = b2;\n this.e = workDatabase;\n this.f = string;\n }\n }\n\n}", "private void m205c() {\r\n if (this.f161b != null && this.f161b.m543a()) {\r\n this.f161b.m545c();\r\n }\r\n this.f161b = null;\r\n }", "private final com.google.android.p306h.p307a.p308a.C5685v m26927b(com.google.protobuf.nano.a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 8: goto L_0x000e;\n case 18: goto L_0x0043;\n case 24: goto L_0x0054;\n case 32: goto L_0x005f;\n case 42: goto L_0x006a;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.m4918a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r1 = r7.o();\n r2 = r7.i();\t Catch:{ IllegalArgumentException -> 0x0034 }\n switch(r2) {\n case 0: goto L_0x003c;\n case 1: goto L_0x003c;\n case 2: goto L_0x003c;\n case 3: goto L_0x003c;\n case 4: goto L_0x003c;\n case 5: goto L_0x003c;\n case 101: goto L_0x003c;\n case 102: goto L_0x003c;\n case 103: goto L_0x003c;\n case 104: goto L_0x003c;\n case 105: goto L_0x003c;\n case 106: goto L_0x003c;\n case 107: goto L_0x003c;\n case 108: goto L_0x003c;\n case 201: goto L_0x003c;\n case 202: goto L_0x003c;\n case 203: goto L_0x003c;\n case 204: goto L_0x003c;\n case 205: goto L_0x003c;\n case 206: goto L_0x003c;\n case 207: goto L_0x003c;\n case 208: goto L_0x003c;\n case 209: goto L_0x003c;\n case 301: goto L_0x003c;\n case 302: goto L_0x003c;\n case 303: goto L_0x003c;\n case 304: goto L_0x003c;\n case 305: goto L_0x003c;\n case 306: goto L_0x003c;\n case 307: goto L_0x003c;\n case 401: goto L_0x003c;\n case 402: goto L_0x003c;\n case 403: goto L_0x003c;\n case 404: goto L_0x003c;\n case 501: goto L_0x003c;\n case 502: goto L_0x003c;\n case 503: goto L_0x003c;\n case 504: goto L_0x003c;\n case 601: goto L_0x003c;\n case 602: goto L_0x003c;\n case 603: goto L_0x003c;\n case 604: goto L_0x003c;\n case 605: goto L_0x003c;\n case 606: goto L_0x003c;\n case 607: goto L_0x003c;\n case 608: goto L_0x003c;\n case 609: goto L_0x003c;\n case 610: goto L_0x003c;\n case 611: goto L_0x003c;\n case 612: goto L_0x003c;\n case 613: goto L_0x003c;\n case 614: goto L_0x003c;\n case 615: goto L_0x003c;\n case 616: goto L_0x003c;\n case 617: goto L_0x003c;\n case 618: goto L_0x003c;\n case 619: goto L_0x003c;\n case 620: goto L_0x003c;\n case 621: goto L_0x003c;\n case 622: goto L_0x003c;\n case 623: goto L_0x003c;\n case 624: goto L_0x003c;\n case 625: goto L_0x003c;\n case 626: goto L_0x003c;\n case 627: goto L_0x003c;\n case 628: goto L_0x003c;\n case 629: goto L_0x003c;\n case 630: goto L_0x003c;\n case 631: goto L_0x003c;\n case 632: goto L_0x003c;\n case 633: goto L_0x003c;\n case 634: goto L_0x003c;\n case 635: goto L_0x003c;\n case 636: goto L_0x003c;\n case 637: goto L_0x003c;\n case 638: goto L_0x003c;\n case 639: goto L_0x003c;\n case 640: goto L_0x003c;\n case 641: goto L_0x003c;\n case 701: goto L_0x003c;\n case 702: goto L_0x003c;\n case 703: goto L_0x003c;\n case 704: goto L_0x003c;\n case 705: goto L_0x003c;\n case 706: goto L_0x003c;\n case 707: goto L_0x003c;\n case 708: goto L_0x003c;\n case 709: goto L_0x003c;\n case 710: goto L_0x003c;\n case 711: goto L_0x003c;\n case 712: goto L_0x003c;\n case 713: goto L_0x003c;\n case 714: goto L_0x003c;\n case 715: goto L_0x003c;\n case 716: goto L_0x003c;\n case 717: goto L_0x003c;\n case 718: goto L_0x003c;\n case 719: goto L_0x003c;\n case 720: goto L_0x003c;\n case 721: goto L_0x003c;\n case 722: goto L_0x003c;\n case 801: goto L_0x003c;\n case 802: goto L_0x003c;\n case 803: goto L_0x003c;\n case 901: goto L_0x003c;\n case 902: goto L_0x003c;\n case 903: goto L_0x003c;\n case 904: goto L_0x003c;\n case 905: goto L_0x003c;\n case 906: goto L_0x003c;\n case 907: goto L_0x003c;\n case 908: goto L_0x003c;\n case 909: goto L_0x003c;\n case 910: goto L_0x003c;\n case 911: goto L_0x003c;\n case 912: goto L_0x003c;\n case 1001: goto L_0x003c;\n case 1002: goto L_0x003c;\n case 1003: goto L_0x003c;\n case 1004: goto L_0x003c;\n case 1005: goto L_0x003c;\n case 1006: goto L_0x003c;\n case 1101: goto L_0x003c;\n case 1102: goto L_0x003c;\n case 1201: goto L_0x003c;\n case 1301: goto L_0x003c;\n case 1302: goto L_0x003c;\n case 1303: goto L_0x003c;\n case 1304: goto L_0x003c;\n case 1305: goto L_0x003c;\n case 1306: goto L_0x003c;\n case 1307: goto L_0x003c;\n case 1308: goto L_0x003c;\n case 1309: goto L_0x003c;\n case 1310: goto L_0x003c;\n case 1311: goto L_0x003c;\n case 1312: goto L_0x003c;\n case 1313: goto L_0x003c;\n case 1314: goto L_0x003c;\n case 1315: goto L_0x003c;\n case 1316: goto L_0x003c;\n case 1317: goto L_0x003c;\n case 1318: goto L_0x003c;\n case 1319: goto L_0x003c;\n case 1320: goto L_0x003c;\n case 1321: goto L_0x003c;\n case 1322: goto L_0x003c;\n case 1323: goto L_0x003c;\n case 1324: goto L_0x003c;\n case 1325: goto L_0x003c;\n case 1326: goto L_0x003c;\n case 1327: goto L_0x003c;\n case 1328: goto L_0x003c;\n case 1329: goto L_0x003c;\n case 1330: goto L_0x003c;\n case 1331: goto L_0x003c;\n case 1332: goto L_0x003c;\n case 1333: goto L_0x003c;\n case 1334: goto L_0x003c;\n case 1335: goto L_0x003c;\n case 1336: goto L_0x003c;\n case 1337: goto L_0x003c;\n case 1338: goto L_0x003c;\n case 1339: goto L_0x003c;\n case 1340: goto L_0x003c;\n case 1341: goto L_0x003c;\n case 1342: goto L_0x003c;\n case 1343: goto L_0x003c;\n case 1344: goto L_0x003c;\n case 1345: goto L_0x003c;\n case 1346: goto L_0x003c;\n case 1347: goto L_0x003c;\n case 1401: goto L_0x003c;\n case 1402: goto L_0x003c;\n case 1403: goto L_0x003c;\n case 1404: goto L_0x003c;\n case 1405: goto L_0x003c;\n case 1406: goto L_0x003c;\n case 1407: goto L_0x003c;\n case 1408: goto L_0x003c;\n case 1409: goto L_0x003c;\n case 1410: goto L_0x003c;\n case 1411: goto L_0x003c;\n case 1412: goto L_0x003c;\n case 1413: goto L_0x003c;\n case 1414: goto L_0x003c;\n case 1415: goto L_0x003c;\n case 1416: goto L_0x003c;\n case 1417: goto L_0x003c;\n case 1418: goto L_0x003c;\n case 1419: goto L_0x003c;\n case 1420: goto L_0x003c;\n case 1421: goto L_0x003c;\n case 1422: goto L_0x003c;\n case 1423: goto L_0x003c;\n case 1424: goto L_0x003c;\n case 1425: goto L_0x003c;\n case 1426: goto L_0x003c;\n case 1427: goto L_0x003c;\n case 1601: goto L_0x003c;\n case 1602: goto L_0x003c;\n case 1603: goto L_0x003c;\n case 1604: goto L_0x003c;\n case 1605: goto L_0x003c;\n case 1606: goto L_0x003c;\n case 1607: goto L_0x003c;\n case 1608: goto L_0x003c;\n case 1609: goto L_0x003c;\n case 1610: goto L_0x003c;\n case 1611: goto L_0x003c;\n case 1612: goto L_0x003c;\n case 1613: goto L_0x003c;\n case 1614: goto L_0x003c;\n case 1615: goto L_0x003c;\n case 1616: goto L_0x003c;\n case 1617: goto L_0x003c;\n case 1618: goto L_0x003c;\n case 1619: goto L_0x003c;\n case 1620: goto L_0x003c;\n case 1621: goto L_0x003c;\n case 1622: goto L_0x003c;\n case 1623: goto L_0x003c;\n case 1624: goto L_0x003c;\n case 1625: goto L_0x003c;\n case 1626: goto L_0x003c;\n case 1627: goto L_0x003c;\n case 1628: goto L_0x003c;\n case 1629: goto L_0x003c;\n case 1630: goto L_0x003c;\n case 1631: goto L_0x003c;\n case 1632: goto L_0x003c;\n case 1633: goto L_0x003c;\n case 1634: goto L_0x003c;\n case 1635: goto L_0x003c;\n case 1636: goto L_0x003c;\n case 1637: goto L_0x003c;\n case 1638: goto L_0x003c;\n case 1639: goto L_0x003c;\n case 1640: goto L_0x003c;\n case 1641: goto L_0x003c;\n case 1642: goto L_0x003c;\n case 1643: goto L_0x003c;\n case 1644: goto L_0x003c;\n case 1645: goto L_0x003c;\n case 1646: goto L_0x003c;\n case 1647: goto L_0x003c;\n case 1648: goto L_0x003c;\n case 1649: goto L_0x003c;\n case 1650: goto L_0x003c;\n case 1651: goto L_0x003c;\n case 1652: goto L_0x003c;\n case 1653: goto L_0x003c;\n case 1654: goto L_0x003c;\n case 1655: goto L_0x003c;\n case 1656: goto L_0x003c;\n case 1657: goto L_0x003c;\n case 1658: goto L_0x003c;\n case 1659: goto L_0x003c;\n case 1660: goto L_0x003c;\n case 1801: goto L_0x003c;\n case 1802: goto L_0x003c;\n case 1803: goto L_0x003c;\n case 1804: goto L_0x003c;\n case 1805: goto L_0x003c;\n case 1806: goto L_0x003c;\n case 1807: goto L_0x003c;\n case 1808: goto L_0x003c;\n case 1809: goto L_0x003c;\n case 1810: goto L_0x003c;\n case 1811: goto L_0x003c;\n case 1812: goto L_0x003c;\n case 1813: goto L_0x003c;\n case 1814: goto L_0x003c;\n case 1815: goto L_0x003c;\n case 1816: goto L_0x003c;\n case 1817: goto L_0x003c;\n case 1901: goto L_0x003c;\n case 1902: goto L_0x003c;\n case 1903: goto L_0x003c;\n case 1904: goto L_0x003c;\n case 1905: goto L_0x003c;\n case 1906: goto L_0x003c;\n case 1907: goto L_0x003c;\n case 1908: goto L_0x003c;\n case 1909: goto L_0x003c;\n case 2001: goto L_0x003c;\n case 2101: goto L_0x003c;\n case 2102: goto L_0x003c;\n case 2103: goto L_0x003c;\n case 2104: goto L_0x003c;\n case 2105: goto L_0x003c;\n case 2106: goto L_0x003c;\n case 2107: goto L_0x003c;\n case 2108: goto L_0x003c;\n case 2109: goto L_0x003c;\n case 2110: goto L_0x003c;\n case 2111: goto L_0x003c;\n case 2112: goto L_0x003c;\n case 2113: goto L_0x003c;\n case 2114: goto L_0x003c;\n case 2115: goto L_0x003c;\n case 2116: goto L_0x003c;\n case 2117: goto L_0x003c;\n case 2118: goto L_0x003c;\n case 2119: goto L_0x003c;\n case 2120: goto L_0x003c;\n case 2121: goto L_0x003c;\n case 2122: goto L_0x003c;\n case 2123: goto L_0x003c;\n case 2124: goto L_0x003c;\n case 2201: goto L_0x003c;\n case 2202: goto L_0x003c;\n case 2203: goto L_0x003c;\n case 2204: goto L_0x003c;\n case 2205: goto L_0x003c;\n case 2206: goto L_0x003c;\n case 2207: goto L_0x003c;\n case 2208: goto L_0x003c;\n case 2209: goto L_0x003c;\n case 2210: goto L_0x003c;\n case 2211: goto L_0x003c;\n case 2212: goto L_0x003c;\n case 2213: goto L_0x003c;\n case 2214: goto L_0x003c;\n case 2215: goto L_0x003c;\n case 2301: goto L_0x003c;\n case 2302: goto L_0x003c;\n case 2303: goto L_0x003c;\n case 2304: goto L_0x003c;\n case 2401: goto L_0x003c;\n case 2402: goto L_0x003c;\n case 2501: goto L_0x003c;\n case 2502: goto L_0x003c;\n case 2503: goto L_0x003c;\n case 2504: goto L_0x003c;\n case 2505: goto L_0x003c;\n case 2506: goto L_0x003c;\n case 2507: goto L_0x003c;\n case 2508: goto L_0x003c;\n case 2509: goto L_0x003c;\n case 2510: goto L_0x003c;\n case 2511: goto L_0x003c;\n case 2512: goto L_0x003c;\n case 2513: goto L_0x003c;\n case 2514: goto L_0x003c;\n case 2515: goto L_0x003c;\n case 2516: goto L_0x003c;\n case 2517: goto L_0x003c;\n case 2518: goto L_0x003c;\n case 2519: goto L_0x003c;\n case 2601: goto L_0x003c;\n case 2602: goto L_0x003c;\n case 2701: goto L_0x003c;\n case 2702: goto L_0x003c;\n case 2703: goto L_0x003c;\n case 2704: goto L_0x003c;\n case 2705: goto L_0x003c;\n case 2706: goto L_0x003c;\n case 2707: goto L_0x003c;\n case 2801: goto L_0x003c;\n case 2802: goto L_0x003c;\n case 2803: goto L_0x003c;\n case 2804: goto L_0x003c;\n case 2805: goto L_0x003c;\n case 2806: goto L_0x003c;\n case 2807: goto L_0x003c;\n case 2808: goto L_0x003c;\n case 2809: goto L_0x003c;\n case 2810: goto L_0x003c;\n case 2811: goto L_0x003c;\n case 2812: goto L_0x003c;\n case 2813: goto L_0x003c;\n case 2814: goto L_0x003c;\n case 2815: goto L_0x003c;\n case 2816: goto L_0x003c;\n case 2817: goto L_0x003c;\n case 2818: goto L_0x003c;\n case 2819: goto L_0x003c;\n case 2820: goto L_0x003c;\n case 2821: goto L_0x003c;\n case 2822: goto L_0x003c;\n case 2823: goto L_0x003c;\n case 2824: goto L_0x003c;\n case 2825: goto L_0x003c;\n case 2826: goto L_0x003c;\n case 2901: goto L_0x003c;\n case 2902: goto L_0x003c;\n case 2903: goto L_0x003c;\n case 2904: goto L_0x003c;\n case 2905: goto L_0x003c;\n case 2906: goto L_0x003c;\n case 2907: goto L_0x003c;\n case 3001: goto L_0x003c;\n case 3002: goto L_0x003c;\n case 3003: goto L_0x003c;\n case 3004: goto L_0x003c;\n case 3005: goto L_0x003c;\n default: goto L_0x0019;\n };\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0019:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = 41;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0034 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r4 = \" is not a valid enum EventType\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0034 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0034 }\n L_0x0034:\n r2 = move-exception;\n r7.e(r1);\n r6.m4918a(r7, r0);\n goto L_0x0000;\n L_0x003c:\n r2 = java.lang.Integer.valueOf(r2);\t Catch:{ IllegalArgumentException -> 0x0034 }\n r6.f28837a = r2;\t Catch:{ IllegalArgumentException -> 0x0034 }\n goto L_0x0000;\n L_0x0043:\n r0 = r6.f28838b;\n if (r0 != 0) goto L_0x004e;\n L_0x0047:\n r0 = new com.google.android.h.a.a.u;\n r0.<init>();\n r6.f28838b = r0;\n L_0x004e:\n r0 = r6.f28838b;\n r7.a(r0);\n goto L_0x0000;\n L_0x0054:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28839c = r0;\n goto L_0x0000;\n L_0x005f:\n r0 = r7.j();\n r0 = java.lang.Long.valueOf(r0);\n r6.f28840d = r0;\n goto L_0x0000;\n L_0x006a:\n r0 = r6.f28841e;\n if (r0 != 0) goto L_0x0075;\n L_0x006e:\n r0 = new com.google.android.h.a.a.o;\n r0.<init>();\n r6.f28841e = r0;\n L_0x0075:\n r0 = r6.f28841e;\n r7.a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.h.a.a.v.b(com.google.protobuf.nano.a):com.google.android.h.a.a.v\");\n }", "static void method_6338() {\r\n // $FF: Couldn't be decompiled\r\n }", "static void method_7086() {\r\n // $FF: Couldn't be decompiled\r\n }", "@org.jetbrains.annotations.NotNull\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public static /* synthetic */ com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection copy$default(com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection r4, com.bitcoin.mwallet.core.models.slp.Slp r5, java.util.List<kotlin.ULong> r6, com.bitcoin.bitcoink.p008tx.Satoshis r7, com.bitcoin.bitcoink.p008tx.Satoshis r8, java.util.List<com.bitcoin.mwallet.core.models.p009tx.utxo.Utxo> r9, com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.Error r10, int r11, java.lang.Object r12) {\n /*\n r12 = r11 & 1\n if (r12 == 0) goto L_0x0006\n com.bitcoin.mwallet.core.models.slp.Slp r5 = r4.token\n L_0x0006:\n r12 = r11 & 2\n if (r12 == 0) goto L_0x000c\n java.util.List<kotlin.ULong> r6 = r4.quantities\n L_0x000c:\n r12 = r6\n r6 = r11 & 4\n if (r6 == 0) goto L_0x0013\n com.bitcoin.bitcoink.tx.Satoshis r7 = r4.fee\n L_0x0013:\n r0 = r7\n r6 = r11 & 8\n if (r6 == 0) goto L_0x001a\n com.bitcoin.bitcoink.tx.Satoshis r8 = r4.change\n L_0x001a:\n r1 = r8\n r6 = r11 & 16\n if (r6 == 0) goto L_0x0021\n java.util.List<com.bitcoin.mwallet.core.models.tx.utxo.Utxo> r9 = r4.utxos\n L_0x0021:\n r2 = r9\n r6 = r11 & 32\n if (r6 == 0) goto L_0x0028\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error r10 = r4.error\n L_0x0028:\n r3 = r10\n r6 = r4\n r7 = r5\n r8 = r12\n r9 = r0\n r10 = r1\n r11 = r2\n r12 = r3\n com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection r4 = r6.copy(r7, r8, r9, r10, r11, r12)\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.bitcoin.mwallet.core.models.p009tx.slputxo.SlpUtxoSelection.copy$default(com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection, com.bitcoin.mwallet.core.models.slp.Slp, java.util.List, com.bitcoin.bitcoink.tx.Satoshis, com.bitcoin.bitcoink.tx.Satoshis, java.util.List, com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection$Error, int, java.lang.Object):com.bitcoin.mwallet.core.models.tx.slputxo.SlpUtxoSelection\");\n }", "public void method_2113() {\r\n // $FF: Couldn't be decompiled\r\n }", "public synchronized void m6495a(int r6, int r7) throws fr.pcsoft.wdjava.geo.C0918i {\n /* JADX: method processing error */\n/*\nError: jadx.core.utils.exceptions.JadxRuntimeException: Exception block dominator not found, method:fr.pcsoft.wdjava.geo.a.b.a(int, int):void. bs: [B:13:0x001d, B:18:0x0027, B:23:0x0031, B:28:0x003a, B:44:0x005d, B:55:0x006c, B:64:0x0079]\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:86)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/70807318.run(Unknown Source)\n*/\n /*\n r5 = this;\n r4 = 2;\n r1 = 0;\n r0 = 1;\n monitor-enter(r5);\n r5.m6487e();\t Catch:{ all -> 0x0053 }\n switch(r6) {\n case 2: goto L_0x0089;\n case 3: goto L_0x000a;\n case 4: goto L_0x0013;\n default: goto L_0x000a;\n };\t Catch:{ all -> 0x0053 }\n L_0x000a:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 3;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n L_0x0011:\n monitor-exit(r5);\n return;\n L_0x0013:\n r3 = new android.location.Criteria;\t Catch:{ all -> 0x0053 }\n r3.<init>();\t Catch:{ all -> 0x0053 }\n r2 = r7 & 2;\n if (r2 != r4) goto L_0x0058;\n L_0x001c:\n r2 = 1;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0056 }\n L_0x0020:\n r2 = r7 & 128;\n r4 = 128; // 0x80 float:1.794E-43 double:6.32E-322;\n if (r2 != r4) goto L_0x0065;\n L_0x0026:\n r2 = 3;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0063 }\n L_0x002a:\n r2 = r7 & 8;\n r4 = 8;\n if (r2 != r4) goto L_0x007f;\n L_0x0030:\n r2 = r0;\n L_0x0031:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0081 }\n r2 = r7 & 4;\n r4 = 4;\n if (r2 != r4) goto L_0x0083;\n L_0x0039:\n r2 = r0;\n L_0x003a:\n r3.setAltitudeRequired(r2);\t Catch:{ i -> 0x0085 }\n r2 = r7 & 16;\n r4 = 16;\n if (r2 != r4) goto L_0x0087;\n L_0x0043:\n r3.setAltitudeRequired(r0);\t Catch:{ all -> 0x0053 }\n r0 = 0;\t Catch:{ all -> 0x0053 }\n r0 = r5.m6485a(r0);\t Catch:{ all -> 0x0053 }\n r1 = 1;\t Catch:{ all -> 0x0053 }\n r0 = r0.getBestProvider(r3, r1);\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n L_0x0053:\n r0 = move-exception;\n monitor-exit(r5);\n throw r0;\n L_0x0056:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0058:\n r2 = r7 & 1;\n if (r2 != r0) goto L_0x0020;\n L_0x005c:\n r2 = 2;\n r3.setAccuracy(r2);\t Catch:{ i -> 0x0061 }\n goto L_0x0020;\n L_0x0061:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0063:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0065:\n r2 = r7 & 64;\n r4 = 64;\n if (r2 != r4) goto L_0x0072;\n L_0x006b:\n r2 = 2;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x0070 }\n goto L_0x002a;\n L_0x0070:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0072:\n r2 = r7 & 32;\n r4 = 32;\n if (r2 != r4) goto L_0x002a;\n L_0x0078:\n r2 = 1;\n r3.setPowerRequirement(r2);\t Catch:{ i -> 0x007d }\n goto L_0x002a;\n L_0x007d:\n r0 = move-exception;\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x007f:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0031;\t Catch:{ all -> 0x0053 }\n L_0x0081:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0083:\n r2 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x003a;\t Catch:{ all -> 0x0053 }\n L_0x0085:\n r0 = move-exception;\t Catch:{ all -> 0x0053 }\n throw r0;\t Catch:{ all -> 0x0053 }\n L_0x0087:\n r0 = r1;\t Catch:{ all -> 0x0053 }\n goto L_0x0043;\t Catch:{ all -> 0x0053 }\n L_0x0089:\n r0 = f2486z;\t Catch:{ all -> 0x0053 }\n r1 = 2;\t Catch:{ all -> 0x0053 }\n r0 = r0[r1];\t Catch:{ all -> 0x0053 }\n r5.f2488b = r0;\t Catch:{ all -> 0x0053 }\n goto L_0x0011;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: fr.pcsoft.wdjava.geo.a.b.a(int, int):void\");\n }", "private void method_7082(class_1293 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void b(World paramaqu, BlockPosition paramdt, Block parambec, Random paramRandom)\r\n/* 39: */ {\r\n/* 40: 54 */ if (paramaqu.isClient) {\r\n/* 41: 55 */ return;\r\n/* 42: */ }\r\n/* 43: 58 */ if ((paramaqu.l(paramdt.up()) < 4) && (paramaqu.getBlock(paramdt.up()).getType().getLightOpacity() > 2))\r\n/* 44: */ {\r\n/* 45: 59 */ paramaqu.setBlock(paramdt, BlockList.dirt.instance());\r\n/* 46: 60 */ return;\r\n/* 47: */ }\r\n/* 48: 63 */ if (paramaqu.l(paramdt.up()) >= 9) {\r\n/* 49: 64 */ for (int i = 0; i < 4; i++)\r\n/* 50: */ {\r\n/* 51: 65 */ BlockPosition localdt = paramdt.offset(paramRandom.nextInt(3) - 1, paramRandom.nextInt(5) - 3, paramRandom.nextInt(3) - 1);\r\n/* 52: 66 */ BlockType localatr = paramaqu.getBlock(localdt.up()).getType();\r\n/* 53: 67 */ Block localbec = paramaqu.getBlock(localdt);\r\n/* 54: 68 */ if ((localbec.getType() == BlockList.dirt) && (localbec.getData(BlockDirt.a) == avd.a) && (paramaqu.l(localdt.up()) >= 4) && (localatr.getLightOpacity() <= 2)) {\r\n/* 55: 69 */ paramaqu.setBlock(localdt, BlockList.grass.instance());\r\n/* 56: */ }\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }", "public void mo115190b() {\n }", "static void method_28() {\r\n // $FF: Couldn't be decompiled\r\n }", "static /* synthetic */ void m21605b(C13459z c13459z) {\n AppMethodBeat.m2504i(37332);\n c13459z.bgC();\n AppMethodBeat.m2505o(37332);\n }", "protected int b(i var1_1, y.c.q var2_2, y.c.q var3_3, h var4_4, h var5_5, int var6_6, ArrayList var7_7, ArrayList var8_8, h var9_9, h var10_10) {\n block26 : {\n block25 : {\n var24_11 = o.p;\n this.c = var6_6;\n this.d = var2_2;\n this.e = var3_3;\n this.n = var1_1.h();\n this.o = var1_1.f();\n this.h = var1_1;\n this.i = new int[this.n];\n this.j = new int[this.n];\n this.k = new int[this.o];\n this.l = new int[this.o];\n this.m = new int[this.n];\n this.b = new Object[this.o];\n this.t = new int[this.n];\n this.r = new d[this.n];\n this.s = new d[this.n];\n this.f = var4_4;\n this.a = new a[this.n];\n this.q = new ArrayList<E>(var1_1.f());\n this.p = new I(this.o);\n var11_12 = 0;\n block0 : do {\n v0 = var11_12;\n block1 : while (v0 < var7_7.size()) {\n var12_15 = (a)var7_7.get(var11_12);\n v1 /* !! */ = var12_15.b();\n if (var24_11) break block25;\n var13_17 = v1 /* !! */ ;\n while (var13_17.f()) {\n var14_20 = var13_17.a();\n var15_23 = var14_20.b();\n this.a[var14_20.b()] = var12_15;\n this.i[var15_23] = var12_15.a();\n v0 = this.i[var15_23];\n if (var24_11) continue block1;\n if (v0 < 0) {\n throw new B(\"found negative capacity\");\n }\n var13_17.g();\n if (!var24_11) continue;\n }\n ++var11_12;\n if (!var24_11) continue block0;\n }\n break block0;\n break;\n } while (true);\n v1 /* !! */ = var11_13 = this.h.p();\n }\n while (var11_13.f()) {\n var12_15 = var11_13.a();\n this.r[var12_15.b()] = (d)var10_10.b(var12_15);\n this.s[var12_15.b()] = (d)var9_9.b(var12_15);\n var11_13.g();\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block26;\n }\n this.g = new u[this.o];\n }\n var11_13 = var1_1.o();\n while (var11_13.f()) {\n var12_15 = var11_13.e();\n v2 = this;\n if (!var24_11) {\n v2.g[var12_15.d()] = new u((y.c.q)var12_15, var12_15.d());\n var11_13.g();\n if (!var24_11) continue;\n }\n ** GOTO lbl65\n }\n block5 : do {\n v2 = this;\nlbl65: // 2 sources:\n var11_14 = var13_18 = v2.a();\n var12_16 = 0;\n var14_21 = 0;\n block6 : do {\n v3 = var14_21;\n v4 = var8_8.size();\n block7 : while (v3 < v4) {\n v5 = var8_8.get(var14_21);\n do {\n var15_24 = (ArrayList)v5;\n var16_26 = false;\n var17_27 = 0;\n var18_28 = 0;\n v6 = 0;\n if (!var24_11) {\n for (var19_29 = v1574606; var19_29 < var15_24.size(); ++var19_29) {\n block28 : {\n block27 : {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n ++var12_16;\n var21_31 = this.s[var20_30.b[0].b()];\n var22_32 = 0;\n while (this.m[var21_31.b()] == 1) {\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block27;\n }\n var22_32 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n var23_33 = 0;\n var21_31 = this.s[var20_30.b[1].b()];\n while (this.m[var21_31.b()] == 1) {\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n var21_31 = this.s[var21_31.b()];\n if (!var24_11) {\n if (!var24_11) continue;\n }\n break block28;\n }\n var23_33 += var4_4.a(this.a[var21_31.b()].b(var21_31));\n }\n if (var23_33 > 400 || var22_32 > 400) {\n block29 : {\n if (var23_33 < var22_32) {\n this.a(var20_30);\n if (!var24_11) break block29;\n }\n this.b(var20_30);\n }\n var16_26 = true;\n }\n var18_28 += var23_33;\n var17_27 += var22_32;\n if (!var24_11) continue;\n }\n if (!var16_26) {\n for (var19_29 = 0; var19_29 < var15_24.size(); ++var19_29) {\n var20_30 = (a)var15_24.get(var19_29);\n v3 = this.m[var20_30.b[0].b()];\n v4 = 1;\n if (var24_11) continue block7;\n if (v3 != v4 || this.m[var20_30.b[1].b()] != 1) continue;\n if (var18_28 < var17_27) {\n this.a(var20_30);\n if (!var24_11) continue;\n }\n this.b(var20_30);\n if (!var24_11) continue;\n }\n }\n ++var14_21;\n if (!var24_11) continue block6;\n }\n ** GOTO lbl133\n v6 = var12_16;\nlbl133: // 2 sources:\n if (v6 > 0) continue block5;\n v5 = this.h.p();\n } while (var24_11);\n }\n break;\n } while (true);\n break;\n } while (true);\n var13_19 = v5;\n while (var13_19.f()) {\n var14_22 = var13_19.a();\n v7 = var14_22.b();\n if (var24_11 != false) return v7;\n var15_25 = v7;\n var5_5.a((Object)var14_22, this.m[var15_25]);\n var13_19.g();\n if (!var24_11) continue;\n }\n v7 = var11_14;\n return v7;\n }", "public void collapseBlocks() {\n // Create it if it's null\n if (graph_bcc == null) {\n // Create graph parametrics (Only add linear time algorithms here...)\n graph_bcc = new BiConnectedComponents(graph);\n graph2p_bcc = new BiConnectedComponents(new UniTwoPlusDegreeGraph(graph));\n }\n BiConnectedComponents bcc = graph_bcc, bcc_2p = graph2p_bcc; if (bcc != null && bcc_2p != null) {\n // Get the vertex to block lookup\n Map<String,Set<MyGraph>> v_to_b = bcc.getVertexToBlockMap();\n // Go through the entities and accumulate the positions\n Map<MyGraph,Double> x_sum = new HashMap<MyGraph,Double>(), y_sum = new HashMap<MyGraph,Double>();\n Iterator<String> it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity)) {\n\t Iterator<MyGraph> it_mg = v_to_b.get(entity).iterator();\n\t while (it_mg.hasNext()) {\n\t MyGraph mg = it_mg.next();\n\t if (x_sum.containsKey(mg) == false) { x_sum.put(mg,0.0); y_sum.put(mg,0.0); }\n\t x_sum.put(mg,x_sum.get(mg)+pt.getX()); y_sum.put(mg,y_sum.get(mg)+pt.getY());\n\t }\n } else System.err.println(\"Vertex To Block Lookup missing \\\"\" + entity + \"\\\"\");\n }\n // Now position those entities that aren't cut vertices at the center of the graph\n it_e = entity_to_wxy.keySet().iterator();\n while (it_e.hasNext()) {\n String entity = it_e.next(); Point2D pt = entity_to_wxy.get(entity);\n\tif (v_to_b.containsKey(entity) && bcc.getCutVertices().contains(entity) == false) {\n MyGraph mg = v_to_b.get(entity).iterator().next();\n\t entity_to_wxy.put(entity, new Point2D.Double(x_sum.get(mg)/mg.getNumberOfEntities(),y_sum.get(mg)/mg.getNumberOfEntities()));\n\t transform(entity);\n\t}\n }\n // Re-render\n zoomToFit(); repaint();\n }\n }", "public void movB(){\r\n\t\tint aux1[][]= new int [3][1];\r\n\t\tint aux2[][]= new int [3][1];\r\n\t\tint aux3[][]= new int [3][1];\r\n\t\tint aux4[][]= new int [3][1];\r\n\t\t\r\n\t\taux1=this.cloneF(5, 2);//copiamos el del bloque 5 la fila 3\r\n\t\taux2=this.cloneC(2, 2);\r\n\t\taux3=this.cloneF(4, 0);\r\n\t\taux4=this.cloneC(0, 0);\r\n\t\t\r\n\t\tthis.copiaEnFilaUnaColumna(aux4, 5, 2);\r\n\t\tthis.copiaEnColumnaUnaFila(aux1, 2, 2);\r\n\t\tthis.copiaEnFilaUnaColumna(aux2, 4, 0);\r\n\t\tthis.copiaEnColumnaUnaFila(aux3, 0, 0);\r\n\t\t\r\n\t\t\r\n\t}", "private void m7134b() {\n C1636a aVar = this.f7134e;\n if (aVar != null) {\n aVar.mo14510b();\n }\n this.f7134e = null;\n }", "public void method_2046() {\r\n // $FF: Couldn't be decompiled\r\n }", "public final /* synthetic */ void mo84740b() {\n m106723d();\n C42961az.m136380a(new C33045d(false));\n }", "public void free(Block b) {\n if(b.length <= 0) return;\n\n if (b.start + b.length > limit) limit = b.start + b.length; // grows with free\n\n // query adjacent blocks\n Block prev = freeSpace.floor(b);\n Block next = freeSpace.higher(b);\n\n if (prev != null && prev.start + prev.length > b.start) {\n throw new RuntimeException(\"Corrupted. DEBUG PRV \" + prev.start + \"+\" + prev.length + \">\" + b.start);\n }\n if (next != null && next.start < b.start + b.length) {\n throw new RuntimeException(\"Corrupted. DEBUG NEX \" + next.start + \"<\" + b.start + \"+\" + b.length);\n }\n\n // merge them if possible\n \n Block n = Block.mergeBlocks(b, prev);\n if(n != null) { freeSpace.remove(prev); b = n; }\n\n n = Block.mergeBlocks(b, next);\n if(n != null) { freeSpace.remove(next); b = n; }\n\n freeSpace.add(b);\n }", "private synchronized void m3985g() {\n /*\n r8 = this;\n monitor-enter(r8);\n r2 = java.lang.Thread.currentThread();\t Catch:{ all -> 0x0063 }\n r3 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r3 = r3.mo1186c();\t Catch:{ all -> 0x0063 }\n r2 = r2.equals(r3);\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0021;\n L_0x0011:\n r2 = r8.f2114f;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1185b();\t Catch:{ all -> 0x0063 }\n r3 = new com.google.analytics.tracking.android.aa;\t Catch:{ all -> 0x0063 }\n r3.<init>(r8);\t Catch:{ all -> 0x0063 }\n r2.add(r3);\t Catch:{ all -> 0x0063 }\n L_0x001f:\n monitor-exit(r8);\n return;\n L_0x0021:\n r2 = r8.f2122n;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x0028;\n L_0x0025:\n r8.m3999d();\t Catch:{ all -> 0x0063 }\n L_0x0028:\n r2 = com.google.analytics.tracking.android.ab.f1966a;\t Catch:{ all -> 0x0063 }\n r3 = r8.f2110b;\t Catch:{ all -> 0x0063 }\n r3 = r3.ordinal();\t Catch:{ all -> 0x0063 }\n r2 = r2[r3];\t Catch:{ all -> 0x0063 }\n switch(r2) {\n case 1: goto L_0x0036;\n case 2: goto L_0x006e;\n case 3: goto L_0x00aa;\n default: goto L_0x0035;\n };\t Catch:{ all -> 0x0063 }\n L_0x0035:\n goto L_0x001f;\n L_0x0036:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x0066;\n L_0x003e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.poll();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to store\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2112d;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1197a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n goto L_0x0036;\n L_0x0063:\n r2 = move-exception;\n monitor-exit(r8);\n throw r2;\n L_0x0066:\n r2 = r8.f2121m;\t Catch:{ all -> 0x0063 }\n if (r2 == 0) goto L_0x001f;\n L_0x006a:\n r8.m3987h();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x006e:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x00a0;\n L_0x0076:\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.peek();\t Catch:{ all -> 0x0063 }\n r0 = r2;\n r0 = (com.google.analytics.tracking.android.af) r0;\t Catch:{ all -> 0x0063 }\n r7 = r0;\n r2 = \"Sending hit to service\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2111c;\t Catch:{ all -> 0x0063 }\n r3 = r7.m3743a();\t Catch:{ all -> 0x0063 }\n r4 = r7.m3744b();\t Catch:{ all -> 0x0063 }\n r6 = r7.m3745c();\t Catch:{ all -> 0x0063 }\n r7 = r7.m3746d();\t Catch:{ all -> 0x0063 }\n r2.mo1204a(r3, r4, r6, r7);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2.poll();\t Catch:{ all -> 0x0063 }\n goto L_0x006e;\n L_0x00a0:\n r2 = r8.f2123o;\t Catch:{ all -> 0x0063 }\n r2 = r2.mo1198a();\t Catch:{ all -> 0x0063 }\n r8.f2109a = r2;\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n L_0x00aa:\n r2 = \"Need to reconnect\";\n com.google.analytics.tracking.android.av.m3818e(r2);\t Catch:{ all -> 0x0063 }\n r2 = r8.f2116h;\t Catch:{ all -> 0x0063 }\n r2 = r2.isEmpty();\t Catch:{ all -> 0x0063 }\n if (r2 != 0) goto L_0x001f;\n L_0x00b7:\n r8.m3991j();\t Catch:{ all -> 0x0063 }\n goto L_0x001f;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.analytics.tracking.android.y.g():void\");\n }", "public int h(Block parambec)\r\n/* 29: */ {\r\n/* 30: 44 */ return F();\r\n/* 31: */ }", "private synchronized void m29549c() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r6 = this;\n monitor-enter(r6);\n r0 = r6.f24853c;\t Catch:{ all -> 0x0050 }\n if (r0 == 0) goto L_0x004b;\t Catch:{ all -> 0x0050 }\n L_0x0005:\n r0 = com.google.android.m4b.maps.cg.bx.m23056a();\t Catch:{ all -> 0x0050 }\n r1 = 0;\n r2 = r6.f24854d;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r3 = r6.f24853c;\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n r2 = r2.openFileInput(r3);\t Catch:{ IOException -> 0x0035, all -> 0x0030 }\n if (r2 == 0) goto L_0x0027;\n L_0x0014:\n r3 = new com.google.android.m4b.maps.ar.a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.de.af.f19891a;\t Catch:{ IOException -> 0x0036 }\n r3.<init>(r4);\t Catch:{ IOException -> 0x0036 }\n r6.f24851a = r3;\t Catch:{ IOException -> 0x0036 }\n r3 = r6.f24851a;\t Catch:{ IOException -> 0x0036 }\n r4 = com.google.android.m4b.maps.ap.C4655c.m20771a(r2);\t Catch:{ IOException -> 0x0036 }\n r3.m20819a(r4);\t Catch:{ IOException -> 0x0036 }\n goto L_0x0029;\t Catch:{ IOException -> 0x0036 }\n L_0x0027:\n r6.f24851a = r1;\t Catch:{ IOException -> 0x0036 }\n L_0x0029:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n L_0x002c:\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n goto L_0x004b;\n L_0x0030:\n r2 = move-exception;\n r5 = r2;\n r2 = r1;\n r1 = r5;\n goto L_0x0044;\n L_0x0035:\n r2 = r1;\n L_0x0036:\n r6.f24851a = r1;\t Catch:{ all -> 0x0043 }\n r1 = r6.f24854d;\t Catch:{ all -> 0x0043 }\n r3 = r6.f24853c;\t Catch:{ all -> 0x0043 }\n r1.deleteFile(r3);\t Catch:{ all -> 0x0043 }\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n goto L_0x002c;\t Catch:{ all -> 0x0050 }\n L_0x0043:\n r1 = move-exception;\t Catch:{ all -> 0x0050 }\n L_0x0044:\n com.google.android.m4b.maps.cg.bx.m23057a(r0);\t Catch:{ all -> 0x0050 }\n com.google.android.m4b.maps.ap.C4655c.m20773b(r2);\t Catch:{ all -> 0x0050 }\n throw r1;\t Catch:{ all -> 0x0050 }\n L_0x004b:\n r0 = 1;\t Catch:{ all -> 0x0050 }\n r6.f24852b = r0;\t Catch:{ all -> 0x0050 }\n monitor-exit(r6);\n return;\n L_0x0050:\n r0 = move-exception;\n monitor-exit(r6);\n throw r0;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.android.m4b.maps.cg.q.c():void\");\n }", "private boolean method_2253(class_1033 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n public void a() {\n block25 : {\n block24 : {\n block22 : {\n var17_1 = a.a;\n var3_2 = this.c.i();\n var4_3 = var3_2.a().a();\n this.d = new w();\n this.e = new y.f.h.D(this.d);\n this.h = M.a(new Object[this.b.e()]);\n this.i = M.b(new Object[this.b.g()]);\n var5_4 = this.b.o();\n while (var5_4.f()) {\n var6_5 = var5_4.e();\n if (var17_1 == 0) {\n if (var6_5.c() <= this.l) {\n var7_6 = this.d.d();\n this.h.a(var6_5, var7_6);\n }\n var5_4.g();\n if (var17_1 == 0) continue;\n }\n break block22;\n }\n this.j = M.b(new Object[this.b.g()]);\n this.k = M.b(new Object[this.b.g()]);\n this.a(this.j, this.k);\n }\n var2_8 = this.b.o();\n block3 : do {\n v0 = var2_8.f();\n block4 : while (v0 != 0) {\n var5_4 = var2_8.e();\n if (var5_4.c() != 0) {\n var1_9 = var5_4.l();\n var6_5 = var1_9.a();\n var7_6 = (y.c.q)this.j.b(var6_5);\n var1_9.b();\n while (var1_9.f()) {\n var8_10 = var1_9.a();\n var9_11 = (y.c.q)this.j.b(var8_10);\n var10_12 = (y.c.q)this.k.b(var8_10);\n var11_13 = this.a((y.c.q)var7_6, (y.c.q)var9_11);\n v0 = var5_4.c();\n if (var17_1 != 0) continue block4;\n if (v0 > this.l) {\n this.h.a(var5_4, var11_13);\n }\n var7_6 = (y.c.q)this.j.b(var8_10);\n var12_14 /* !! */ = this.d.a((y.c.q)var9_11, (y.c.q)var10_12);\n this.i.a(var8_10, var12_14 /* !! */ );\n if (var8_10 == var6_5) break;\n var1_9.b();\n if (var17_1 == 0) continue;\n }\n }\n var2_8.g();\n if (var17_1 == 0) continue block3;\n }\n break block3;\n break;\n } while (true);\n var1_9 = this.b.p();\n while (var1_9.f()) {\n var5_4 = var1_9.a();\n v1 = this;\n if (var17_1 == 0) {\n block23 : {\n if (v1.c.n((y.c.d)var5_4)) {\n this.e.m((y.c.d)this.i.b(var5_4));\n if (var17_1 == 0) break block23;\n }\n this.e.e((y.c.d)this.i.b(var5_4));\n }\n var6_5 = this.c.h((y.c.d)var5_4);\n this.e.b((y.c.d)this.i.b(var5_4), (y.c.d)this.i.b(var6_5));\n var1_9.g();\n if (var17_1 == 0) continue;\n }\n break block24;\n }\n v1 = this;\n }\n var5_4 = v1.e.m();\n this.d.a(\"y.layout.orthogonal.general.NodeSplitter.NODE_FACES\", (y.c.c)var5_4);\n var6_5 = this.e.m();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", (y.c.c)var6_5);\n this.m = this.e.g().t();\n this.d.a(\"y.layout.orthogonal.ring.FixedSizeNodeSplitter#NODE_SIZE\", new c((r)var6_5, this.m));\n try {\n this.e.l();\n var7_6 = (y.c.d)this.i.b(var4_3);\n this.e.b(this.e.i((y.c.d)var7_6));\n var8_10 = this.e.h();\n while (var8_10.f()) {\n var5_4.a(var8_10.a(), false);\n var8_10.g();\n if (var17_1 == 0) {\n if (var17_1 == 0) continue;\n }\n break block25;\n }\n var8_10 = this.b.o();\n while (var8_10.f()) {\n var9_11 = var8_10.e();\n if (var17_1 != 0) break;\n if (var9_11.c() <= this.l) ** GOTO lbl-1000\n var10_12 = (y.c.d)this.h.b(var9_11);\n var11_13 = this.e.i((y.c.d)var10_12);\n this.h.a(var9_11, var11_13);\n var5_4.a((p)var11_13, true);\n var12_14 /* !! */ = (y.c.d)this.b.p((y.c.q)var9_11);\n var14_15 = this.b.q((y.c.q)var9_11);\n var16_16 = new Dimension((int)var12_14 /* !! */ , (int)var14_15);\n var6_5.a((p)var11_13, var16_16);\n if (var17_1 != 0) lbl-1000: // 2 sources:\n {\n var10_12 = this.b.r((y.c.q)var9_11);\n if (var10_12.a > 0.0 || var10_12.b > 0.0) {\n var11_13 = (y.c.q)this.h.b(var9_11);\n this.m.a(var11_13, this.b.r((y.c.q)var9_11));\n }\n }\n var8_10.g();\n if (var17_1 == 0) continue;\n break;\n }\n }\n catch (Exception var7_7) {\n System.err.println(\"Internal Error in Face calculation !\");\n var7_7.printStackTrace(System.err);\n }\n }\n var7_6 = this.e.h();\n block9 : do {\n if (var7_6.f() == false) return;\n var8_10 = (p)var7_6.d();\n if (var5_4.d(var8_10)) {\n var9_11 = var8_10.a();\n while (var9_11.f()) {\n var10_12 = var9_11.a();\n this.e.m(this.e.h((y.c.d)var10_12));\n this.e.e((y.c.d)var10_12);\n var9_11.g();\n if (var17_1 != 0) continue block9;\n if (var17_1 == 0) continue;\n }\n }\n var7_6.g();\n } while (var17_1 == 0);\n }", "abstract void mo4384c(byte[] bArr, int i, int i2);", "private final com.google.wireless.android.finsky.dfe.p515h.p516a.ae m35733b(com.google.protobuf.nano.C7213a r7) {\n /*\n r6 = this;\n L_0x0000:\n r0 = r7.m33550a();\n switch(r0) {\n case 0: goto L_0x000d;\n case 10: goto L_0x000e;\n case 18: goto L_0x001f;\n case 26: goto L_0x002c;\n case 34: goto L_0x0039;\n case 42: goto L_0x004a;\n case 50: goto L_0x0057;\n case 56: goto L_0x0064;\n case 64: goto L_0x00a3;\n case 72: goto L_0x00b1;\n case 82: goto L_0x00bf;\n default: goto L_0x0007;\n };\n L_0x0007:\n r0 = super.a(r7, r0);\n if (r0 != 0) goto L_0x0000;\n L_0x000d:\n return r6;\n L_0x000e:\n r0 = r6.f38026c;\n if (r0 != 0) goto L_0x0019;\n L_0x0012:\n r0 = new com.google.android.finsky.cv.a.bd;\n r0.<init>();\n r6.f38026c = r0;\n L_0x0019:\n r0 = r6.f38026c;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x001f:\n r0 = r7.m33564f();\n r6.f38027d = r0;\n r0 = r6.f38025b;\n r0 = r0 | 1;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x002c:\n r0 = r7.m33564f();\n r6.f38028e = r0;\n r0 = r6.f38025b;\n r0 = r0 | 2;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0039:\n r0 = r6.f38029f;\n if (r0 != 0) goto L_0x0044;\n L_0x003d:\n r0 = new com.google.android.finsky.cv.a.ax;\n r0.<init>();\n r6.f38029f = r0;\n L_0x0044:\n r0 = r6.f38029f;\n r7.m33552a(r0);\n goto L_0x0000;\n L_0x004a:\n r0 = r7.m33564f();\n r6.f38030g = r0;\n r0 = r6.f38025b;\n r0 = r0 | 4;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0057:\n r0 = r7.m33564f();\n r6.f38031h = r0;\n r0 = r6.f38025b;\n r0 = r0 | 8;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x0064:\n r1 = r6.f38025b;\n r1 = r1 | 16;\n r6.f38025b = r1;\n r1 = r7.m33573o();\n r2 = r7.m33567i();\t Catch:{ IllegalArgumentException -> 0x0090 }\n switch(r2) {\n case 0: goto L_0x0099;\n case 1: goto L_0x0099;\n case 2: goto L_0x0099;\n case 3: goto L_0x0099;\n case 4: goto L_0x0099;\n default: goto L_0x0075;\n };\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0075:\n r3 = new java.lang.IllegalArgumentException;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = 36;\n r5 = new java.lang.StringBuilder;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r5.<init>(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r5.append(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r4 = \" is not a valid enum Type\";\n r2 = r2.append(r4);\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2.toString();\t Catch:{ IllegalArgumentException -> 0x0090 }\n r3.<init>(r2);\t Catch:{ IllegalArgumentException -> 0x0090 }\n throw r3;\t Catch:{ IllegalArgumentException -> 0x0090 }\n L_0x0090:\n r2 = move-exception;\n r7.m33562e(r1);\n r6.a(r7, r0);\n goto L_0x0000;\n L_0x0099:\n r6.f38032i = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r6.f38025b;\t Catch:{ IllegalArgumentException -> 0x0090 }\n r2 = r2 | 16;\n r6.f38025b = r2;\t Catch:{ IllegalArgumentException -> 0x0090 }\n goto L_0x0000;\n L_0x00a3:\n r0 = r7.m33563e();\n r6.f38033j = r0;\n r0 = r6.f38025b;\n r0 = r0 | 32;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00b1:\n r0 = r7.m33563e();\n r6.f38034k = r0;\n r0 = r6.f38025b;\n r0 = r0 | 64;\n r6.f38025b = r0;\n goto L_0x0000;\n L_0x00bf:\n r0 = r6.f38035l;\n if (r0 != 0) goto L_0x00ca;\n L_0x00c3:\n r0 = new com.google.android.finsky.cv.a.cv;\n r0.<init>();\n r6.f38035l = r0;\n L_0x00ca:\n r0 = r6.f38035l;\n r7.m33552a(r0);\n goto L_0x0000;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.google.wireless.android.finsky.dfe.h.a.ae.b(com.google.protobuf.nano.a):com.google.wireless.android.finsky.dfe.h.a.ae\");\n }", "public abstract void removeBlock();", "public final void mo118421b() {\n super.mo118421b();\n this.f120934a = null;\n }", "static void method_2226() {\r\n // $FF: Couldn't be decompiled\r\n }", "void m63702c() {\n for (C17455a c17455a : this.f53839c) {\n c17455a.f53844b.clear();\n }\n }", "private void m25427g() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n*/\n /*\n r2 = this;\n r0 = r2.f19111m;\n if (r0 == 0) goto L_0x000f;\n L_0x0004:\n r0 = r2.f19104f;\t Catch:{ Exception -> 0x000f }\n r0 = android.support.v4.content.C0396d.m1465a(r0);\t Catch:{ Exception -> 0x000f }\n r1 = r2.f19111m;\t Catch:{ Exception -> 0x000f }\n r0.m1468a(r1);\t Catch:{ Exception -> 0x000f }\n L_0x000f:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.facebook.ads.internal.adapters.w.g():void\");\n }", "private void exitSequence_mainRegion_State2__region0_a() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t}", "public int getInternalBlockLength()\r\n/* 40: */ {\r\n/* 41: 95 */ return 32;\r\n/* 42: */ }", "protected String codeBlockSource(Block block) {\n block.removeFirstOperation(); // aload_0\n block.removeFirstOperation(); // aload_1\n block.removeFirstOperation(); // iload_2\n block.removeFirstOperation(); // invokespecial <init>\n\n if (getTopBlock().getOperations().size() == 1 &&\n getTopBlock().getOperations().get(0) instanceof ReturnView) {\n return null;\n }\n\n return super.codeBlockSource(block);\n }", "static void m13383b() {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.core.ProcessClass.processDependencies(ProcessClass.java:56)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:39)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/79094208.run(Unknown Source)\n*/\n /*\n r0 = com.foursquare.internal.data.db.C1916a.getDatabase();\t Catch:{ Exception -> 0x000a }\n r1 = \"battery_watcher\";\t Catch:{ Exception -> 0x000a }\n r2 = 0;\t Catch:{ Exception -> 0x000a }\n r0.delete(r1, r2, r2);\t Catch:{ Exception -> 0x000a }\n L_0x000a:\n return;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.foursquare.pilgrim.e.b():void\");\n }", "void m5770d() throws C0841b;", "public final /* bridge */ /* synthetic */ void mo43569b() {\n super.mo43569b();\n }", "public int numberOfBlocksToRemove() {\r\n return 105;\r\n }", "public void handlesBlockingRegionDrag() {\r\n \t\tObject[] cells = graph.getDescendants(graph.getSelectionCells());\r\n \t\t// Put cells not in a blocking region to back\r\n \t\tHashSet<Object> putBack = new HashSet<Object>();\r\n \t\tfor (Object cell2 : cells) {\r\n \t\t\tif (cell2 instanceof JmtCell && ((JmtCell) cell2).parentChanged()) {\r\n \t\t\t\t// This cell was moved in, out or between blocking regions\r\n \t\t\t\tJmtCell cell = (JmtCell) cell2;\r\n \t\t\t\tObject key = ((CellComponent) cell.getUserObject()).getKey();\r\n \t\t\t\tObject oldRegionKey, newRegionKey;\r\n \t\t\t\tif (!(cell.getParent() instanceof BlockingRegion)) {\r\n \t\t\t\t\t// Object removed from blocking region\r\n \t\t\t\t\tputBack.add(cell2);\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Allow adding of removed objects to a new blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(true);\r\n \t\t\t\t} else if (cell.getPrevParent() instanceof BlockingRegion) {\r\n \t\t\t\t\t// Object changed blocking region\r\n \t\t\t\t\toldRegionKey = ((BlockingRegion) cell.getPrevParent()).getKey();\r\n \t\t\t\t\tmodel.removeRegionStation(oldRegionKey, key);\r\n \t\t\t\t\t// If region is empty, removes region too\r\n \t\t\t\t\tif (model.getBlockingRegionStations(oldRegionKey).size() == 0) {\r\n \t\t\t\t\t\tmodel.deleteBlockingRegion(oldRegionKey);\r\n \t\t\t\t\t}\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tmodel.addRegionStation(newRegionKey, key);\r\n \t\t\t\t} else {\r\n \t\t\t\t\t// Object added to a blocking region\r\n \t\t\t\t\tnewRegionKey = ((BlockingRegion) cell.getParent()).getKey();\r\n \t\t\t\t\tif (!model.addRegionStation(newRegionKey, key)) {\r\n \t\t\t\t\t\t// object cannot be added to blocking region (for\r\n \t\t\t\t\t\t// example it's a source)\r\n \t\t\t\t\t\tcell.removeFromParent();\r\n \t\t\t\t\t\tgraph.getModel().insert(new Object[] { cell }, null, null, null, null);\r\n \t\t\t\t\t\tputBack.add(cell);\r\n \t\t\t\t\t}\r\n \t\t\t\t\t// Doesn't allow adding of selected objects to a new\r\n \t\t\t\t\t// blocking region\r\n \t\t\t\t\tenableAddBlockingRegion(false);\r\n \t\t\t\t}\r\n \t\t\t\t// Resets parent for this cell\r\n \t\t\t\tcell.resetParent();\r\n \t\t\t}\r\n \t\t\t// Avoid insertion of a blocking region in an other\r\n \t\t\telse if (cell2 instanceof BlockingRegion) {\r\n \t\t\t\tBlockingRegion region = (BlockingRegion) cell2;\r\n \t\t\t\tif (region.getParent() != null) {\r\n \t\t\t\t\tregion.removeFromParent();\r\n \t\t\t\t\tgraph.getModel().insert(new Object[] { region }, null, null, null, null);\r\n \t\t\t\t}\r\n \t\t\t}\r\n \t\t}\r\n \t\t// Puts cells removed from blocking regiont on background\r\n \t\tgraph.getModel().toBack(putBack.toArray());\r\n \t}", "static void hardDrop(Block b) {\n int[] pos = b.pos;\n char[][] piece = b.piece;\n\n while (canPlace(pos[0] + 1, pos[1], piece))\n pos[0]++;\n\n place(pos[0], pos[1], piece);\n }", "public void method_2250() {\r\n // $FF: Couldn't be decompiled\r\n }", "protected void processBlock() {\n\t\t// expand 16 word block into 64 word blocks.\n\t\t//\n\t\tfor (int t = 16; t <= 63; t++) {\n\t\t\tX[t] = Theta1(X[t - 2]) + X[t - 7] + Theta0(X[t - 15]) + X[t - 16];\n\t\t}\n\n\t\t//\n\t\t// set up working variables.\n\t\t//\n\t\tint a = H1;\n\t\tint b = H2;\n\t\tint c = H3;\n\t\tint d = H4;\n\t\tint e = H5;\n\t\tint f = H6;\n\t\tint g = H7;\n\t\tint h = H8;\n\n\t\tint t = 0;\n\t\tfor (int i = 0; i < 8; i++) {\n\t\t\t// t = 8 * i\n\t\t\th += Sum1(e) + Ch(e, f, g) + K[t] + X[t];\n\t\t\td += h;\n\t\t\th += Sum0(a) + Maj(a, b, c);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 1\n\t\t\tg += Sum1(d) + Ch(d, e, f) + K[t] + X[t];\n\t\t\tc += g;\n\t\t\tg += Sum0(h) + Maj(h, a, b);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 2\n\t\t\tf += Sum1(c) + Ch(c, d, e) + K[t] + X[t];\n\t\t\tb += f;\n\t\t\tf += Sum0(g) + Maj(g, h, a);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 3\n\t\t\te += Sum1(b) + Ch(b, c, d) + K[t] + X[t];\n\t\t\ta += e;\n\t\t\te += Sum0(f) + Maj(f, g, h);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 4\n\t\t\td += Sum1(a) + Ch(a, b, c) + K[t] + X[t];\n\t\t\th += d;\n\t\t\td += Sum0(e) + Maj(e, f, g);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 5\n\t\t\tc += Sum1(h) + Ch(h, a, b) + K[t] + X[t];\n\t\t\tg += c;\n\t\t\tc += Sum0(d) + Maj(d, e, f);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 6\n\t\t\tb += Sum1(g) + Ch(g, h, a) + K[t] + X[t];\n\t\t\tf += b;\n\t\t\tb += Sum0(c) + Maj(c, d, e);\n\t\t\t++t;\n\n\t\t\t// t = 8 * i + 7\n\t\t\ta += Sum1(f) + Ch(f, g, h) + K[t] + X[t];\n\t\t\te += a;\n\t\t\ta += Sum0(b) + Maj(b, c, d);\n\t\t\t++t;\n\t\t}\n\n\t\tH1 += a;\n\t\tH2 += b;\n\t\tH3 += c;\n\t\tH4 += d;\n\t\tH5 += e;\n\t\tH6 += f;\n\t\tH7 += g;\n\t\tH8 += h;\n\n\t\t//\n\t\t// reset the offset and clean out the word buffer.\n\t\t//\n\t\txOff = 0;\n\t\tfor (int i = 0; i < 16; i++) {\n\t\t\tX[i] = 0;\n\t\t}\n\t}", "protected void method_2045(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "public void mo1335b() {\n m18902c();\n }", "public void onBlockAdded(World p_149726_1_, int p_149726_2_, int p_149726_3_, int p_149726_4_)\r\n {\r\n super.onBlockAdded(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n// this.func_149930_e(p_149726_1_, p_149726_2_, p_149726_3_, p_149726_4_);\r\n }", "private void exitSequence_mainRegion_State2__region0_State4() {\n\t\texitSequence_mainRegion_State2__region0_State4__region0();\n\t}", "public void method_2197() {\r\n // $FF: Couldn't be decompiled\r\n }", "@Override\n\tpublic void onNeighborBlockChange(World w, int x, int y, int z, Block bID)\n\t{\n\t}", "private p000a.p001a.p002a.p003a.C0916s m1655b(p000a.p001a.p002a.p003a.p022i.p024b.C0112x r7, p000a.p001a.p002a.p003a.p034n.C0157e r8) {\n /* JADX: method processing error */\n/*\nError: java.lang.NullPointerException\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.searchTryCatchDominators(ProcessTryCatchRegions.java:75)\n\tat jadx.core.dex.visitors.regions.ProcessTryCatchRegions.process(ProcessTryCatchRegions.java:45)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.postProcessRegions(RegionMakerVisitor.java:63)\n\tat jadx.core.dex.visitors.regions.RegionMakerVisitor.visit(RegionMakerVisitor.java:58)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:31)\n\tat jadx.core.dex.visitors.DepthTraversal.visit(DepthTraversal.java:17)\n\tat jadx.core.ProcessClass.process(ProcessClass.java:34)\n\tat jadx.api.JadxDecompiler.processClass(JadxDecompiler.java:282)\n\tat jadx.api.JavaClass.decompile(JavaClass.java:62)\n\tat jadx.api.JadxDecompiler.lambda$appendSourcesSave$0(JadxDecompiler.java:200)\n\tat jadx.api.JadxDecompiler$$Lambda$8/293907205.run(Unknown Source)\n*/\n /*\n r6 = this;\n r0 = r7.m321a();\n r7 = r7.m322b();\n r1 = 0;\n r2 = r1;\n L_0x000a:\n r3 = r6.f1533u;\n r3 = r3 + 1;\n r6.f1533u = r3;\n r0.m2803e();\n r3 = r0.mo2010a();\n if (r3 != 0) goto L_0x0032;\n L_0x0019:\n r7 = r6.f1513a;\n r8 = \"Cannot retry non-repeatable request\";\n r7.m260a(r8);\n if (r2 == 0) goto L_0x002a;\n L_0x0022:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity. The cause lists the reason the original request failed.\";\n r7.<init>(r8, r2);\n throw r7;\n L_0x002a:\n r7 = new a.a.a.a.b.m;\n r8 = \"Cannot retry request with a non-repeatable request entity.\";\n r7.<init>(r8);\n throw r7;\n L_0x0032:\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.mo1932c();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x003a:\n r2 = r7.mo15e();\t Catch:{ IOException -> 0x0086 }\n if (r2 != 0) goto L_0x004f;\t Catch:{ IOException -> 0x0086 }\n L_0x0040:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Reopening the direct connection.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n r2 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1528p;\t Catch:{ IOException -> 0x0086 }\n r2.mo2023a(r7, r8, r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0057;\t Catch:{ IOException -> 0x0086 }\n L_0x004f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = \"Proxied connection. Need to start over.\";\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n goto L_0x0085;\t Catch:{ IOException -> 0x0086 }\n L_0x0057:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m262a();\t Catch:{ IOException -> 0x0086 }\n if (r2 == 0) goto L_0x007c;\t Catch:{ IOException -> 0x0086 }\n L_0x005f:\n r2 = r6.f1513a;\t Catch:{ IOException -> 0x0086 }\n r3 = new java.lang.StringBuilder;\t Catch:{ IOException -> 0x0086 }\n r3.<init>();\t Catch:{ IOException -> 0x0086 }\n r4 = \"Attempt \";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = r6.f1533u;\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r4 = \" to execute request\";\t Catch:{ IOException -> 0x0086 }\n r3.append(r4);\t Catch:{ IOException -> 0x0086 }\n r3 = r3.toString();\t Catch:{ IOException -> 0x0086 }\n r2.m260a(r3);\t Catch:{ IOException -> 0x0086 }\n L_0x007c:\n r2 = r6.f1518f;\t Catch:{ IOException -> 0x0086 }\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0086 }\n r2 = r2.m464a(r0, r3, r8);\t Catch:{ IOException -> 0x0086 }\n r1 = r2;\n L_0x0085:\n return r1;\n L_0x0086:\n r2 = move-exception;\n r3 = r6.f1513a;\n r4 = \"Closing the connection.\";\n r3.m260a(r4);\n r3 = r6.f1529q;\t Catch:{ IOException -> 0x0093 }\n r3.close();\t Catch:{ IOException -> 0x0093 }\n L_0x0093:\n r3 = r6.f1520h;\n r4 = r0.m2802d();\n r3 = r3.retryRequest(r2, r4, r8);\n if (r3 == 0) goto L_0x010a;\n L_0x009f:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x00d9;\n L_0x00a7:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"I/O exception (\";\n r4.append(r5);\n r5 = r2.getClass();\n r5 = r5.getName();\n r4.append(r5);\n r5 = \") caught when processing request to \";\n r4.append(r5);\n r4.append(r7);\n r5 = \": \";\n r4.append(r5);\n r5 = r2.getMessage();\n r4.append(r5);\n r4 = r4.toString();\n r3.m269d(r4);\n L_0x00d9:\n r3 = r6.f1513a;\n r3 = r3.m262a();\n if (r3 == 0) goto L_0x00ea;\n L_0x00e1:\n r3 = r6.f1513a;\n r4 = r2.getMessage();\n r3.m261a(r4, r2);\n L_0x00ea:\n r3 = r6.f1513a;\n r3 = r3.m270d();\n if (r3 == 0) goto L_0x000a;\n L_0x00f2:\n r3 = r6.f1513a;\n r4 = new java.lang.StringBuilder;\n r4.<init>();\n r5 = \"Retrying request to \";\n r4.append(r5);\n r4.append(r7);\n r4 = r4.toString();\n r3.m269d(r4);\n goto L_0x000a;\n L_0x010a:\n r8 = r2 instanceof p000a.p001a.p002a.p003a.C0176z;\n if (r8 == 0) goto L_0x0134;\n L_0x010e:\n r8 = new a.a.a.a.z;\n r0 = new java.lang.StringBuilder;\n r0.<init>();\n r7 = r7.mo10a();\n r7 = r7.m474e();\n r0.append(r7);\n r7 = \" failed to respond\";\n r0.append(r7);\n r7 = r0.toString();\n r8.<init>(r7);\n r7 = r2.getStackTrace();\n r8.setStackTrace(r7);\n throw r8;\n L_0x0134:\n throw r2;\n */\n throw new UnsupportedOperationException(\"Method not decompiled: a.a.a.a.i.b.p.b(a.a.a.a.i.b.x, a.a.a.a.n.e):a.a.a.a.s\");\n }", "public void checkBlock(BlockPos debug1) {\n/* 29 */ if (this.blockEngine != null) {\n/* 30 */ this.blockEngine.checkBlock(debug1);\n/* */ }\n/* 32 */ if (this.skyEngine != null) {\n/* 33 */ this.skyEngine.checkBlock(debug1);\n/* */ }\n/* */ }", "private void m3419g(C0933b bVar) {\n int i = bVar.f4380b;\n int i2 = bVar.f4382d + i;\n int i3 = i;\n char c = 65535;\n int i4 = 0;\n while (i < i2) {\n if (this.f4374d.mo7442e(i) != null || m3420h(i)) {\n if (c == 0) {\n m3421k(mo7621b(4, i3, i4, bVar.f4381c));\n i3 = i;\n i4 = 0;\n }\n c = 1;\n } else {\n if (c == 1) {\n m3422v(mo7621b(4, i3, i4, bVar.f4381c));\n i3 = i;\n i4 = 0;\n }\n c = 0;\n }\n i4++;\n i++;\n }\n if (i4 != bVar.f4382d) {\n Object obj = bVar.f4381c;\n mo7620a(bVar);\n bVar = mo7621b(4, i3, i4, obj);\n }\n if (c == 0) {\n m3421k(bVar);\n } else {\n m3422v(bVar);\n }\n }", "public void mo1335b() {\n m18896a(false);\n }", "static void m7753b() {\n f8029a = false;\n }", "public boolean generate(World paramaqu, Random paramRandom, BlockPosition paramdt)\r\n/* 13: */ {\r\n/* 14:22 */ while ((paramaqu.isEmpty(paramdt)) && (paramdt.getY() > 2)) {\r\n/* 15:23 */ paramdt = paramdt.down();\r\n/* 16: */ }\r\n/* 17:26 */ if (!a.apply(paramaqu.getBlock(paramdt))) {\r\n/* 18:27 */ return false;\r\n/* 19: */ }\r\n/* 20: */ int k;\r\n/* 21:31 */ for (int i = -2; i <= 2; i++) {\r\n/* 22:32 */ for (k = -2; k <= 2; k++) {\r\n/* 23:33 */ if ((paramaqu.isEmpty(paramdt.offset(i, -1, k))) && (paramaqu.isEmpty(paramdt.offset(i, -2, k)))) {\r\n/* 24:34 */ return false;\r\n/* 25: */ }\r\n/* 26: */ }\r\n/* 27: */ }\r\n/* 28:40 */ for (int i = -1; i <= 0; i++) {\r\n/* 29:41 */ for (k = -2; k <= 2; k++) {\r\n/* 30:42 */ for (int n = -2; n <= 2; n++) {\r\n/* 31:43 */ paramaqu.setBlock(paramdt.offset(k, i, n), this.c, 2);\r\n/* 32: */ }\r\n/* 33: */ }\r\n/* 34: */ }\r\n/* 35:49 */ paramaqu.setBlock(paramdt, this.d, 2);\r\n/* 36:50 */ for (EnumDirection localej : EnumHorizontalVertical.HORIZONTAL) {\r\n/* 37:51 */ paramaqu.setBlock(paramdt.offset(localej), this.d, 2);\r\n/* 38: */ }\r\n/* 39: */ int m;\r\n/* 40:55 */ for (int j = -2; j <= 2; j++) {\r\n/* 41:56 */ for (m = -2; m <= 2; m++) {\r\n/* 42:57 */ if ((j == -2) || (j == 2) || (m == -2) || (m == 2)) {\r\n/* 43:58 */ paramaqu.setBlock(paramdt.offset(j, 1, m), this.c, 2);\r\n/* 44: */ }\r\n/* 45: */ }\r\n/* 46: */ }\r\n/* 47:63 */ paramaqu.setBlock(paramdt.offset(2, 1, 0), this.b, 2);\r\n/* 48:64 */ paramaqu.setBlock(paramdt.offset(-2, 1, 0), this.b, 2);\r\n/* 49:65 */ paramaqu.setBlock(paramdt.offset(0, 1, 2), this.b, 2);\r\n/* 50:66 */ paramaqu.setBlock(paramdt.offset(0, 1, -2), this.b, 2);\r\n/* 51:69 */ for (int j = -1; j <= 1; j++) {\r\n/* 52:70 */ for (m = -1; m <= 1; m++) {\r\n/* 53:71 */ if ((j == 0) && (m == 0)) {\r\n/* 54:72 */ paramaqu.setBlock(paramdt.offset(j, 4, m), this.c, 2);\r\n/* 55: */ } else {\r\n/* 56:74 */ paramaqu.setBlock(paramdt.offset(j, 4, m), this.b, 2);\r\n/* 57: */ }\r\n/* 58: */ }\r\n/* 59: */ }\r\n/* 60:80 */ for (int j = 1; j <= 3; j++)\r\n/* 61: */ {\r\n/* 62:81 */ paramaqu.setBlock(paramdt.offset(-1, j, -1), this.c, 2);\r\n/* 63:82 */ paramaqu.setBlock(paramdt.offset(-1, j, 1), this.c, 2);\r\n/* 64:83 */ paramaqu.setBlock(paramdt.offset(1, j, -1), this.c, 2);\r\n/* 65:84 */ paramaqu.setBlock(paramdt.offset(1, j, 1), this.c, 2);\r\n/* 66: */ }\r\n/* 67:87 */ return true;\r\n/* 68: */ }", "private c a(c blk, int i) {\n/* 450 */ int w = blk.g;\n/* 451 */ int h = blk.h;\n/* */ \n/* */ \n/* */ \n/* 455 */ if (i >= 0 && i <= 2) {\n/* */ int j;\n/* 457 */ if (blk.a() != 3) {\n/* 458 */ if (this.j == null || this.j.a() != 3) {\n/* 459 */ this.j = (c)new e();\n/* */ }\n/* 461 */ this.j.g = w;\n/* 462 */ this.j.h = h;\n/* 463 */ this.j.e = blk.e;\n/* 464 */ this.j.f = blk.f;\n/* 465 */ blk = this.j;\n/* */ } \n/* */ \n/* */ \n/* 469 */ int[] outdata = (int[])blk.b();\n/* */ \n/* */ \n/* 472 */ if (outdata == null || outdata.length < h * w) {\n/* 473 */ outdata = new int[h * w];\n/* 474 */ blk.a(outdata);\n/* */ } \n/* */ \n/* */ \n/* */ \n/* */ \n/* 480 */ if (this.m == null)\n/* 481 */ this.m = new e(); \n/* 482 */ if (this.n == null)\n/* 483 */ this.n = new e(); \n/* 484 */ if (this.o == null)\n/* 485 */ this.o = new e(); \n/* 486 */ this.o.g = blk.g;\n/* 487 */ this.o.h = blk.h;\n/* 488 */ this.o.e = blk.e;\n/* 489 */ this.o.f = blk.f;\n/* */ \n/* */ \n/* */ \n/* 493 */ this.m = (e)this.e.getInternCompData((c)this.m, 0);\n/* 494 */ int[] data0 = (int[])this.m.b();\n/* 495 */ this.n = (e)this.e.getInternCompData((c)this.n, 1);\n/* 496 */ int[] data1 = (int[])this.n.b();\n/* 497 */ this.o = (e)this.e.getInternCompData((c)this.o, 2);\n/* 498 */ int[] bdata = (int[])this.o.b();\n/* */ \n/* */ \n/* 501 */ blk.k = (this.m.k || this.n.k || this.o.k);\n/* */ \n/* 503 */ blk.i = 0;\n/* 504 */ blk.j = w;\n/* */ \n/* */ \n/* */ \n/* */ \n/* 509 */ int k = w * h - 1;\n/* 510 */ int k0 = this.m.i + (h - 1) * this.m.j + w - 1;\n/* 511 */ int k1 = this.n.i + (h - 1) * this.n.j + w - 1;\n/* 512 */ int k2 = this.o.i + (h - 1) * this.o.j + w - 1;\n/* */ \n/* 514 */ switch (i) {\n/* */ case 0:\n/* 516 */ for (j = h - 1; j >= 0; j--) {\n/* 517 */ for (int mink = k - w; k > mink; k--, k0--, k1--, k2--)\n/* */ {\n/* */ \n/* 520 */ outdata[k] = data0[k] + 2 * data1[k] + bdata[k] >> 2;\n/* */ }\n/* */ \n/* */ \n/* */ \n/* 525 */ k0 -= this.m.j - w;\n/* 526 */ k1 -= this.n.j - w;\n/* 527 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ case 1:\n/* 532 */ for (j = h - 1; j >= 0; j--) {\n/* 533 */ for (int mink = k - w; k > mink; k--, k1--, k2--)\n/* */ {\n/* */ \n/* 536 */ outdata[k] = bdata[k2] - data1[k1];\n/* */ }\n/* */ \n/* 539 */ k1 -= this.n.j - w;\n/* 540 */ k2 -= this.o.j - w;\n/* */ } \n/* */ break;\n/* */ \n/* */ case 2:\n/* 545 */ for (j = h - 1; j >= 0; j--) {\n/* 546 */ for (int mink = k - w; k > mink; k--, k0--, k1--)\n/* */ {\n/* */ \n/* 549 */ outdata[k] = data0[k0] - data1[k1];\n/* */ }\n/* */ \n/* 552 */ k0 -= this.m.j - w;\n/* 553 */ k1 -= this.n.j - w;\n/* */ } \n/* */ break;\n/* */ } \n/* */ \n/* */ } else {\n/* 559 */ if (i >= 3)\n/* */ {\n/* */ \n/* 562 */ return this.e.getInternCompData(blk, i);\n/* */ }\n/* */ \n/* */ \n/* 566 */ throw new IllegalArgumentException();\n/* */ } \n/* 568 */ return blk;\n/* */ }", "@Override\n public void func_104112_b() {\n \n }", "AnonymousClass3(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.3.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "private void exitSequence_mainRegion_State2__region0_State5() {\n\t\tnextStateIndex = 0;\n\t\tstateVector[0] = State.$NullState$;\n\t}", "@Override // X.AnonymousClass0PN\n /* Code decompiled incorrectly, please refer to instructions dump. */\n public void A0D() {\n /*\n r5 = this;\n super.A0D()\n X.08d r0 = r5.A05\n X.0OQ r4 = r0.A04()\n X.0Rk r3 = r4.A00() // Catch:{ all -> 0x003d }\n X.0BK r2 = r4.A04 // Catch:{ all -> 0x0036 }\n java.lang.String r1 = \"DELETE FROM receipt_device\"\n java.lang.String r0 = \"CLEAR_TABLE_RECEIPT_DEVICE\"\n r2.A0C(r1, r0) // Catch:{ all -> 0x0036 }\n X.08m r1 = r5.A03 // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"receipt_device_migration_complete\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_index\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n java.lang.String r0 = \"migration_receipt_device_retry\"\n r1.A02(r0) // Catch:{ all -> 0x0036 }\n r3.A00() // Catch:{ all -> 0x0036 }\n r3.close()\n r4.close()\n java.lang.String r0 = \"ReceiptDeviceStore/ReceiptDeviceDatabaseMigration/resetMigration/done\"\n com.whatsapp.util.Log.i(r0)\n return\n L_0x0036:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x0038 }\n L_0x0038:\n r0 = move-exception\n r3.close() // Catch:{ all -> 0x003c }\n L_0x003c:\n throw r0\n L_0x003d:\n r0 = move-exception\n throw r0 // Catch:{ all -> 0x003f }\n L_0x003f:\n r0 = move-exception\n r4.close() // Catch:{ all -> 0x0043 }\n L_0x0043:\n throw r0\n */\n throw new UnsupportedOperationException(\"Method not decompiled: X.C43661yk.A0D():void\");\n }", "public void cleanupOldBlocks (long threshTime) ;", "private static void removeBreakPoint() {\n for (int i=1;i<=dvm.getSourceCodeLength();i++) {\n dvm.setBreakPoint(i-1, false);\n }\n }", "@Override\n\tpublic int getReplaceBlock() {\n\t\treturn 0;\n\t}", "void m5771e() throws C0841b;", "static com.qiyukf.nimlib.p470f.p471a.C5826a m23369a(android.os.Parcel r4) {\n /*\n com.qiyukf.nimlib.f.a.a r0 = new com.qiyukf.nimlib.f.a.a\n r1 = 0\n r0.m50001init(r1)\n int r2 = r4.readInt()\n r0.f18499a = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x001d\n byte[] r2 = r4.createByteArray()\n java.nio.ByteBuffer r2 = java.nio.ByteBuffer.wrap(r2)\n r0.f18501c = r2\n L_0x001d:\n int r2 = r4.readInt()\n r0.f18500b = r2\n int r2 = r4.readInt()\n if (r2 <= 0) goto L_0x0061\n byte[] r4 = r4.createByteArray()\n int r3 = r0.f18500b\n if (r3 <= 0) goto L_0x005c\n int r1 = r0.f18500b\n if (r1 != r2) goto L_0x0049\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4)\n r0.f18502d = r4\n java.nio.ByteBuffer r4 = r0.f18502d\n r4.position(r2)\n goto L_0x0068\n L_0x0049:\n int r1 = r0.f18500b\n java.nio.ByteBuffer r1 = java.nio.ByteBuffer.allocate(r1)\n r0.f18502d = r1\n java.nio.ByteBuffer r1 = r0.f18502d\n r1.put(r4)\n goto L_0x0068\n L_0x005c:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.wrap(r4, r1, r2)\n goto L_0x0065\n L_0x0061:\n java.nio.ByteBuffer r4 = java.nio.ByteBuffer.allocate(r1)\n L_0x0065:\n r0.f18502d = r4\n L_0x0068:\n boolean r4 = m23372b(r0)\n if (r4 == 0) goto L_0x006f\n return r0\n L_0x006f:\n int r4 = r0.f18500b\n if (r4 <= 0) goto L_0x007d\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n r4.put(r1, r0)\n goto L_0x00a2\n L_0x007d:\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r4 = f18504a\n int r1 = r0.f18499a\n java.lang.Object r4 = r4.get(r1)\n com.qiyukf.nimlib.f.a.a r4 = (com.qiyukf.nimlib.p470f.p471a.C5826a) r4\n if (r4 == 0) goto L_0x00a2\n java.nio.ByteBuffer r1 = r4.f18502d\n java.nio.ByteBuffer r0 = r0.f18502d\n r1.put(r0)\n boolean r0 = m23372b(r4)\n if (r0 == 0) goto L_0x00a2\n android.util.SparseArray<com.qiyukf.nimlib.f.a.a> r0 = f18504a\n int r1 = r4.f18499a\n r0.remove(r1)\n return r4\n L_0x00a2:\n r4 = 0\n return r4\n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.qiyukf.nimlib.p470f.p471a.C5826a.C5829b.m23369a(android.os.Parcel):com.qiyukf.nimlib.f.a.a\");\n }", "private final void m11968d() {\n synchronized (this.f10173g) {\n for (zzsk a : this.f10174h) {\n a.m11971a();\n }\n }\n }", "TACBlock optimise(TACBlock code);", "public void mo1335b() {\n m18899a(false);\n }", "protected void method_2246(class_1045 param1) {\r\n // $FF: Couldn't be decompiled\r\n }", "AnonymousClass2(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01 r1) {\n /*\n // Can't load method instructions: Load method exception: bogus opcode: 00e8 in method: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void, dex: \n */\n throw new UnsupportedOperationException(\"Method not decompiled: com.mediatek.internal.telephony.worldphone.WorldPhoneOp01.2.<init>(com.mediatek.internal.telephony.worldphone.WorldPhoneOp01):void\");\n }", "public int onBlockPlaced(World par1World, int par2, int par3, int par4, int par5, float par6, float par7, float par8, int par9)\r\n/* 171: */ {\r\n/* 172:193 */ if (par9 < 12) {\r\n/* 173:194 */ return ForgeDirection.OPPOSITES[par5] + par9 & 0xF;\r\n/* 174: */ }\r\n/* 175:196 */ return par9 & 0xF;\r\n/* 176: */ }", "public final void mo91715d() {\n }" ]
[ "0.597068", "0.588975", "0.587366", "0.5837934", "0.5806638", "0.57855815", "0.5769202", "0.57680035", "0.57518214", "0.5749001", "0.5739904", "0.5727992", "0.5716763", "0.57078284", "0.56660384", "0.56636435", "0.5658732", "0.56552297", "0.56316686", "0.5592514", "0.558778", "0.55872136", "0.55845606", "0.55845606", "0.5580821", "0.5565945", "0.5563465", "0.55485857", "0.5547899", "0.5530291", "0.5525863", "0.55130845", "0.5512626", "0.551148", "0.5509878", "0.55097044", "0.55035007", "0.54979575", "0.54957414", "0.5494498", "0.5487937", "0.5486165", "0.54848623", "0.54834384", "0.54765844", "0.5475812", "0.54716516", "0.5470594", "0.54694843", "0.5464293", "0.5458737", "0.5452566", "0.5451434", "0.5445012", "0.54408884", "0.5437276", "0.54336166", "0.54290193", "0.5428214", "0.542601", "0.54241943", "0.541631", "0.54102176", "0.54064685", "0.5405911", "0.5405082", "0.54005873", "0.53909934", "0.5385457", "0.5384553", "0.5384248", "0.53808916", "0.5378722", "0.53769296", "0.53741", "0.5373547", "0.5371139", "0.53697515", "0.5366773", "0.5363935", "0.53622717", "0.53610444", "0.53558296", "0.5350372", "0.53481823", "0.5345896", "0.5345216", "0.53442717", "0.5339802", "0.5336861", "0.5334087", "0.53315526", "0.53267884", "0.5324915", "0.53202957", "0.53172696", "0.5312491", "0.5311827", "0.5303288", "0.530072", "0.5292841" ]
0.0
-1
Assumption: The two subsets don't need to be of about equal size.
private void DFS(int[] array, int level, List<Integer> list) { if (level == array.length) { if (Math.abs(sum - 2 * cur) < min) { min = Math.abs(sum - 2 * cur); } return; } cur += array[level]; list.add(array[level]); DFS(array, level + 1, list); cur -= array[level]; list.remove(list.size() - 1); DFS(array, level + 1, list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "HashSet<BitSet> createSubsetsOfLen2(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n \n for(int i=0; i<bs.length();){\n i = bs.nextSetBit(i);\n \n for(int j=i+1; j<bs.length();){\n j = bs.nextSetBit(j);\n BitSet b = new BitSet(bitsetLen);\n b.set(i, true);\n b.set(j, true);\n subsets.add(b);\n j++;\n }\n i++;\n }\n return subsets;\n }", "@Test\n\tpublic void test() {\n\t\tList<Integer[]> result = subGen.subset(9);\n\t\tassertEquals(10, result.size());\n\t\tInteger[] temp = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };\n\t\tassertEquals(Arrays.toString(temp), Arrays.toString(result.get(0)));\n\n\t\tSet<Integer[]> testSet = new HashSet<Integer[]>();\n\t\tfor (int i = 0, len = result.size(); i < len; i++) {\n\t\t\ttestSet.add(result.get(i));\n\t\t}\n\t\tassertEquals(10, testSet.size());\n\n\t\tList<Integer[]> result2 = subGen.subset(3);\n\t\tassertEquals(120, result2.size());\n\n\t}", "void Union(subset [] subsets, int x , int y ){ \n\t\tint xroot = find(subsets, x); \n\t int yroot = find(subsets, y); \n\t \n\t\tif (subsets[xroot].rank < subsets[yroot].rank) \n\t\t\tsubsets[xroot].parent = yroot; \n\t\telse if (subsets[yroot].rank < subsets[xroot].rank) \n\t\t\tsubsets[yroot].parent = xroot; \n\t\telse{ \n\t\t\tsubsets[xroot].parent = yroot; \n\t\t\tsubsets[yroot].rank++; \n\t\t} \n\t}", "HashSet<BitSet> createSubsets(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n for(int i=0; i<bs.length(); i++){\n if(bs.get(i)){\n BitSet t = (BitSet)bs.clone();\n t.flip(i);\n subsets.add(t);\n }\n }\n \n return subsets;\n }", "@Override\n public boolean subset(SetI other) {\n if (count > other.size()) {\n return false;\n }\n\n for (Integer e : this) {\n // I have but other do not...\n if (!other.contains(e)) {\n return false;\n }\n }\n return true;\n }", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n List<List<Integer>> resList = new LinkedList<>();\n List<Integer> fst = new LinkedList<>();\n\n queue.offer(fst);\n resList.add(fst);\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> list = queue.poll();\n\n int start = list.size() == 0 ? -1 : list.get(list.size() - 1);\n\n while (++start < nums.length) {\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : list) {\n newList.add(tmp);\n }\n\n newList.add(start);\n queue.offer(newList);\n resList.add(newList);\n }\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : resList) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "@Test\n public void testIsSubSet() {\n System.out.println(\"isSubSet\");\n ArrayList<Integer> arr1 = new ArrayList<>();\n arr1.add(12);\n arr1.add(10);\n arr1.add(23);\n ArrayList<Integer> arr2 = new ArrayList<>();\n arr2.add(10);\n arr2.add(23);\n Collections.sort(arr1);\n ArrayListRecursive instance = new ArrayListRecursive(arr1, arr2);\n boolean expResult = true;\n boolean result = instance.isSubSet();\n assertEquals(expResult, result);\n }", "public List<List<Integer>> subsets2(int[] nums) {\n\t\tList<List<Integer>> result = new ArrayList<>();\n\t\tList<Integer> tmp = new ArrayList<>();\n\t\tresult.add(tmp); // add empty set\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tint n = result.size();\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t// NOTE: must create a new tmp object, and add element to it.\n\t\t\t\ttmp = new ArrayList<Integer>(result.get(j));\n\t\t\t\ttmp.add(nums[i]);\n\t\t\t\tresult.add(tmp);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\n\t public void test_Is_Subset_Positive() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{1,2,3});\n\t\t assertTrue(setarray.isSubSet(subsetarray));\t \n\t }", "private static <T> List<List<T>> getSubsets( int indexToStart, int subSize, List<T> toClone, List<T> origList ) {\n List<List<T>> allSubsets = new ArrayList<List<T>>();\n for ( int i = indexToStart; i <= origList.size() - subSize; i++ ) {\n List<T> subset = new ArrayList<T>( toClone );\n subset.add( origList.get( i ) );\n if ( subSize == 1 ) {\n allSubsets.add( subset );\n } else {\n allSubsets.addAll( getSubsets( i + 1, subSize - 1, subset, origList ) );\n }\n }\n return allSubsets;\n }", "public abstract List<List<Integer>> subsets(int[] S);", "public boolean properSubset(SetSet second){\n\t\tif(subset(second) && !equals(second)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "private void subsets(int[] S, int k, ArrayList<ArrayList<Integer>> result) {\n ArrayList<Integer> set = new ArrayList<Integer>();\n helper(S, k, 0, result, set);\n }", "public List<List<Integer>> subsets2(int[] A){\n\n int res = 0;\n int diff = Integer.MIN_VALUE;\n int count = 0;\n int start = 0;\n for (int i = 1; i < A.length; i++){\n int curDiff = A[i] - A[i - 1];\n if (diff == curDiff){\n count += i - start - 1 > 0 ? i - start - 1 : 0;\n } else {\n start = i - 1;\n diff = currDiff;\n res += count;\n count = 0;\n }\n }\n res += count;\n System.out.println(res);\n return new ArrayList<List<Integer>>();\n }", "@Test\n public void testIntersection2()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 100000};\n List<Integer> expected = Collections.singletonList(100000);\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "private void createNewItemsetsFromPreviousOnes() {\n // by construction, all existing itemsets have the same size\n int currentSizeOfItemsets = itemsets.get(0).length;\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Creating itemsets of size {0} based on {1} itemsets of size {2}\", new Object[]{currentSizeOfItemsets + 1, itemsets.size(), currentSizeOfItemsets});\n\n HashMap<String, String[]> tempCandidates = new HashMap<>(); //temporary candidates\n\n // compare each pair of itemsets of size n-1\n for (int i = 0; i < itemsets.size(); i++) {\n for (int j = i + 1; j < itemsets.size(); j++) {\n String[] X = itemsets.get(i);\n String[] Y = itemsets.get(j);\n\n assert (X.length == Y.length);\n\n //make a string of the first n-2 tokens of the strings\n String[] newCand = new String[currentSizeOfItemsets + 1];\n for (int s = 0; s < newCand.length - 1; s++) {\n newCand[s] = X[s];\n }\n\n int ndifferent = 0;\n // then we find the missing value\n for (int s1 = 0; s1 < Y.length; s1++) {\n boolean found = false;\n // is Y[s1] in X?\n for (int s2 = 0; s2 < X.length; s2++) {\n if (X[s2].equals(Y[s1])) {\n found = true;\n break;\n }\n }\n if (!found) { // Y[s1] is not in X\n ndifferent++;\n // we put the missing value at the end of newCand\n newCand[newCand.length - 1] = Y[s1];\n }\n\n }\n\n // we have to find at least 1 different, otherwise it means that we have two times the same set in the existing candidates\n assert (ndifferent > 0);\n\n /*if (ndifferent==1) {\n \tArrays.sort(newCand);*/\n tempCandidates.put(Arrays.toString(newCand), newCand);\n //}\n }\n }\n\n //set the new itemsets\n itemsets = new ArrayList<>(tempCandidates.values());\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Created {0} unique itemsets of size {1}\", new Object[]{itemsets.size(), currentSizeOfItemsets + 1});\n\n }", "public boolean subset(SetSet second){\n\t\tfor(int i=0;i<size();i++){\n\t\t\tif(second.contains(get(i))==-1){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null) {\n return new ArrayList<>();\n }\n\n List<List<Integer>> queue = new ArrayList<>();\n queue.add(new LinkedList<Integer>());\n //Arrays.sort(nums);\n\n for (int num : nums) {\n int size = queue.size();\n for (int i = 0; i < size; i++) {\n List<Integer> subset = new ArrayList<>(queue.get(i));\n subset.add(num);\n queue.add(subset);\n }\n }\n\n return queue;\n }", "public boolean isSubset(/*@ non_null @*/ JMLObjectSet<E> s2) {\n if (size > s2.int_size()) {\n return false;\n } else {\n for (JMLListObjectNode<E> walker = the_list;\n walker != null;\n walker = walker.next) {\n if (!s2.has(walker.val)) {\n return false;\n }\n } \n //@ assert (\\forall Object e; ; this.has(e) ==> s2.has(e));\n return true;\n } \n }", "Boolean subset(MultiSet<X> s);", "public boolean isSubset(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\t\n\t\tfor (int i=0; i < firstArray.size(); i++) {\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false) return false;\n\t\t\t// If our second array does not contain even one element that our first array does, return false\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "@Test\r\n public void testUnion1() {\r\n int actual[] = set1.unionOfSets(set2);\r\n Assert.assertArrayEquals(new int[] { 1, 2, 3, 4, 5 }, actual);\r\n }", "public boolean isProperSubset(/*@ non_null @*/ JMLObjectSet<E> s2) {\n return size < s2.int_size() && isSubset(s2);\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n Arrays.sort(num);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>>();\n ret.add(new ArrayList<Integer>());\n \n int start = 0;\n for(int i = 0; i < num.length; i++)\n {\n int size = ret.size();\n for(int j = start; j < size; j++)\n {\n ArrayList<Integer> sub = new ArrayList<Integer>(ret.get(j));\n sub.add(num[i]);\n ret.add(sub);\n }\n if(i < num.length - 1 && num[i + 1] == num[i])\n start = size;\n else\n start = 0;\n }\n \n return ret;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n int[] S = num;\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ans = new ArrayList<ArrayList<Integer>>();\n Stack<Integer> temp = new Stack<Integer>();\n search(S, 0, temp, ans);\n return ans;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] S) {\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>> ();\n int n = S.length;\n int size = 1 << n;\n for (int i = 0; i < size; i ++) {\n ArrayList<Integer> r = new ArrayList<Integer> ();\n int k = i;\n int j = 0;\n boolean flag = true;\n while (k != 0) {\n if ((k & 1) == 1) {\n if (j + 1 < n && S[j] == S[j + 1] && (k & 2) == 0) {\n flag = false;\n break;\n }\n r.add(S[j]);\n }\n j ++;\n k = k >> 1;\n }\n if (flag) {\n ret.add(r);\n }\n }\n return ret;\n }", "public static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter n1 = \");\n\t\tint n1 = input.nextInt();\n\t\tint[] a1 = new int[n1];\n\t\tint i;\n\t\tSystem.out.println(\"Enter array-1 : \");\n\t\tfor(i=0;i<n1;i++)\n\t\t\ta1[i] = input.nextInt();\n\t\tSystem.out.print(\"Enter n2 = \");\n\t\tint n2 = input.nextInt();\n\t\tint[] a2 = new int[n2];\n\t\tSystem.out.println(\"Enter array-2 : \");\n\t\tfor(i=0;i<n2;i++)\n\t\t\ta2[i] = input.nextInt();\n\t\tHashMap<Integer,Boolean> h = new HashMap<Integer,Boolean>();\n\t\t\n\t\tfor(i=0;i<n1;i++){\n\t\t\tif (!h.containsKey(a1[i]))\n\t\t\t\th.put(a1[i],true);\n\t\t}\n\t\tint f=1;\n\t\tfor(i=0;i<n2;i++){\n\t\t\tif (! h.containsKey(a2[i]) )\n\t\t\t\tf=0;\n\t\t}\n\t\tif (f==1)\n\t\t\tSystem.out.println(\"Yes! It's a subset\");\n\t\telse\n\t\t\tSystem.out.println(\"No! It's NOT a subset\");\n\t\t\t\n\t\t\n\t\n\t}", "public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "static int numOfSubsets(int[] arr, int n, int k) {\n List<Integer> vect1 = new ArrayList<Integer>(); \n List<Integer> vect2 = new ArrayList<Integer>(); \n List<Integer> subset1 = new ArrayList<Integer>(); \n List<Integer> subset2 = new ArrayList<Integer>(); \n \n // ignore element greater than k and divide\n // array into 2 halves\n for (int i = 0; i < n; i++) {\n \n // ignore element if greater than k\n if (arr[i] > k)\n continue;\n if (i <= n / 2)\n vect1.add(arr[i]);\n else\n vect2.add(arr[i]);\n }\n \n // generate all subsets for 1st half (vect1)\n for (int i = 0; i < (1 << vect1.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect1.size(); j++) {\n if (i & (1 << j))\n value *= vect1[j];\n }\n \n // add only in case subset product is less\n // than equal to k\n if (value <= k)\n subset1.add(value);\n }\n \n // generate all subsets for 2nd half (vect2)\n for (int i = 0; i < (1 << vect2.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect2.size(); j++) {\n if (i & (1 << j))\n value *= vect2[j];\n }\n \n // add only in case subset product is\n // less than equal to k\n if (value <= k)\n subset2.add(value);\n }\n \n // sort subset2\n sort(subset2.begin(), subset2.end());\n \n int count = 0;\n for (int i = 0; i < subset1.size(); i++)\n count += upper_bound(subset2.begin(), subset2.end(),\n (k / subset1[i]))\n - subset2.begin();\n \n // for null subset decrement the value of count\n count--;\n \n // return count\n return count;\n }", "private int[] mergeTwoSet(int[] firstSet, int[] secondSet){\n int threshold = firstSet.length + 1;\n\n int[] candidate = new int[threshold];\n\n int firstIndex = 0;\n int secondIndex = 0;\n int index = 0;\n\n while ((firstIndex < firstSet.length || secondIndex < secondSet.length) && index < threshold){\n if (firstIndex == firstSet.length){\n // The end of first set is reached\n candidate[index] = secondSet[secondIndex++];\n\n } else if (secondIndex == secondSet.length){\n // The end of second set is reached\n candidate[index] = firstSet[firstIndex++];\n } else {\n // Both sets still have candidates\n if (firstSet[firstIndex] == secondSet[secondIndex]){\n candidate[index] = firstSet[firstIndex++];\n secondIndex++;\n } else if (firstSet[firstIndex] < secondSet[secondIndex]){\n candidate[index] = firstSet[firstIndex++];\n } else{\n candidate[index] = secondSet[secondIndex++];\n }\n }\n index++;\n }\n\n if (firstIndex == firstSet.length && secondIndex == secondSet.length){\n // This is a valid candidate (contains all elements from first / second set)\n return candidate;\n }\n\n return null;\n }", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "public Set Union(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\tArrayList<String> unionOfBoth = new ArrayList<String>();\n\t\t// New ArrayList to hold the final values\n\t\t\n\t\tfor (int i=0; i < 10; i++) {\n\t\t\tif (firstArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(firstArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (secondArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(secondArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSet unionReturn = new Set(unionOfBoth); // Initiate a Set object from out final ArrayList\n\t\t\n\t\treturn unionReturn; // Return the final Set Object\n\t}", "@Test\n public void testIntersection1()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {33, 100000};\n List<Integer> expected = Arrays.asList(33, 100000);\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "protected void removeFromAllSubsets()\r\n {\n if (!m_subsets.isEmpty()) {\r\n List<SubsetImpl> tmp = new ArrayList<SubsetImpl>(m_subsets);\r\n m_subsets.clear();\r\n tmp.forEach(r -> {if (r != null) r.remove(this);});\r\n }\r\n }", "private static Set symmetricSetDifference (Set<Integer> set1, Set<Integer> set2)\n {\n Set<Integer> skæringspunktet = new HashSet<Integer>(set1);\n\n // Holder på set2 også\n skæringspunktet.retainAll(set2);\n\n // Set1 fjerner alt fra Settet\n set1.removeAll(skæringspunktet);\n // Set1 fjerner alt fra Settet\n set2.removeAll(skæringspunktet);\n\n // Tilføjer alt fra set2 til set1\n set1.addAll(set2);\n\n // Returnerer set1\n return set1;\n }", "public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\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\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n\t\tArrayList<ArrayList<Integer>> rs = new ArrayList<ArrayList<Integer>> ();\n\t\t\n\t\tif(num.length == 0)\n\t\t\treturn rs;\n\t\t\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int n : num)\n\t\t{\n\t\t\tif(n > max)\n\t\t\t\tmax = n;\n\t\t\tif(n < min)\n\t\t\t\tmin = n;\n\t\t}\n\t\t\n\t\tint len = max - min + 1;\n\t\tint[] r = new int[len];\n\t\t\n\t\t//HashMap<Integer, Integer> records = new HashMap<Integer, Integer> ();\n\t\tfor(int i = 0; i < num.length; i++)\n\t\t{\n\t\t\tint k = num[i] - min;\n\t\t\t/* if(records.contains(k))\n\t\t\t\trecords.put(k, records.get(k)+1);\n\t\t\telse\n\t\t\t\trecords.put(k, 1); */\n\t\t\tr[k]++;\n\t\t}\n\t\t\n\t\treturn exec(0, r, min);\n }", "public boolean isSubset() {\n return isSubset;\n }", "public boolean isSubset() {\n return isSubset;\n }", "public static boolean isEqualSet(Collection set1, Collection set2) {\n/* 99 */ if (set1 == set2) {\n/* 100 */ return true;\n/* */ }\n/* 102 */ if (set1 == null || set2 == null || set1.size() != set2.size()) {\n/* 103 */ return false;\n/* */ }\n/* */ \n/* 106 */ return set1.containsAll(set2);\n/* */ }", "public SetSet setDifference(SetSet second){\n\t\tSetSet result = new SetSet();\n\t\tfor(int i=0;i<size();i++){\n\t\t\tif(second.contains(get(i))==-1){\n\t\t\t\tresult.add(get(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Test\r\n\t\tpublic void testUnion() {\n\t\t\ttestingSet = new IntegerSet(list1);\r\n\t\t\ttestingSet2= new IntegerSet(list2);\r\n\t\t\t// 3rd set =to the union of the two lists \r\n\t\t\ttestingSet3= new IntegerSet(union);\r\n\t\t\t// 4th set equal to the union of sets 1 and 2 \r\n\t\t\ttestingSet4= testingSet.union(testingSet, testingSet2);\r\n\t\t\t// sets 3 and 4 should be equal\r\n\t\t\t// assertEquals method is deprecated \r\n\t\t\tassertArrayEquals(testingSet3.toArray(),testingSet4.toArray());\r\n\t\t\t \r\n\t\t}", "static boolean isSubset(int Tab1[], int Tab2[], int m, int n)\n {\n // compléter\n //Trouver le max de Tab1[]\n int max=Tab1[0];\n for(int i = 1; i < m; i++) {\n\t\t\tif (Tab1[i]>max){\n max=Tab1[i];\n }\n\t\t}\n \n\t\t//Stockage de la Tab1 dans une table de hashage\n\t\tint[] hashTable = new int[max];\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\thashTable[hash(Tab1[i], max)] = Tab1[i];\n\t\t}\n\t\t\n\t\t//verifier que chaque element (de Tab2) existe dans la hashtable\n\t\tfor(int j = 0; j < n; j++) {\n\t\t\tif(Tab2[j] != hashTable[hash(Tab2[j], max)]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n return true;\n \n //Complexite aymptotique :\n /*\n Puisque la boucle qui a le plus d'itérations est celle avec l'élément m, la compléxité\n asymptotique est O(m).\n f(m,n) = 2m + n = O(m), puisque m > n\n */\n \n\n }", "public List<List<Integer>> subsets1(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n int level = -1;\n\n queue.offer(new LinkedList<>());\n\n while (++level < nums.length) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> cur = queue.poll();\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : cur) {\n newList.add(tmp);\n }\n\n newList.add(level);\n queue.offer(cur);\n queue.offer(newList);\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : queue) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "public static boolean isSubset(int[] large, int[] small){\n HashSet<Integer> hs = new HashSet<>(20, 0.9f);\n for(int i : large)\n hs.add(new Integer(i));\n for(int i = 0; i < small.length; i++)\n if(!hs.contains(small[i]))\n return false;\n return true;\n }", "SelectSubSet createSelectSubSet();", "public static boolean isSubset(Vector v1, Vector v2) {\n\t\tif (v1 == null || v2 == null || v1.equals(v2) || v1.size() >= v2.size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (Object o1 : v1) {\n\t\t\tif (!v2.contains(o1)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "private static List<List<Integer>> subsetsHelper(int[] nums, int start) {\n\t\tif(start==nums.length) {\n\t\t\tArrayList<List<Integer>> out=new ArrayList<>();\n\t\t\tout.add(new ArrayList<>());\n\t\t\treturn out;\n\t\t}\n\n\t\tList<List<Integer>> child=subsetsHelper(nums, start+1);\n\t\tList<List<Integer>> ans=new ArrayList<List<Integer>>(child);\n\t\tArrayList<Integer> row;\n\t\tfor(int i=0;i<child.size();i++) {\n\t\t\trow=new ArrayList<>();\n\t\t\tfor(int j=0;j<child.get(i).size();j++) {\n\t\t\t\trow.add(child.get(i).get(j));\n\t\t\t}\n\t\t\trow.add(nums[start]);\n\t\t\tans.add(row);\n\t\t}\n\n\n\t\treturn ans;\n\t}", "public static void main(String[] args) {\n\t\t\n\t\t\tint[] nums={1,2,3};\n\t\t\n\t\t\tList <List<Integer>>mainList = new ArrayList<List<Integer>>();\n\t\t \n\t List<Integer> list = new ArrayList<Integer>();\n\t \n\t \n\t HashSet<List<Integer>> set = new HashSet<List<Integer>>();\n\t \n\t \n\t for(int j=0;j<nums.length;j++)\n\t list.add(nums[j]);\n\t \n\t int k=0;\n\t mainList.add(list);\n\t set.add(list);\n\t subSetList(mainList,list,set,k);\n\t\t System.out.println(\"mainList\"+ mainList);\n\t\t System.out.println(\"set\"+ set);\n\n\t}", "public boolean subset(ZYSet<ElementType> potentialSubset){\n for(ElementType e:potentialSubset){\n if(!this.contains(e)){\n return false;\n }\n }\n return true;\n }", "public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }", "public ArrBag<T> intersection( ArrBag<T> other )\n {\n int intersectCount = 0;\n ArrBag<T> intersectionArray;\n if (other.size() > this.size() )\n {\n intersectionArray = new ArrBag<T>(other.size()); \n }\n else \n {\n intersectionArray = new ArrBag<T>(this.size()); \n\n for (int i = 0; i <other.size(); i++){\n if (this.contains (other.get(i))){\n intersectionArray.add(other.get(i));\n intersectCount ++; \n }\n }\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE INTERSECT\n \n }\n return intersectionArray;\n }", "private boolean alreadySeenSubset(List<Integer> subset,\n\t\t\tList<List<Integer>> prevSeenSubsets) {\n\n\t\tCollections.sort(subset);\n\n\t\tfor (List<Integer> seenSubset : prevSeenSubsets) {\n\t\t\tCollections.sort(seenSubset);\n\n\t\t\tif (subset.size() != seenSubset.size()) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\n\t\t\t\tboolean allValsEqual = true;\n\t\t\t\tfor (int i = 0; i < subset.size(); i++) {\n\t\t\t\t\tif (subset.get(i).intValue() != seenSubset.get(i)\n\t\t\t\t\t\t\t.intValue()) {\n\t\t\t\t\t\tallValsEqual = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (allValsEqual) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "public ZYSet<ElementType> intersection(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "@Override\n public SetInterface<T> difference(SetInterface<T> rhs) {\n //create return SetInterface\n SetInterface<T> result = new ArraySet();\n //Look through the calling set\n for(int i = 0; i < numItems; i++){\n //if the item is NOT also in the param set, add it to result\n if(!rhs.contains(arr[i]))\n result.addItem(arr[i]);\n }\n return result;\n }", "private int[] hashSetMethod(int[] nums1, int[] nums2) {\n HashSet<Integer> s = new HashSet<Integer>();\n for (Integer i : nums1) {\n if (!s.contains(i)) s.add(i);\n }\n HashSet<Integer> intersection = new HashSet<Integer>();\n for (Integer i : nums2) {\n if (s.contains(i) && !intersection.contains(i)) {\n \tintersection.add(i);\n }\n }\n int[] res = new int[intersection.size()];\n Iterator<Integer> iter = intersection.iterator();\n for (int i = 0; iter.hasNext(); i++) {\n res[i] = iter.next();\n }\n return res;\n }", "public static Set<Set<Object>> createSubsets(int n, int k) {\n Set<Set<Object>> power_set = new HashSet<Set<Object>>(); //power set\n Set<Set<Object>> set_of_subsets = new HashSet<Set<Object>>(); //only \"tickets\" set\n List<Object> set_list = new ArrayList<Object>(); //set\n \n double power_set_size;\n int mask;\n \n //determine the size of a power set\n power_set_size = Math.pow(2, n);\n \n //create a list containing all numbers from 1 to n\n for (int i = 0; i < n; i++) {\n set_list.add(i+1);\n }\n \n //create a powerset based on the set\n for(int i = 0; i < power_set_size; i++){\n \n Set<Object> subset = new HashSet<Object>();\n mask = 1;\n \n for(int j = 0; j < n; j++){\n \n if((mask & i) != 0){\n subset.add(set_list.get(j));\n }\n mask = mask << 1;\n }\n power_set.add(subset);\n }\n \n //pick all the subsets from a power set that are size k\n for(Set<Object> curr_subset : power_set) {\n if(curr_subset.size() == k) {\n set_of_subsets.add(curr_subset);\n }\n }\n return set_of_subsets;\n }", "@Test\r\n\t\tpublic void testIntersection() {\n\t\t\ttestingSet = new IntegerSet(list1);\r\n\t\t\ttestingSet2= new IntegerSet(list2);\r\n\t\t\t// create 3rdset = to the intersection list \r\n\t\t\ttestingSet3= new IntegerSet(intersection);\r\n\t\t\t// create 4th set =to the intersection of set1 and set2\r\n\t\t\ttestingSet4= testingSet.intersection(testingSet, testingSet2);\r\n\t\t\t// sets 3 and set 4 should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet3.toArray(),testingSet4.toArray());\t \r\n\t\t}", "public ArrayList<ArrayList<Integer>> subsets(int[] S) {\n\t\t\n\t\tArrays.sort(S);\n\n\t\tArrayList<ArrayList<Integer>> results = new ArrayList<ArrayList<Integer>>();\n\t\tresults.add(new ArrayList<Integer>());\n\n\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\tint prev_size = results.size();\n\t\t\tfor (int j = 0; j < prev_size; j++) {\n\t\t\t\tArrayList<Integer> r = new ArrayList<Integer>(results.get(j));\n\t\t\t\tr.add(S[i]);\n\t\t\t\tresults.add(r);\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t}", "public List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> list = new ArrayList<>();\n\n if (nums == null || nums.length == 0) {\n return list;\n }\n\n // Arrays.sort(nums);\n backtrack(list, new ArrayList<>(), nums, 0);\n return list;\n }", "public static void main(String[] args) {\n\t\tint[] arr1 = { 10, 12, 55, 32, 17 };\n\t\tint[] arr2 = { 10, 12, 55, 32, 17 };\n\t\t/*//Second set\n\t\tint[] arr1 = {10,12,55,32,17,99};\n\t\tint[] arr2 = {10,12,55,32,17}};*/\n\t\t/* //Third set\n\t\tint[] arr1 = {10,12,55,32,17};\n\t\tint[] arr2 = {10,12,99,32,17}};*/\n\n\t\tArraysIdentical arrayidentical = new ArraysIdentical();\n\t\tarrayidentical.identicalCheck(arr1, arr2);\n\n\t}", "@Test\n public void testIntersection5()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 200000};\n List<Integer> expected = new ArrayList<>();\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "Boolean same(MultiSet<X> s);", "public ZYSet<ElementType> union(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n result.add(e);\n }\n for(ElementType e :otherSet){\n result.add(e);\n }\n \n return result;\n }", "Boolean superset(MultiSet<X> s);", "public genSubset_result(genSubset_result other) {\n if (other.isSetEx()) {\n this.ex = new IOException(other.ex);\n }\n }", "@Override\n public SetI intersection(SetI other) {\n int[] newArr;\n int i = 0;\n SetI shorter, longer;\n\n // Begin with a shorter one.\n if (count > other.size()) {\n shorter = other;\n longer = this;\n newArr = new int[other.size()];\n }\n else {\n shorter = this;\n longer = other;\n newArr = new int[count];\n }\n\n // For each element I have,\n for (Integer e : shorter) {\n // If you also have it...\n if (longer.contains(e)) {\n newArr[i++] = e;\n }\n }\n\n return new Set(newArr, i);\n }", "public List<String> wordSubsets(String[] A, String[] B) {\n Map<String, Map<Character, Integer>> map = new HashMap<>();\n\n for(String b: B){\n Map<Character, Integer> cur = new HashMap<>();\n for(char c: b.toCharArray()){\n cur.put(c, cur.getOrDefault(c, 0) + 1);\n }\n map.put(b, cur);\n }\n\n List<String> res = new ArrayList<>();\n for(String a: A){\n Map<Character, Integer> aCur = new HashMap<>();\n for(char c: a.toCharArray()){\n aCur.put(c, aCur.getOrDefault(c, 0) + 1);\n }\n boolean isValid = true;\n for(String other: B){\n if(!valid(map, other, aCur)){\n isValid = false;\n break;\n }\n }\n if(isValid) res.add(a);\n }\n return res;\n }", "public static void main(String[] args) {\n\t\tArraySet as = new ArraySet(10);\n\t\tArraySet as2 = new ArraySet();\n\n\t\t//Testing add method\n\t\tas.add(1);\n\t\tas.add(2);\n\t\tas.add(3);\n\t\tas.add(6);\n\t\tas.add(5);\n\t\tas.add(23);\n\n\t\tas2.add(2);\n\t\tas2.add(3);\n\n\t\t//Testing size method\n\t\tSystem.out.println(\"Size of as: \" + as.size() + \"\\nSize of as2: \" + as2.size());\n\n\t\t//Testing contains method\n\t\tSystem.out.println(\"as contains 2: \" + as.contains(2) + \"\\nas2 contains 5: \" + as2.contains(5));\n\n\t\t//Testing addall method\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"Testing addall on as : \" + as.toString() +\"\\nTesting addall on as2: \" + as2.toString());\n\n\t\t//Testing remove method\n\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Testing remove 5 on as: \" + as.remove(5));\n\t\t\tSystem.out.println(\"Testing remove 33 on as2: \" + as2.remove(12));\n\n\t\t} catch (NoSuchElementException name) {\n\t\t\tSystem.out.println(\"NoSuchElementException: \" + name.getMessage());\n\t\t}\n\n\t\t//Testing removeRandom method\n\t\tSystem.out.println(\"Testing removeRandom on as: \" + as.removeRandom());\n\n\t\t//Testing union method\n\t\tas.add(7);\n\t\tas.add(56);\n\n\t\tas2.add(45);\n\t\tas2.add(8);\n\t\tSystem.out.println(\"Testing union method on as: \" + as.union(as2));\n\n\t\t//Testing equals method\n\t\tSystem.out.println(\"Testing equals method: \" + as.equals(as2));\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\n\n\t\tSystem.out.println(\"Testing equals method: \" + as2.equals(as));\n\n\t\t//Testing difference method\n\t\tas2.remove(6);\n\t\tSystem.out.println(\"Testing difference method: \" + as.difference(as2));\n\n\t}", "public List<List<Integer>> subsets(int[] nums) {\n int size = nums.length;\n if (size == 0) {\n return new LinkedList();\n }\n\n List<List<Integer>> res = new LinkedList<>();\n dfs(nums, 0, new LinkedList<Integer>(), res);\n return res;\n\n }", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n combinationDFS(nums, 0, buffer, true); \n \n return res; \n }", "private boolean isSubsetOf(int firstRow, int secondRow) {\n for (int i = 0; i < universalSetSize; i++) {\n if (input[firstRow][i] && !input[secondRow][i]) {\n return false;\n }\n }\n return true;\n }", "@Test\r\n public void NegativeTestSize1() {\r\n Assert.assertNotEquals(1, set1.size());\r\n }", "private static void recurseSubsetsWithDuplicates(\n List<List<Integer>> answer, List<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n if (i > startIndex && nums[i] == nums[i - 1]) {\n continue; // skip duplicates\n }\n\n currentAnswer.add(nums[i]);\n recurseSubsetsWithDuplicates(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }", "@Test\n\tpublic void testAddAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t Set<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.addAll(setB);\n\t Set<Integer> union = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));\n\t assertEquals(setA, union);\n }", "public int[] intersection(int[] nums1, int[] nums2) {\n \n HashSet<Integer> set = new HashSet<>();\n ArrayList<Integer> inter = new ArrayList<>();\n if(nums1.length > nums2.length)\n {\n for(int i = 0; i < nums1.length ;i ++)\n set.add(nums1[i]);\n\n for(int i = 0; i < nums2.length ;i ++)\n if(set.contains(nums2[i])&& !inter.contains(nums2[i]))\n inter.add(nums2[i]);\n }\n else {\n for(int i = 0; i < nums2.length ;i ++)\n set.add(nums2[i]);\n\n for(int i = 0; i < nums1.length ;i ++)\n if(set.contains(nums1[i]) && !inter.contains(nums1[i]))\n inter.add(nums1[i]);\n }\n\n int [] arr = new int[inter.size()];\n for(int i = 0; i < arr.length ;i ++)\n arr[i] = inter.get(i);\n return arr;\n\n }", "@Test\n public void testIntersection4()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n ConciseSet set2 = new ConciseSet();\n for (int i = 0; i < 1000; i++) {\n set1.add(i);\n if (i != 500) {\n set2.add(i);\n expected.add(i);\n }\n }\n\n verifyIntersection(expected, set1, set2);\n }", "private static void recurseSubsets(\n List<List<Integer>> answer, ArrayList<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n currentAnswer.add(nums[i]);\n recurseSubsets(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }", "public static List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n //res.add(new ArrayList<Integer>());\n \n if(nums == null || nums.length == 0) \n return res;\n \n helper(nums, 0, res);\n return res;\n }", "public int[] intersectionUsingSets(int[] nums1, int[] nums2) {\n Set<Integer> setA = new HashSet<>();\n Set<Integer> intersection = new HashSet<>();\n for (int num : nums1) {\n setA.add(num);\n }\n\n for (int num : nums2) {\n if (setA.contains(num)) {\n intersection.add(num);\n }\n }\n\n return getIntersectionResult(intersection);\n }", "public List<List<Integer>> subsets(int[] nums) {\n List result = new ArrayList();\n if (nums == null || nums.length == 0) {\n return result;\n }\n \n //Arrays.sort(nums);\n helper(nums, 0, result, new ArrayList<Integer>());\n return result;\n }", "private boolean validationPhase(Secret secretA, Secret secretB, int smallestSize, double[] optimalBox) {\n\n\t\t// number of all possible subsets with a size of smallestSize\n\t\tint numberSubsets; \n\t\tif((secretA.getTimes().size() / smallestSize) <= (secretB.getTimes().size() / smallestSize)) {\n\t\t\tnumberSubsets = (secretA.getTimes().size() / smallestSize);\n\t\t} else {\n\t\t\tnumberSubsets = (secretB.getTimes().size() / smallestSize);\n\t\t}\n\n\t\t// rest of the size modulo all subsets\n\t\tint restA = secretA.getTimes().size() % (numberSubsets * smallestSize);\n\t\tint restB = secretB.getTimes().size() % (numberSubsets * smallestSize);\n\n\t\tArrayList<Time> subsetA; \n\t\tArrayList<Time> subsetB;\n\n\t\tint countWrongResults = 0;\n\n\t\tArrayList<String> validateSubsetSignificantDifferent = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapA = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapB = new ArrayList<String>();\n\t\tArrayList<Time> prevSubsetA = new ArrayList<Time>();\n\t\tArrayList<Time> prevSubsetB = new ArrayList<Time>();\n\n\n\t\tfor (int i = 0; i < numberSubsets; ++i) {\n\n\t\t\tint countInvalid = 0;\n\t\t\t// the rest will be deducted at the beginning\n\t\t\tsubsetA = secretA.getBisectedTimes(restA + (smallestSize * i), smallestSize);\n\t\t\tsubsetB = secretB.getBisectedTimes(restB + (smallestSize * i), smallestSize);\n\n\t\t\tCollections.sort(subsetA);\n\t\t\tCollections.sort(subsetB);\n\n\t\t\tif (BoxTest.boxTestSmaller(subsetA, subsetB, optimalBox)) {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"o\");\n\n\t\t\t} else {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"x\");\n\t\t\t\t//logger.info(\"subset \" + i + \": wrong result\");\n\t\t\t\t++countInvalid;\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 0) {\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetA, subsetA, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"o\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t} \n\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetB, subsetB, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"o\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": right result\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different, subset A overlaps\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(countInvalid > 0) {\n\t\t\t\t++countWrongResults;\n\t\t\t}\n\n\t\t\tprevSubsetA = new ArrayList<Time>();\n\t\t\tprevSubsetB = new ArrayList<Time>();\n\n\t\t\tprevSubsetA = subsetA;\n\t\t\tprevSubsetB = subsetB;\n\t\t}\n\n\t\tdouble confidenceInterval = 100 - (countWrongResults * 100 / numberSubsets);\n\n\t\tthis.boxTestResults.get(this.boxTestResults.size() - 1).saveValidation(smallestSize, confidenceInterval, validateSubsetOverlapA, validateSubsetOverlapB, validateSubsetSignificantDifferent);\n\t\tlogger.finest(\"\\n\\\"o\\\" = successful box test \\n\\\"x\\\" = unsuccesful box test\\n\");\n\t\tlogger.finest(secretA.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapA));\n\t\tlogger.finest(secretB.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapB));\n\t\tlogger.finest(secretA.getName() + \" < \" + secretB.getName() + \": \" + Folder.convertArrayListToString(validateSubsetSignificantDifferent));\n\n\t\tlogger.info(secretA.getName() + \" < \" + secretB.getName() + \": validate smallest size \" + smallestSize + \": \" + countWrongResults + \" out of \" + numberSubsets + \" comparisons returned wrong results.\");\n\n\t\tif(countWrongResults != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "@Override\r\n\tpublic MySet intersectSets(MySet[] t) {\r\n\t\tallElements = new ArrayList<Integer>();\r\n\r\n\t\t\r\n\t\tfor(Object element: t[0]) {\r\n\t\t\tallElements.add(element);\r\n\t\t}\r\n\t\r\n\t\tfor(Object e: allElements) {\r\n\t\t\tInteger c = map.getOrDefault(e, 0);\r\n\t\t\tmap.put((E)e, c + 1);\r\n\t\t}\r\n\t\t\r\n\t\tMySet<E> returnSet = (MySet<E>) new Set2<Integer>();\r\n\t\tfor(Map.Entry<E, Integer> entry :map.entrySet())\r\n\t\t\tif(entry.getValue() >= dataSet[0].length) // check\r\n\t\t\t\treturnSet.add(entry.getKey());\r\n\t\t\r\n\t\t\r\n\t\treturn returnSet;\r\n\t}", "public Set Difference(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\tArrayList<String> differenceOfBoth = new ArrayList<String>();\n\t\t// New ArrayList to hold the final values\n\t\t\n\t\tfor (int i=0; i < firstArray.size(); i++) {\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false && differenceOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\tdifferenceOfBoth.add(firstArray.get(i));\n\t\t\t\t// If our second array does not contain that same element as our first array, our final ArrayList does not already contain the element, and the element is not\n\t\t\t\t// an empty string (A string containing the phrase \"emptyElement\"), then add the element to our final ArrayList\n\t\t\t}\n\t\t\t\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false && differenceOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\tdifferenceOfBoth.add(\"\");\n\t\t\t\t// If our second array does not contain that same element as our first array, our final ArrayList does not already contain the element, and the element is\n\t\t\t\t// an empty string (A string containing the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t}\n\t\t}\n\t\t\t\t\n\t\tSet differenceReturn = new Set(differenceOfBoth); // Initiate a Set object from our final ArrayList\n\t\t\n\t\treturn differenceReturn; // Return the final Set Object\n\t}", "private static HashSet<Annotation> setDifference(HashSet<Annotation> setA,\r\n\t\t\tHashSet<Annotation> setB) {\r\n\r\n\t\tHashSet<Annotation> tmp = new HashSet<Annotation>(setA);\r\n\t\ttmp.removeAll(setB);\r\n\t\treturn tmp;\r\n\t}", "@Override\n public SetInterface<T> union(SetInterface<T> rhs) {\n //Declare return SetInterface\n SetInterface<T> answer = new ArraySet();\n //Add the items from the calling ArraySet to the return Set\n for (int i = 0; i < this.numItems; i++){\n answer.addItem(arr[i]);\n }\n //Convert the other set to an array in case it isnt and to \n //ease iteration\n T[] other = rhs.toArray();\n //Add the items from RHS to return Set\n for (int j = 0; j < rhs.getSize(); j++){\n answer.addItem(other[j]);\n }\n //Return the answer\n return answer; \n }", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n normalDFS(nums, 0, buffer); \n \n return res; \n }", "public boolean subset (Bag u) {\n return true;\n }", "private boolean isSubset(List<ConceptLabel> outer, List<ConceptLabel> inner){\n\t\tfor(ConceptLabel in: inner){\n\t\t\tboolean c = false;\n\t\t\tfor(ConceptLabel l: outer){\n\t\t\t\tif(l.getText().equals(in.getText())){\n\t\t\t\t\tc = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!c)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "protected int[] resubset(int[] newset) {\n\t\tfor (int i = 0; i < newset.length; i++) {\n\t\t\tnewset[i] = subset[newset[i]];\n\t\t}\n\t\treturn newset;\n\t}", "private static List<Integer> getCommonElementsAlgo1(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> list1 = new ArrayList<Integer>();\n\t\tfor (int i : arr1) {\n\t\t\tlist1.add(i);\n\t\t}\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tfor (int i : arr2) {\n\t\t\tlist2.add(i);\n\t\t}\n\t\tif (list1.size() > list2.size()) {\n\t\t\tlist1.retainAll(list2);\n\t\t\treturn list1;\n\t\t}\n\t\telse {\n\t\t\tlist2.retainAll(list1);\n\t\t\treturn list2;\n\t\t}\n\t\t\n\t}", "@Test\n\t public void test_Union_Set_Same() throws Exception{\n\t\t int[] setarray1= new int[]{1,2,3};\n\t\t int[] setarray2= new int[]{1,2,3};\n\t\t SET set = new SET(setarray1);\n\t\t int returnedArrOperation[] =set.Union(setarray1,setarray2); \n\t\t int []expectedArr = new int[] {1,2,3};\n\t\t Assert.assertArrayEquals( expectedArr, returnedArrOperation );\n\t }", "public static void main(String[] args)\n {\n BitSet bs1 = new BitSet();\n BitSet bs2 = new BitSet();\n\n /* assigning values to set1*/\n bs1.set(0);\n bs1.set(1);\n bs1.set(3);\n bs1.set(4);\n\n // assign values to bs2\n bs2.set(4);\n bs2.set(6);\n bs2.set(5);\n bs2.set(1);\n bs2.set(2);\n bs2.set(3);\n bs2.set(12);\n\n // Printing the 2 Bitsets\n System.out.println(\"bs1 : \" + bs1);\n System.out.println(\"bs2 : \" + bs2);\n\n // Print the first clear bit of bs1\n System.out.println(bs1.nextClearBit(1));\n\n // Print the first clear bit of bs2 after index 3\n System.out.println(bs2.nextClearBit(3));\n }", "public static void main(String[] args) {\n\t\tHashSet set1 = new HashSet();\n\n\t\t/*\n\t\t * It creates empty HS object with specified initial capacity and\n\t\t * default fill ratio 0.75. \n\t\t * HashSet set2 = new HashSet(int initialCapacity);\n\t\t */\n\t\tHashSet set2 = new HashSet(20);\n\n\t\t/*\n\t\t * It creates equivalent HS object for given Collection\n\t\t * HashSet set3 = new HashSet(Collection c);\n\t\t */\n\t\tArrayList list = new ArrayList();\n\t\tlist.add(1);\n\t\tlist.add(1);\n\t\tSystem.out.println(\"List is \" + list);\n\t\tHashSet set3 = new HashSet(list);\n\t\tSystem.out.println(\"equivalent HashSet is \" + set3);\n\n\t}", "public static void main(String[] args) {\n\t\tint[] nums1 = {4,9,5};\r\n\t\tint[] nums2 = {9,4,9,8,4};\r\n\t\t//System.out.println(intersection(nums1, nums2));\r\n\t\tArrays.sort(nums1);\r\n\t\tArrays.sort(nums2);\r\n\t\tif (nums1.length>nums2.length) {\r\n\t\t\tint[] temp = nums2;\r\n\t\t\tnums2 = nums1;\r\n\t\t\tnums1 = temp;\r\n\t\t}\r\n\t\tHashSet<Integer> mSet1 = new HashSet<Integer>();\r\n\t\tHashSet<Integer> mSet2 = new HashSet<Integer>();\r\n\t\tfor (Integer i : nums2) {\r\n\t\t\tmSet1.add(i);\r\n\t\t}\r\n\t\tfor (Integer x: nums1) {\r\n\t\t\tif (mSet1.contains(x)) {\r\n\t\t\t\tmSet2.add(x);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint[] r = new int[mSet2.size()];\r\n\t\tint index = 0;\r\n\t\tfor (Integer g: mSet2) {\r\n\t\t\tr[index] = g;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "@Test\n public void testIntersection6()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n for (int i = 0; i < 5; i++) {\n set1.add(i);\n }\n for (int i = 1000; i < 1005; i++) {\n set1.add(i);\n }\n\n ConciseSet set2 = new ConciseSet();\n for (int i = 800; i < 805; i++) {\n set2.add(i);\n }\n for (int i = 806; i < 1005; i++) {\n set2.add(i);\n }\n\n for (int i = 1000; i < 1005; i++) {\n expected.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "static int nonDivisibleSubset(int k, int[] S) {\n\t\tint result = 0;\n\n\t\tArrayList < ArrayList < Integer >> solutions = new ArrayList < ArrayList < Integer >>();\n\t\tArrayList < HashSet < Integer >> minSets = new ArrayList < HashSet < Integer >>();\n\n\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( S [ 0 ])));\n\t\tminSets.add (new HashSet <Integer > ( ));\n\t\tminSets.get(0).add ( S [ 0 ] % k);\n\n\n\t\t// Go over all the numbers\n\t\tfor ( int i = 1; i < S.length; i++ ){\n\t\t\tint n = S [ i ]; \n\t\t\tint m = S [ i ] % k; // Number we will add to all the elements of all the minSets.\n\n\t\t\t// Go over all the minSets.\n\t\t\t// For each one, check that each element plus m is not divisible by k.\n\n\t\t\tboolean workedForASet = false;\n\t\t\tfor ( int j = 0; j < minSets.size(); j++){\n\t\t\t\t// For each set, check all the elements of the set.\n\n\t\t\t\tHashSet < Integer > minSet = minSets.get(j);\n\t\t\t\tIterator < Integer > iter = minSet.iterator();\n\n\t\t\t\tboolean works = true;\n\t\t\t\twhile ( iter.hasNext() && works ){\n\t\t\t\t\tint num = iter.next();\n\t\t\t\t\tif ( (num + m) % k == 0 ){\n\t\t\t\t\t\tworks = false;\n\t\t\t\t\t\tworkedForASet = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( works ){\n\t\t\t\t\tsolutions.get(j).add(n);\n\t\t\t\t\tminSet.add(m);\n\t\t\t\t}\n\t\t\t} \n\n\t\t\tif ( !workedForASet ){\n\t\t\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( n )));\n\t\t\t\tminSets.add (new HashSet <Integer > ( ));\n\t\t\t\tminSets.get (minSets.size() - 1).add ( m ); \n\t\t\t} \n\t\t}\n\n\t\t// Find the solution with the most elements.\n\n\t\tfor ( ArrayList <Integer > solution : solutions ){\n\t\t\tresult = Math.max ( result, solution.size() );\n\t\t\tSystem.out.println ( solution );\n\t\t}\n\n\t\tif ( result == 1 ) result = 0;\n\t\treturn result;\n\t}", "@Override\n public SetInterface<T> intersection(SetInterface<T> rhs) {\n //Declare return SetInterface\n SetInterface<T> result = new ArraySet();\n //If the item is in both sets, add it to the result\n //Iterate through the calling Set\n for (int i = 0; i < numItems; i++){\n //if the item is also in RHS, add it to the result\n if(rhs.contains(arr[i]))\n result.addItem(arr[i]);\n }\n return result;\n }", "@Test\n void descendingSetDescendingSetReturnsOriginalSet() {\n assertArrayEquals(filledSet.toArray(), reverseSet.descendingSet().toArray());\n }" ]
[ "0.7219576", "0.7080832", "0.6879907", "0.686052", "0.674576", "0.67277104", "0.6646343", "0.6613798", "0.6605881", "0.6517347", "0.65051126", "0.6489482", "0.64763695", "0.6436263", "0.6403408", "0.6399758", "0.6368575", "0.63682413", "0.6365293", "0.6331071", "0.6280361", "0.6240789", "0.6236554", "0.6196755", "0.61632997", "0.61491144", "0.6139069", "0.61361283", "0.6128508", "0.6128423", "0.60763544", "0.605824", "0.605551", "0.60104084", "0.6009484", "0.60075665", "0.5993323", "0.5974047", "0.5959416", "0.59541446", "0.59541446", "0.5953531", "0.59446716", "0.5935859", "0.5933007", "0.5932621", "0.59193426", "0.5908362", "0.5908269", "0.5903089", "0.5892716", "0.5889997", "0.58863676", "0.5885699", "0.5884333", "0.5877845", "0.58768016", "0.58715177", "0.5862719", "0.5855262", "0.58488053", "0.5846232", "0.58456385", "0.5840293", "0.5836875", "0.58331066", "0.5825369", "0.5815623", "0.5805877", "0.5797424", "0.57901806", "0.5789488", "0.57742137", "0.5774074", "0.57734793", "0.5770839", "0.5766585", "0.5765366", "0.57598513", "0.5753534", "0.57523966", "0.57379746", "0.57314193", "0.57306474", "0.57303154", "0.5724189", "0.5720664", "0.57143176", "0.57121927", "0.57108974", "0.5709921", "0.57001966", "0.56957203", "0.56955034", "0.56854093", "0.5684541", "0.5666823", "0.5658763", "0.56576717", "0.56483775", "0.56465805" ]
0.0
-1
Assumption: The two subsets need to be of about equal size.
private void DFS2(int[] array, int level, List<Integer> list) { if (level == array.length) { if ((array.length % 2 == 0 && list.size() == array.length / 2) || (array.length % 2 == 1 && (list.size() == array.length / 2 || list.size() == array.length / 2 + 1))) { if (Math.abs(sum - 2 * cur) < min) { min = Math.abs(sum - 2 * cur); } } return; } cur += array[level]; list.add(array[level]); DFS2(array, level + 1, list); cur -= array[level]; list.remove(list.size() - 1); DFS2(array, level + 1, list); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Test\r\n public void testIsSubset1() {\r\n Assert.assertEquals(false, set1.isSubset(set2));\r\n }", "HashSet<BitSet> createSubsetsOfLen2(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n \n for(int i=0; i<bs.length();){\n i = bs.nextSetBit(i);\n \n for(int j=i+1; j<bs.length();){\n j = bs.nextSetBit(j);\n BitSet b = new BitSet(bitsetLen);\n b.set(i, true);\n b.set(j, true);\n subsets.add(b);\n j++;\n }\n i++;\n }\n return subsets;\n }", "@Test\n\tpublic void test() {\n\t\tList<Integer[]> result = subGen.subset(9);\n\t\tassertEquals(10, result.size());\n\t\tInteger[] temp = { 0, 1, 2, 3, 4, 5, 6, 7, 8 };\n\t\tassertEquals(Arrays.toString(temp), Arrays.toString(result.get(0)));\n\n\t\tSet<Integer[]> testSet = new HashSet<Integer[]>();\n\t\tfor (int i = 0, len = result.size(); i < len; i++) {\n\t\t\ttestSet.add(result.get(i));\n\t\t}\n\t\tassertEquals(10, testSet.size());\n\n\t\tList<Integer[]> result2 = subGen.subset(3);\n\t\tassertEquals(120, result2.size());\n\n\t}", "void Union(subset [] subsets, int x , int y ){ \n\t\tint xroot = find(subsets, x); \n\t int yroot = find(subsets, y); \n\t \n\t\tif (subsets[xroot].rank < subsets[yroot].rank) \n\t\t\tsubsets[xroot].parent = yroot; \n\t\telse if (subsets[yroot].rank < subsets[xroot].rank) \n\t\t\tsubsets[yroot].parent = xroot; \n\t\telse{ \n\t\t\tsubsets[xroot].parent = yroot; \n\t\t\tsubsets[yroot].rank++; \n\t\t} \n\t}", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n List<List<Integer>> resList = new LinkedList<>();\n List<Integer> fst = new LinkedList<>();\n\n queue.offer(fst);\n resList.add(fst);\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> list = queue.poll();\n\n int start = list.size() == 0 ? -1 : list.get(list.size() - 1);\n\n while (++start < nums.length) {\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : list) {\n newList.add(tmp);\n }\n\n newList.add(start);\n queue.offer(newList);\n resList.add(newList);\n }\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : resList) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "HashSet<BitSet> createSubsets(BitSet bs){\n HashSet<BitSet> subsets = new HashSet<>();\n for(int i=0; i<bs.length(); i++){\n if(bs.get(i)){\n BitSet t = (BitSet)bs.clone();\n t.flip(i);\n subsets.add(t);\n }\n }\n \n return subsets;\n }", "private static <T> List<List<T>> getSubsets( int indexToStart, int subSize, List<T> toClone, List<T> origList ) {\n List<List<T>> allSubsets = new ArrayList<List<T>>();\n for ( int i = indexToStart; i <= origList.size() - subSize; i++ ) {\n List<T> subset = new ArrayList<T>( toClone );\n subset.add( origList.get( i ) );\n if ( subSize == 1 ) {\n allSubsets.add( subset );\n } else {\n allSubsets.addAll( getSubsets( i + 1, subSize - 1, subset, origList ) );\n }\n }\n return allSubsets;\n }", "public abstract List<List<Integer>> subsets(int[] S);", "public List<List<Integer>> subsets2(int[] nums) {\n\t\tList<List<Integer>> result = new ArrayList<>();\n\t\tList<Integer> tmp = new ArrayList<>();\n\t\tresult.add(tmp); // add empty set\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tint n = result.size();\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t// NOTE: must create a new tmp object, and add element to it.\n\t\t\t\ttmp = new ArrayList<Integer>(result.get(j));\n\t\t\t\ttmp.add(nums[i]);\n\t\t\t\tresult.add(tmp);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "@Override\n public boolean subset(SetI other) {\n if (count > other.size()) {\n return false;\n }\n\n for (Integer e : this) {\n // I have but other do not...\n if (!other.contains(e)) {\n return false;\n }\n }\n return true;\n }", "private void subsets(int[] S, int k, ArrayList<ArrayList<Integer>> result) {\n ArrayList<Integer> set = new ArrayList<Integer>();\n helper(S, k, 0, result, set);\n }", "@Test\n public void testIsSubSet() {\n System.out.println(\"isSubSet\");\n ArrayList<Integer> arr1 = new ArrayList<>();\n arr1.add(12);\n arr1.add(10);\n arr1.add(23);\n ArrayList<Integer> arr2 = new ArrayList<>();\n arr2.add(10);\n arr2.add(23);\n Collections.sort(arr1);\n ArrayListRecursive instance = new ArrayListRecursive(arr1, arr2);\n boolean expResult = true;\n boolean result = instance.isSubSet();\n assertEquals(expResult, result);\n }", "@Test\n\t public void test_Is_Subset_Negative() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{7,8});\n\t\t assertFalse(setarray.isSubSet(subsetarray));\t \n\t }", "public List<List<Integer>> subsets2(int[] A){\n\n int res = 0;\n int diff = Integer.MIN_VALUE;\n int count = 0;\n int start = 0;\n for (int i = 1; i < A.length; i++){\n int curDiff = A[i] - A[i - 1];\n if (diff == curDiff){\n count += i - start - 1 > 0 ? i - start - 1 : 0;\n } else {\n start = i - 1;\n diff = currDiff;\n res += count;\n count = 0;\n }\n }\n res += count;\n System.out.println(res);\n return new ArrayList<List<Integer>>();\n }", "@Test\n\t public void test_Is_Subset_Positive() throws Exception{\t\n\t\t SET setarray= new SET( new int[]{1,2,3,4,5});\n\t\t SET subsetarray= new SET( new int[]{1,2,3});\n\t\t assertTrue(setarray.isSubSet(subsetarray));\t \n\t }", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null) {\n return new ArrayList<>();\n }\n\n List<List<Integer>> queue = new ArrayList<>();\n queue.add(new LinkedList<Integer>());\n //Arrays.sort(nums);\n\n for (int num : nums) {\n int size = queue.size();\n for (int i = 0; i < size; i++) {\n List<Integer> subset = new ArrayList<>(queue.get(i));\n subset.add(num);\n queue.add(subset);\n }\n }\n\n return queue;\n }", "@Test\n public void testIntersection2()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 100000};\n List<Integer> expected = Collections.singletonList(100000);\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "private void createNewItemsetsFromPreviousOnes() {\n // by construction, all existing itemsets have the same size\n int currentSizeOfItemsets = itemsets.get(0).length;\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Creating itemsets of size {0} based on {1} itemsets of size {2}\", new Object[]{currentSizeOfItemsets + 1, itemsets.size(), currentSizeOfItemsets});\n\n HashMap<String, String[]> tempCandidates = new HashMap<>(); //temporary candidates\n\n // compare each pair of itemsets of size n-1\n for (int i = 0; i < itemsets.size(); i++) {\n for (int j = i + 1; j < itemsets.size(); j++) {\n String[] X = itemsets.get(i);\n String[] Y = itemsets.get(j);\n\n assert (X.length == Y.length);\n\n //make a string of the first n-2 tokens of the strings\n String[] newCand = new String[currentSizeOfItemsets + 1];\n for (int s = 0; s < newCand.length - 1; s++) {\n newCand[s] = X[s];\n }\n\n int ndifferent = 0;\n // then we find the missing value\n for (int s1 = 0; s1 < Y.length; s1++) {\n boolean found = false;\n // is Y[s1] in X?\n for (int s2 = 0; s2 < X.length; s2++) {\n if (X[s2].equals(Y[s1])) {\n found = true;\n break;\n }\n }\n if (!found) { // Y[s1] is not in X\n ndifferent++;\n // we put the missing value at the end of newCand\n newCand[newCand.length - 1] = Y[s1];\n }\n\n }\n\n // we have to find at least 1 different, otherwise it means that we have two times the same set in the existing candidates\n assert (ndifferent > 0);\n\n /*if (ndifferent==1) {\n \tArrays.sort(newCand);*/\n tempCandidates.put(Arrays.toString(newCand), newCand);\n //}\n }\n }\n\n //set the new itemsets\n itemsets = new ArrayList<>(tempCandidates.values());\n Logger.getLogger(Apriori.class.getName()).log(Level.INFO, \"Created {0} unique itemsets of size {1}\", new Object[]{itemsets.size(), currentSizeOfItemsets + 1});\n\n }", "public boolean properSubset(SetSet second){\n\t\tif(subset(second) && !equals(second)){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "public static void main(String[] args){\n\t\tScanner input = new Scanner(System.in);\n\t\tSystem.out.print(\"Enter n1 = \");\n\t\tint n1 = input.nextInt();\n\t\tint[] a1 = new int[n1];\n\t\tint i;\n\t\tSystem.out.println(\"Enter array-1 : \");\n\t\tfor(i=0;i<n1;i++)\n\t\t\ta1[i] = input.nextInt();\n\t\tSystem.out.print(\"Enter n2 = \");\n\t\tint n2 = input.nextInt();\n\t\tint[] a2 = new int[n2];\n\t\tSystem.out.println(\"Enter array-2 : \");\n\t\tfor(i=0;i<n2;i++)\n\t\t\ta2[i] = input.nextInt();\n\t\tHashMap<Integer,Boolean> h = new HashMap<Integer,Boolean>();\n\t\t\n\t\tfor(i=0;i<n1;i++){\n\t\t\tif (!h.containsKey(a1[i]))\n\t\t\t\th.put(a1[i],true);\n\t\t}\n\t\tint f=1;\n\t\tfor(i=0;i<n2;i++){\n\t\t\tif (! h.containsKey(a2[i]) )\n\t\t\t\tf=0;\n\t\t}\n\t\tif (f==1)\n\t\t\tSystem.out.println(\"Yes! It's a subset\");\n\t\telse\n\t\t\tSystem.out.println(\"No! It's NOT a subset\");\n\t\t\t\n\t\t\n\t\n\t}", "public boolean subset(SetSet second){\n\t\tfor(int i=0;i<size();i++){\n\t\t\tif(second.contains(get(i))==-1){\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public boolean isSubset(/*@ non_null @*/ JMLObjectSet<E> s2) {\n if (size > s2.int_size()) {\n return false;\n } else {\n for (JMLListObjectNode<E> walker = the_list;\n walker != null;\n walker = walker.next) {\n if (!s2.has(walker.val)) {\n return false;\n }\n } \n //@ assert (\\forall Object e; ; this.has(e) ==> s2.has(e));\n return true;\n } \n }", "static int numOfSubsets(int[] arr, int n, int k) {\n List<Integer> vect1 = new ArrayList<Integer>(); \n List<Integer> vect2 = new ArrayList<Integer>(); \n List<Integer> subset1 = new ArrayList<Integer>(); \n List<Integer> subset2 = new ArrayList<Integer>(); \n \n // ignore element greater than k and divide\n // array into 2 halves\n for (int i = 0; i < n; i++) {\n \n // ignore element if greater than k\n if (arr[i] > k)\n continue;\n if (i <= n / 2)\n vect1.add(arr[i]);\n else\n vect2.add(arr[i]);\n }\n \n // generate all subsets for 1st half (vect1)\n for (int i = 0; i < (1 << vect1.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect1.size(); j++) {\n if (i & (1 << j))\n value *= vect1[j];\n }\n \n // add only in case subset product is less\n // than equal to k\n if (value <= k)\n subset1.add(value);\n }\n \n // generate all subsets for 2nd half (vect2)\n for (int i = 0; i < (1 << vect2.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect2.size(); j++) {\n if (i & (1 << j))\n value *= vect2[j];\n }\n \n // add only in case subset product is\n // less than equal to k\n if (value <= k)\n subset2.add(value);\n }\n \n // sort subset2\n sort(subset2.begin(), subset2.end());\n \n int count = 0;\n for (int i = 0; i < subset1.size(); i++)\n count += upper_bound(subset2.begin(), subset2.end(),\n (k / subset1[i]))\n - subset2.begin();\n \n // for null subset decrement the value of count\n count--;\n \n // return count\n return count;\n }", "public boolean isSubset(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\t\n\t\tfor (int i=0; i < firstArray.size(); i++) {\n\t\t\tif (secondArray.contains(firstArray.get(i)) == false) return false;\n\t\t\t// If our second array does not contain even one element that our first array does, return false\n\t\t}\n\t\t\n\t\treturn true;\n\t}", "private int[] mergeTwoSet(int[] firstSet, int[] secondSet){\n int threshold = firstSet.length + 1;\n\n int[] candidate = new int[threshold];\n\n int firstIndex = 0;\n int secondIndex = 0;\n int index = 0;\n\n while ((firstIndex < firstSet.length || secondIndex < secondSet.length) && index < threshold){\n if (firstIndex == firstSet.length){\n // The end of first set is reached\n candidate[index] = secondSet[secondIndex++];\n\n } else if (secondIndex == secondSet.length){\n // The end of second set is reached\n candidate[index] = firstSet[firstIndex++];\n } else {\n // Both sets still have candidates\n if (firstSet[firstIndex] == secondSet[secondIndex]){\n candidate[index] = firstSet[firstIndex++];\n secondIndex++;\n } else if (firstSet[firstIndex] < secondSet[secondIndex]){\n candidate[index] = firstSet[firstIndex++];\n } else{\n candidate[index] = secondSet[secondIndex++];\n }\n }\n index++;\n }\n\n if (firstIndex == firstSet.length && secondIndex == secondSet.length){\n // This is a valid candidate (contains all elements from first / second set)\n return candidate;\n }\n\n return null;\n }", "@Test\r\n public void testUnion1() {\r\n int actual[] = set1.unionOfSets(set2);\r\n Assert.assertArrayEquals(new int[] { 1, 2, 3, 4, 5 }, actual);\r\n }", "Boolean subset(MultiSet<X> s);", "private static List<List<Integer>> subsetsHelper(int[] nums, int start) {\n\t\tif(start==nums.length) {\n\t\t\tArrayList<List<Integer>> out=new ArrayList<>();\n\t\t\tout.add(new ArrayList<>());\n\t\t\treturn out;\n\t\t}\n\n\t\tList<List<Integer>> child=subsetsHelper(nums, start+1);\n\t\tList<List<Integer>> ans=new ArrayList<List<Integer>>(child);\n\t\tArrayList<Integer> row;\n\t\tfor(int i=0;i<child.size();i++) {\n\t\t\trow=new ArrayList<>();\n\t\t\tfor(int j=0;j<child.get(i).size();j++) {\n\t\t\t\trow.add(child.get(i).get(j));\n\t\t\t}\n\t\t\trow.add(nums[start]);\n\t\t\tans.add(row);\n\t\t}\n\n\n\t\treturn ans;\n\t}", "public boolean isProperSubset(/*@ non_null @*/ JMLObjectSet<E> s2) {\n return size < s2.int_size() && isSubset(s2);\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] S) {\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>> ();\n int n = S.length;\n int size = 1 << n;\n for (int i = 0; i < size; i ++) {\n ArrayList<Integer> r = new ArrayList<Integer> ();\n int k = i;\n int j = 0;\n boolean flag = true;\n while (k != 0) {\n if ((k & 1) == 1) {\n if (j + 1 < n && S[j] == S[j + 1] && (k & 2) == 0) {\n flag = false;\n break;\n }\n r.add(S[j]);\n }\n j ++;\n k = k >> 1;\n }\n if (flag) {\n ret.add(r);\n }\n }\n return ret;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n Arrays.sort(num);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>>();\n ret.add(new ArrayList<Integer>());\n \n int start = 0;\n for(int i = 0; i < num.length; i++)\n {\n int size = ret.size();\n for(int j = start; j < size; j++)\n {\n ArrayList<Integer> sub = new ArrayList<Integer>(ret.get(j));\n sub.add(num[i]);\n ret.add(sub);\n }\n if(i < num.length - 1 && num[i + 1] == num[i])\n start = size;\n else\n start = 0;\n }\n \n return ret;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n int[] S = num;\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ans = new ArrayList<ArrayList<Integer>>();\n Stack<Integer> temp = new Stack<Integer>();\n search(S, 0, temp, ans);\n return ans;\n }", "public List<List<Integer>> subsets1(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n int level = -1;\n\n queue.offer(new LinkedList<>());\n\n while (++level < nums.length) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> cur = queue.poll();\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : cur) {\n newList.add(tmp);\n }\n\n newList.add(level);\n queue.offer(cur);\n queue.offer(newList);\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : queue) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "@Test\n public void testIntersection1()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {33, 100000};\n List<Integer> expected = Arrays.asList(33, 100000);\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "@Test\r\n\t\tpublic void testIntersection() {\n\t\t\ttestingSet = new IntegerSet(list1);\r\n\t\t\ttestingSet2= new IntegerSet(list2);\r\n\t\t\t// create 3rdset = to the intersection list \r\n\t\t\ttestingSet3= new IntegerSet(intersection);\r\n\t\t\t// create 4th set =to the intersection of set1 and set2\r\n\t\t\ttestingSet4= testingSet.intersection(testingSet, testingSet2);\r\n\t\t\t// sets 3 and set 4 should be equal \r\n\t\t\t// assertEquals for these parameters is a deprecated method \r\n\t\t\tassertArrayEquals(testingSet3.toArray(),testingSet4.toArray());\t \r\n\t\t}", "public ArrayList<ArrayList<Integer>> subsets(int[] S) {\n\t\t\n\t\tArrays.sort(S);\n\n\t\tArrayList<ArrayList<Integer>> results = new ArrayList<ArrayList<Integer>>();\n\t\tresults.add(new ArrayList<Integer>());\n\n\t\tfor (int i = 0; i < S.length; i++) {\n\t\t\tint prev_size = results.size();\n\t\t\tfor (int j = 0; j < prev_size; j++) {\n\t\t\t\tArrayList<Integer> r = new ArrayList<Integer>(results.get(j));\n\t\t\t\tr.add(S[i]);\n\t\t\t\tresults.add(r);\n\t\t\t}\n\t\t}\n\n\t\treturn results;\n\t}", "protected void removeFromAllSubsets()\r\n {\n if (!m_subsets.isEmpty()) {\r\n List<SubsetImpl> tmp = new ArrayList<SubsetImpl>(m_subsets);\r\n m_subsets.clear();\r\n tmp.forEach(r -> {if (r != null) r.remove(this);});\r\n }\r\n }", "@Test\r\n\t\tpublic void testUnion() {\n\t\t\ttestingSet = new IntegerSet(list1);\r\n\t\t\ttestingSet2= new IntegerSet(list2);\r\n\t\t\t// 3rd set =to the union of the two lists \r\n\t\t\ttestingSet3= new IntegerSet(union);\r\n\t\t\t// 4th set equal to the union of sets 1 and 2 \r\n\t\t\ttestingSet4= testingSet.union(testingSet, testingSet2);\r\n\t\t\t// sets 3 and 4 should be equal\r\n\t\t\t// assertEquals method is deprecated \r\n\t\t\tassertArrayEquals(testingSet3.toArray(),testingSet4.toArray());\r\n\t\t\t \r\n\t\t}", "private static void recurseSubsets(\n List<List<Integer>> answer, ArrayList<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n currentAnswer.add(nums[i]);\n recurseSubsets(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }", "static boolean isSubset(int Tab1[], int Tab2[], int m, int n)\n {\n // compléter\n //Trouver le max de Tab1[]\n int max=Tab1[0];\n for(int i = 1; i < m; i++) {\n\t\t\tif (Tab1[i]>max){\n max=Tab1[i];\n }\n\t\t}\n \n\t\t//Stockage de la Tab1 dans une table de hashage\n\t\tint[] hashTable = new int[max];\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\thashTable[hash(Tab1[i], max)] = Tab1[i];\n\t\t}\n\t\t\n\t\t//verifier que chaque element (de Tab2) existe dans la hashtable\n\t\tfor(int j = 0; j < n; j++) {\n\t\t\tif(Tab2[j] != hashTable[hash(Tab2[j], max)]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n return true;\n \n //Complexite aymptotique :\n /*\n Puisque la boucle qui a le plus d'itérations est celle avec l'élément m, la compléxité\n asymptotique est O(m).\n f(m,n) = 2m + n = O(m), puisque m > n\n */\n \n\n }", "public boolean isSubset() {\n return isSubset;\n }", "public boolean isSubset() {\n return isSubset;\n }", "SelectSubSet createSelectSubSet();", "public ArrBag<T> intersection( ArrBag<T> other )\n {\n int intersectCount = 0;\n ArrBag<T> intersectionArray;\n if (other.size() > this.size() )\n {\n intersectionArray = new ArrBag<T>(other.size()); \n }\n else \n {\n intersectionArray = new ArrBag<T>(this.size()); \n\n for (int i = 0; i <other.size(); i++){\n if (this.contains (other.get(i))){\n intersectionArray.add(other.get(i));\n intersectCount ++; \n }\n }\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE INTERSECT\n \n }\n return intersectionArray;\n }", "public static void main(String[] args) {\n\t\t\n\t\t\tint[] nums={1,2,3};\n\t\t\n\t\t\tList <List<Integer>>mainList = new ArrayList<List<Integer>>();\n\t\t \n\t List<Integer> list = new ArrayList<Integer>();\n\t \n\t \n\t HashSet<List<Integer>> set = new HashSet<List<Integer>>();\n\t \n\t \n\t for(int j=0;j<nums.length;j++)\n\t list.add(nums[j]);\n\t \n\t int k=0;\n\t mainList.add(list);\n\t set.add(list);\n\t subSetList(mainList,list,set,k);\n\t\t System.out.println(\"mainList\"+ mainList);\n\t\t System.out.println(\"set\"+ set);\n\n\t}", "public static boolean isSubset(Vector v1, Vector v2) {\n\t\tif (v1 == null || v2 == null || v1.equals(v2) || v1.size() >= v2.size()) {\n\t\t\treturn false;\n\t\t}\n\t\tfor (Object o1 : v1) {\n\t\t\tif (!v2.contains(o1)) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t}\n\t\treturn true;\n\t}", "public static Set<Set<Object>> createSubsets(int n, int k) {\n Set<Set<Object>> power_set = new HashSet<Set<Object>>(); //power set\n Set<Set<Object>> set_of_subsets = new HashSet<Set<Object>>(); //only \"tickets\" set\n List<Object> set_list = new ArrayList<Object>(); //set\n \n double power_set_size;\n int mask;\n \n //determine the size of a power set\n power_set_size = Math.pow(2, n);\n \n //create a list containing all numbers from 1 to n\n for (int i = 0; i < n; i++) {\n set_list.add(i+1);\n }\n \n //create a powerset based on the set\n for(int i = 0; i < power_set_size; i++){\n \n Set<Object> subset = new HashSet<Object>();\n mask = 1;\n \n for(int j = 0; j < n; j++){\n \n if((mask & i) != 0){\n subset.add(set_list.get(j));\n }\n mask = mask << 1;\n }\n power_set.add(subset);\n }\n \n //pick all the subsets from a power set that are size k\n for(Set<Object> curr_subset : power_set) {\n if(curr_subset.size() == k) {\n set_of_subsets.add(curr_subset);\n }\n }\n return set_of_subsets;\n }", "private static Set<String> m23474a(Set<String> set, Set<String> set2) {\n if (set.isEmpty()) {\n return set2;\n }\n if (set2.isEmpty()) {\n return set;\n }\n HashSet hashSet = new HashSet(set.size() + set2.size());\n hashSet.addAll(set);\n hashSet.addAll(set2);\n return hashSet;\n }", "public Set Union(Set secondSet) {\n\t\t\n\t\tArrayList<String> firstArray = noDuplicates(stringArray);\n\t\t// Taking out duplications out of our sets by calling the noDuplicates private function\n\t\tArrayList<String> secondArray = noDuplicates(secondSet.returnArray());\n\t\t\n\t\tArrayList<String> unionOfBoth = new ArrayList<String>();\n\t\t// New ArrayList to hold the final values\n\t\t\n\t\tfor (int i=0; i < 10; i++) {\n\t\t\tif (firstArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(firstArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(firstArray.get(i)) == false && firstArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (secondArray.size() > i) {\n\t\t\t\tif (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\") == false) {\n\t\t\t\t\tunionOfBoth.add(secondArray.get(i));\n\t\t\t\t\t// If our final ArrayList does not already contain the element, and the item is not an empty string\n\t\t\t\t\t// (Does not contain the phrase \"emptyElement\"), then add it to our final ArrayList\n\t\t\t\t}\n\t\t\t\telse if (unionOfBoth.contains(secondArray.get(i)) == false && secondArray.get(i).equals(\"emptyElement\")) {\n\t\t\t\t\tunionOfBoth.add(\"\");\n\t\t\t\t\t// If our final ArrayList does not already contain the element, but the item is an empty string\n\t\t\t\t\t// (Does contain the phrase \"emptyElement\"), then add an empty string to our final ArrayList\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\tSet unionReturn = new Set(unionOfBoth); // Initiate a Set object from out final ArrayList\n\t\t\n\t\treturn unionReturn; // Return the final Set Object\n\t}", "public static boolean isSubset(int[] large, int[] small){\n HashSet<Integer> hs = new HashSet<>(20, 0.9f);\n for(int i : large)\n hs.add(new Integer(i));\n for(int i = 0; i < small.length; i++)\n if(!hs.contains(small[i]))\n return false;\n return true;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] num) {\n\t\tArrayList<ArrayList<Integer>> rs = new ArrayList<ArrayList<Integer>> ();\n\t\t\n\t\tif(num.length == 0)\n\t\t\treturn rs;\n\t\t\n\t\tint max = Integer.MIN_VALUE;\n\t\tint min = Integer.MAX_VALUE;\n\t\tfor(int n : num)\n\t\t{\n\t\t\tif(n > max)\n\t\t\t\tmax = n;\n\t\t\tif(n < min)\n\t\t\t\tmin = n;\n\t\t}\n\t\t\n\t\tint len = max - min + 1;\n\t\tint[] r = new int[len];\n\t\t\n\t\t//HashMap<Integer, Integer> records = new HashMap<Integer, Integer> ();\n\t\tfor(int i = 0; i < num.length; i++)\n\t\t{\n\t\t\tint k = num[i] - min;\n\t\t\t/* if(records.contains(k))\n\t\t\t\trecords.put(k, records.get(k)+1);\n\t\t\telse\n\t\t\t\trecords.put(k, 1); */\n\t\t\tr[k]++;\n\t\t}\n\t\t\n\t\treturn exec(0, r, min);\n }", "public List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> list = new ArrayList<>();\n\n if (nums == null || nums.length == 0) {\n return list;\n }\n\n // Arrays.sort(nums);\n backtrack(list, new ArrayList<>(), nums, 0);\n return list;\n }", "private boolean validationPhase(Secret secretA, Secret secretB, int smallestSize, double[] optimalBox) {\n\n\t\t// number of all possible subsets with a size of smallestSize\n\t\tint numberSubsets; \n\t\tif((secretA.getTimes().size() / smallestSize) <= (secretB.getTimes().size() / smallestSize)) {\n\t\t\tnumberSubsets = (secretA.getTimes().size() / smallestSize);\n\t\t} else {\n\t\t\tnumberSubsets = (secretB.getTimes().size() / smallestSize);\n\t\t}\n\n\t\t// rest of the size modulo all subsets\n\t\tint restA = secretA.getTimes().size() % (numberSubsets * smallestSize);\n\t\tint restB = secretB.getTimes().size() % (numberSubsets * smallestSize);\n\n\t\tArrayList<Time> subsetA; \n\t\tArrayList<Time> subsetB;\n\n\t\tint countWrongResults = 0;\n\n\t\tArrayList<String> validateSubsetSignificantDifferent = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapA = new ArrayList<String>();\n\t\tArrayList<String> validateSubsetOverlapB = new ArrayList<String>();\n\t\tArrayList<Time> prevSubsetA = new ArrayList<Time>();\n\t\tArrayList<Time> prevSubsetB = new ArrayList<Time>();\n\n\n\t\tfor (int i = 0; i < numberSubsets; ++i) {\n\n\t\t\tint countInvalid = 0;\n\t\t\t// the rest will be deducted at the beginning\n\t\t\tsubsetA = secretA.getBisectedTimes(restA + (smallestSize * i), smallestSize);\n\t\t\tsubsetB = secretB.getBisectedTimes(restB + (smallestSize * i), smallestSize);\n\n\t\t\tCollections.sort(subsetA);\n\t\t\tCollections.sort(subsetB);\n\n\t\t\tif (BoxTest.boxTestSmaller(subsetA, subsetB, optimalBox)) {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"o\");\n\n\t\t\t} else {\n\t\t\t\tvalidateSubsetSignificantDifferent.add(\"x\");\n\t\t\t\t//logger.info(\"subset \" + i + \": wrong result\");\n\t\t\t\t++countInvalid;\n\t\t\t}\n\t\t\t\n\t\t\tif(i != 0) {\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetA, subsetA, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"o\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapA.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t} \n\n\t\t\t\tif (BoxTest.boxTestOverlap(prevSubsetB, subsetB, optimalBox)) {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"o\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": right result\");\n\n\t\t\t\t} else {\n\t\t\t\t\tvalidateSubsetOverlapB.add(\"x\");\n\t\t\t\t\t//logger.info(\"subset \" + i + \": only significant different, subset A overlaps\");\n\t\t\t\t\t++countInvalid;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tif(countInvalid > 0) {\n\t\t\t\t++countWrongResults;\n\t\t\t}\n\n\t\t\tprevSubsetA = new ArrayList<Time>();\n\t\t\tprevSubsetB = new ArrayList<Time>();\n\n\t\t\tprevSubsetA = subsetA;\n\t\t\tprevSubsetB = subsetB;\n\t\t}\n\n\t\tdouble confidenceInterval = 100 - (countWrongResults * 100 / numberSubsets);\n\n\t\tthis.boxTestResults.get(this.boxTestResults.size() - 1).saveValidation(smallestSize, confidenceInterval, validateSubsetOverlapA, validateSubsetOverlapB, validateSubsetSignificantDifferent);\n\t\tlogger.finest(\"\\n\\\"o\\\" = successful box test \\n\\\"x\\\" = unsuccesful box test\\n\");\n\t\tlogger.finest(secretA.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapA));\n\t\tlogger.finest(secretB.getName() + \" overlaps: \" + Folder.convertArrayListToString(validateSubsetOverlapB));\n\t\tlogger.finest(secretA.getName() + \" < \" + secretB.getName() + \": \" + Folder.convertArrayListToString(validateSubsetSignificantDifferent));\n\n\t\tlogger.info(secretA.getName() + \" < \" + secretB.getName() + \": validate smallest size \" + smallestSize + \": \" + countWrongResults + \" out of \" + numberSubsets + \" comparisons returned wrong results.\");\n\n\t\tif(countWrongResults != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\treturn true;\n\t}", "public List<List<Integer>> subsets(int[] nums) {\n int size = nums.length;\n if (size == 0) {\n return new LinkedList();\n }\n\n List<List<Integer>> res = new LinkedList<>();\n dfs(nums, 0, new LinkedList<Integer>(), res);\n return res;\n\n }", "public static List<List<Integer>> subsets(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n //res.add(new ArrayList<Integer>());\n \n if(nums == null || nums.length == 0) \n return res;\n \n helper(nums, 0, res);\n return res;\n }", "@Test\n public void testIntersection5()\n {\n final int[] ints1 = {33, 100000};\n final int[] ints2 = {34, 200000};\n List<Integer> expected = new ArrayList<>();\n\n ConciseSet set1 = new ConciseSet();\n for (int i : ints1) {\n set1.add(i);\n }\n ConciseSet set2 = new ConciseSet();\n for (int i : ints2) {\n set2.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "private static void recurseSubsetsWithDuplicates(\n List<List<Integer>> answer, List<Integer> currentAnswer, int[] nums, int startIndex) {\n answer.add(new ArrayList<>(currentAnswer)); // clone\n\n for (int i = startIndex; i < nums.length; i++) {\n if (i > startIndex && nums[i] == nums[i - 1]) {\n continue; // skip duplicates\n }\n\n currentAnswer.add(nums[i]);\n recurseSubsetsWithDuplicates(answer, currentAnswer, nums, i + 1); // i+1: don't reuse nums[i]\n currentAnswer.remove(currentAnswer.size() - 1);\n }\n }", "public List<String> wordSubsets(String[] A, String[] B) {\n Map<String, Map<Character, Integer>> map = new HashMap<>();\n\n for(String b: B){\n Map<Character, Integer> cur = new HashMap<>();\n for(char c: b.toCharArray()){\n cur.put(c, cur.getOrDefault(c, 0) + 1);\n }\n map.put(b, cur);\n }\n\n List<String> res = new ArrayList<>();\n for(String a: A){\n Map<Character, Integer> aCur = new HashMap<>();\n for(char c: a.toCharArray()){\n aCur.put(c, aCur.getOrDefault(c, 0) + 1);\n }\n boolean isValid = true;\n for(String other: B){\n if(!valid(map, other, aCur)){\n isValid = false;\n break;\n }\n }\n if(isValid) res.add(a);\n }\n return res;\n }", "public List<List<Integer>> subsets(int[] nums) {\n List result = new ArrayList();\n if (nums == null || nums.length == 0) {\n return result;\n }\n \n //Arrays.sort(nums);\n helper(nums, 0, result, new ArrayList<Integer>());\n return result;\n }", "public static void main(String[] args) {\n\t\tint[] arr1 = { 10, 12, 55, 32, 17 };\n\t\tint[] arr2 = { 10, 12, 55, 32, 17 };\n\t\t/*//Second set\n\t\tint[] arr1 = {10,12,55,32,17,99};\n\t\tint[] arr2 = {10,12,55,32,17}};*/\n\t\t/* //Third set\n\t\tint[] arr1 = {10,12,55,32,17};\n\t\tint[] arr2 = {10,12,99,32,17}};*/\n\n\t\tArraysIdentical arrayidentical = new ArraysIdentical();\n\t\tarrayidentical.identicalCheck(arr1, arr2);\n\n\t}", "private int[] hashSetMethod(int[] nums1, int[] nums2) {\n HashSet<Integer> s = new HashSet<Integer>();\n for (Integer i : nums1) {\n if (!s.contains(i)) s.add(i);\n }\n HashSet<Integer> intersection = new HashSet<Integer>();\n for (Integer i : nums2) {\n if (s.contains(i) && !intersection.contains(i)) {\n \tintersection.add(i);\n }\n }\n int[] res = new int[intersection.size()];\n Iterator<Integer> iter = intersection.iterator();\n for (int i = 0; iter.hasNext(); i++) {\n res[i] = iter.next();\n }\n return res;\n }", "public static boolean isEqualSet(Collection set1, Collection set2) {\n/* 99 */ if (set1 == set2) {\n/* 100 */ return true;\n/* */ }\n/* 102 */ if (set1 == null || set2 == null || set1.size() != set2.size()) {\n/* 103 */ return false;\n/* */ }\n/* */ \n/* 106 */ return set1.containsAll(set2);\n/* */ }", "public static void main(String[] args) {\n\t\tInteger [] a= {1,4,7, 9, 2};\n\t\tInteger [] b={1,7,3,4,5};\n\t\tArrayList <Integer> c=new ArrayList<Integer>();\n\t\tfor(int i=0;i<a.length;i++)\n\t\t{\n\t\t\tfor(int j=0;j<b.length;j++)\n\t\t\t{\n\t\t\t\tif(a[i]==b[j])\n\t\t\t\t{\n\t\t\t\t\tif(!c.contains(a[i]))\n\t\t\t\t\t{\n\t\t\t\t\t\tc.add(a[i]);\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\tSystem.out.println(\"First Method : \"+c);\n\t\t//second method\n\t\tList<Integer> arr1=Arrays.asList(a);\n\t\tList<Integer> arr2=Arrays.asList(b);\n\t\tHashSet<Integer> aset=new HashSet<>(arr1);\n\t\taset.retainAll(arr2);\n\t\tSystem.out.println(\"Second Method: \"+aset);\n\t\t\n\t}", "public static void main(String[] args) {\n\t\tArraySet as = new ArraySet(10);\n\t\tArraySet as2 = new ArraySet();\n\n\t\t//Testing add method\n\t\tas.add(1);\n\t\tas.add(2);\n\t\tas.add(3);\n\t\tas.add(6);\n\t\tas.add(5);\n\t\tas.add(23);\n\n\t\tas2.add(2);\n\t\tas2.add(3);\n\n\t\t//Testing size method\n\t\tSystem.out.println(\"Size of as: \" + as.size() + \"\\nSize of as2: \" + as2.size());\n\n\t\t//Testing contains method\n\t\tSystem.out.println(\"as contains 2: \" + as.contains(2) + \"\\nas2 contains 5: \" + as2.contains(5));\n\n\t\t//Testing addall method\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"Testing addall on as : \" + as.toString() +\"\\nTesting addall on as2: \" + as2.toString());\n\n\t\t//Testing remove method\n\n\t\ttry {\n\n\t\t\tSystem.out.println(\"Testing remove 5 on as: \" + as.remove(5));\n\t\t\tSystem.out.println(\"Testing remove 33 on as2: \" + as2.remove(12));\n\n\t\t} catch (NoSuchElementException name) {\n\t\t\tSystem.out.println(\"NoSuchElementException: \" + name.getMessage());\n\t\t}\n\n\t\t//Testing removeRandom method\n\t\tSystem.out.println(\"Testing removeRandom on as: \" + as.removeRandom());\n\n\t\t//Testing union method\n\t\tas.add(7);\n\t\tas.add(56);\n\n\t\tas2.add(45);\n\t\tas2.add(8);\n\t\tSystem.out.println(\"Testing union method on as: \" + as.union(as2));\n\n\t\t//Testing equals method\n\t\tSystem.out.println(\"Testing equals method: \" + as.equals(as2));\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\t\tas.addAll(as2);\n\t\tas2.addAll(as);\n\t\tSystem.out.println(\"as to string: \" + as.toString());\n\t\tSystem.out.println(\"as2 tostring: \" + as2.toString());\n\n\n\t\tSystem.out.println(\"Testing equals method: \" + as2.equals(as));\n\n\t\t//Testing difference method\n\t\tas2.remove(6);\n\t\tSystem.out.println(\"Testing difference method: \" + as.difference(as2));\n\n\t}", "public genSubset_result(genSubset_result other) {\n if (other.isSetEx()) {\n this.ex = new IOException(other.ex);\n }\n }", "public ZYSet<ElementType> difference(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(!otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "private boolean alreadySeenSubset(List<Integer> subset,\n\t\t\tList<List<Integer>> prevSeenSubsets) {\n\n\t\tCollections.sort(subset);\n\n\t\tfor (List<Integer> seenSubset : prevSeenSubsets) {\n\t\t\tCollections.sort(seenSubset);\n\n\t\t\tif (subset.size() != seenSubset.size()) {\n\t\t\t\tcontinue;\n\t\t\t} else {\n\n\t\t\t\tboolean allValsEqual = true;\n\t\t\t\tfor (int i = 0; i < subset.size(); i++) {\n\t\t\t\t\tif (subset.get(i).intValue() != seenSubset.get(i)\n\t\t\t\t\t\t\t.intValue()) {\n\t\t\t\t\t\tallValsEqual = false;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tif (allValsEqual) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn false;\n\t}", "private boolean isSubsetOf(int firstRow, int secondRow) {\n for (int i = 0; i < universalSetSize; i++) {\n if (input[firstRow][i] && !input[secondRow][i]) {\n return false;\n }\n }\n return true;\n }", "public static List<Integer> lcs(List<Integer> arr1, List<Integer> arr2) {\r\n ArrayList empty = new ArrayList();\r\n /* BEFORE WE ALLOCATE ANY DATA STORAGE, VALIDATE ARGS */\r\n if (null == arr1 || 0 == arr1.size())\r\n return empty;\r\n if (null == arr2 || 0 == arr2.size())\r\n return empty;\r\n\r\n if (equalLists(arr1, arr2)) {\r\n return arr1;\r\n }\r\n\r\n /* ALLOCATE VARIABLES WE'LL NEED FOR THE ROUTINE */\r\n ArrayList<Integer> bestMatch = new ArrayList<Integer>();\r\n ArrayList<Integer> currentMatch = new ArrayList<Integer>();\r\n ArrayList<List<Integer>> dataSuffixList = new ArrayList<List<Integer>>();\r\n ArrayList<List<Integer>> lineSuffixList = new ArrayList<List<Integer>>();\r\n\r\n /* FIRST, COMPUTE SUFFIX ARRAYS */\r\n for (int i = 0; i < arr1.size(); i++) {\r\n dataSuffixList.add(arr1.subList(i, arr1.size()));\r\n }\r\n for (int i = 0; i < arr2.size(); i++) {\r\n lineSuffixList.add(arr2.subList(i, arr2.size()));\r\n }\r\n\r\n /* STANDARD SORT SUFFIX ARRAYS */\r\n IntegerListComparator comp = new IntegerListComparator();\r\n Collections.sort(dataSuffixList, comp);\r\n Collections.sort(lineSuffixList, comp);\r\n\r\n /* NOW COMPARE ARRAYS MEMBER BY MEMBER */\r\n List<?> d = null;\r\n List<?> l = null;\r\n List<?> shorterTemp = null;\r\n int stopLength = 0;\r\n int k = 0;\r\n boolean match = false;\r\n\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n for (int i = 0; i < dataSuffixList.size(); i++) {\r\n d = (List) dataSuffixList.get(i);\r\n for (int j = 0; j < lineSuffixList.size(); j++) {\r\n l = (List) lineSuffixList.get(j);\r\n if (d.size() < l.size()) {\r\n shorterTemp = d;\r\n } else {\r\n shorterTemp = l;\r\n }\r\n\r\n currentMatch.retainAll(empty);\r\n k = 0;\r\n stopLength = shorterTemp.size();\r\n match = (l.get(k).equals(d.get(k)));\r\n while (k < stopLength && match) {\r\n if (l.get(k).equals(d.get(k))) {\r\n currentMatch.add((Integer) shorterTemp.get(k));\r\n k++;\r\n } else {\r\n match = false;\r\n }\r\n }\r\n if (currentMatch.size() > bestMatch.size()) {\r\n bestMatch.retainAll(empty);\r\n bestMatch.addAll(currentMatch);\r\n }\r\n }\r\n }\r\n return bestMatch;\r\n }", "public int[] intersectionUsingSets(int[] nums1, int[] nums2) {\n Set<Integer> setA = new HashSet<>();\n Set<Integer> intersection = new HashSet<>();\n for (int num : nums1) {\n setA.add(num);\n }\n\n for (int num : nums2) {\n if (setA.contains(num)) {\n intersection.add(num);\n }\n }\n\n return getIntersectionResult(intersection);\n }", "public static void main(String[] args) {\n\t\tint[] nums1 = {4,9,5};\r\n\t\tint[] nums2 = {9,4,9,8,4};\r\n\t\t//System.out.println(intersection(nums1, nums2));\r\n\t\tArrays.sort(nums1);\r\n\t\tArrays.sort(nums2);\r\n\t\tif (nums1.length>nums2.length) {\r\n\t\t\tint[] temp = nums2;\r\n\t\t\tnums2 = nums1;\r\n\t\t\tnums1 = temp;\r\n\t\t}\r\n\t\tHashSet<Integer> mSet1 = new HashSet<Integer>();\r\n\t\tHashSet<Integer> mSet2 = new HashSet<Integer>();\r\n\t\tfor (Integer i : nums2) {\r\n\t\t\tmSet1.add(i);\r\n\t\t}\r\n\t\tfor (Integer x: nums1) {\r\n\t\t\tif (mSet1.contains(x)) {\r\n\t\t\t\tmSet2.add(x);\r\n\t\t\t}\r\n\t\t}\r\n\t\tint[] r = new int[mSet2.size()];\r\n\t\tint index = 0;\r\n\t\tfor (Integer g: mSet2) {\r\n\t\t\tr[index] = g;\r\n\t\t\tindex++;\r\n\t\t}\r\n\t}", "public int[] intersection(int[] nums1, int[] nums2) {\n \n HashSet<Integer> set = new HashSet<>();\n ArrayList<Integer> inter = new ArrayList<>();\n if(nums1.length > nums2.length)\n {\n for(int i = 0; i < nums1.length ;i ++)\n set.add(nums1[i]);\n\n for(int i = 0; i < nums2.length ;i ++)\n if(set.contains(nums2[i])&& !inter.contains(nums2[i]))\n inter.add(nums2[i]);\n }\n else {\n for(int i = 0; i < nums2.length ;i ++)\n set.add(nums2[i]);\n\n for(int i = 0; i < nums1.length ;i ++)\n if(set.contains(nums1[i]) && !inter.contains(nums1[i]))\n inter.add(nums1[i]);\n }\n\n int [] arr = new int[inter.size()];\n for(int i = 0; i < arr.length ;i ++)\n arr[i] = inter.get(i);\n return arr;\n\n }", "public static void main(String[] args)\n {\n BitSet bs1 = new BitSet();\n BitSet bs2 = new BitSet();\n\n /* assigning values to set1*/\n bs1.set(0);\n bs1.set(1);\n bs1.set(3);\n bs1.set(4);\n\n // assign values to bs2\n bs2.set(4);\n bs2.set(6);\n bs2.set(5);\n bs2.set(1);\n bs2.set(2);\n bs2.set(3);\n bs2.set(12);\n\n // Printing the 2 Bitsets\n System.out.println(\"bs1 : \" + bs1);\n System.out.println(\"bs2 : \" + bs2);\n\n // Print the first clear bit of bs1\n System.out.println(bs1.nextClearBit(1));\n\n // Print the first clear bit of bs2 after index 3\n System.out.println(bs2.nextClearBit(3));\n }", "@Test\n public void testSubList() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>();\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n List expResult = Arrays.asList(1, 7, 7);\n OasisList<Integer> result = (OasisList<Integer>) instance.subList(1, 4);\n\n assertTrue(isEqual(expResult, result));\n\n }", "public ZYSet<ElementType> intersection(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n if(otherSet.contains(e)){\n result.add(e);\n }\n }\n return result;\n }", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n combinationDFS(nums, 0, buffer, true); \n \n return res; \n }", "@Override\n public SetI intersection(SetI other) {\n int[] newArr;\n int i = 0;\n SetI shorter, longer;\n\n // Begin with a shorter one.\n if (count > other.size()) {\n shorter = other;\n longer = this;\n newArr = new int[other.size()];\n }\n else {\n shorter = this;\n longer = other;\n newArr = new int[count];\n }\n\n // For each element I have,\n for (Integer e : shorter) {\n // If you also have it...\n if (longer.contains(e)) {\n newArr[i++] = e;\n }\n }\n\n return new Set(newArr, i);\n }", "public ArrBag<T> difference( ArrBag<T> other )\n {\n // THIS ARRBAG WILL NEVER TRIGGER AN UPSIZE BECUASE YOU MADE IT JUST BIG ENOUGH FOR THE LARGEST POSSIBLE DIFF\n ArrBag<T> diffResult = new ArrBag<T>(this.size() + other.size());\n int differenceCount = 0;\n\n for(int i =0; i<this.size(); i++)\n {\n if(!other.contains(this.get(i)) && !diffResult.contains(this.get(i)))\n {\n diffResult.add(this.get(i));\n }\n // change the 0 to the right value for diff\n }\n return diffResult; \n }", "@Test\n public void testIntersection4()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n ConciseSet set2 = new ConciseSet();\n for (int i = 0; i < 1000; i++) {\n set1.add(i);\n if (i != 500) {\n set2.add(i);\n expected.add(i);\n }\n }\n\n verifyIntersection(expected, set1, set2);\n }", "@Test\n\tpublic void testAddAll() {\n\t Set<Integer> setA = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5));\n\t Set<Integer> setB = new HashSet<>(Arrays.asList(9, 8, 7, 6, 5, 4, 3));\n\t setA.addAll(setB);\n\t Set<Integer> union = new HashSet<>(Arrays.asList(1, 2, 3, 4, 5, 6, 7, 8, 9));\n\t assertEquals(setA, union);\n }", "@Test\n public void testSubList_Overflow() {\n SegmentedOasisList<Integer> instance = new SegmentedOasisList<>(2, 2);\n Collection c = Arrays.asList(1, 1, 7, 7, 1, 1, 1);\n instance.addAll(c);\n\n List expResult = Arrays.asList(1, 7, 7);\n OasisList<Integer> result = (OasisList<Integer>) instance.subList(1, 4);\n\n assertTrue(isEqual(expResult, result));\n\n }", "@Test\n public void testIntersection6()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n for (int i = 0; i < 5; i++) {\n set1.add(i);\n }\n for (int i = 1000; i < 1005; i++) {\n set1.add(i);\n }\n\n ConciseSet set2 = new ConciseSet();\n for (int i = 800; i < 805; i++) {\n set2.add(i);\n }\n for (int i = 806; i < 1005; i++) {\n set2.add(i);\n }\n\n for (int i = 1000; i < 1005; i++) {\n expected.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "private static String subProcess(int[] n1, int[] n2) {\n\n\t\t// if n1.length is smaller than n2.length, we are going to be too small.\n\t\tif (n1.length < n2.length) {\n\t\t\treturn \"+\" + toString (n1);\n\t\t}\n\t\t\n\t\t// we have to extend, and reduce length. Note that this WILL terminate because\n\t\t// we would have left earlier if n2 were greater than n1.\n\t\tint off = 0;\n\t\tint length = n2.length;\n\t\twhile (compareTo(n2,0,length,n1,off) > 0) {\n\t\t\tn2 = expand(n2);\n\t\t\tlength = n2.length;\n\t\t\t\n\t\t\tif (length > n1.length) {\n\t\t\t\t// gone too far! We at last have our remainder! Return as \"+remainder\".\n\t\t\t\treturn \"+\" + toString(n1);\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\tint []innerSum = new int[n1.length+1]; // add 1 just in case we get too high\n\t\tint []result = new int[length]; \n\t\tint start;\n\t\t\n\t\t// initial set.\n\t\tif (n2[0] == 0) { start = 9; } else { start = n1[0]/n2[0]; }\n\t\t\n\t\tmultiply(n2, start, innerSum);\n\t\tinnerSum = reduce(innerSum);\n\t\t\n\t\tif (innerSum.length < n2.length) {\n\t\t\t// perfect fit. Expand back out to work with subtractDown. REALLY UGLY CODE\n\t\t\tinnerSum = expand(innerSum);\n\t\t} else {\n\t\t\t// must reduce and continue....\n\t\t\twhile (n2.length < innerSum.length) {\n\t\t\t\tstart--; // had gone too far! Back down.\n\t\t\t\tinnerSum = new int[n1.length+1];\n\t\t\t\tmultiply (n2, start, innerSum);\n\t\t\t\tinnerSum = reduce(innerSum);\n\t\t\t}\n\t\t}\n\t\t\n\t\tboolean subtractDown = compareTo(innerSum, n1, innerSum.length) > 0; // if false, we have to add up\n\t\twhile (true) {\n\t\t\tif (subtractDown) {\n\t\t\t\tstart--;\n\t\t\t\tsubtract(innerSum, n2, result, subProcessSign);\n\t\t\t\tassign(innerSum, result);\n\t\t\t\t\n\t\t\t\tsubtractDown = compareTo(innerSum, n1, innerSum.length) > 0;\n\t\t\t} else {\n\t\t\t\t// found. Note that 'start' is the digit in the quotient. Subtract from and replace.\n\t\t\t\tint []newTop = new int[innerSum.length];\n\t\t\t\textract(newTop,0,n1,0,innerSum.length);\n\t\t\t\t\n\t\t\t\tresult = new int[innerSum.length];\n\t\t\t\tsubtract(newTop, innerSum, result, subProcessSign); \n\t\t\t\textract(n1,0,result,0,result.length); // copy back in\n\t\t\t\t\n\t\t\t\tint[]normalized_n1 = reduce(n1);\n\t\t\t\tint[]normalized_n2 = reduce(n2);\n\t\t\t\tString s = start + subProcess(normalized_n1, normalized_n2);\n\t\t\t\treturn s;\n\t\t\t}\n\t\t}\n\t\t\n\t}", "public SetSet setDifference(SetSet second){\n\t\tSetSet result = new SetSet();\n\t\tfor(int i=0;i<size();i++){\n\t\t\tif(second.contains(get(i))==-1){\n\t\t\t\tresult.add(get(i));\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "private static Set symmetricSetDifference (Set<Integer> set1, Set<Integer> set2)\n {\n Set<Integer> skæringspunktet = new HashSet<Integer>(set1);\n\n // Holder på set2 også\n skæringspunktet.retainAll(set2);\n\n // Set1 fjerner alt fra Settet\n set1.removeAll(skæringspunktet);\n // Set1 fjerner alt fra Settet\n set2.removeAll(skæringspunktet);\n\n // Tilføjer alt fra set2 til set1\n set1.addAll(set2);\n\n // Returnerer set1\n return set1;\n }", "public static void main(String[] args) {\n\t\tHashSet set1 = new HashSet();\n\n\t\t/*\n\t\t * It creates empty HS object with specified initial capacity and\n\t\t * default fill ratio 0.75. \n\t\t * HashSet set2 = new HashSet(int initialCapacity);\n\t\t */\n\t\tHashSet set2 = new HashSet(20);\n\n\t\t/*\n\t\t * It creates equivalent HS object for given Collection\n\t\t * HashSet set3 = new HashSet(Collection c);\n\t\t */\n\t\tArrayList list = new ArrayList();\n\t\tlist.add(1);\n\t\tlist.add(1);\n\t\tSystem.out.println(\"List is \" + list);\n\t\tHashSet set3 = new HashSet(list);\n\t\tSystem.out.println(\"equivalent HashSet is \" + set3);\n\n\t}", "private int[][] getSubsets(int[] A, int k, int start, int curLen, boolean[] used){\n\t\tint[][] toReturn = new int[A.length][A.length];\n\t\tfor(int j=0; j< A.length; j++){\n\t\t\tif (curLen == k){\n\t\t\t\tfor(int i =0; i < A.length; i++){\n\t\t\t\t\tif (used[i] == true){\n\t\t\t\t\t\ttoReturn[j][i] = A[i];\n\t\t\t\t\t\tSystem.out.print(A[i]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start == A.length){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tused[start] = true;\n\t\t\tgetSubsets(A, k, start +1, curLen +1, used);\n\t\t\t\n\t\t\tused[start] = false;\n\t\t\tgetSubsets(A, k, start +1, curLen, used);\n\t\t}\n\t\treturn toReturn;\n\t}", "public ZYSet<ElementType> union(ZYSet<ElementType> otherSet){\n ZYSet<ElementType> result = new ZYArraySet<ElementType>();\n for(ElementType e :this){\n result.add(e);\n }\n for(ElementType e :otherSet){\n result.add(e);\n }\n \n return result;\n }", "private boolean isSubset(List<ConceptLabel> outer, List<ConceptLabel> inner){\n\t\tfor(ConceptLabel in: inner){\n\t\t\tboolean c = false;\n\t\t\tfor(ConceptLabel l: outer){\n\t\t\t\tif(l.getText().equals(in.getText())){\n\t\t\t\t\tc = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(!c)\n\t\t\t\treturn false;\n\t\t}\n\t\treturn true;\n\t}", "public boolean subset(ZYSet<ElementType> potentialSubset){\n for(ElementType e:potentialSubset){\n if(!this.contains(e)){\n return false;\n }\n }\n return true;\n }", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n normalDFS(nums, 0, buffer); \n \n return res; \n }", "private static List<Integer> getCommonElementsAlgo1(int [] arr1, int [] arr2) {\n\t\t\n\t\tList<Integer> list1 = new ArrayList<Integer>();\n\t\tfor (int i : arr1) {\n\t\t\tlist1.add(i);\n\t\t}\n\t\tList<Integer> list2 = new ArrayList<Integer>();\n\t\tfor (int i : arr2) {\n\t\t\tlist2.add(i);\n\t\t}\n\t\tif (list1.size() > list2.size()) {\n\t\t\tlist1.retainAll(list2);\n\t\t\treturn list1;\n\t\t}\n\t\telse {\n\t\t\tlist2.retainAll(list1);\n\t\t\treturn list2;\n\t\t}\n\t\t\n\t}", "public genSubset_args(genSubset_args other) {\n if (other.isSetFilePath()) {\n this.filePath = other.filePath;\n }\n if (other.isSetOutputDir()) {\n this.outputDir = other.outputDir;\n }\n if (other.isSetSubset()) {\n this.subset = other.subset;\n }\n if (other.isSetTypes()) {\n List<FileType> __this__types = new ArrayList<FileType>(other.types.size());\n for (FileType other_element : other.types) {\n __this__types.add(other_element);\n }\n this.types = __this__types;\n }\n }", "public static List<List<Integer>> subsetsBacktracking(int[] nums) {\n List<List<Integer>> resultList = new ArrayList<>();\n Arrays.sort(nums);\n backtrack(resultList, new ArrayList<>(), nums, 0);\n return resultList;\n }", "@Override\n public SetInterface<T> union(SetInterface<T> rhs) {\n //Declare return SetInterface\n SetInterface<T> answer = new ArraySet();\n //Add the items from the calling ArraySet to the return Set\n for (int i = 0; i < this.numItems; i++){\n answer.addItem(arr[i]);\n }\n //Convert the other set to an array in case it isnt and to \n //ease iteration\n T[] other = rhs.toArray();\n //Add the items from RHS to return Set\n for (int j = 0; j < rhs.getSize(); j++){\n answer.addItem(other[j]);\n }\n //Return the answer\n return answer; \n }", "@Test\r\n public void NegativeTestSize1() {\r\n Assert.assertNotEquals(1, set1.size());\r\n }", "Boolean superset(MultiSet<X> s);", "@Test\n public void testIntersection3()\n {\n List<Integer> expected = new ArrayList<>();\n ConciseSet set1 = new ConciseSet();\n ConciseSet set2 = new ConciseSet();\n for (int i = 0; i < 1000; i++) {\n set1.add(i);\n set2.add(i);\n expected.add(i);\n }\n\n verifyIntersection(expected, set1, set2);\n }", "protected int[] resubset(int start, int length) {\n\t\tint[] tmp = new int[length];\n\t\tfor (int i = 0; i < length; i++) {\n\t\t\ttmp[i] = subset[start + i];\n\t\t}\n\t\treturn tmp;\n\t}", "@Override\n public SetInterface<T> difference(SetInterface<T> rhs) {\n //create return SetInterface\n SetInterface<T> result = new ArraySet();\n //Look through the calling set\n for(int i = 0; i < numItems; i++){\n //if the item is NOT also in the param set, add it to result\n if(!rhs.contains(arr[i]))\n result.addItem(arr[i]);\n }\n return result;\n }", "static int nonDivisibleSubset(int k, int[] S) {\n\t\tint result = 0;\n\n\t\tArrayList < ArrayList < Integer >> solutions = new ArrayList < ArrayList < Integer >>();\n\t\tArrayList < HashSet < Integer >> minSets = new ArrayList < HashSet < Integer >>();\n\n\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( S [ 0 ])));\n\t\tminSets.add (new HashSet <Integer > ( ));\n\t\tminSets.get(0).add ( S [ 0 ] % k);\n\n\n\t\t// Go over all the numbers\n\t\tfor ( int i = 1; i < S.length; i++ ){\n\t\t\tint n = S [ i ]; \n\t\t\tint m = S [ i ] % k; // Number we will add to all the elements of all the minSets.\n\n\t\t\t// Go over all the minSets.\n\t\t\t// For each one, check that each element plus m is not divisible by k.\n\n\t\t\tboolean workedForASet = false;\n\t\t\tfor ( int j = 0; j < minSets.size(); j++){\n\t\t\t\t// For each set, check all the elements of the set.\n\n\t\t\t\tHashSet < Integer > minSet = minSets.get(j);\n\t\t\t\tIterator < Integer > iter = minSet.iterator();\n\n\t\t\t\tboolean works = true;\n\t\t\t\twhile ( iter.hasNext() && works ){\n\t\t\t\t\tint num = iter.next();\n\t\t\t\t\tif ( (num + m) % k == 0 ){\n\t\t\t\t\t\tworks = false;\n\t\t\t\t\t\tworkedForASet = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( works ){\n\t\t\t\t\tsolutions.get(j).add(n);\n\t\t\t\t\tminSet.add(m);\n\t\t\t\t}\n\t\t\t} \n\n\t\t\tif ( !workedForASet ){\n\t\t\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( n )));\n\t\t\t\tminSets.add (new HashSet <Integer > ( ));\n\t\t\t\tminSets.get (minSets.size() - 1).add ( m ); \n\t\t\t} \n\t\t}\n\n\t\t// Find the solution with the most elements.\n\n\t\tfor ( ArrayList <Integer > solution : solutions ){\n\t\t\tresult = Math.max ( result, solution.size() );\n\t\t\tSystem.out.println ( solution );\n\t\t}\n\n\t\tif ( result == 1 ) result = 0;\n\t\treturn result;\n\t}" ]
[ "0.7089852", "0.7085459", "0.69369054", "0.68791336", "0.6702473", "0.6622291", "0.6573315", "0.6548873", "0.65356666", "0.6492514", "0.6480849", "0.6478727", "0.6456253", "0.6451618", "0.6431075", "0.63974226", "0.6290811", "0.6288154", "0.6224892", "0.61931074", "0.617686", "0.6154624", "0.6142291", "0.61282045", "0.6118219", "0.6102328", "0.6046045", "0.60434973", "0.6035786", "0.60237676", "0.60111463", "0.6001315", "0.5967452", "0.59304714", "0.5923815", "0.591914", "0.58919024", "0.58904743", "0.5866058", "0.5863634", "0.5862072", "0.5862072", "0.5861471", "0.5854738", "0.58545065", "0.58420473", "0.5840998", "0.583304", "0.583188", "0.5830458", "0.5828837", "0.582825", "0.5824395", "0.58152604", "0.5794387", "0.5785706", "0.5771634", "0.5755104", "0.5749694", "0.574437", "0.57416666", "0.5737799", "0.5733273", "0.573227", "0.57288104", "0.572376", "0.57147586", "0.5713655", "0.5707021", "0.57017815", "0.56906176", "0.5683632", "0.56827545", "0.5676659", "0.5667985", "0.5667523", "0.5666084", "0.56566745", "0.5642657", "0.5634691", "0.56300235", "0.56286645", "0.56270796", "0.5622432", "0.56171453", "0.5613665", "0.56082356", "0.56009936", "0.5599685", "0.5598509", "0.5587755", "0.5579901", "0.5579408", "0.55747724", "0.5573158", "0.55707437", "0.5560459", "0.55585986", "0.5558157", "0.55554885", "0.5552531" ]
0.0
-1
Time complexity is O(2^n). Space complexity is O(n). DP Assumptions: 1. All elements are nonnegative. 2. The two subsets don't need to be of about equal size. M[i][j]: whether elements in array [0, i] can sum to j
public int minDifference2(int[] array) { int sum = sum(array); boolean[][] matrix = new boolean[array.length][sum + 1]; for (int i = 0; i < array.length; i++) { for (int j = 0; j <= sum; j++) { if (i == 0) { matrix[i][j] = (j == 0) || (array[i] == j); } else { matrix[i][j] = matrix[i - 1][j] || (j - array[i] >= 0 && matrix[i - 1][j - array[i]]); } } } // post processing int offset = 0, index = sum / 2; while (!matrix[array.length - 1][index + offset] && !matrix[array.length - 1][index - offset]) { offset++; } return Math.min( (matrix[array.length - 1][index - offset]) ? Integer.MAX_VALUE : Math.abs(sum - 2 * (index - offset)), (matrix[array.length - 1][index + offset]) ? Integer.MAX_VALUE : Math.abs(sum - 2 * (index + offset))); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "static boolean subSetSumProblem(int[] arr,int sum){\n// init\n int n = arr.length;\n boolean[][] dp = new boolean[n+1][sum+1];\n\n for (int j = 0;j<=sum;j++){\n dp[0][j] = false;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = true;\n }\n\n for (int i = 1;i<=n;i++){\n for (int j = 1;j<=sum;j++){\n if (arr[i-1] <= j){\n dp[i][j] = dp[i-1][j] || dp[i-1][j-arr[i-1]];\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][sum];\n }", "int countSusbset(int n, int w){\n int dp[][] = new int[n+1][w+1];\n for(int i=0;i<=n;i++){\n for(int j=0;j<=w;j++){\n //when no items are there and target sum is 0, only one empty subset is possible\n if(i == 0 && j == 0){\n dp[i][j] = 1;\n }\n //no items left and target sum is greater than 0, no set is possible\n else if(i == 0 && j > 0){\n dp[i][j] = 0; \n }\n //if target sum is 0, no matter how many items we have , only one empty subset is possible\n else if(j == 0){\n dp[i][j] = 1;\n }\n //since item > target sum, so exclude\n else if(arr[i-1] > j){\n dp[i][j] = dp[i-1][j];\n }else{\n //two cases include and exclude\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }\n }\n }\n return dp[n][w];\n}", "static int countOfSubsetsOfSum(int[] arr,int sum){\n int n = arr.length;\n int[][] dp = new int[n + 1][sum + 1];\n\n for (int j = 0;j<=sum; j++){\n dp[0][j] = 0;\n }\n\n for (int i = 0;i<=n;i++){\n dp[i][0] = 1;\n }\n\n for (int i=1;i<=n;i++){\n for (int j = 1;j<=sum;j++){\n if (arr[i-1] <= j){\n dp[i][j] = dp[i-1][j] + dp[i-1][j - arr[i-1]];\n }else{\n dp[i][j] = dp[i-1][j];\n }\n }\n }\n return dp[n][sum];\n }", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\n\t\tint a[] = {2,1,3,-4,-2};\n\t\t//int a[] = {1 ,2, 3, 7, 5};\n\t\tboolean found = false;\n\t\t\n\t\t//this will solve in o n^2\n\t\tfor(int i = 0 ; i < a.length ; i++){\n\t\t\tint sum = 0;\n\t\t\tfor(int j = i ; j< a.length ; j++){\n\t\t\t\tsum += a[j] ;\n\t\t\t\tif(sum == 0){\n\t\t\t\t\tfound = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\tif(found)\n\t\t\t\tbreak;\n\t\t}\n\t\t\n\t\t\n\t\t// link : https://www.youtube.com/watch?v=PSpuM9cimxA&list=PLKKfKV1b9e8ps6dD3QA5KFfHdiWj9cB1s&index=49\n\t\tSystem.out.println(found + \" found\");\n\t\tfound = false;\n\t\t//solving with O of N with the help sets\n\t\t// x + 0 = y\n\t\tSet<Integer> set = new HashSet<>();\n\t\tint sum = 0;\n\t\tfor(int element : a){\n\t\t\tset.add(sum);\n\t\t\tsum += element;\n\t\t\tif(set.contains(sum)){\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println(set);\n\t\t\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t\tfound = false;\n\t\t// when the sum of subarray is K\n\t\t\n\t\t//solving with O of N with the help sets\n\t\t//x + k = y >>>\n\t\tSet<Integer> set1 = new HashSet<>();\n\t\tint k = 12;\n\t\tint summ = 0;\n\t\tfor(int element : a){\n\t\t\tset1.add(summ);\n\t\t\tsumm += element;\n\t\t\tif(set1.contains(summ - k)){ // y - k = x(alredy presnt or not)\n\t\t\t\tfound = true;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(set1);\n\t\tSystem.out.println();\n\t\tSystem.out.println(found + \" found\");\n\t\t\n\t\t\n\t}", "public boolean canPartition(int[] nums) {\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n // sum cannot be splitted evenly\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n \n // dp[i][j] represents whether 0~i-1 numbers can reach\n // weight capacity j\n boolean[][] dp = new boolean[n+1][target+1];\n \n for (int i = 1; i <= n; i++) dp[i][0] = true;\n for (int j = 1; j <= target; j++) dp[0][j] = false;\n dp[0][0] = true;\n \n for (int i = 1; i <= n; i++) {\n for (int j = 1; j <= target; j++) {\n // if don't pick current number\n dp[i][j] = dp[i-1][j];\n if (j >= nums[i-1]) {\n dp[i][j] = dp[i][j] || dp[i-1][j-nums[i-1]];\n }\n }\n }\n return dp[n][target];\n \n \n // Solution2: optimizing to save space\n // https://leetcode.com/problems/partition-equal-subset-sum/discuss/90592/01-knapsack-detailed-explanation/94996\n int sum = 0;\n int n = nums.length;\n for (int num : nums) sum += num;\n if ((sum & 1) == 1) return false;\n int target = sum / 2;\n boolean[] dp = new boolean[target+1];\n dp[0] = true;\n for (int num : nums) {\n // here is the trick to save space\n // because we have to update dp[j] based on \n // previous dp[j-num] and dp[j] from previous loop.\n // if we update dp from left to right\n // we first update smaller dp which is dp[j-num]\n // then we won't be able to get original dp[j-num] and dp[j]\n // from previous loop, and eventually we get the wrong\n // answer. But if we update dp from right to left\n // we can assure everything is based on previous state\n for (int j = target; j >= num; j--) {\n // if (j >= num) {\n dp[j] = dp[j] || dp[j-num];\n // }\n }\n }\n return dp[target];\n }", "static boolean isSubsetSum(int set[], \n\t\t\t\t\t\t\tint n, int sum)\n\t{\n\t\tboolean dp[][] = new boolean[n + 1][sum + 1];\n\t\tfor(int i = 1; i <= sum; i++)\n\t\t dp[0][i] = false;\n\t\tfor(int i = 0; i <= n; i++)\n\t\t dp[i][0] = true;\n\t\t \n\t\tfor(int i = 1; i <= n; i++) {\n\t\t for(int j = 1; j <= sum; j++) {\n\t\t //System.out.println(i + \" \" + j);\n\t\t try {\n\t\t if(j >= set[i - 1])\n\t\t dp[i][j] = dp[i - 1][j] || dp[i - 1][j - set[i - 1]];\n\t\t else\n\t\t dp[i][j] = dp[i - 1][j];\n\t\t }\n\t\t catch(ArrayIndexOutOfBoundsException exception) {\n\t\t System.out.println(\"here\");\n\t\t System.out.println(i + \" \" + j);\n\t\t }\n\t\t }\n\t\t}\n\t\treturn dp[n][sum];\n\t}", "public boolean checkSubarraySum(int[] nums, int k) {\n int N = nums.length;\n if (N == 0)\n return false;\n Map<Integer, Integer> m = new HashMap();\n int sum = 0;\n m.put(0, -1);\n for (int i = 0; i < N; i++) {\n sum += nums[i];\n if (k != 0 )\n sum %= k;\n if (m.containsKey(sum)) {\n if (i - m.get(sum) >= 2)\n return true;\n } else {\n m.put(sum, i);\n }\n }\n return false;\n }", "static void subsetSums(int arr[], int n)\n {\n \n // There are totoal 2^n subsets\n int total = 1 << n;\n \n // Consider all numbers from 0 to 2^n - 1\n for (int i = 0; i < total; i++) {\n int sum = 0;\n \n // Consider binary reprsentation of\n // current i to decide which elements\n // to pick.\n for (int j = 0; j < n; j++)\n if ((i & (1 << j)) != 0)\n sum += arr[j];\n \n // Print sum of picked elements.\n System.out.print(sum + \" \");\n }\n }", "static boolean equalSumPartition(int[] arr){\n int sum = 0;\n for (int i = 0;i<arr.length;i++){\n sum+=arr[i];\n }\n if (sum%2==0){\n return subSetSumProblem(arr,sum/2);\n }\n return false;\n }", "static int nonDivisibleSubset(int k, int[] S) {\n\t\tint result = 0;\n\n\t\tArrayList < ArrayList < Integer >> solutions = new ArrayList < ArrayList < Integer >>();\n\t\tArrayList < HashSet < Integer >> minSets = new ArrayList < HashSet < Integer >>();\n\n\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( S [ 0 ])));\n\t\tminSets.add (new HashSet <Integer > ( ));\n\t\tminSets.get(0).add ( S [ 0 ] % k);\n\n\n\t\t// Go over all the numbers\n\t\tfor ( int i = 1; i < S.length; i++ ){\n\t\t\tint n = S [ i ]; \n\t\t\tint m = S [ i ] % k; // Number we will add to all the elements of all the minSets.\n\n\t\t\t// Go over all the minSets.\n\t\t\t// For each one, check that each element plus m is not divisible by k.\n\n\t\t\tboolean workedForASet = false;\n\t\t\tfor ( int j = 0; j < minSets.size(); j++){\n\t\t\t\t// For each set, check all the elements of the set.\n\n\t\t\t\tHashSet < Integer > minSet = minSets.get(j);\n\t\t\t\tIterator < Integer > iter = minSet.iterator();\n\n\t\t\t\tboolean works = true;\n\t\t\t\twhile ( iter.hasNext() && works ){\n\t\t\t\t\tint num = iter.next();\n\t\t\t\t\tif ( (num + m) % k == 0 ){\n\t\t\t\t\t\tworks = false;\n\t\t\t\t\t\tworkedForASet = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif ( works ){\n\t\t\t\t\tsolutions.get(j).add(n);\n\t\t\t\t\tminSet.add(m);\n\t\t\t\t}\n\t\t\t} \n\n\t\t\tif ( !workedForASet ){\n\t\t\t\tsolutions.add(new ArrayList <Integer > ( Arrays.asList ( n )));\n\t\t\t\tminSets.add (new HashSet <Integer > ( ));\n\t\t\t\tminSets.get (minSets.size() - 1).add ( m ); \n\t\t\t} \n\t\t}\n\n\t\t// Find the solution with the most elements.\n\n\t\tfor ( ArrayList <Integer > solution : solutions ){\n\t\t\tresult = Math.max ( result, solution.size() );\n\t\t\tSystem.out.println ( solution );\n\t\t}\n\n\t\tif ( result == 1 ) result = 0;\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int N = scanner.nextInt(), M = scanner.nextInt();\n int[][] graph = new int[N + 1][N + 1];\n\n for (int i = 0; i < M; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int weight = scanner.nextInt();\n graph[from][to] = weight;\n }\n \n int[][][] dp = new int[N + 1][N + 1][N + 1];\n\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (graph[i][j] != 0) {\n dp[0][i][j] = graph[i][j];\n } else {\n dp[0][i][j] = Integer.MAX_VALUE;\n }\n }\n }\n \n for (int k = 0; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n dp[k][i][i] = 0;\n }\n }\n\n for (int k = 1; k <= N; k++) {\n for (int i = 1; i <= N; i++) {\n for (int j = 1; j <= N; j++) {\n if (dp[k - 1][i][k] != Integer.MAX_VALUE && dp[k - 1][k][j] != Integer.MAX_VALUE) {\n dp[k][i][j] = Math.min(dp[k - 1][i][j], dp[k -1][i][k] + dp[k -1][k][j]);\n } else {\n dp[k][i][j] = dp[k - 1][i][j];\n }\n }\n }\n }\n\n int Q = scanner.nextInt();\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < Q; i++) {\n int from = scanner.nextInt(), to = scanner.nextInt();\n int res = dp[N][from][to] == Integer.MAX_VALUE ? -1 : dp[N][from][to];\n sb.append(res).append('\\n');\n }\n System.out.println(sb.toString());\n }", "static int numOfSubsets(int[] arr, int n, int k) {\n List<Integer> vect1 = new ArrayList<Integer>(); \n List<Integer> vect2 = new ArrayList<Integer>(); \n List<Integer> subset1 = new ArrayList<Integer>(); \n List<Integer> subset2 = new ArrayList<Integer>(); \n \n // ignore element greater than k and divide\n // array into 2 halves\n for (int i = 0; i < n; i++) {\n \n // ignore element if greater than k\n if (arr[i] > k)\n continue;\n if (i <= n / 2)\n vect1.add(arr[i]);\n else\n vect2.add(arr[i]);\n }\n \n // generate all subsets for 1st half (vect1)\n for (int i = 0; i < (1 << vect1.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect1.size(); j++) {\n if (i & (1 << j))\n value *= vect1[j];\n }\n \n // add only in case subset product is less\n // than equal to k\n if (value <= k)\n subset1.add(value);\n }\n \n // generate all subsets for 2nd half (vect2)\n for (int i = 0; i < (1 << vect2.size()); i++) {\n int value = 1;\n for (int j = 0; j < vect2.size(); j++) {\n if (i & (1 << j))\n value *= vect2[j];\n }\n \n // add only in case subset product is\n // less than equal to k\n if (value <= k)\n subset2.add(value);\n }\n \n // sort subset2\n sort(subset2.begin(), subset2.end());\n \n int count = 0;\n for (int i = 0; i < subset1.size(); i++)\n count += upper_bound(subset2.begin(), subset2.end(),\n (k / subset1[i]))\n - subset2.begin();\n \n // for null subset decrement the value of count\n count--;\n \n // return count\n return count;\n }", "public List<List<Integer>> subsets2(int[] A){\n\n int res = 0;\n int diff = Integer.MIN_VALUE;\n int count = 0;\n int start = 0;\n for (int i = 1; i < A.length; i++){\n int curDiff = A[i] - A[i - 1];\n if (diff == curDiff){\n count += i - start - 1 > 0 ? i - start - 1 : 0;\n } else {\n start = i - 1;\n diff = currDiff;\n res += count;\n count = 0;\n }\n }\n res += count;\n System.out.println(res);\n return new ArrayList<List<Integer>>();\n }", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint [][][] dp = new int[n+1][m+1][m+1];\n\t\tint [][] arr = new int[n+1][m+1];\n\t\tint max = 1;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tarr[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tfor (int j = 1; j <= m; j++) {\n\t\t\t\tif (arr[i][j] == 1) {\n\t\t\t\t\tfor (int z = j; z <= m && arr[i][z] == 1; z++) {\n\t\t\t\t\t\tdp[i][j][z] = dp[i-1][j][z] + 1;\n\t\t\t\t\t\tmax = Math.max(max, Math.min(dp[i][j][z], z-j+1));\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "public int subarraySumLeetCode(int[] nums, int k) {\n int count = 0;\n for (int start = 0; start < nums.length; start++) {\n for (int end = start + 1; end <= nums.length; end++) {\n int sum = 0;\n for (int i = start; i < end; i++) {\n sum += nums[i];\n }\n if (sum == k) {\n count++;\n }\n }\n }\n return count;\n }", "public static boolean tripletSum(int[] arr, int sum) {\n //first we will sort the array O(n*log(n)).\n\n Arrays.sort(arr);\n\n int currentSum;\n int left = 0;\n int right = arr.length - 1;\n\n HashSet<Integer> hashSet = new HashSet<>();\n\n //use the outer loop to fix an index of the array, i, as one of the pairs\n\n for (int i = 0; i < arr.length; i++) {\n\n currentSum = sum -arr[i];\n\n //this is the pair sum algorithm with an updated sum\n\n for (int j = 0; j < arr.length; j++) {\n if (left == i) {\n left++;\n }\n if (right == i) {\n right--;\n }\n if (hashSet.contains(arr[left] + arr[right])) {\n return true;\n } else {\n hashSet.add(currentSum - (arr[left] + arr[right]));\n if (arr[left] + arr[right] > currentSum) {\n right--;\n } else if (arr[left] + arr[right] < currentSum) {\n left++;\n } else {\n return true;\n }\n }\n if (left >= right) {\n break;\n }\n }\n\n left = 0;\n right = arr.length - 1;\n hashSet.clear();\n\n }\n return false;\n\n }", "private final int m()\n\t { int n = 0;\n\t int i = 0;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break; i++;\n\t }\n\t i++;\n\t while(true)\n\t { while(true)\n\t { if (i > j) return n;\n\t if (cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t n++;\n\t while(true)\n\t { if (i > j) return n;\n\t if (! cons(i)) break;\n\t i++;\n\t }\n\t i++;\n\t }\n\t }", "public int sumSubarrayMins2(int[] nums) \n {\n if (nums == null || nums.length == 0)\n {\n return 0;\n }\n \n int size = nums.length;\n int result = 0;\n int mod = 1_000_000_000 + 7;\n \n for (int i = 0; i < size; i++)\n {\n int min = Integer.MAX_VALUE;\n \n for (int j = i; j < size; j++)\n {\n min = Math.min(min, nums[j]);\n result = (result + min) % mod;\n result %= mod;\n }\n }\n \n return result;\n }", "static boolean isSubsetPossible(int[] nums, int sum) {\t\n\t\tboolean[][] dp = new boolean[nums.length][sum + 1];\n\t\tfor(int row = 0; row < dp.length; row++) {\n\t\t\tdp[row][0] = true;\n\t\t}\n \n\t\tfor(int row = 0; row < dp.length; row++) {\n\t\t\tint num = nums[row];\n\t\t\tfor(int col = 1; col < dp[0].length; col++) {\n\t\t\t\tif( col < num ) {\n\t\t\t\t\tdp[row][col] = (row == 0) ? false : dp[row - 1][col];\n\t\t\t\t}else if(num == col) {\n\t\t\t\t\tdp[row][col] = true;\n\t\t\t\t}else {\n\t\t\t\t\tdp[row][col] = dp[row - 1][col] || dp[row - 1][col - num];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(dp[row][sum]){\n\t\t\t\tSystem.out.println(\"breaked at row \" + row);\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"all the way end\");\n\t\treturn dp[nums.length - 1][sum];\n\t}", "public static boolean sumsTo(int[] A, int[] B, int m) {\n\t\t// REPLACE WITH YOUR ANSWER\n\t\tA = Arrays.copyOf(A, A.length);\n Arrays.sort(A);\n for (int b : B) {\n int k = Arrays.binarySearch(A, m - b);\n if (k >= 0 && k < A.length && A[k] + b == m) {\n return true;\n }\n }\n return false;\n }", "public boolean checkSubarraySum(int[] nums, int k){\n\t\tif(nums == null || nums.length == 0)\n\t\t\treturn false;\n\t\tint sum = 0;\n\t\tHashMap<Integer, Integer> map = new HashMap<>();\n\t\tmap.put(0,-1);\n\t\tfor( int i = 0; i<nums.length; i++){\n\t\t\tsum+=nums[i];\n\t\t\tif(k!=0)\n\t\t\t\tsum = sum % k;\n\t\t\tif(map.containsKey(sum)){\n\t\t\t\tif(i - map.get(sum) > 1)\n\t\t\t\t\treturn true;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tmap.put(sum,i);\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "private static int count(int S[], int m, int n) {\n // If n is o then there is 1 solution\n if (n == 0 ) return 1;\n // If n is less than 0 then no solution exists\n if (n < 0 ) return 0;\n // If there are no coins and n >= 0, then no solution exists\n if (m <= 0 && n >= 1) return 0;\n\n // Count is sum of solution that do not contain mth coin && contain at least one coin mth.\n // Including S[m-1] && excluding S[m-1]\n return count(S, m-1, n) + count(S, m, n-S[m-1]);\n }", "public static int solution(int[] budgets, int M) {\n\t\tint lV = 0;\n\t\tint rV = 0;\n\t\tfor(int i = 0; i < budgets.length; i++) {\n//\t\t\tlV = Math.min(lV, budgets[i]); // 이게 있으면 위에 네번째 테케를 못품. \n\t\t\trV = Math.max(rV, budgets[i]);\n\t\t}\n\t\tint mid = rV/2;\n\t\tint ans = 0;\n\t\t\n\t\twhile(lV <= rV) {\n\t\t\tint tmp = 0;\n\t\t\tfor(int i = 0; i < budgets.length; i++) {\n\t\t\t\tif(budgets[i] > mid) tmp += mid;\n\t\t\t\telse tmp += budgets[i];\n\t\t\t}\n\t\t\n\t\t\tif(tmp > M) {\n\t\t\t\trV = mid - 1;\n\t\t\t} else {\n\t\t\t\tlV = mid + 1;\n\t\t\t\tans = Math.max(mid, ans);\n\t\t\t}\n\t\t\tmid = (lV+rV)/2;\n\t\t}\n\t\t\n\t\t\n\t\treturn ans;\n\t}", "static int maxSubsetSum(int[] arr) {\n int n = arr.length;\n int[] dp = new int[n];\n dp[0] = arr[0];\n dp[1] = Math.max(arr[0], arr[1]);\n\n for (int i = 2; i < n; ++i) {\n dp[i] = Math.max(dp[i - 2], Math.max(dp[i - 2] + arr[i], Math.max(dp[i - 1], arr[i])));\n }\n\n return dp[n - 1];\n }", "public static ArrayList<ArrayList<Integer>> fourSum(ArrayList<Integer> a, int k) {\n Collections.sort(a);\n System.out.println(a);\n LinkedHashMap<Integer, List<List<Integer>>> m = new LinkedHashMap<Integer, List<List<Integer>>>();\n for (int i = 0; i <= a.size() - 3; i++) {\n for (int j = i + 1; j <= a.size() - 2; j++) {\n if (m.get(a.get(i) + a.get(j)) == null) {\n ArrayList<List<Integer>> v = new ArrayList<List<Integer>>();\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n } else {\n List<List<Integer>> v = m.get(a.get(i) + a.get(j));\n List<Integer> c = new ArrayList<Integer>();\n c.add(i);\n c.add(j);\n v.add(c);\n m.put(a.get(i) + a.get(j), v);\n }\n\n }\n }\n LinkedHashSet<ArrayList<Integer>> res = new LinkedHashSet<ArrayList<Integer>>();\n for (int i = 2; i <= a.size() - 1; i++) {\n for (int j = i + 1; j < a.size(); j++) {\n List<List<Integer>> v = m.get(k - (a.get(i) + a.get(j)));\n if (v != null && v.size() >= 1) {\n for (List<Integer> l : v) {\n\n if (l.get(0) < l.get(1) && l.get(1) < i && l.get(1) < j) {\n //System.out.println(l.get(0) + \" \" + l.get(1) + \" \" + i + \" \" + j);\n ArrayList<Integer> out = new ArrayList<Integer>();\n out.add(a.get(l.get(0)));\n out.add(a.get(l.get(1)));\n out.add(a.get(i));\n out.add(a.get(j));\n Collections.sort(out);\n //System.out.println(out);\n res.add(out);\n }\n }\n }\n }\n }\n return new ArrayList<ArrayList<Integer>>(res);\n }", "public boolean hasSubMatrixEqualToTarget(int[][] nums, int target) {\n int m = nums.length, n = nums[0].length;\n int[][] partialSum = new int[m][n];\n for (int i = 0; i < m; ++i) {\n for (int j = 0; j < n; ++j) {\n if (i == 0 && j == 0) {\n partialSum[i][j] = nums[i][j];\n } else if (i == 0) {\n partialSum[i][j] = partialSum[i][j-1] + nums[i][j];\n } else if (j == 0) {\n partialSum[i][j] = partialSum[i-1][j] + nums[i][j];\n } else {\n partialSum[i][j] = partialSum[i-1][j] + partialSum[i][j-1] - partialSum[i-1][j-1] + nums[i][j];\n }\n }\n }\n\n int[] partialRowSum = new int[m];\n SubarraySumTarget1D app = new SubarraySumTarget1D();\n for (int leftCol = 0; leftCol < n; ++leftCol) {\n for (int rightCol = leftCol; rightCol < n; ++rightCol) {\n for (int i = 0; i < m; ++i) {\n partialRowSum[i] = (leftCol == 0 ? partialSum[i][rightCol]\n : partialSum[i][rightCol] - partialSum[i][leftCol - 1]);\n if (i > 0) {\n partialRowSum[i] = (leftCol == 0? partialSum[i][rightCol]-partialSum[i-1][rightCol]\n : partialSum[i][rightCol]-partialSum[i-1][rightCol]\n -partialSum[i][leftCol-1]+partialSum[i-1][leftCol-1]);\n }\n }\n if (app.hasSubarraySumEqualToTarget(partialRowSum, target)) return true;\n }\n }\n return false;\n }", "static boolean hasArrayTwoCandidates(int A[], \n\t\t\t\t\t\tint arr_size, int sum) \n\t{ \n\t\tint l, r; \n\t\n\t\t/* Sort the elements */\n\t\tArrays.sort(A); \n\t\n\t\t/* Now look for the two candidates \n\t\tin the sorted array*/\n\t\tl = 0; \n\t\tr = arr_size-1; \n\t\twhile (l < r) \n\t\t{ \n\t\t\tif(A[l] + A[r] == sum) \n\t\t\t\treturn true; \n\t\t\telse if(A[l] + A[r] < sum) \n\t\t\t\tl++; \n\t\t\telse // A[i] + A[j] > sum \n\t\t\t\tr--; \n\t\t} \n\t\treturn false; \n\t}", "public static long maximumSubarraySum_bf(int[] nums, int k) {\n int len = nums.length;\n\n long ans = 0;\n for (int i = 0; i <= len - k; i++) {\n long sum = 0;\n Set<Integer> set = new HashSet<>();\n for (int j = 0; j < k; j++) {\n if (set.contains(nums[i + j])) {\n sum = 0;\n break;\n }\n\n set.add(nums[i + j]);\n sum += nums[i + j];\n }\n\n ans = Math.max(ans, sum);\n }\n\n return ans;\n }", "public int numSolutions(int N, int M) {\n HashMap<Integer, Integer> dp = new HashMap<Integer, Integer>();\n dp.put(0, 1);\n for (int i = 0; i < N; ++i) {\n for (int j = 0; j < M; ++j) {\n HashMap<Integer, Integer> nDp = new HashMap<Integer, Integer>();\n for (Integer key : dp.keySet()) {\n int leftCell = getCell(key, j - 1);\n int upCell = getCell(key, j);\n int count = dp.get(key);\n if (upCell != 0) {\n // This is the last chance to fulfill upCell.\n if (upCell == 1 || upCell == 3) {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n } else {\n // Paint this cell.\n int current = 2 + (leftCell == 0 ? 0 : 1);\n int newKey = setCell(key, j, current);\n if (leftCell != 0) {\n newKey = setCell(newKey, j - 1, leftCell + 1);\n }\n addValue(nDp, newKey, count);\n }\n } else {\n // Don't paint this cell.\n int newKey = setCell(key, j, 0);\n addValue(nDp, newKey, count);\n // Paint this cell.\n if (leftCell == 0) {\n newKey = setCell(key, j, 1);\n } else {\n newKey = setCell(key, j - 1, leftCell + 1);\n newKey = setCell(newKey, j, 2);\n }\n addValue(nDp, newKey, count);\n }\n }\n dp = nDp;\n }\n }\n int result = 0;\n for (Integer key : dp.keySet()) {\n boolean valid = true;\n for (int i = 0; i < M; ++i) {\n int current = getCell(key, i);\n if (current == 2 || current == 4) {\n valid = false;\n break;\n }\n }\n if (valid) {\n result = (result + dp.get(key)) % MOD;\n }\n }\n return result;\n }", "private static boolean findEqualSumBottomUp(int[] arr, int n, int sum) {\n boolean subset[][] = \n new boolean[sum+1][n+1]; \n \n // If sum is 0, then answer is true \n for (int i = 0; i <= n; i++) \n subset[0][i] = true; \n \n // If sum is not 0 and set is empty, \n // then answer is false \n for (int i = 1; i <= sum; i++) \n subset[i][0] = false; \n \n // Fill the subset table in botton \n // up manner \n for (int i = 1; i <= sum; i++) \n { \n for (int j = 1; j <= n; j++) \n { \n subset[i][j] = subset[i][j-1]; \n if (i >= arr[j-1]) \n subset[i][j] = subset[i][j] || \n subset[i - arr[j-1]][j-1]; \n } \n } \n \n // uncomment this code to print table \n /*for (int i = 0; i <= sum; i++) \n { \n for (int j = 0; j <= n; j++) \n System.out.print (subset[i][j]+\" \"); \n } */\n \n return subset[sum][n];\n\t}", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> result = new ArrayList<>(nums.length);\n\n // Prepare\n Arrays.sort(nums);\n// int firstPositiveIndex = 0;\n// int negativeLength = 0;\n// List<Integer> numsFiltered = new ArrayList<>();\n// for (int i = 0; i < nums.length; i++) {\n// if (i == 0 || i == 1 || nums[i] == 0 || (nums[i] != nums[i-2])) {\n// numsFiltered.add(nums[i]);\n// if ((nums[i] >= 0) && (firstPositiveIndex == 0)) {\n// firstPositiveIndex = numsFiltered.size() - 1;\n// }\n// if ((nums[i] <= 0)) {\n// negativeLength = numsFiltered.size();\n// }\n// }\n// }\n// nums = numsFiltered.stream().mapToInt(i->i).toArray();\n\n // Func\n\n for(int i=0; (i < nums.length) && (nums[i] <= 0); i++) {\n if (i != 0 && nums[i] == nums[i-1]) {\n continue;\n }\n for(int j=i+1; j<nums.length; j++) {\n if (j != i+1 && nums[j] == nums[j-1]) {\n continue;\n }\n for(int k=nums.length-1; (k>j) && nums[k] >= 0; k--) {\n if (k != nums.length-1 && nums[k] == nums[k+1]) {\n continue;\n }\n int sum = nums[i]+nums[j]+nums[k];\n if (sum > 0) {\n continue;\n } else if (sum < 0) {\n break;\n }\n\n List<Integer> ok = new ArrayList<>();\n ok.add(nums[i]);\n ok.add(nums[j]);\n ok.add(nums[k]);\n result.add(ok);\n break;\n }\n }\n }\n\n// System.out.println(\"Finish time = \" + (System.nanoTime() - start) / 1_000_000);\n// System.out.println(\"result size = \" + result.size());\n\n return result;\n }", "int count(int S[], int m, int n) {\n if (n == 0) return 1;\n\n // If n is less than 0 then no solution exists\n if (n < 0) return 0;\n\n // If there are no coins and n is greater than 0, then no solution exist\n if (m <= 0 && n >= 1) return 0;\n\n // count is sum of solutions (i) including S[m-1] (ii) excluding S[m-1]\n return count(S, m - 1, n) + count(S, m, n - S[m - 1]);\n }", "public abstract List<List<Integer>> subsets(int[] S);", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n List<List<Integer>> resList = new LinkedList<>();\n List<Integer> fst = new LinkedList<>();\n\n queue.offer(fst);\n resList.add(fst);\n\n while (!queue.isEmpty()) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> list = queue.poll();\n\n int start = list.size() == 0 ? -1 : list.get(list.size() - 1);\n\n while (++start < nums.length) {\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : list) {\n newList.add(tmp);\n }\n\n newList.add(start);\n queue.offer(newList);\n resList.add(newList);\n }\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : resList) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "int solve() {\n dp[0][0] = 1;\n IntStream.rangeClosed(1, m).forEach(i ->\n IntStream.rangeClosed(0, n).forEach(j ->\n dp[i][j] = j - i >= 0 ?\n (dp[i - 1][j] + dp[i][j - i]) % M :\n dp[i - 1][j]));\n return dp[m][n];\n }", "public static boolean canThreePartsEqualSum(int[] arr) {\n int sum=0;\n int cumulative[]=new int[arr.length];\n for(int i=0;i<arr.length;i++){\n sum+=arr[i];\n cumulative[i]=sum;\n }\n for(int i=0;i<cumulative.length;i++){\n for(int j=i+1;j<cumulative.length;j++){\n if(cumulative[i]==cumulative[j]-cumulative[i]){\n if(cumulative[i]==cumulative[cumulative.length-1]-cumulative[j] && (cumulative.length-1) !=j){\n return true;\n }\n }\n }\n }\n return false;\n}", "public boolean checkSubarraySum(int[] nums, int k) {\n\n if (nums == null) {\n return false;\n }\n\n Map<Integer, Integer> sums = new HashMap<>();\n\n int runningSum = 0;\n\n // sums.put(0, -1);\n for (int i = 0; i < nums.length; i++) {\n int n = nums[i];\n runningSum += n;\n if (k != 0) {\n runningSum %= k;\n }\n\n\n // if a number is followed by 6 or 0, the next modulo does not change, which is okay\n // however, if there are several 0s in sequence, it is still fine to have consecutive zeroes and the solution should still work\n // e.g. consider 5, 2, 4 and k = 6. The moduloes look like 5, 1, 5 and there need to be atleast 2 numbers processed between both moduloes\n // in the case of 0, 0 and k = 0, the moduloes are 0,0 but the solution is still valid, even though the indexes are next to each other. so we add 0,-1 to fix this condition\n sums.put(0, -1);\n if (sums.containsKey(runningSum)) {\n\n // the modulo numbers cannot be adjacent to each other, so difference in indexes must be at least 2.\n // special conditions are 6 and 0/\n if (i - sums.get(runningSum) >= 2) {\n return true;\n }\n } else {\n sums.put(runningSum, i);\n }\n }\n\n return false;\n }", "private static boolean findEqualSumSubsetBottomUp(int[] arr, int n) {\n\t\tint sum=0;\n\t\tfor(int i=0;i<n;i++) {\n\t\t\tsum+=arr[i];\n\t\t}\n\t\tif(sum%2==1) {\n\t\t\treturn false;\n\t\t}\n \t\treturn findEqualSumBottomUp(arr,n,sum/2);\n\t}", "static boolean isSubsetSum(int set[], int n, int sum)\n\t {\n\t // The value of subset[i][j] will be true if there \n\t // is a subset of set[0..j-1] with sum equal to i\n\t boolean subset[][] = new boolean[n+1][sum+1];\n\t \n\t \n\t for(int i=1;i<=sum;i++)\n\t \tsubset[0][i]=false;\n\t \n\t for(int i=0;i<=n;i++)\n\t \tsubset[i][0]=true;\n\t \n\t \n\t\n\t for(int i=1;i<=n;i++) {\n\t \tfor(int j=1;j<=sum;j++) {\n\t \t\t\n\t \t\tsubset[i][j]=subset[i-1][j];\n\t \t\tif(subset[i][j] ==false && j>=set[i-1])\n\t \t\t\tsubset[i][j]=subset[i][j] || subset[i-1][j-set[i-1]];\n\t \t\t\n\t \t}\n\t }\n\t \t\n\t \t\n\t return subset[n][sum];\n\t }", "public static void main(String[] args) throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tint[] array = new int[n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tarray[i] = sc.nextInt();\n\t\t}\n\t\tint[][] dp = new int[n][n];\n\t\tint[][] c = new int[n][n];\n\t\tfor(int i=0;i<n;i++)\n\t\t{\n\t\t\tint count=0,max=0;\n\t\t\tfor(int j=i;j<n;j++)\n\t\t\t{\n\t\t\t\tif(j==i){\n\t\t\t\t\tdp[i][j]=array[j];\n\t\t\t\t\tcount++;\n\t\t\t\t\tc[i][j]=count;\n\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\telse{\n\t\t\t\t\tif(array[j]==array[j-1]){\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t\tif(max<count) {\n\t\t\t\t\t\t\tmax =count;\n\t\t\t\t\t\t\tdp[i][j]=array[j];\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse{\n\t\t\t\t\t\tdp[i][j]=dp[i][j-1];\n\t\t\t\t\t\t}\n\t\t\t\t\t\tc[i][j]=count;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tcount =1;\n\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t\tc[i][j]=count;\n\t\t\t\t\t\t\n\t\t\t\t\t}\t\n\t\t\t\t}\n\t\t\t\t//System.out.print(dp[i][j]+\" \");\n\t\t\t}\n\t\t\t//System.out.println();\n\t\t}\n\t\t\n\t\tfor(int i=0;i<m;i++)\n\t\t{\n\t\t\tint l = sc.nextInt()-1;\n\t\t\tint r = sc.nextInt()-1;\n\t\t\tint k = sc.nextInt();\n\t\t\tif(c[l][r]>k)\n\t\t\t{\n\t\t\t\tSystem.out.println(dp[l][r]);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(-1);\n\t\t\t}\n\t\t}\n\t}", "static boolean isSubset(int Tab1[], int Tab2[], int m, int n)\n {\n // compléter\n //Trouver le max de Tab1[]\n int max=Tab1[0];\n for(int i = 1; i < m; i++) {\n\t\t\tif (Tab1[i]>max){\n max=Tab1[i];\n }\n\t\t}\n \n\t\t//Stockage de la Tab1 dans une table de hashage\n\t\tint[] hashTable = new int[max];\n\t\tfor(int i = 0; i < m; i++) {\n\t\t\thashTable[hash(Tab1[i], max)] = Tab1[i];\n\t\t}\n\t\t\n\t\t//verifier que chaque element (de Tab2) existe dans la hashtable\n\t\tfor(int j = 0; j < n; j++) {\n\t\t\tif(Tab2[j] != hashTable[hash(Tab2[j], max)]) {\n\t\t\t\treturn false;\n\t\t\t}\n\t\t\t\n\t\t}\n return true;\n \n //Complexite aymptotique :\n /*\n Puisque la boucle qui a le plus d'itérations est celle avec l'élément m, la compléxité\n asymptotique est O(m).\n f(m,n) = 2m + n = O(m), puisque m > n\n */\n \n\n }", "public int solution(int K, int M, int[] A) {\n int lo = 0;\n int hi = M * A.length;\n while (lo < hi) {\n int mid = lo + (hi - lo) / 2;\n if (check(A, K, mid)) {\n hi = mid;\n } else {\n lo = mid + 1;\n }\n }\n return lo;\n }", "public int maxSumSubmatrix(int[][] matrix, int target) {\n int row = matrix.length;\n if(row==0)return 0;\n int col = matrix[0].length;\n int m = Math.min(row,col);\n int n = Math.max(row,col);\n //indicating sum up in every row or every column\n boolean colIsBig = col>row;\n int res = Integer.MIN_VALUE;\n for(int i = 0;i<m;i++){\n int[] array = new int[n];\n // sum from row j to row i\n for(int j = i;j>=0;j--){\n int val = 0;\n TreeSet<Integer> set = new TreeSet<Integer>();\n set.add(0);\n //traverse every column/row and sum up\n for(int k = 0;k<n;k++){\n array[k]=array[k]+(colIsBig?matrix[j][k]:matrix[k][j]);\n val = val + array[k];\n //use TreeMap to binary search previous sum to get possible result \n Integer subres = set.ceiling(val-target);\n if(null!=subres){\n res=Math.max(res,val-subres);\n }\n set.add(val);\n }\n }\n }\n return res;\n}", "static ArrayList<Integer> subarraySum(int[] arr, int n, int s) {\n ArrayList<Integer> res = new ArrayList<>();\n int i = 0;\n int j = 1;\n int sum = arr[0];\n while(i < n) {\n if(sum < s && j < n) {\n sum += arr[j++];\n }\n else if(sum == s) {\n res.add(i + 1);\n res.add(j);\n return res;\n }\n else {\n sum -= arr[i++];\n }\n }\n res.add(-1);\n return res;\n }", "public List<List<Integer>> subsets2(int[] nums) {\n\t\tList<List<Integer>> result = new ArrayList<>();\n\t\tList<Integer> tmp = new ArrayList<>();\n\t\tresult.add(tmp); // add empty set\n\t\tfor (int i = 0; i < nums.length; i++) {\n\t\t\tint n = result.size();\n\t\t\tfor (int j = 0; j < n; j++) {\n\t\t\t\t// NOTE: must create a new tmp object, and add element to it.\n\t\t\t\ttmp = new ArrayList<Integer>(result.get(j));\n\t\t\t\ttmp.add(nums[i]);\n\t\t\t\tresult.add(tmp);\n\t\t\t}\n\t\t}\n\t\treturn result;\n\t}", "public static void main(String[] args) {\n int[][] array = new int[6][6];\n int sum=0, result=0, sub=0;\n Scanner sc = new Scanner(System.in);\n //System.out.println(\"Enter array elements\")\n for(int x=0 ; x < 6; x++){\n for( int y=0; y < 6; y++) {\n array[x][y]= sc.nextInt();\n }\n }\n //System.out.println(\"Desired Sum : \")\n for( int k=0; k < 4; k++){\n for( int m=0; m < 4; m++){\n for ( int i=k; i < k+3; i++ ){\n int j=0; \n for ( j=m; j < m+3; j++){\n if( i != k+1){\n sum += array[i][j];\n }\n else{\n sum += array[i][j+1];\n break;\n }\n }\n }\n result = Math.max(result, sum);\n sum = 0; \n }\n }\n System.out.println(result);\n \n }", "public static int solve() {\n FactorizationSieve sieve = new FactorizationSieve(LIMIT + 1);\n int[] abundants = new int[LIMIT + 1];\n int k = 0;\n\n for (int n = 1; n <= LIMIT; n++)\n if (sieve.sigma(1, n) > n + n)\n abundants[k++] = n;\n\n // Sum pair of abundant numbers\n BitSet absums = new BitSet(LIMIT + 1);\n for (int i = 0; i < k; i++) {\n for (int j = i; j < k; j++) {\n int n = abundants[i] + abundants[j];\n if (n > LIMIT)\n break;\n absums.set(n);\n }\n }\n\n // Find all numbers that cannot be written as the sum of two abundant numbers\n int res = 0;\n for (int n = 1; n <= LIMIT; n++)\n if (!absums.get(n))\n res += n;\n return res;\n }", "public static void main(String[] args) throws IOException {\n int max = 100000;\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n N = Integer.parseInt(br.readLine());\n\n int arr[] = new int[max+1];\n\n for (int p=2; p<=99999; p++)\n {\n if (arr[p] == 0)\n { arr[p] = 1;\n for (int i=p*2; i<=max; i += p) {\n arr[i]++;\n }\n }\n }\n\n int mat[][] = new int[6][max+1];\n// for (int i = 2; i < arr.length; i++) {\n// mat[arr[i]][i] = 1;\n// }\n\n for (int i = 1; i < 6; i++) {\n for (int j = 2; j < mat[0].length; j++) {\n if(arr[j] == i) {\n mat[i][j] = mat[i][j - 1]+1;\n } else {\n mat[i][j] = mat[i][j - 1];\n }\n }\n }\n\n\n for (int i = 0; i < N; i++) {\n String str[] = br.readLine().split(\" \");\n int a = Integer.parseInt(str[0]);\n int b = Integer.parseInt(str[1]);\n int k = Integer.parseInt(str[2]);\n int ans = mat[k][b]-mat[k][a-1];\n System.out.println(ans);\n }\n }", "public int solution(int[] A) {\n Set<Integer> set = new HashSet<>();\n\n for(int i=1; i < A.length+1; i++)\n set.add(i);\n\n for(int i=0; i < A.length; i++)\n {\n if(set.contains(A[i]))\n set.remove(A[i]);\n\n else\n set.add(A[i]); \n }\n\n if(set.isEmpty())\n return 1;\n\n return 0;\n }", "boolean SubArraySum( int arr[] , int n , int sum ){\n HashSet<Integer> s = new HashSet<Integer>();\n int pre_sum = 0 ;\n for( int i = 0 ; i < n ; i++ ){\n pre_sum += arr[i];\n if( pre_sum == sum ) // Corner case if pre-sum is equal to sum.\n return true;\n if( s.contains(pre_sum - sum))\n return true;\n s.add(pre_sum);\n }\n return false;\n }", "public static List<List<Integer>> combinationSum2(int[] candidates, int target) {\n Arrays.sort(candidates);\n List<List<List<Integer>>> dp = new ArrayList<>();\n Map<Integer, Integer> candMap = new HashMap<>();\n for (int i = 0; i < candidates.length; i++) {\n if (candidates[i] > target) break;\n if(candMap.containsKey(candidates[i])) candMap.put(candidates[i], candMap.get(candidates[i]) + 1);\n else candMap.put(candidates[i], 1);\n }\n for (int i = 1; i <= target; i++) {\n Set<List<Integer>> subCand = new HashSet<>();\n for (int j = 0; j < candidates.length && candidates[j] <= i; j++) {\n if (candidates[j] == i) subCand.add(Arrays.asList(i));\n else for (List<Integer> l : dp.get(i - 1 - candidates[j])) {\n if (candidates[j] <= l.get(0)) {\n List<Integer> cl = new ArrayList<>();\n cl.add(candidates[j]);\n cl.addAll(l);\n int cnt = 1;\n for (int a : l) {\n if(a == candidates[j]) cnt++;\n else break;\n }\n if(cnt <= candMap.get(candidates[j])) subCand.add(cl);\n }\n }\n }\n List<List<Integer>> subCandList = new ArrayList<>();\n subCandList.addAll(subCand);\n dp.add(subCandList);\n }\n return dp.get(target - 1);\n }", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> ans = new ArrayList<>();\n Arrays.sort(nums);\n for (int i = 0; i < nums.length - 2; i++) {\n if (i == 0 || (i > 0 && nums[i] != nums[i - 1])) {\n // find 2sum equals to 0 - first\n int lo = i + 1, hi = nums.length - 1, twoSum = 0 - nums[i];\n while (lo < hi) {\n if (nums[lo] + nums[hi] == twoSum) {\n ans.add(Arrays.asList(nums[i], nums[lo], nums[hi]));\n while (lo < hi && nums[lo] == nums[lo + 1]) lo++;\n while (lo < hi && nums[hi] == nums[hi - 1]) hi--;\n lo++;hi--;\n } else if (nums[lo] + nums[hi] < twoSum) {\n lo++;\n } else {\n hi--;\n }\n }\n }\n }\n return ans;\n }", "public int subarraySumLeetcode3(int[] nums, int k) {\n int count = 0, sum = 0;\n HashMap<Integer, Integer> map = new HashMap<>();\n map.put(0, 1);\n for (int i = 0; i < nums.length; i++) {\n sum += nums[i];\n if (map.containsKey(sum - k)) {\n count += map.get(sum - k);\n }\n map.put(sum, map.getOrDefault(sum, 0) + 1);\n }\n return count;\n }", "public static boolean checkPath(int[][] bs, int i) {\n ArrayList<Integer> temp_cP = new ArrayList<Integer>();\r\n Set<Integer> temp_setcP = new HashSet<Integer>();\r\n boolean denoter = true;\r\n while (i == 3) {\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 0; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n }\r\n while (i == 6) {\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 0; e < 3; e++) {\r\n temp_cP.add(e, bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n temp_cP.clear();\r\n temp_setcP.clear();\r\n\r\n for (int k = 3; k < i; k++) {\r\n for (int e = 3; e < 6; e++) {\r\n temp_cP.add(bs[k][e]);\r\n }\r\n }\r\n temp_setcP = new HashSet<Integer>(temp_cP);\r\n if (temp_cP.size() > temp_setcP.size()) {\r\n denoter = false;\r\n break;\r\n\r\n } else {\r\n break;\r\n }\r\n }\r\n\r\n }\r\n return denoter;\r\n }", "public static int example3(int[] arr) { // O(n)\r\n\t\tint n = arr.length, total = 0; // O(1)\r\n\t\tfor (int j = 0; j < n; j++) // loop from 0 to n-1 // O(n^2)\r\n\t\t\tfor (int k = 0; k <= j; k++) // loop from 0 to j\r\n\t\t\t\ttotal += arr[j];\r\n\t\treturn total;\r\n\r\n\t\t/*\r\n\t\t * Explanation: Since we have nested for loop which dominates here and it is\r\n\t\t * O(n^2) and we always take the maximum. so the answer is quadratic time O(n^2)\r\n\t\t * \r\n\t\t */\r\n\t}", "boolean ompleMatriuRestant(int i, int j) {\r\n // System.out.println(i+\" \"+j); \r\n if (j >= N && i < N - 1) {\r\n i = i + 1;\r\n j = 0;\r\n }\r\n if (i >= N && j >= N) {\r\n return true;\r\n }\r\n\r\n if (i < SRN) {\r\n if (j < SRN) {\r\n j = SRN;\r\n }\r\n } else if (i < N - SRN) {\r\n if (j == (int) (i / SRN) * SRN) {\r\n j = j + SRN;\r\n }\r\n } else {\r\n if (j == N - SRN) {\r\n i = i + 1;\r\n j = 0;\r\n if (i >= N) {\r\n return true;\r\n }\r\n }\r\n }\r\n\r\n for (int num = 1; num <= N; num++) {\r\n if (validaNumero(i, j, num)) {\r\n mat[i][j] = num;\r\n if (ompleMatriuRestant(i, j + 1)) {\r\n return true;\r\n }\r\n\r\n mat[i][j] = 0;\r\n }\r\n }\r\n return false;\r\n }", "public List<List<Integer>> threeSum2(int[] nums) {\n Arrays.sort(nums);\n\n List<List<Integer>> result = new ArrayList<>();\n for (int i = 0; i < nums.length - 2; i++) {\n if (i > 0 && nums[i - 1] == nums[i]) { // Common trick to bypass duplicate. Better than a nested while loop!\n continue; // But it's quite annoying to bypass in nested loop. eg.[-2,0,0,2,2]\n }\n int target = 0 - nums[i];\n int left = i + 1, right = nums.length - 1;\n while (left < right) {\n if (nums[left] + nums[right] < target || (left > i + 1 && nums[left - 1] == nums[left])) {\n left++;\n } else if (nums[left] + nums[right] > target || (right < nums.length - 1 && nums[right] == nums[right + 1])) {\n right--;\n } else {\n result.add(Arrays.asList(nums[i], nums[left], nums[right]));\n left++;\n right--;\n }\n }\n }\n return result;\n }", "public static long maximumSubarraySum(int[] nums, int k) {\n int len = nums.length;\n\n long ans = 0;\n\n Map<Integer, Integer> map = new HashMap<>();\n long sum = 0;\n for (int i = 0, j = 0; j <= len; j++) {\n if (j - i == k) {\n if (map.size() == k) {\n ans = Math.max(ans, sum);\n }\n\n int cnt = map.getOrDefault(nums[i], 0);\n if (cnt > 1) {\n map.put(nums[i], cnt - 1);\n } else {\n map.remove(nums[i]);\n }\n sum -= nums[i];\n i++;\n }\n\n if (j == len) {\n break;\n }\n\n map.put(nums[j], map.getOrDefault(nums[j], 0) + 1);\n sum += nums[j];\n }\n\n return ans;\n }", "public static int findSubsequencesThatSumUpTo(int[] arr, int neededSum) {\n int total = 0;\n\n Set<Integer> set = new HashSet<>();\n\n int acc = 0;\n for (int i = 0; i < arr.length; i++) {\n acc += arr[i];\n set.add(acc);\n }\n\n for (Integer x: set) {\n if (x == neededSum) {\n total++;\n }\n\n int required = x + neededSum;\n if (set.contains(required)) {\n total++;\n }\n }\n\n return total;\n }", "public void iniSumSubconjuntos(int[] conjunto, int sumD)\n {\n List<List<Integer>> subsets = new ArrayList<>();\n subsets.add(new ArrayList<>());\n String ns = \"\";\n int sum = 0;\n int nSum = 1;\n System.out.println(\"Subconjunto que suman \" + sumD);\n for (int x : conjunto)\n {\n int n = subsets.size();\n for (int i = 0; i < n; i++)\n {\n ArrayList<Integer> aux = new ArrayList(subsets.get(i));\n aux.add(x);\n subsets.add(aux);\n if (aux.size() >= 2)\n {\n //Ejecucion del hilo mientras hace las combinaciones\n //-->>Implementado en hilo\n int add = 0;\n String ssAux = \"\";\n ssAux += \"{ \";\n for (int j = 0; j < aux.size(); j++)\n {\n if (j == aux.size() - 1)\n {\n ssAux += aux.get(j);\n } else\n {\n ssAux += aux.get(j) + \", \";\n }\n add += aux.get(j);\n }\n ssAux += \" }\\n\";\n if (add == sumD)\n {\n //--> Aqui imprime el resultado\n //System.out.println(\"\" + ssAux);\n sum++;\n System.out.println(sum + \".-\" + ssAux + \"\\n\");\n s += ssAux;\n } else\n {\n ns += nSum + \".- \" + ssAux + \"\\n\";\n nSum++;\n }\n }\n }\n }\n //System.out.println(\"Subconjuntos que suman \" + sumD + \"\\n\" + s + \" Total de resultados: \" + sum + \"\");\n System.out.println(\"\\n----------------------------------------------------------------------------------------\");\n System.out.println(\"Subconjuntos que NO suman \" + sumD + \"\\n\" + ns + \"Total de resultados: \" + nSum);\n //System.out.println(\"PPSubconjuntos\");\n /*subsets.forEach(System.out::println);*/\n }", "public static int sum2( int [][] m )\n {\n int sum = 0; //initialize sum\n int v = 0; //initialize a row counter\n for (int[] i : m) { //for each array in m, make an array called i\n\t sum += sumRow( v, m); //add the sumRow of the row counter and\n\t //original array to the stated sum\n\t v++; //add 1 to the counter\n }\n return sum; //return sum, an int\n }", "public List<List<Integer>> threeSum(int[] nums) {\n List<List<Integer>> res = new ArrayList<>();\n Arrays.sort(nums);\n for (int i = 0; i < nums.length - 2; i++) {\n if (nums[i] > 0) break;\n if (i > 0 && nums[i] == nums[i - 1]) {\n continue;\n }\n int low = i + 1;\n int high = nums.length - 1;\n int sum = -nums[i];\n while (low < high) {\n if (nums[low] + nums[high] == sum) {\n res.add(Arrays.asList(nums[i], nums[low], nums[high]));\n while (low < high && nums[low] == nums[low + 1]) low++;\n low++;\n while (low < high && nums[high] == nums[high - 1]) high--;\n high--;\n } else if (nums[low] + nums[high] > sum) {\n while (low < high && nums[high] == nums[high - 1]) high--;\n high--;\n } else {\n while (low < high && nums[low] == nums[low + 1]) low++;\n low++;\n }\n\n }\n }\n return res;\n }", "public int arrayNesting(int[] nums) {\n Set<Integer> oneSet = new HashSet<>();\n\n boolean[] flags = new boolean[nums.length];\n\n for(int i=0; i<nums.length; i++) {\n if(!flags[i]) {\n Set<Integer> compete = recursivelyConstructSet(i, flags, nums, new HashSet<>());\n if(compete.size() > oneSet.size()) {\n oneSet = compete;\n }\n }\n }\n\n return oneSet.size();\n }", "public int solution(int K, int[] A) {\n HashMap<Integer,ArrayList<Integer>> map = new HashMap<Integer,ArrayList<Integer>>();\n \n int dup=0,nonDup=0;\n for (int i=0;i< A.length;i++){\n if(2*A[i]==K){\n if(!map.containsKey(A[i])){\n dup++;\n map.put(A[i],new ArrayList<Integer>());\n }\n continue;\n }\n \n if(!map.containsKey(A[i])){\n \tmap.put(A[i],new ArrayList<Integer>());\n }\n map.get(A[i]).add(i);\n nonDup+=map.get(K-A[i]).size();\n }\n return nonDup*2+dup;\n }", "public static boolean checkPath(int[][] bs, int i) {\n\t\tArrayList<Integer> temp_cP = new ArrayList<Integer>();\n\t\tSet<Integer> temp_setcP = new HashSet<Integer>();\n\t\tboolean denoter = true;\n\t\twhile (i == 3) {\n\t\t\tfor (int k = 0; k < i; k++) {\n\t\t\t\tfor (int e = 0; e < 3; e++) {\n\t\t\t\t\ttemp_cP.add(e, bs[k][e]);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\tdenoter = false;\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\t\t\t\ttemp_cP.clear();\n\t\t\t\ttemp_setcP.clear();\n\n\t\t\t\tfor (int k = 0; k < i; k++) {\n\t\t\t\t\tfor (int e = 3; e < 6; e++) {\n\t\t\t\t\t\ttemp_cP.add(bs[k][e]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\t\tdenoter = false;\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\twhile (i == 6) {\n\n\t\t\tfor (int k = 3; k < i; k++) {\n\t\t\t\tfor (int e = 0; e < 3; e++) {\n\t\t\t\t\ttemp_cP.add(e, bs[k][e]);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\tdenoter = false;\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\t\t\t\ttemp_cP.clear();\n\t\t\t\ttemp_setcP.clear();\n\n\t\t\t\tfor (int k = 3; k < i; k++) {\n\t\t\t\t\tfor (int e = 3; e < 6; e++) {\n\t\t\t\t\t\ttemp_cP.add(bs[k][e]);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\ttemp_setcP = new HashSet<Integer>(temp_cP);\n\t\t\t\tif (temp_cP.size() > temp_setcP.size()) {\n\t\t\t\t\tdenoter = false;\n\t\t\t\t\tbreak;\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\treturn denoter;\n\t}", "public static int solution(int[] A, int k, int m) {\n int[] prefix = countingPrefixSums(A);\n\n int max = 0;\n for (int i = 0; i < Math.min(k, m); i++) {\n int first = k - i;\n int last = Math.max(k, Math.min(k + (m - i * 2), A.length - 1));\n max = Math.max(max, first > 0 ? prefix[last] - prefix[first - 1] : prefix[last]);\n }\n\n return max;\n }", "public static void main(String[] args) {\n\n pairsSum();\n\n printAllSubArrays();\n\n tripletZero();\n\n // int[][] sub = subsets();\n\n PairsSum sum = new PairsSum();\n int[] arr = { 10, 1, 2, 3, 4, 5, 6, 1 };\n boolean flag = sum.almostIncreasingSequence(arr);\n System.out.println(flag);\n\n String s = \"\";\n for (int i = 0; i < 100000; i++) {\n // s += \"CodefightsIsAwesome\";\n }\n long start = System.currentTimeMillis();\n // int k = subStr(s, \"IsA\");\n System.out.println(System.currentTimeMillis() - start);\n // System.out.println(k);\n\n String[] a = { \"aba\", \"aa\", \"ad\", \"vcd\", \"aba\" };\n String[] b = sum.allLongestStrings(a);\n System.out.println(Arrays.deepToString(b));\n\n List<String> al = new ArrayList<>();\n al.toArray();\n\n Map<Integer, Integer> map = new HashMap<>();\n Set<Integer> keySet = map.keySet();\n for (Integer integer : keySet) {\n\n }\n\n String st = reverseBracksStack(\"a(bc(de)f)g\");\n System.out.println(st);\n\n int[] A = { 1, 2, 3, 2, 2, 3, 3, 33 };\n int[] B = { 1, 2, 2, 2, 2, 3, 2, 33 };\n\n System.out.println(sum.isIPv4Address(\"2.2.34\"));\n\n Integer[] AR = { 5, 3, 6, 7, 9 };\n int h = sum.avoidObstacles(AR);\n System.out.println(h);\n\n int[][] image = { { 36, 0, 18, 9 }, { 27, 54, 9, 0 }, { 81, 63, 72, 45 } };\n int[][] im = { { 7, 4, 0, 1 }, { 5, 6, 2, 2 }, { 6, 10, 7, 8 }, { 1, 4, 2, 0 } };\n int[][] res = sum.boxBlur(im);\n\n for (int i = 0; i < res.length; i++) {\n for (int j = 0; j < res[0].length; j++) {\n System.out.print(res[i][j] + \" \");\n }\n System.out.println();\n }\n\n boolean[][] ms = { { true, false, false, true }, { false, false, true, false }, { true, true, false, true } };\n int[][] mines = sum.minesweeper(ms);\n for (int i = 0; i < mines.length; i++) {\n for (int j = 0; j < mines[0].length; j++) {\n System.out.print(mines[i][j] + \" \");\n }\n System.out.println();\n }\n\n System.out.println(sum.variableName(\"var_1__Int\"));\n\n System.out.println(sum.chessBoard());\n\n System.out.println(sum.depositProfit(100, 20, 170));\n\n String[] inputArray = { \"abc\", \"abx\", \"axx\", \"abx\", \"abc\" };\n System.out.println(sum.stringsRearrangement(inputArray));\n\n int[][] queens = { { 1, 1 }, { 3, 2 } };\n int[][] queries = { { 1, 1 }, { 0, 3 }, { 0, 4 }, { 3, 4 }, { 2, 0 }, { 4, 3 }, { 4, 0 } };\n boolean[] r = sum.queensUnderAttack(5, queens, queries);\n\n }", "boolean bruteForce(int A[], int sum) {\n\n\t\t// Fix the first element as A[i]\n\t\tfor (int i = 0; i < A.length - 2; i++) {\n\n\t\t\t// Fix the second element as A[j]\n\t\t\tfor (int j = i + 1; j < A.length - 1; j++) {\n\n\t\t\t\t// Now look for the third number\n\t\t\t\tfor (int k = j + 1; k < A.length; k++) {\n\t\t\t\t\tif (A[i] + A[j] + A[k] == sum) {\n\t\t\t\t\t\treturn true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t// If we reach here, then no triplet was found\n\t\treturn false;\n\t}", "public List<List<Integer>> findSubsequences2(int[] nums) {\n List<List<Integer>> ret = new ArrayList<>();\n Arrays.sort(nums);\n //remove set usages\n //let's do a permutation\n\n ret.add(new ArrayList<>());\n int index = 0;\n int new_added_length = 0;\n while (index < nums.length) {\n //try to add nums[index]\n int oldSize = ret.size();\n int cur_added_length = 0;\n\n int cur_start = 0;\n if (index > 0 && nums[index] == nums[index - 1]) {\n cur_start = oldSize - new_added_length;\n }\n for (int i = cur_start; i < oldSize; ++i) {\n List<Integer> pre = ret.get(i);\n if (pre.size() == 0 || pre.get(pre.size() - 1) <= nums[index]) {\n List<Integer> newList = new ArrayList<>(pre);\n newList.add(nums[index]);\n ret.add(newList);\n ++cur_added_length;\n }\n }\n\n new_added_length = cur_added_length;\n ++index;\n }\n\n\n List<List<Integer>> ret2 = new ArrayList<>();\n for (List<Integer> l : ret) {\n if (l.size() >= 2) {\n ret2.add(l);\n }\n }\n return ret2;\n }", "static boolean find3Numbers(int A[], int arr_size, int sum) {\n\t\t// Fix the first element as A[i] \n\t\tfor (int i = 0; i < arr_size - 2; i++) {\n\t\t\t// Find pair in subarray A[i+1..n-1] \n\t\t\t// with sum equal to sum - A[i] \n\t\t\tHashSet<Integer> s = new HashSet<Integer>();\n\t\t\tint curr_sum = sum - A[i];\n\t\t\tfor (int j = i + 1; j < arr_size; j++) {\n\t\t\t\tif (s.contains(curr_sum - A[j])) {\n\t\t\t\t\treturn true;\n\t\t\t\t}\n\t\t\t\ts.add(A[j]);\n\t\t\t}\n\t\t}\n\n\t\t// If we reach here, then no triplet was found \n\t\treturn false;\n\t}", "public static List<List<Integer>> threeSum(int[] arr) {\n Set<List<Integer>> solutionSet = new HashSet<>();\n\n if (arr == null || arr.length < 3) {\n return new ArrayList<>(solutionSet);\n }\n\n Arrays.sort(arr);\n\n for (int i = 0; i < arr.length - 2; i++) {\n int j = i+1;\n int k = arr.length - 1;\n\n while (j < k) {\n int threeSum = arr[i] + arr[j] + arr[k];\n if (threeSum == 0) {\n List<Integer> solution = new ArrayList<>();\n solution.add(arr[i]);\n solution.add(arr[j]);\n solution.add(arr[k]);\n solutionSet.add(solution);\n\n j++;\n k--;\n\n while (j<k && arr[j] == arr[j+1]) {\n j++;\n }\n while (j<k && arr[k] == arr[k-1]) {\n k--;\n }\n } else if (threeSum < 0) {\n j++;\n } else {\n k--;\n }\n }\n }\n return new ArrayList<>(solutionSet);\n }", "public boolean isSubSetSumProblem(int [] set, int n , int sum){\n\t\tif (sum == 0)\n\t\t\treturn true;\n\t\t\n\t\tif(n == 0 && sum != 0)\n\t\t\treturn false;\n\t\tif(set[n-1] > sum)\n\t\t\treturn isSubSetSumProblem(set, n-1, sum);\n\t\t\n\t\treturn isSubSetSumProblem(set, n-1, sum) || isSubSetSumProblem(set, n-1, sum-set[n-1]);\n\t}", "public int[] findAnyPairIndexesWhileLCMMinimized() {\n if (seq.length < 2) {\n return null;\n }\n int size = 0;\n for (int i = 1; i <= m; i++) {\n size += m / i;\n }\n\n IntegerMultiWayDeque deque = new IntegerMultiWayDeque(m + 1, size);\n for (int i = 1; i <= m; i++) {\n for (int j = i; j <= m; j += i) {\n if (!indexesOfSeq.isEmpty(j)) {\n deque.addLast(i, j / i);\n }\n }\n }\n\n long lcm = INF;\n int v1 = 0;\n int v2 = 0;\n\n for (int i = 1; i <= m; i++) {\n if (!indexesOfSeq.isEmpty(i) && indexesOfSeq.peekFirst(i) != indexesOfSeq.peekLast(i)) {\n lcm = v1 = v2 = i;\n break;\n }\n }\n\n IntegerVersionArray iva = new IntegerVersionArray(m + 1);\n IntegerDequeImpl stack = new IntegerDequeImpl(m);\n for (int i = 1; i <= m; i++) {\n iva.clear();\n stack.clear();\n while (!deque.isEmpty(i)) {\n int last = deque.removeFirst(i);\n factorize(last);\n int total = ie(iva, allFactors.size() - 1, 1, 0);\n if (total > 0) {\n int pop = 0;\n while (total > 0) {\n pop = stack.removeLast();\n if (GCDs.gcd(pop, last) == 1) {\n total--;\n }\n add(iva, pop, -1);\n }\n long l = LCMs.lcm(last, pop) * i;\n if (l < lcm) {\n lcm = l;\n v1 = last * i;\n v2 = pop * i;\n }\n }\n add(iva, last, 1);\n stack.addLast(last);\n }\n }\n\n return new int[]{indexesOfSeq.peekFirst(v1), indexesOfSeq.peekLast(v2)};\n }", "public int solution(int[] A) {\n\n\t\tHashSet<Integer> set = new HashSet<>();\n\n\t\tfor (int i = 0; i < A.length; i++)\n\t\t\tset.add(A[i]);\n\n\t\tfor (int i = 1; i < A.length + 1; i++) \n\t\t\tif (!set.contains(i)) return 0;\n\n\t\treturn 1;\n\t}", "public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n int sum = sc.nextInt();\n int N = sc.nextInt();\n sc.nextLine();\n int [][] arr = new int[N][2];\n for(int i = 0;i<N;i++)\n {\n arr[i][0] = sc.nextInt();\n arr[i][1] = sc.nextInt();\n sc.nextLine();\n }\n //Arrays.sort(arr, new Comparator<int[]>() {\n // @Override\n // public int compare(int[] o1, int[] o2) {\n // return o1[1]-o2[1]; //按第二列价值排个序。\n // }\n //});\n int [][] dp = new int[N+1][sum+1];\n int [][] path = new int[N+1][sum+1];\n for(int i = 1;i<=N;i++)\n {\n for(int j = 1;j<=sum;j++)\n {\n if(j<arr[i-1][0])\n dp[i][j] = dp[i-1][j];\n else\n {\n if(dp[i-1][j]<dp[i-1][j-arr[i-1][0]]+arr[i-1][1])\n path[i][j] = 1;\n dp[i][j] = Math.max(dp[i-1][j],dp[i-1][j-arr[i-1][0]]+arr[i-1][1]);\n }\n }\n }\n System.out.println(dp[N][sum]);\n\n int i = N;\n int j = sum;\n while (i>0&&j>0)\n {\n if(path[i][j]==1)\n {\n System.out.print(1+\" \");\n j -=arr[i-1][0];\n }\n else\n {\n i--;\n System.out.print(0+\" \");\n }\n }\n\n\n // 改进版。只使用一维数组。\n // int [] f = new int[sum+1];\n // for(int i = 0;i<N;i++)\n // {\n // for (int j = sum;j>=0;j--)\n // {\n // if(j>=arr[i][0])\n // f[j] = Math.max(f[j], f[j-arr[i][0]]+arr[i][1]);\n // }\n // }\n // System.out.println(f[sum]);\n\n }", "public List<List<Integer>> findSubsequences3(int[] nums) {\n //below set is not working\n Set<List<Integer>> ret = new HashSet<>();\n\n ret.add(new ArrayList<>());\n int index = 0;\n while (index < nums.length) {\n //try to add nums[index]\n\n Set<List<Integer>> newly_added_set = new HashSet<>();\n\n for (List<Integer> l : ret) {\n if (l.size() <= 0 || l.get(l.size() - 1) <= nums[index]) {\n List<Integer> newList = new ArrayList<>(l);\n newList.add(nums[index]);\n newly_added_set.add(newList);\n }\n }\n\n ret.addAll(newly_added_set);\n\n ++index;\n }\n\n List<List<Integer>> ret2 = new ArrayList<>();\n for (List<Integer> l : ret) {\n if (l.size() >= 2) {\n ret2.add(l);\n }\n }\n return ret2;\n }", "public int solution(int[] A) {\n\t \n\t int n = A.length;\n\t int N =0;\n\t for(int i=0;i<n;i++){\n\t N += A[i];\n\t }\n\t boolean[][] P = new boolean[N/2+1][n+1];\n\t for(int i=0;i<n;i++){\n\t P[0][i] = true;\n\t }\n\t \n\t for(int i = 1;i<=N/2;i++)\n\t for(int j = 1;j<=n;j++)\n\t if(A[j-1]<=i)\n\t P[i][j] = P[i][j-1] || P[i - A[j - 1]][ j - 1];\n\t else\n\t P[i][j] = P[i][j-1];\n\t if (P[N/2][n] == true)\n\t return 1;\n\t else \n\t return 0;\n\t }", "public List<List<Integer>> threeSum(int[] nums) {\n Arrays.sort(nums);\n\n Set<List<Integer>> triplets = new HashSet<List<Integer>>();\n\n for (int i = 0; i < nums.length; i++) {\n // we choose the number at index i to pinpoint\n int a = nums[i];\n int deficit = 0 - a;\n\n // initialize our two pointers such that they're at either end of the\n // array and that they're not i\n int b = i == 0 ? 1 : 0;\n int c = i == nums.length - 1 ? nums.length - 2 : nums.length - 1;\n\n while (b < c) {\n // check if b and c add up to the deficit\n if (nums[b] + nums[c] == deficit) {\n // add it to the list\n List<Integer> triplet = new ArrayList<Integer>();\n\n triplet.add(a);\n triplet.add(nums[b]);\n triplet.add(nums[c]);\n\n Collections.sort(triplet);\n if (!triplets.contains(triplet)) {\n triplets.add(triplet);\n }\n\n\n // move pointer up and down\n c -= 1;\n if (c == i) {\n c -= 1;\n }\n\n b += 1;\n if (b == i) {\n b += 1;\n }\n } else if (nums[b] + nums[c] > deficit) {\n // if it's too large, bring top pointer down\n c -= 1;\n if (c == i) {\n c -= 1;\n }\n } else {\n // if it's too small, bring bottom pointer up\n b += 1;\n if (b == i) {\n b += 1;\n }\n }\n }\n }\n\n List<List<Integer>> last = new ArrayList<List<Integer>>(triplets);\n return last;\n }", "public ArrayList<ArrayList<Integer>> subsetsWithDup(int[] S) {\n Arrays.sort(S);\n ArrayList<ArrayList<Integer>> ret = new ArrayList<ArrayList<Integer>> ();\n int n = S.length;\n int size = 1 << n;\n for (int i = 0; i < size; i ++) {\n ArrayList<Integer> r = new ArrayList<Integer> ();\n int k = i;\n int j = 0;\n boolean flag = true;\n while (k != 0) {\n if ((k & 1) == 1) {\n if (j + 1 < n && S[j] == S[j + 1] && (k & 2) == 0) {\n flag = false;\n break;\n }\n r.add(S[j]);\n }\n j ++;\n k = k >> 1;\n }\n if (flag) {\n ret.add(r);\n }\n }\n return ret;\n }", "static int findIslands(ArrayList<ArrayList<Integer>> a, int N, int M)\n {\n \n // Your code here\n int island_count = 0;\n for(int i=0;i<N;i++){\n for(int j=0;j<M;j++){\n if(a.get(i).get(j) == 1){\n island_count++;\n explore_island(a, i, j);\n }\n }\n }\n \n return island_count;\n \n }", "public List<List<Integer>> subsets1(int[] nums) {\n if (nums == null || nums.length == 0) {\n return new ArrayList<>();\n }\n\n Queue<List<Integer>> queue = new LinkedList<>();\n int level = -1;\n\n queue.offer(new LinkedList<>());\n\n while (++level < nums.length) {\n int size = queue.size();\n\n for (int i = 0; i < size; i++) {\n List<Integer> cur = queue.poll();\n List<Integer> newList = new LinkedList<>();\n\n for (Integer tmp : cur) {\n newList.add(tmp);\n }\n\n newList.add(level);\n queue.offer(cur);\n queue.offer(newList);\n }\n }\n\n List<List<Integer>> res = new LinkedList<>();\n\n for (List<Integer> list : queue) {\n List<Integer> tmp = new LinkedList<>();\n\n for (Integer idx : list) {\n tmp.add(nums[idx]);\n }\n\n res.add(tmp);\n }\n\n return res;\n }", "public static int[][] verticalSums(int[][] a, int sumToFind){\r\n\t\tint b[][]=new int[a.length][a[0].length];\r\n\t\tboolean verify[][]=new boolean[a.length][a[0].length];\r\n\t\tfor (int c=0;c<a[0].length;c++){\r\n\t\t\tint r=0; \r\n\t\t\tint confirm=0;\r\n\t\t\tint sum=0;\r\n\t\t\twhile(r<a.length){\r\n\t\t\t\r\n\t\t\t\tif(sum<sumToFind){\r\n\t\t\t\t\tsum+=a[r][c];\r\n\t\t\t\t\t\r\n\t\t\t\t\tr++; \r\n\t\t\t\t}\r\n\t\t\t\tif(sum>sumToFind){\r\n\t\t\t\t\tconfirm++;\r\n\t\t\t\t\tr=confirm;\r\n\t\t\t\t\tsum=0; \r\n\t\t\t\t}\r\n\t\t\t\t\r\n\t\t\t\tif (sum==sumToFind){\r\n\t\t\t\t\tfor(int x=confirm;x<r;x++){\r\n\t\t\t\t\t\tverify[x][c] = true;\r\n\t\t\t\t\tconfirm++;\r\n\t\t\t\t\tr=confirm;\r\n\t\t\t\t\tsum=0;\r\n\t\t\t\t}\r\n\t\t\t\t\t\r\n\t\t\t}\r\n\t\t\tfor(int i=0;i<a.length;i++){\r\n\t\t\t\tfor(int j=0;j<a.length;j++){\r\n\t\t\t\t\tif (verify[i][j]){\r\n\t\t\t\t\t\tb[i][j]=a[i][j]; \r\n\t\t\t\t\t}\r\n\t\t\t\t\telse \r\n\t\t\t\t\t\tb[i][j]=0 ;\r\n\t\t\t\t\t\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\r\n\t\t\r\n\t\t\r\n\t\t\t}\r\n\t\t\t\r\n\r\n}\r\n\t\treturn b;\r\n}", "public int findPairs(int[] nums, int k) {\n if (k < 0) {\n return 0;\n }\n Set<Integer> unique = new HashSet<>();\n Set<Integer> duplicate = new HashSet<>();\n for (int n : nums) {\n if (!unique.add(n)) {\n duplicate.add(n);\n }\n }\n if (k == 0) {\n return duplicate.size();\n }\n int count = 0;\n for (int v : unique) {\n if (unique.contains(v + k)) {\n count += 1;\n }\n }\n return count;\n }", "public boolean canPartition(int[] nums) {\n\t\tint sum = 0;\n\t\tfor (int num : nums) {\n\t\t\tsum += num;\n\t\t}\n\n\t\tif ((sum & 1) == 1) {\n\t\t\treturn false;\n\t\t}\n\t\tsum /= 2;\n\n\t\tint n = nums.length;\n\t\tboolean[][] dp = new boolean[n + 1][sum + 1];\n\t\tfor (int i = 0; i < dp.length; i++) {\n\t\t\tArrays.fill(dp[i], false);\n\t\t}\n\n\t\tdp[0][0] = true;\n\n\t\tfor (int i = 1; i < n + 1; i++) {\n\t\t\tdp[i][0] = true;\n\t\t}\n\t\tfor (int j = 1; j < sum + 1; j++) {\n\t\t\tdp[0][j] = false;\n\t\t}\n\n\t\tfor (int i = 1; i < n + 1; i++) {\n\t\t\tfor (int j = 1; j < sum + 1; j++) {\n\t\t\t\tif (j >= nums[i - 1]) {\n\t\t\t\t\tdp[i][j] = (dp[i - 1][j] || dp[i - 1][j - nums[i - 1]]);\n\t\t\t\t} else {\n\t\t\t\t\tdp[i][j] = dp[i - 1][j];\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\treturn dp[n][sum];\n\t}", "public static int maxSubsetSumNoAdjacent(int[] array) {\n\t\tint[] solution = array.clone();\n\t\t\n\t\t//edge cases\n\t\tif(array.length ==0){\n\t\t\treturn 0;\n\t\t}else if(array.length==1){\n\t\t\treturn array[0];\n\t\t}\n\t\t//base case\t\t\n\t\tsolution[1] = Math.max(array[0], array[1]);\n\t\t//Dynamic programming implemntation\n\t\tfor(int i=2; i< array.length; i++){\n\t\t\tsolution[i] = Math.max((solution[i-2] + array[i]), solution[i-1]);\n\t\t\t\n\t\t}\n return solution[array.length-1];\n }", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint t = s.nextInt();\n\t\twhile(t-->0)\n\t\t{\n\t\t\tint n = s.nextInt();\n\t\t\tint k = s.nextInt();\n\t\t\tint[] arr = new int[n];\n\t\t\tfor(int i=0;i<n;i++)\n\t\t\t\tarr[i] = s.nextInt();\n\t\t\tArrays.sort(arr);\n\t\t\tint[][] dp = new int[k+1][n+1];\n\t\t\tfor(int i=0;i<=k;i++)\n\t\t\t\tfor(int j=0;j<=n;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0)\n\t\t\t\t\t\tdp[i][j] = 0;\n\t\t\t\t\telse if(j==0)\n\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\telse if(i-arr[j-1]>=0)\n\t\t\t\t\t{\n\t\t\t\t\t\tint val1 = dp[i-arr[j-1]][j-1];\n\t\t\t\t\t\tint val2 = dp[i][j-1];\n\t\t\t\t\t\tif(val1!=-1 && val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = Math.min(1+val1,val2);\n\t\t\t\t\t\telse if(val1!=-1)\n\t\t\t\t\t\t\tdp[i][j] = 1+val1;\n\t\t\t\t\t\telse if(val2!=-1)\n\t\t\t\t\t\t\tdp[i][j] = val2;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(dp[i][j-1]==-1)\n\t\t\t\t\t\t\tdp[i][j] = -1;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tdp[i][j] = dp[i][j-1];\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\tif(dp[k][n]!=-1)\n\t\t\t\tSystem.out.println(dp[k][n]);\n\t\t\telse\n\t\t\t\tSystem.out.println(\"impossible\");\n\t\t}\n\t}", "public List<List<Integer>> subsetsWithDup(int[] nums) {\n \n if (nums == null || nums.length == 0) {\n res.add(new ArrayList()); \n return res; \n } \n \n Arrays.sort(nums); \n \n List<Integer> buffer = new ArrayList(); \n combinationDFS(nums, 0, buffer, true); \n \n return res; \n }", "public int solution(int[] A) {\n int len = A.length;\n Set<Integer> intSet= new HashSet<>();\n for (int i=0; i<len; i++){\n if(!intSet.contains(A[i])){\n intSet.add(A[i]);\n }\n }\n return intSet.size();\n }", "public static void main(String[] args) {\n int arr[] = {479,758,315,472,730,101,460,619,510,612,8};\n System.out.println(\"find subset sum Top down: \"+findEqualSumSubsetTopDown(arr,arr.length));\n System.out.println(\"find subset sum Bottom Up: \"+findEqualSumSubsetBottomUp(arr,arr.length));\n\t}", "private static long calc1()\n {\n final int min = 1000;\n final int max = 10000;\n\n // initialize\n List<List<Integer>> m = new ArrayList<>();\n for (int k = 0; k < end; k++) {\n List<Integer> list = new ArrayList<Integer>();\n int n = 1;\n while (k >= start) {\n int p = pkn(k, n);\n if (p >= max) {\n break;\n }\n if (p >= min) {\n list.add(p);\n }\n n++;\n }\n m.add(list);\n }\n\n boolean[] arr = new boolean[end];\n arr[start] = true;\n\n List<Integer> solutions = new ArrayList<>();\n List<Integer> list = m.get(start);\n for (Integer first : list) {\n LinkedList<Integer> values = new LinkedList<>();\n values.add(first);\n f(m, arr, values, 1, solutions);\n // we stop at the first solution found\n if (!solutions.isEmpty()) {\n break;\n }\n }\n\n // solutions.stream().forEach(System.out::println);\n int res = solutions.stream().reduce(0, Integer::sum);\n return res;\n }", "public static void main(String args[])\n {\n Scanner input = new Scanner(System.in);\n //size of the array\n int size = input.nextInt();\n //declaring the array\n int array[] = new int[size];\n //reading the array\n for(int i=0;i<size;i++)\n {\n array[i] = input.nextInt();\n }\n //count stores the number of negative subarrays\n //sum stores the sum of each subarray\n int sum, count = 0;\n for(int i=0;i<size;i++)\n {\n sum = 0;\n //getting all possible subarrays and their sum\n for(int j=i;j<size;j++)\n {\n sum = sum + array[j];\n if(sum<0)\n count++;\n }\n }\n System.out.println(count);\n }", "public Set<List<String>> getCombination(int[] inHand) {\n Set<List<String>> result = new HashSet<>();\n for (int i = 0; i < inHand.length; i++) {\n if (inHand[i] < 1) continue;\n int[] copyHand = copyArray(inHand);\n //possibility of A AA AAA\n for (int j = 1; j <= inHand[i]; j++) {\n if (j == 1) {\n String cSet = \"\";\n\n for (int seq = i; seq <= i + 2; seq++) {\n if (seq >= inHand.length || copyHand[seq] < 1) continue;\n cSet += seq;\n copyHand[seq] -= 1;\n }\n// System.out.println(\"i: \" + i + \" j: \" + j+\"inhand: \" + arrayToString\n// (inHand));\n\n Set<List<String>> a = getCombination(copyHand);\n Set<List<String>> newA = new HashSet<>();\n for (List<String> s : a) {\n s.add(cSet);\n s.sort(Comparator.naturalOrder());\n if (s.equals(\"\")) continue;\n newA.add(s);\n }\n result.addAll(newA);\n continue;\n }\n\n String currentSet = \"\";\n int[] copyOfInHand = copyArray(inHand);\n for (int t = 0; t < j; t++) {\n currentSet += i;\n }\n\n copyOfInHand[i] -= j;\n Set<List<String>> after = getCombination(copyOfInHand);\n Set<List<String>> newAfter = new HashSet<>();\n for (List<String> s : after) {\n s.add(currentSet);\n s.sort(Comparator.naturalOrder());\n newAfter.add(s);\n }\n result.addAll(newAfter);\n }\n }\n if (result.isEmpty()) result.add(new ArrayList<>());\n int min = result.stream().map(set -> set.size()).min(Comparator\n .naturalOrder()).get();\n Set<List<String>> minSets = result.stream().filter(set -> set.size() == min)\n .collect(Collectors\n .toSet());\n// combinationCache.put(inHand, minSets);\n return minSets;\n }", "public List<List<Integer>> subsets2(int[] nums) {\n if (nums == null) {\n return new ArrayList<>();\n }\n\n List<List<Integer>> queue = new ArrayList<>();\n queue.add(new LinkedList<Integer>());\n //Arrays.sort(nums);\n\n for (int num : nums) {\n int size = queue.size();\n for (int i = 0; i < size; i++) {\n List<Integer> subset = new ArrayList<>(queue.get(i));\n subset.add(num);\n queue.add(subset);\n }\n }\n\n return queue;\n }", "public int maxSumSubmatrix(int[][] matrix, int k) {\n int res=Integer.MIN_VALUE; \n int rows=matrix.length, cols=matrix[0].length; \n int[][] areas=new int[rows][cols];\n for(int i=0; i<rows; i++){\n for(int j=0; j<cols; j++){\n int area=matrix[i][j];\n if(i>0) area+=areas[i-1][j];\n if(j>0) area+=areas[i][j-1];\n if(i>0 && j>0) area-=areas[i-1][j-1];\n areas[i][j]=area;\n }\n }\n \n for(int r1=0; r1<rows; r1++){\n for(int r2=r1; r2<rows; r2++){\n TreeSet<Integer> set=new TreeSet<Integer>();\n set.add(0);\n for(int c=0; c<cols; c++){\n int sec=areas[r2][c];\n if(r1>0) sec-= areas[r1-1][c];\n Integer ceiling=set.ceiling(sec-k);\n if(ceiling!=null)\n res=Math.max(res, sec-ceiling);\n set.add(sec);\n }\n }\n }\n return res;\n }", "public static int sum2( int [][] m )\n {\n\t int sum = 0;\t\t\t\t\t\t\t//initialize variable to hold/track sum so far\n\t\n\t for (int i = 0; i < m.length; i++) { \t//loop through the arrays\n\n\t\t sum += sumRow1(i, m);\t\t\t\t//procure the sum of each row, and add it to the sum variable\n\n\t }\n\n\t return sum;\t\t\t\t\t\t\t//return the sum\n }", "public int sol2(int[] inArr) \n\t{\n\t\tSet<Integer> set= new HashSet<>();\n\t\tfor (int i : inArr) {\n\t\t\tif(set.contains(i)) {\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\n\t}", "public List<Integer> largestDivisibleSubsetA(int[] nums) {\r\n List<Integer> lstSubset = new ArrayList<>();\r\n if (nums == null || nums.length == 0) return lstSubset;\r\n if (nums.length == 1) {\r\n lstSubset.add(nums[0]);\r\n return lstSubset;\r\n }\r\n \r\n int n = nums.length;\r\n int i;\r\n int nMaxLen = 0;\r\n int baseNum = 0;\r\n int facted = 0;\r\n int newNum = 0;\r\n boolean bExist = false;\r\n Set<Integer> setNum = new HashSet<Integer>();\r\n \r\n Arrays.sort(nums);\r\n \r\n for (i=0; i<n; i++) setNum.add(nums[i]);\r\n \r\n for (i=0; i<n-1; i++) {\r\n List<Integer> lstSubTmp = new ArrayList<Integer>();\r\n baseNum = nums[i];\r\n \r\n lstSubTmp.add(baseNum);\r\n bExist = false;\r\n facted = 2; \r\n newNum = baseNum*facted;\r\n \r\n while (newNum <= nums[n-1]) {\r\n if (setNum.contains(newNum)) {\r\n lstSubTmp.add(newNum);\r\n baseNum = newNum;\r\n bExist = true;\r\n } else {\r\n bExist = false;\r\n }\r\n \r\n if (bExist == true) {\r\n facted = 2;\r\n } else {\r\n facted++;\r\n }\r\n \r\n newNum = baseNum*facted;\r\n }\r\n \r\n if (nMaxLen < lstSubTmp.size()) {\r\n nMaxLen = Math.max(nMaxLen, lstSubTmp.size());\r\n lstSubset = new ArrayList<Integer>(lstSubTmp);\r\n }\r\n }\r\n \r\n return lstSubset;\r\n }", "public int[][] subSum(int[] list){\n\tint n=list.length;\n\tS=new int[n][n];\n\t//initialize S from list values\n\tfor (int i = 0; i < n; i++) {\n\t\tS[i][i]=list[i];\n\t}\n\t//calculate the values by bottom up fashion\n\tfor (int k = 1; k < n; k++) {\n\t\tint i=0;\n\t\tint j=i+k;\n\t\twhile(j<n && i<j){\n\t\t if(i!=j)\n\t\t\tS[i][j]=S[i][i]+S[i+1][j];\n\t\t i=i+1;\n\t\t j=i+k;\n\t\t}\n\t}\n\treturn S;\n}", "private static int subarraySum(int[] nums, int target) {\n\n\t\tint count = 0;\n\n\t\tfor (int start = 0; start < nums.length; start++) {\n\n\t\t\tint sum = 0;\n\n\t\t\tfor (int end = start; end < nums.length; end++) {\n\t\t\t\tsum += nums[end];\n\t\t\t\t\n\t\t\t\tif(sum == target) {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn count;\n\n\t}", "public List<List<Integer>> fourSum_optimization(int[] nums, int target) {\n int len = nums.length;\n Arrays.sort(nums);\n if (len < 4)\n return Collections.emptyList();\n List<List<Integer>> arr = new ArrayList<>();\n\n for (int i = 0; i < len - 1; i++) {\n for (int j = i + 1; j < len - 1; j++) {\n int Left = j + 1;\n int Right = len - 1;\n int left_target_sum = target - nums[i] + nums[j];\n\n while (Left < Right) {\n int two_sum = nums[Left] + nums[Right];\n if (two_sum < left_target_sum)\n Left++;\n else if (two_sum > left_target_sum)\n Right--;\n else {\n List<Integer> arr2 = new ArrayList<>();\n if (left_target_sum + two_sum == target) {\n arr2.add(nums[i]);\n arr2.add(nums[j]);\n arr2.add(nums[Left]);\n arr2.add(nums[Right]);\n arr.add(arr2);\n }\n while (Left < Right && nums[Left] == arr2.get(2))\n ++Left;\n while (Left < Right && nums[Right] == arr2.get(3))\n --Right;\n }\n }\n while (i + 1 < len && nums[i + 1] == nums[i])\n ++i;\n while (j + 1 < len && nums[j + 1] == nums[j])\n ++j;\n }\n }\n\n return arr;\n }", "public List<Integer> largestDivisibleSubset(int[] nums) {\n //1,2,6,18\n if(nums.length == 0){\n return new ArrayList<>();\n }\n Arrays.sort(nums);\n List<Integer>[] cache = new ArrayList[nums.length];\n for(int i=0; i<cache.length; i++){\n List<Integer> list = new ArrayList<>();\n list.add(nums[i]);\n cache[i] = list;\n }\n\n for(int i=nums.length-2; i>=0; i--){\n for(int j=i+1; j<nums.length; j++){\n if(nums[j]%nums[i] == 0 && cache[j].size()+1 > cache[i].size()){\n List<Integer> list = new ArrayList<>();\n list.add(nums[i]);\n list.addAll(cache[j]);\n cache[i] = list;\n }\n }\n }\n\n int maxCnt = 0;\n int pos = 0;\n for(int i=0; i<cache.length; i++){\n if(cache[i].size() > maxCnt){\n maxCnt = cache[i].size();\n pos = i;\n }\n }\n return cache[pos];\n }" ]
[ "0.7088472", "0.6949676", "0.6719662", "0.6666878", "0.64092106", "0.6402013", "0.6398605", "0.6386648", "0.63386613", "0.62953484", "0.6273656", "0.6257191", "0.6208976", "0.6173373", "0.6165732", "0.61033887", "0.60887915", "0.60884124", "0.6048984", "0.60369873", "0.6035246", "0.6027441", "0.60223305", "0.6000693", "0.59981805", "0.5986415", "0.59847885", "0.59828997", "0.5963212", "0.5961822", "0.59575945", "0.5947124", "0.5940825", "0.593295", "0.59222734", "0.5919223", "0.5913423", "0.590664", "0.58952713", "0.5879702", "0.5877237", "0.58585405", "0.5844385", "0.5829587", "0.5829054", "0.58278465", "0.58139324", "0.5798321", "0.5793657", "0.5793143", "0.57857406", "0.576623", "0.5765239", "0.57525104", "0.57430834", "0.5739928", "0.5736863", "0.5734911", "0.5728909", "0.57185423", "0.57149076", "0.5708343", "0.57031876", "0.5700456", "0.5687414", "0.5687083", "0.56847155", "0.5669139", "0.56682014", "0.56666034", "0.5664793", "0.5662304", "0.5658881", "0.5653095", "0.5634991", "0.56259334", "0.5621724", "0.56196856", "0.56183475", "0.56106246", "0.5607292", "0.5599763", "0.55942404", "0.5578801", "0.5572459", "0.5570149", "0.55696535", "0.5566991", "0.55601835", "0.55564904", "0.5548931", "0.55470294", "0.5543295", "0.5536144", "0.5525486", "0.55166054", "0.55077523", "0.5506861", "0.55049217", "0.5504157", "0.5502454" ]
0.0
-1
ImageID must is case sensitive
@Nonnull static ImageKey of(@Nonnull String groupId, @Nonnull String imageId, int width, int height) { return UIInternal.get()._ImageKey_of(groupId, imageId, width, height); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private String extractImageNameFromIdentifier(String image) {\n String[] tokens = image.split(\"/\");\n\n String imageName = tokens[tokens.length-1];\n if(imageName.contains(\":\")) {\n return imageName.split(\":\")[0];\n } else {\n return imageName;\n }\n }", "public static Long getAValidImageId() {\n\t\tLong id = getAId();\n\t\tif (id == null) {\n\n\t\t\tImage img = new Image(\"http://dummy.com/img.jpg\", (long)(Math.random()*10000), \"Description\", \"keyword\", new Date(0001L));\n\t\t\tIImageStore imageStore = StoreFactory.getImageStore();\n\t\t\timageStore.insert(img);\n\n\t\t\tid = getAId();\n\t\t\tif (id == null) {\n\t\t\t\tthrow new RuntimeException(\"There are no images in DB, and I can't insert one. Cannot run tests without.\");\n\t\t\t}\n\t\t}\n\t\treturn id;\n\t}", "public void setImage(int imageId) {\n this.imageId=imageId;\n\t}", "public static String getImageId(WebElement image) {\n String imageUrl = image.getAttribute(\"src\");\n\n int indexComparisonStart = imageUrl.indexOf(START_TOKEN) + START_TOKEN.length();\n int indexComparisonFinish = imageUrl.substring(indexComparisonStart).indexOf(STOP_TOKEN);\n\n return imageUrl.substring(indexComparisonStart, indexComparisonStart + indexComparisonFinish);\n }", "abstract public String getImageKey();", "public int getImageId(){\n \t\treturn imageId;\n \t}", "public void setImageId(String ImageId) {\n this.ImageId = ImageId;\n }", "public void setImgId(String imgId) {\n this.imgId = imgId == null ? null : imgId.trim();\n }", "public void setImageId(String imageId) {\n this.imageId = imageId == null ? null : imageId.trim();\n }", "public void setImageId(String imageId) {\n this.imageId = imageId;\n }", "public void setImage_id(int image_id) {\n\t\tthis.image_id = image_id;\n\t}", "@Override\r\n\tpublic String searchimage(int cbid) throws Exception {\n\t\treturn dao.searchimage(cbid);\r\n\t}", "public void setAmusementObjectImageA(int imageId){\r\n amusementObjectImageA = imageId;\r\n }", "public void setImgId(Long imgId) {\r\n this.imgId = imgId;\r\n }", "public int getImageId() {\n return imageId_;\n }", "public void setImageId(long imageId) {\n this.imageId = imageId;\n }", "public String getImageId() {\n return this.ImageId;\n }", "public String getImageId() {\n return imageId;\n }", "protected Boolean hasImageName(Object value) {\n\t return true;\n }", "public String getImgId() {\n return imgId;\n }", "public int getImageId() {\n return imageId_;\n }", "public void setImageName(String name) {\n imageToInsert = name;\n}", "public String getImageId() {\n return this.imageId;\n }", "public String getImageId() {\n return mImageId;\n }", "String galleryItemIdentity();", "public int getImageID() {\n return imageID;\n }", "@Override\n\tpublic Serializable getId() {\n\t\treturn imageId;\n\t}", "public void setIdimgF(String idimgF) {\r\n this.idimgF = idimgF == null ? null : idimgF.trim();\r\n }", "private String getNameImage(String imagePath) {\n\t\treturn imagePath != null ? imagePath.replace(pathFileBase, \"\") : \"\";\n\t}", "@Override\n\tpublic List<PersonalisationMediaModel> getImageByID(final String imageID)\n\t{\n\t\tfinal String query1 = \"Select {pk} from {PersonalisationMedia} Where {code}=?imageId and {user}=?user\";\n\t\t/**\n\t\t * select distinct {val:pk} from {PersonalisationMediaModel as val join MediaModel as media on\n\t\t * {media:PK}={val.image} join User as user on {user:pk}={val:user} and {media:code}=?imageId and {user:pk}=?user}\n\t\t */\n\t\tfinal UserModel user = getUserService().getCurrentUser();\n\t\tfinal FlexibleSearchQuery fQuery = new FlexibleSearchQuery(query1);\n\t\tfinal Map<String, Object> params = new HashMap<>();\n\t\tparams.put(\"imageId\", imageID);\n\t\tparams.put(\"user\", user);\n\t\tfQuery.addQueryParameters(params);\n\t\tLOG.info(\"getImageByID\" + fQuery);\n\t\tfinal SearchResult<PersonalisationMediaModel> searchResult = flexibleSearchService.search(fQuery);\n\t\treturn searchResult.getResult();\n\t}", "public int getImage_id() {\n\t\treturn image_id;\n\t}", "@Test\n\tpublic void setIdTest() {\n\t\tProductScanImageURIKey key = getDefaultKey();\n\t\tkey.setId(OTHER_ID);\n\t\tAssert.assertEquals(OTHER_ID, key.getId());\n\t}", "public void setImg_1(String img_1) {\n this.img_1 = img_1;\n }", "public String getImgKey() {\n return imgKey;\n }", "private void checkImage(int id, GraphicsContext gc)\n {\n switch (id)\n {\n case 1:\n drawImage(gc, \"/images/wandel.png\", 0, 0);\n drawImage(gc, \"/images/hero_onder.png\", 5, 5);\n break;\n case 2:\n drawImage(gc, \"/images/wandel.png\", 0, 0);\n break;\n case 3:\n drawImage(gc, \"/images/doel.png\", 0, 0);\n break;\n case 4:\n drawImage(gc, \"/images/muur.png\", 0, 0);\n break;\n case 5:\n drawImage(gc, \"/images/wandel.png\", 0, 0);\n drawImage(gc, \"/images/kist.png\", 5, 5);\n break;\n }\n }", "public String getPhotoFileName() {\n return \"IMG_\" + getId().toString() + \".jpg\";\n }", "public void setAmusementObjectImageB(int imageId){\r\n amusementObjectImageB = imageId;\r\n }", "public Long getImgId() {\r\n return imgId;\r\n }", "public long getImageId() {\n return imageId;\n }", "public void setImageId(long imageId) {\n _courseImage.setImageId(imageId);\n }", "public void setImageIdentifier(String imageIdentifier) {\n this.imageIdentifier = imageIdentifier;\n }", "public String getImageIdentifier() {\n return this.imageIdentifier;\n }", "private String getUniquePhotoName() {\n\t\tTime now = new Time();\n\t\tnow.setToNow();\n\t\treturn now.format2445();\n\t}", "int seachImage(Image img) {\r\n\t\treturn 1;\r\n\t}", "public void setIdImagen(int idImagen) {\n this.idImagen = idImagen;\n }", "public String getThumbnailImageName(String srcStringXpath) {\r\n\r\n\t\tString srcString = webAppDriver.findElementByXpath(srcStringXpath).getAttribute(\"style\");\r\n\t\tString temp[] = srcString.split(\"/\");\r\n\t\tint len = temp.length;\r\n\t\tString imageName = temp[len - 1];\r\n\t\timageName = imageName.substring(0, imageName.indexOf(\"\\\"\"));\r\n\t\tSystem.out.println(\"^^^name from method \" + imageName);\r\n\t\treturn imageName;\r\n\t}", "public native String getImageAttribute(String key) throws MagickException;", "public static Image findImageById(String public_id){\n return finder.where().eq(\"public_id\", public_id).findUnique();\n }", "public void generateImage(int imageId, int resolution){\n String openUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/\"+imageId+ \".jpg\";\n String saveUrl = \"/Users/fengyutian/Desktop/jsc/privacyDemo/web/image/tmp\";\n String saveName=String.format(\"%d_%d\", imageId, resolution);\n ImageDeal imageDeal = new ImageDeal(openUrl, saveUrl, saveName, \"jpg\");\n try{\n imageDeal.mosaic((int)Math.floor(264/resolution));\n //Thread.currentThread().sleep(1000);\n }catch(Exception e){\n e.printStackTrace();\n }\n\n System.out.printf(\"Image: %d Resolution: %d was generated.\\n\", imageId, resolution);\n }", "public void setImgName(String imgName) {\n this.imgName = imgName == null ? null : imgName.trim();\n }", "public void setImageTypeID(int value) {\r\n this.imageTypeID = value;\r\n }", "public long getImageId() {\n return this.imageId;\n }", "void setImage(String image);", "Receta getByIdWithImages(long id);", "public void setIdimgZ(String idimgZ) {\r\n this.idimgZ = idimgZ == null ? null : idimgZ.trim();\r\n }", "public Image getImageById(final String imageId)\n {\n GetImageByIdQuery getImageByIdQuery = new GetImageByIdQuery(imageId);\n List<Image> ImageList = super.queryResult(getImageByIdQuery);\n if (CollectionUtils.isEmpty(ImageList) || ImageList.size() > 1)\n {\n LOG.error(\"The Image cannot be found by this id:\" + imageId);\n return null;\n }\n return ImageList.get(0);\n }", "public void setImage(String image){\n this.image = image;\n }", "int getSrcId();", "int getSrcId();", "private String normalizeKeyId(String keyId) {\n if (keyId.startsWith(\"arn:\") || keyId.startsWith(\"alias/\")) {\n return keyId;\n }\n\n if (!keyId.matches(\"^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$\")) {\n return \"alias/\" + keyId;\n } else {\n return keyId;\n }\n }", "String avatarImageSelected();", "public void setImage(String _image)\n {\n this.image = _image;\n }", "public String getImageNameSrc(String srcStringXpath) {\r\n\r\n\t\tString srcString = webAppDriver.findElementByXpath(srcStringXpath).getAttribute(\"src\");\r\n\t\tString temp[] = srcString.split(\"/\");\r\n\t\tint len = temp.length;\r\n\t\tString imageName = temp[len - 1];\r\n\t\t// System.out.println(\"^^^name from method \"+imageName);\r\n\t\timageName = imageName.substring(0, imageName.length());\r\n\t\t// System.out.println(\"Image name from method \"+imageName);\r\n\t\treturn imageName;\r\n\t}", "public String ImageControl(String image) {\n \n String tmp = null;\n \n if (image != null && !image.isEmpty()){\n tmp = image;\n } else {\n int num = (new Random()).nextInt(4);\n tmp = \"icon\"+num+\".png\";\n }\n \n return tmp;\n }", "public void setImage(String Image) {\n this.Image = Image;\n }", "ImageContentData findContentData(String imageId);", "public boolean changeCDRom(String uuid, String imageFilePath) throws HyperVException;", "java.lang.String getImage();", "public void setImage(String image) {\n\t\t this.image = image;\n\t}", "private Bitmap getGoodsImageFromDatabase(String goodId) {\r\n Cursor cursor = helper.getSpecifyGoodImage(goodId);\r\n cursor.moveToFirst();\r\n byte bytes[] = Base64.decode(cursor.getString(0), Base64.DEFAULT);\r\n cursor.close();\r\n Bitmap bitmap = BitmapFactory.decodeByteArray(bytes, 0, bytes.length);\r\n return bitmap;\r\n }", "@Override\r\n\tpublic String getImageNameByAnimalId(String animalId) {\n\t\treturn fileInfoMapper.getImageNameByAnimalId(animalId);\r\n\t}", "Boolean hasTitlePicture(Long galleryId);", "public void setImageName(String _imageName) {\r\n\t\tthis._imageName = _imageName;\r\n\t}", "long getPhotoIdBySub(long subId, int sdnFlag);", "public void setImageIds(String [] ImageIds) {\n this.ImageIds = ImageIds;\n }", "public String getImageName(String srcStringXpath) {\r\n\r\n\t\tString srcString = webAppDriver.findElementByXpath(srcStringXpath).getAttribute(\"src\");\r\n\t\tString imageName = srcString.substring(srcString.lastIndexOf(\"/\") + 1, srcString.length());\r\n\t\treturn imageName;\r\n\t}", "private static boolean updateMediaStore(Context context, long albumId, String imageFileName) {\n\n ContentValues cv = new ContentValues();\n cv.put(MediaStore.Audio.Albums.ALBUM_ID, albumId);\n cv.put(\"_data\", imageFileName);\n\n return context.getContentResolver().insert(MEDIA_STORE_ALBUM_ART_URI, cv) != null;\n }", "public String getIdimgF() {\r\n return idimgF;\r\n }", "void seTubeDownImage(String image);", "String gini_GetEntityID(int ent_id) {\n String name;\n switch (ent_id) {\n case 2:\n name = \"Miscellaneous\";\n break;\n case 3:\n name = \"JERS\";\n break;\n case 4:\n name = \"ERS/QuikSCAT/Scatterometer\";\n break;\n case 5:\n name = \"POES/NPOESS\";\n break;\n case 6:\n name = \"Composite\";\n break;\n case 7:\n name = \"DMSP satellite Image\";\n break;\n case 8:\n name = \"GMS satellite Image\";\n break;\n case 9:\n name = \"METEOSAT satellite Image\";\n break;\n case 10:\n name = \"GOES-7 satellite Image\";\n break;\n case 11:\n name = \"GOES-8 satellite Image\";\n break;\n case 12:\n name = \"GOES-9 satellite Image\";\n break;\n case 13:\n name = \"GOES-10 satellite Image\";\n break;\n case 14:\n name = \"GOES-11 satellite Image\";\n break;\n case 15:\n name = \"GOES-12 satellite Image\";\n break;\n case 16:\n name = \"GOES-13 satellite Image\";\n break;\n case 17:\n name = \"GOES-14 satellite Image\";\n break;\n case 18:\n name = \"GOES-15 satellite Image\";\n break;\n case 19: // GOES-R\n name = \"GOES-16 satellite Image\";\n break;\n case 99: // special snowflake GEMPAK Composite Images generated by Unidata\n name = \"RADAR-MOSIAC Composite Image\";\n break;\n default:\n name = \"Unknown\";\n }\n\n return name;\n }", "public void setImg_0(String img_0) {\n this.img_0 = img_0;\n }", "SysPic selectByPrimaryKey(Integer id);", "public Builder setImageId(int value) {\n \n imageId_ = value;\n onChanged();\n return this;\n }", "public int getImageTypeID() {\r\n return imageTypeID;\r\n }", "public void setImg_4(String img_4) {\n this.img_4 = img_4;\n }", "@Override\n\tpublic String getImageName() {\n\t\treturn \"\";\n\t}", "String avatarImage();", "public void setImage(String image) {\n this.image = image;\n }", "public void setImage(String image) {\n this.image = image;\n }", "public String getImgName() {\n return imgName;\n }", "public void testGetSetImageString() {\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/smallpill.png\").getImage());\n\t\t\n\t\t//SET NEW IMAGE (\"PACMAN/littlepill.png\" because it exists)\n\t\ttestNormal.setImage(\"PACMAN/bigpill.png\");\n\t\tassertEquals(testNormal.getImage(), new ImageIcon(\"PACMAN/bigpill.png\").getImage());\n\t}", "public String getFilename() throws ImageException {\r\n\tif (!bValid){\r\n\t\tthrow new ImageException(\"image not valid\");\r\n\t}\t\r\n\treturn imageName;\r\n}", "String getItemImage();", "public int insertImageIntoDatabase(BufferedImage image) {\r\n\t\tint idImage = -1;\r\n\t\ttry {\r\n\t\t\tjava.io.ByteArrayOutputStream baos = new java.io.ByteArrayOutputStream();\r\n\t\t\tImageIO.write(image, \"png\", baos);\r\n\r\n\t\t\tPreparedStatement pStat = dbConnection.prepareStatement(\"insert into images (img) VALUES (?)\", Statement.RETURN_GENERATED_KEYS);\r\n\t\t\tpStat.setBlob(1, new java.io.ByteArrayInputStream(baos.toByteArray()));\r\n\t\t\tpStat.execute();\r\n\r\n\t\t\tResultSet rs = pStat.getGeneratedKeys();\r\n\t\t\tif (rs.next()) {\r\n\t\t\t\tidImage = rs.getInt(1);\r\n\t\t\t}\r\n\t\t\tpStat.close();\r\n\t\t} catch (SQLException | IOException e) {\r\n\t\t\te.printStackTrace();\r\n\t\t} \r\n\t\t\r\n\t\treturn idImage;\r\n\t}", "public boolean checkImageComponent(String filename) {\n if (componentMap.containsKey(filename))\n return true;\n else\n return false;\n }", "public long getImageId() {\n return _courseImage.getImageId();\n }", "void seTubeUpImage(String image);", "private boolean checkImage(int row, int col, String imageName) {\n\t\tDirectionalPanel[] room = rooms[row][col];\n\t\tfor (int i = 0; i < room.length; i++) {\n\t\t\tString roomImageName = room[i].getImageName();\n\t\t\tif (roomImageName != null && roomImageName.equals(imageName)) {\n\t\t\t\treturn true;\n\t\t\t}\n\t\t}\n\t\treturn false;\n\t}", "public void mo38841a(ImagesRequest imagesRequest) {\n }", "public String getImageName() {\r\n\t\treturn _imageName;\r\n\t}", "@Override\n\tpublic Image findById(Long id) {\n\t\treturn imageRepository.findById(id).get();\n\t}" ]
[ "0.64105666", "0.62834585", "0.6255343", "0.62304115", "0.6150766", "0.6128256", "0.6100507", "0.6063311", "0.597828", "0.59606546", "0.59556323", "0.5953107", "0.59434", "0.59342104", "0.59312236", "0.5873171", "0.5867638", "0.5858432", "0.5847699", "0.5799264", "0.5792069", "0.57907015", "0.5783603", "0.57813966", "0.5768676", "0.5754338", "0.5718731", "0.57051086", "0.5656554", "0.56475437", "0.56349355", "0.5606575", "0.55912507", "0.558269", "0.5571495", "0.5544431", "0.55421084", "0.55210936", "0.5507336", "0.55049807", "0.54880935", "0.5481969", "0.54692036", "0.5422988", "0.5391496", "0.538902", "0.53786117", "0.53705084", "0.5366975", "0.53648454", "0.5341634", "0.53370357", "0.5328585", "0.5315501", "0.5282514", "0.5280257", "0.527234", "0.5269136", "0.5269136", "0.5268442", "0.52674097", "0.5256961", "0.5255706", "0.5251892", "0.5249547", "0.5248082", "0.5227588", "0.5226802", "0.5220213", "0.5190959", "0.5190581", "0.5183692", "0.51818454", "0.5155093", "0.5151916", "0.51474684", "0.5131897", "0.5109813", "0.51085645", "0.51081336", "0.5103694", "0.5103627", "0.50980455", "0.5092656", "0.5088326", "0.50872123", "0.508631", "0.5081", "0.5081", "0.50695795", "0.5068076", "0.5067547", "0.5065571", "0.50621396", "0.5055914", "0.5052409", "0.5050147", "0.50412774", "0.50295705", "0.502782", "0.50275046" ]
0.0
-1
Returns all the tags used to create buttons.
@Path("/tags") @GET @Produces("application/json") public Response getTagsList() { List<String> tags = PhotoDB.getTags(); Gson gson = new Gson(); String jsonText = gson.toJson(tags); return Response.status(Status.OK).entity(jsonText).build(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public ArrayList<GUIButton> getButtons(){\n return new ArrayList<>();\n }", "public HashMap<Integer, Element> getButtons() {\n\t\treturn buttons;\n\t}", "public ButtonTag GetButtonTag(){\n if(buttonTag != null) {\n return ButtonTag.valueOf(buttonTag);\n }\n else{\n return null;\n }\n }", "public Button[] getButtons() {\r\n\t\treturn buttonArray;\r\n\t}", "public HomePageHelper writeTextOfButtons(){\n System.out.println (\"Quantity of elements: \" + languagesButtons.size());\n for(WebElement el : languagesButtons){\n System.out.println(\"Tag Name: \" + el.getTagName());\n System.out.println(\"attr: ng-click - \" + el.getAttribute(\"ng-click\"));\n }\n return this;\n }", "@Override\n\tpublic ArrayList<Button> getButtonArray() {\n\t\treturn super.getButtonArray();\n\t}", "public abstract List<GuiButton> getButtonList();", "public JLabel[] getButtons() {\r\n\t\treturn array;\r\n\t}", "public static Button[][] getButtons()\n {\n return (buttons);\n }", "public ArrayList<JButton> getButtons() {\n\t\treturn buttons;\n\t}", "public Map<String, SignButton> getButtons() {\n return buttons;\n }", "public String getTags() {\n return tags;\n }", "public String getTags() {\n return tags;\n }", "public String getTags() {\n if (tags.size() == 0) {\n return \"\";\n }\n StringBuilder result = new StringBuilder(\" (Tags:\");\n for (String t : tags) {\n result.append(\" \").append(t);\n }\n result.append(\")\");\n return result.toString();\n }", "public String getTags() {\n return this.tags;\n }", "public List getTags();", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public java.util.List<Tag> getTags() {\n if (tags == null) {\n tags = new com.amazonaws.internal.SdkInternalList<Tag>();\n }\n return tags;\n }", "public List<Tag> getTag()\n\t{\n\t\treturn (List<Tag>) this.getKeyValue(\"Tag\");\n\n\t}", "public String[] getTags() {\n return modifiedEditor.getTags ();\n }", "public StringBuilder getTags () {\n return tags;\n }", "public String getTags() {\n\t\treturn tags;\n\t}", "public String getTags() {\n\t\treturn tags;\n\t}", "public String [] getTags() {\n\t\treturn null;\n\t}", "private Map<Integer, Button> getButtons(){\r\n\t\tMap<Integer, Button> buttons = new HashMap<Integer, Button>();\r\n\r\n\t\tButton toLeftBt = new Button(\"&lt;\");\r\n\t\tbuttons.put(0, toLeftBt);\r\n\t\tButton toRightBt = new Button(\"&gt;\");\r\n\t\tbuttons.put(2, toRightBt);\r\n\t\tfinal Button playBt = new Button(\"||\");\r\n\t\tbuttons.put(1, playBt);\r\n\t\t\r\n\t\ttoRightBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tdisplayNext();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\ttoLeftBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tdisplayPrevious();\r\n\t\t\t}\r\n\t\t});\r\n\t\t\r\n\t\tplayBt.addClickListener(new ClickListener(){\r\n\t\t\tpublic void onClick(Widget sender) {\r\n\t\t\t\tif(isActive){\r\n\t\t\t\t\tstopSlideshow();\r\n\t\t\t\t\tplayBt.setText(\"Go\");\r\n\t\t\t\t\t\r\n\t\t\t\t}else{\r\n\t\t\t\t\tstartSlideshow();\r\n\t\t\t\t\tplayBt.setText(\"||\");\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t});\r\n\t\treturn buttons;\r\n\t}", "UniqueTagList getTags();", "String[] getAvailableTags();", "public static List<Tag> getAllTags() {\n\t\treturn Arrays.asList(\n\t\t\t\tnew Tag(\"home\", Color.parseColor(\"#3F91EB\")),\n\t\t\t\tnew Tag(\"work\", Color.parseColor(\"#CF4647\")),\n\t\t\t\tnew Tag(\"other\", Color.parseColor(\"#85D95B\"))\n\t\t);\n\t}", "public Object getTags() {\n return this.tags;\n }", "private List<Tag> getTags() {\r\n\r\n\t\treturn getTags(null);\r\n\r\n\t}", "public ArrayList<JButton> getStratButtons(){\n\t\treturn stratButtons;\n\t}", "@Override\n public ExtensionResult getButtons(ExtensionRequest extensionRequest) {\n Map<String, String> output = new HashMap<>();\n\n ButtonTemplate button = new ButtonTemplate();\n button.setTitle(\"This is title\");\n button.setSubTitle(\"This is subtitle\");\n button.setPictureLink(SAMPLE_IMAGE_PATH);\n button.setPicturePath(SAMPLE_IMAGE_PATH);\n List<EasyMap> actions = new ArrayList<>();\n EasyMap bookAction = new EasyMap();\n bookAction.setName(\"Label\");\n bookAction.setValue(\"Payload\");\n actions.add(bookAction);\n button.setButtonValues(actions);\n\n ButtonBuilder buttonBuilder = new ButtonBuilder(button);\n output.put(OUTPUT, buttonBuilder.build());\n\n ExtensionResult extensionResult = new ExtensionResult();\n extensionResult.setAgent(false);\n extensionResult.setRepeat(false);\n extensionResult.setSuccess(true);\n extensionResult.setNext(true);\n extensionResult.setValue(output);\n return extensionResult;\n }", "public List<Tag> getAllTags() {\n\t\treturn DAO.getInstance().getTags().getTagList();\n\t}", "public ArrayList<ButtonMenuItem> getAssociatedButtons() {\n\t\treturn associatedButtons;\r\n\t}", "public java.util.List<String> getTagKeys() {\n if (tagKeys == null) {\n tagKeys = new com.amazonaws.internal.ListWithAutoConstructFlag<String>();\n tagKeys.setAutoConstruct(true);\n }\n return tagKeys;\n }", "public java.util.List<Tag> getTags() {\n return tags;\n }", "public java.util.List<Tag> getTags() {\n return tags;\n }", "public java.util.List<java.lang.String> getTags() {\n return tags;\n }", "public List<Tag> getTags() {\n return tags;\n }", "List<String> getTags() {\n return tags;\n }", "public java.util.List<java.lang.String> getTags() {\n return tags;\n }", "public AbstractButton[] getButtons() {\r\n synchronized (buttons) {\r\n AbstractButton[] b = new AbstractButton[buttons.size()];\r\n for (int i = 0; i < b.length; i++) {\r\n b[i] = (AbstractButton) buttons.get( i );\r\n }\r\n return b;\r\n }\r\n }", "List<String> getTags() {\r\n return tags;\r\n }", "public Set<String> getTags() {\n\t\tSet<String> tags = tagToImg.keySet();\n\t\treturn tags;\n\t}", "public String[] getTags() {\n WindowManager wm = TopManager.getDefault().getWindowManager();\n Workspace[] wss = wm.getWorkspaces();\n if (!namesInitialized) {\n namesInitialized = true;\n initializeNamesMap(wss);\n }\n // exclude browsing, running and debugging workspaces\n java.util.Vector tagList = new java.util.Vector ();\n for (int i = wss.length; --i >= 0; ) {\n String name = wss[i].getName();\n if (!(\"Browsing\".equals (name) || \"Running\".equals (name) || \"Debugging\".equals (name))) { // NOI18N\n tagList.add(name);\n }\n }\n // XXX(-tdt)\n // tagList.add(NbBundle.getBundle(WorkspaceEditor.class).getString(\"VALUE_WORKSPACE_NONE\"));\n String[] names = new String [tagList.size()];\n for (int i=0, n=tagList.size(); i<n; i++)\n names[i] = (String)namesMap.get(tagList.get(i));\n return names;\n }", "@DialogField(fieldLabel = \"Tags\", fieldDescription = \"List of tags to filter on.\")\n @TagInputField\n public List<Tag> getTags() {\n if (tags == null) {\n tags = getAsList(PARAM_TAGS, String.class)\n .stream()\n .map(tagId -> tagManager.resolve(tagId))\n .filter(Objects:: nonNull)\n .collect(Collectors.toList());\n }\n\n return tags;\n }", "public List<Widget> getAchievementButtons();", "@DISPID(73)\r\n\t// = 0x49. The runtime will prefer the VTID if present\r\n\t@VTID(78)\r\n\tasci.activebatch.ITags tags();", "public List<String> getTags() {\n\t\treturn tags;\n\t}", "public String getTag();", "private List<Button> createButtons(final JSONObject jsonMessageSet) {\n final List<Button> buttons = new ArrayList<Button>();\n\n final JSONArray jsonButtons = (JSONArray) jsonMessageSet.get(\"button\");\n for (Object buttonObject : jsonButtons) {\n final JSONObject jsonButton = (JSONObject) buttonObject;\n final Button button = new Button();\n button.setButtonId((Integer) jsonButton.get(\"buttonId\"));\n button.setText((String) jsonButton.get(\"text\"));\n buttons.add(button);\n }\n\n return buttons;\n }", "private List<String> getTagNames() {\n String query = \"SELECT DISTINCT ?tagName WHERE { ?thing isa:tag [isa:tagName ?tagName; isa:tagDetail ?tagDetail]}\";\n List<Map<String, String>> results = moduleContext.getModel().executeSelectQuery(query);\n List<String> tags = new ArrayList<>();\n results.forEach(solution -> tags.add(solution.get(\"tagName\")));\n return tags;\n }", "public TagInfo[] getTags() {\n/* 164 */ return this.tags;\n/* */ }", "public List<Tag> getTags() {\n return new ArrayList<>(tags);\n }", "public ITag[] getTags() {\n \t\t\t\t\t\t\t\t\treturn null;\n \t\t\t\t\t\t\t\t}", "public Set<String> getTags(){\r\n\t\treturn tags.keySet();\r\n\t}", "@Override\n\tpublic List<Tags> getlist() {\n\t\treturn TagsRes.findAll();\n\t}", "public Tag [] getTagSet() {\n return this.TagSet;\n }", "public Map<String, List<GUIButton>> getGUIButtons() {\n return guiButtons;\n }", "@NotNull\n public List<GUIButton> getPlaceholderButtons(String key) {\n key = ITemplatePlaceholder.SECTION_KEY_PREFIX + key;\n if (!isKeyAvailable(key)) return new ArrayList<>();\n return guiButtons.get(key);\n }", "public List<ITag> getTags ();", "public List<Tag> getTags() {\n return fullPhoto.getTags();\n }", "public ActionButton[] getActionButtons() {\n\t\treturn new ActionButton[] {\n\t\t\t\tmoveShepherdButton, moveSheepButton, coupleButton,\n\t\t\t\tcoupleSheepsButton, killButton, buyCardButton\n\t\t};\n\t}", "private String[] getTags() {\n String[] tags = new String[10];\n Node temp = head;\n int i = 0;\n\n while ((temp != null) && i < 10) {\n tags[i] = temp.message;\n temp = temp.next;\n i++;\n }\n return tags;\n }", "public List<Tag> findAll() {\n\t\treturn tagRepository.findAll();\n\t}", "@DISPID(134)\r\n\t// = 0x86. The runtime will prefer the VTID if present\r\n\t@VTID(129)\r\n\tasci.activebatch.ITags tags();", "List<ButtonSliderType> getBtnSwitches();", "public List<TodoTag> getAllTodosTags() {\n List<TodoTag> todoTags = new ArrayList<TodoTag>();\n String vyber = \"SELECT * FROM \" + TABLE_TODO_TAG;\n \n Log.e(LOG, vyber);\n \n SQLiteDatabase db = this.getReadableDatabase();\n Cursor c = db.rawQuery(vyber, null);\n \n if (c.moveToFirst()) {\n do {\n \tTodoTag t = new TodoTag();\n t.setId(c.getInt((c.getColumnIndex(KEY_ID))));\n t.setTodo_id(c.getInt(c.getColumnIndex(KEY_TODO_ID)));\n t.setTag_id(c.getInt(c.getColumnIndex(KEY_TAG_ID)));\n todoTags.add(t);\n } while (c.moveToNext());\n }\n return todoTags;\n }", "public List<String> getTags() {\n\n\t\tSet<String> tags = new TreeSet<>();\n\n\t\tString allTags = tagsTextField.getText();\n\n\t\tif (!allTags.isEmpty()) {\n\t\t\ttags.addAll(Arrays.asList(allTags.replaceAll(\"\\\\s+\", \"\").split(\",\")));\n\t\t}\n\t\t\n\t\ttags.addAll(allCurrentTagsListView.getSelectionModel().getSelectedItems());\n\t\t\n\t\tif(currentDateAsTag.isSelected()) {\n\t\t\ttags.add(LocalDate.now().format(DateTimeFormatter.ofPattern(\"dd.MM.yyyy\")).toString());\n\t\t}\n\n\t\treturn new ArrayList<>(tags);\n\n\t}", "String getTag();", "List<ButtonLink> getBtnActionLinks();", "List<Tag> getTagList();", "List<Tag> getTagList();", "java.lang.String getTag();", "java.lang.String getTag();", "public Map<String, String> tags() {\n return this.tags;\n }", "public Map<String, String> tags() {\n return this.tags;\n }", "Set<String> tags();", "ArrayList<String> getAllTags() {\r\n return allTags;\r\n }", "public Set<String> getCurrentTags() {\n\t\tSet<String> tags = new HashSet<String>();\n\t\t\n\t\tfor (int i=0;i<this.sentenceTable.size();i++) {\n\t\t\tSentenceStructure sentence = this.sentenceTable.get(i);\n\t\t\tString tag = sentence.getTag();\n\t\t\tif ((!StringUtils.equals(tag, \"ignore\"))){\n\t\t\t\ttags.add(tag);\n\t\t\t}\n\t\t}\n\t\t\n\t\treturn tags;\n\t}", "public Set<String> getTags()\n {\n return tags;\n }", "public ArrayList<Tag> getTags() {\n return tags;\n }", "public List<Tag> getTagList();", "public void createButtons() {\n\t\tbutton1 = new JButton(\"Button1\");\n\t\tbutton2 = new JButton(\"Button2\");\n\t\tbutton3 = new JButton(\"Button3\");\n\t\tbutton4 = new JButton(\"Button4\");\n\t\tbutton5 = new JButton(\"Button5\");\n\t}", "public void getTagCommand() {\n\n }", "@Override\n public String toString() {\n return tags.toString();\n }", "public TagCloudModel getTags() {\r\n return tags;\r\n }", "@Override\n\tpublic List<Tag> getAllTags() throws Exception {\n\t\treturn null;\n\t}", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public java.util.Map<String, String> getTags() {\n return tags;\n }", "public ArrayList<String> getSelectedTags() {\n\t\treturn selectedTags;\n\t}", "public Set<RvtAoiMetadataKey> getTags() {\n return map.keySet();\n }", "public List<BzrTagBranch> listTags() {\n return Collections.emptyList();\n }", "public String[] getAutoGeneratedTags()\r\n {\r\n return TagManager.AUTO_GEN_TAGS;\r\n }", "public Map<String, String> getTags() {\n return this.tags;\n }", "public Set<String> getTagNames()\r\n\t{\r\n\t\treturn Collections.unmodifiableSet(tagMap.keySet());\r\n\t}" ]
[ "0.68189454", "0.6809716", "0.6739419", "0.6722164", "0.66902196", "0.66292506", "0.6618946", "0.6589875", "0.6568669", "0.6562858", "0.6449598", "0.64128166", "0.64128166", "0.6403084", "0.6399385", "0.6383221", "0.6374171", "0.6374171", "0.6374171", "0.6374171", "0.6374171", "0.6362794", "0.63607943", "0.63598335", "0.63568956", "0.63568956", "0.63527644", "0.6344234", "0.6334241", "0.6305873", "0.6295787", "0.6292809", "0.628521", "0.62813675", "0.62553066", "0.62257606", "0.6216439", "0.6193063", "0.61757857", "0.61757857", "0.6174022", "0.6172648", "0.61633146", "0.6161958", "0.6158974", "0.615078", "0.61489516", "0.6117078", "0.6116637", "0.6110868", "0.6105679", "0.6088929", "0.6087563", "0.60868275", "0.60728925", "0.60613567", "0.6057524", "0.6046573", "0.6039727", "0.6038332", "0.60364383", "0.59910357", "0.59894276", "0.5985199", "0.5970861", "0.5942362", "0.594017", "0.5935951", "0.59321564", "0.59234524", "0.5923345", "0.59193575", "0.5912586", "0.59110034", "0.5906293", "0.5906293", "0.58966047", "0.58966047", "0.5871928", "0.5871928", "0.58626646", "0.5850821", "0.58433414", "0.5838463", "0.5837852", "0.5836875", "0.5830855", "0.582679", "0.5824989", "0.58140075", "0.581287", "0.5799726", "0.5799726", "0.5799726", "0.5799726", "0.57982075", "0.57700634", "0.57588255", "0.5755283", "0.57497793", "0.57282484" ]
0.0
-1
Constructs roaches population with initial number parameter.
RoachPopulation(int initial) { roaches = initial; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void initializePopulation(){\n\t\t// create the population\n\t\tfor(int i = 0; i < POPULATION_SIZE; i++){\n\t\t\t// get a random length for the building sequence\n\t\t\tint randArraySize = randomGenerator.nextInt(possiblePieces.length-1)+1;\n\t\t\t\n\t\t\tBuildingPiece[] pieceSequence = new BuildingPiece[randArraySize];\n\t\t\tfor(int j = 0; j < randArraySize; j++){\n\t\t\t\t// get a random possible piece and insert it into the sequence\n\t\t\t\tint randIndex = randomGenerator.nextInt(possiblePieces.length);\n\t\t\t\tpieceSequence[j] = possiblePieces[randIndex];\n\t\t\t}\n\t\t\t\n\t\t\t/* add a new number sequence with the newly created \n\t\t\t * sequence from the input */\n\t\t\tpopulation.add(new Building(pieceSequence, generation, possiblePieces));\n\t\t}\n\t}", "private void initializePopulation() {\n // reset the population\n population = new ArrayList<Genotype>();\n\n // set the population to an array of random genotypes\n for (int i = 0; i < populationSize; i++) {\n population.add(new Genotype(chromosomeSize));\n }\n\n // evaluate the population\n // evaluatePopulation();\n }", "public Population InitSinglePopulation(int NumberOfAgents) {\n \n SinglePopulation TempPopulation = new SinglePopulation();\n \n TempPopulation.setPopulationID(0);\n\n for(int j = 0; j < NumberOfAgents; j++){\n\n SinglePopulationAgent TempAgentS = new SinglePopulationAgent(j,rand.nextDouble());\n boolean InitAction = (rand.nextDouble() < TempAgentS.getStrategy()) ? true : false;\n TempAgentS.setAction(InitAction);\n \n TempPopulation.AgentList.add(TempAgentS);\n }\n \n TempPopulation.setStrategyList();\n TempPopulation.setActionList();\n return TempPopulation;\n }", "public void initPop(int num) {\n\t\tif (num % 2 == 1) {\n\t\t\tnum -= 1;\n\t\t}\n\t\tthis.individuals = new AI[num];\n\t\tfor (int i = 0; i < num; i++)\n\t\t\tthis.individuals[i] = new AI();\n\t}", "public ArrayList<Population> InitializePopulations (int NumberOfPopulations, int NumberOfAgents){\n \n ArrayList<Population> PopulationsList = new ArrayList();\n \n if(NumberOfPopulations == 1){\n \n PopulationsList.add(InitSinglePopulation(NumberOfAgents));\n \n }else{\n \n for(int i = 0; i < NumberOfPopulations; i++){ \n double temp = rand.nextDouble();\n PopulationsList.add(InitSinglePopulation(i, NumberOfAgents, temp));\n }\n \n }\n \n \n return PopulationsList;\n }", "public static void generatePopulation() {\n population = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n\n for (Individual individual : population) {\n for (int i = 0; i < individual.getGene().length; i++) {\n individual.gene[i] = bits.get(new Random().nextInt(2));\n }\n individual.generateRulebase();\n }\n }", "private static List<Cell> initiatePopulation(int required_population_size)\n {\n List<Cell> population = new ArrayList<Cell>(); //Define an arraylist to hold the initial population of cells\n int[][][] diploid_genome = newEmptyDeploidGenome();\n int cell_generation = newest_generation + 1, last_div = -1;\n \n //Set the label status of all DNA strands in the genome to unlabelled\n for(int chromosome_count = 0; chromosome_count < diploid_genome.length; chromosome_count++)\n {\n for(int homologous_pair_count= 0; homologous_pair_count < diploid_genome[chromosome_count].length; homologous_pair_count++)\n {\n for(int dna_strand_count = 0; dna_strand_count < diploid_genome[chromosome_count][homologous_pair_count].length; dna_strand_count++)\n {\n diploid_genome[chromosome_count][homologous_pair_count][dna_strand_count] = STRAND_UNLABELLED; //Set each DNA strand to unlabelled\n }\n }\n }\n \n // !****!Create the starting population of cells, all as generation 0!****!\n for (int counter = 0; counter < required_population_size; counter++)\n {\n int cell_id = counter;\n population.add(new Cell(cell_id, cell_generation, last_div, CAN_DIVIDE, diploid_genome)); // Create a new Cell object with the following values.\n id_of_last_created_cell = cell_id; // Track the id of the last created cell\n }// for\n newest_generation++;\n return population;\n }", "public void setPoputlation (double population) { n.setPopulation(population); }", "SolutionPopulation initialise(ArrayList<City> cities, int populationSize);", "public void populateRiver()\n\t{\n\t\twhile (emptyIndices.size() != 10) // 10 animals requirement at start\n\t\t{\n\t\t\tswitch (rng.nextInt(3))\n\t\t\t{\n\t\t\tcase 0:\n\t\t\t\triver[rng.nextInt(20)] = new Bear();\n\t\t\t\tbreak;\n\t\t\tcase 1:\n\t\t\t\triver[rng.nextInt(20)] = new Fish();\n\t\t\t\tbreak;\n\t\t\tdefault:\n\t\t\t\triver[rng.nextInt(20)] = null;\n\t\t\t}\n\t\t\tfindEmpty(); // force emptyIndices update\n\t\t}\n\t}", "public void initialiseNewRandomPopulation(Random rnd) {\n\t\tthis.population = new ArrayList<Individual>();\n\t\tfor (int i = 0; i < this.popSize; i++) {\t\t\t\t\t//FOR ALL DESIRED POPULATION SIZE\n\t\t\tdouble[] randomValues = new double[DIMENSIONS];\t\t\t//INITIATE RANDOM X ARRAY WITH CORRECT DIMENSIONS\n\t\t\tfor (int j = 0; j < DIMENSIONS; j++) {\t\t\t\t\t//CREATE RANDOM X VALUES\n\t\t\t\trandomValues[j] = -5 + rnd.nextDouble() * 10;\t\t//ASSIGN VALUES TO EACH POSITION IN ARRAY\n\t\t\t}\n\t\t\tIndividual newInd = new Individual(randomValues);\t\t//CREATE NEW INDIVIDUAL WITH RANDOM X VALUES\n\t\t\tthis.population.add(newInd);\t\t\t\t\t\t\t//ADD INDIVIDUAL TO POPULATION\n\t\t}\n\t}", "public void generatePopulation() {\n\t\t\n\t\tif (SCType.getScLayers() <= 2)\n\t\t\tLogger.logError(\"To few supply chain layers, minimum of 3 required:\" + SCType.getScLayers());\n\t\t\n\t\tArrayList<CountryAgent> countryAgents = SU.getObjectsAll(CountryAgent.class);\t\t\n\t\tfor (CountryAgent country : countryAgents) {\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.PRODUCER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_PRODUCERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.PRODUCER);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.INTERNATIONAL)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_INTERNATIONALS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.INTERNATIONAL);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.WHOLESALER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_WHOLESALERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.WHOLESALER);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.RETAIL)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_RETAILERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.RETAIL);\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif (country.containsSCType(SCType.CONSUMER)) {\n\t\t\t\tfor (int i = 0; i < Constants.N_CONSUMERS; i++) {\n\t\t\t\t\tcountry.spawnAgent(SCType.CONSUMER);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t// Set possible new suppliers and clients\n\t\tfor (BaseAgent agent : SU.getObjectsAll(BaseAgent.class)) {\n\t\t\tagent.setPossibleNewSuppliersAndClients();\n\t\t}\n\t\t\n\t\tSU.getDataCollector().addAllCurrentStock();\n\t}", "public void reproduce(){\n\t\t// sort the population from strongest to weakest\n\t\tCollections.sort(population);\n\t\tCollections.reverse(population);\n\t\t\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i+=2){\n\t\t\t\n\t\t\t// get two random indexes for reproduction based on the exponential function\n\t\t\t// (1/1000) * (randInt)^2 = index\n\t\t\t// this function favors sequences with higher fitness scores\n\t\t\tint randIndex1 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\tint randIndex2 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\t\n\t\t\trandIndex1 = (int) (Math.pow(randIndex1, 2) / 1000);\n\t\t\trandIndex2 = (int) (Math.pow(randIndex2, 2) / 1000);\n\t\t\t\n\t\t\t// get two pieces\n\t\t\tBuildingPiece[] array1 = population.get(randIndex1).getList();\n\t\t\tBuildingPiece[] array2 = population.get(randIndex2).getList();\n\t\t\t\n\t\t\t// find a splicing point\n\t\t\tint splicePoint = findSplicingPoint(array1, array2);\n\t\t\t\n\t\t\t// generate two new arrays based on the splicing point\n\t\t\tBuildingPiece[] newArray1 = generateNewArray(array1, array2, splicePoint);\n\t\t\tBuildingPiece[] newArray2 = generateNewArray(array2, array1, splicePoint);\n\t\t\t\n\t\t\t// make new buildings with the new arrays\n\t\t\tBuilding bp1 = new Building(newArray1, generation, possiblePieces);\n\t\t\tBuilding bp2 = new Building(newArray2, generation, possiblePieces);\n\t\t\t\n\t\t\t// mutate the new building sequences\n\t\t\tmutateArray(bp1);\n\t\t\tmutateArray(bp2);\n\t\t\t\n\t\t\t// add them into the population\n\t\t\tpopulation.add(randIndex1, bp1);\n\t\t\tpopulation.add(randIndex2, bp2);\n\t\t}\n\t}", "public void setNextGeneration() {\n // create a temporary population\n ArrayList<Genotype> tempPopulation = new ArrayList<Genotype>();\n\n // select mates\n while (tempPopulation.size() < populationSize) {\n tempPopulation.add(Genotype.Mate(rouletteSelection(),\n rouletteSelection(), crossoverProbability));\n }\n }", "private void createInitialPopulation() throws InterruptedException, TimeoutException {\n\n\t\tProteinDatabase ident = new ProteinDatabase();\n\t\tident.parseInput(\"proteins.fasta\");\n\t\tList<Protein> database = ident.getDatabase();\n\n\t\tfor (Protein data : database) {\n\t\t\tdata.setExperimental(es);\n\t\t}\n\n\t\tList<Protein> candidates = new ArrayList<Protein>();\n\t\tfor (Protein p : database)\n\t\t{\n\t\t\tTheoreticalSpectrum theoreticalSpectrum = new TheoreticalSpectrum(p.getAminoAcidsequence());\n\t\t\tif (Math.abs(parentMass - theoreticalSpectrum.getParentMass()) <= parentMassThreshold) {\n\t\t\t\tcandidates.add(p);\n\t\t\t}\n\t\t}\n\n\t\trunInitialFitnessCalculations(candidates);\n\n\t\tCollections.sort(candidates, new ProteinFitnessComparator());\n\t\tdebug(candidates, 0);\n\n\n\t\tpopulation = new ArrayList<Protein>(populationSize);\n\n\t\tpopulationActualSize = 0;\n\t\tfor (Protein p : candidates)\n\t\t{\n\t\t\tpopulation.add(p);\n\t\t\tpopulationActualSize++;\n\t\t\tif (populationActualSize == populationSize)\n\t\t\t{\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}", "private int[][] generateInitialPopulation(int binCt, int binSize, int pkgCt, int populationSize) {\n\t\tint[][] population = new int[populationSize][pkgCt];\n\t\tfor (int i = 0; i < populationSize; i++) {\n\t\t\tfor (int j = 0; j < pkgCt; j++) {\n\t\t\t\tpopulation[i][j] = rand.nextInt(binCt);\n\t\t\t}\n\t\t}\n\t\treturn population;\n\t}", "void init() {\r\n \tfor (int i=0; i<SIZE; i++) {\r\n \t\tfor (int j=0; j<LEN; j++) {\r\n \t\t\tif (rnd.nextDouble() < 0.5)\r\n \t\t\t\toldpop[i][j] = 0;\r\n \t\t\telse\r\n \t\t\t\toldpop[i][j] = 1;\r\n \t\t}\r\n \t}\r\n \tfor (int j=0; j<LEN; j++) {\r\n \t\tcbest[j] = oldpop[0][j];\r\n \t}\r\n\t\tbest = fitness(0);\r\n }", "public void setpopulation(int population) {\n this.population = population;\n }", "public void setPopulation(int population) {\n this.population = population;\n }", "public Population(int populationSize, boolean initialize, boolean selfCreation) {\r\n\t tours = new Tour[populationSize]; \r\n\t if (initialize) {\t\r\n\t \tif(selfCreation==false) {\r\n\t\t \tfor (int i = 0; i < populationSize; i++) {\t\t\t\t \r\n\t\t Tour newTour = new Tour();\r\n\t\t newTour.generateIndividual();\r\n\t\t saveTour(i, newTour);\t\t\t\t\t\t\t\t\t \r\n\t\t }\r\n\t \t}\r\n\t \telse {\r\n\t \t\tString path=\"C:\\\\Users\\\\BADai\\\\git\\\\BachelorThesis\\\\BA\\\\src\\\\Tour.txt\";\r\n\t \t\treadFile rf = new readFile();\r\n\t \t\tTour t= new Tour(rf.readTour(path));\r\n\t \t\tsaveTour(0,t);\r\n\t \t\tfor(int a=0; a<t.tourSize();a++) {\r\n\t \t\t\tAll_Cities.addCity(t.getCity(a));\r\n\t \t\t}\r\n\t \t\tD_Matrix.startCity=All_Cities.getCity(0);\r\n\t \t}\r\n\t }\r\n\t\r\n\t }", "public void setPopulation(int population) {\n\n this.population = population;\n }", "void init(int n);", "void init(int n);", "public void initRooms(int numOfRooms) {\n this.numOfRooms = numOfRooms;\n initRooms();\n }", "private void initialiseNumbers() {\r\n double choice = Math.random();\r\n sourceNumbers = new int[6];\r\n if(choice<0.8) {\r\n //one big number, 5 small.\r\n sourceNumbers[0] = (Integer) bigPool.remove(0);\r\n for( int i=1; i<6; i++) {\r\n sourceNumbers[i] = (Integer) smallPool.remove(0);\r\n }\r\n } else {\r\n //two big numbers, 5 small\r\n sourceNumbers[0] = (Integer) bigPool.remove(0);\r\n sourceNumbers[1] = (Integer) bigPool.remove(0);\r\n for( int i=2; i<6; i++) {\r\n sourceNumbers[i] = (Integer) smallPool.remove(0);\r\n }\r\n }\r\n\r\n //for target all numbers from 101 to 999 are equally likely\r\n targetNumber = 101 + (int) (899 * Math.random());\r\n }", "public Population(int nVillages){\r\n\t\tthis.nFlocks = 0;\r\n\t\tthis.nVillages = nVillages;\r\n\t\tthis.vVillages = new Village[nVillages];\r\n\t\tfor(int i = 0; i < nVillages; i++){\r\n\t\t\tthis.vVillages[i] = new Village();\r\n\t\t\tthis.nFlocks += vVillages[i].getnFlocks();\r\n\t\t}\r\n\t\tthis.ndvPool = new Vector<NDInfection>();\r\n\t}", "private void populate()\n\t{\n\t\tages = new int[] { 15, 18, 16, 16, 15, 16 }; \n\t}", "public population(int size, boolean initial) {\n tours = new tour[size];\n for (int i = 0; i < tours.length; i++) {\n\t tour newTour = new tour();\n newTour.path();\n savetour(i, newTour);\n }\n }", "protected void initializePopulation () {\n\t\tfor (int i = 0; i < this.speciesSize; i++) {\n\t\t\tthis.detectors.add(DetectorFactory.makeDetector(this.featuresLength, this.typeBias, this.generalityBias));\n\t\t}\n\t}", "public void initialise() {\n number_of_rays = 4; // how many rays are fired from the boat\n ray_angle_range = 145; // the range of the angles that the boat will fire rays out at\n ray_range = 30; // the range of each ray\n ray_step_size = (float) 10;\n regen = false;\n }", "public GameState(int initialStones) \n {\n \tif (initialStones < 1) initialStones = 4;\n \tfor (int i=0; i<6; i++)\n \t\tstate[i] = state[i+7] = initialStones;\n }", "public void random_init()\r\n\t{\r\n\t\tRandom random_generator = new Random();\r\n\t\t\r\n\t\tfor(int i=0;i<chromosome_size;i++)\r\n\t\t{\r\n\t\t\tchromosome[i] = random_generator.nextInt(num_colors)+1;\r\n\t\t}\r\n\t}", "@Override\r\n\tpublic void initialize() {\n\t\tRandom randomGenerator = new Random();\r\n\t\tthis.size = Helper.getRandomInRange(1, 9, randomGenerator);\r\n\t\tif (this.size % 2 == 0)\r\n\t\t\tthis.size--;\r\n\t}", "public void genPopulation(int howMany)\r\n/* 30: */ {\r\n/* 31:54 */ this.pop.removeAllElements();\r\n/* 32:55 */ for (int i = 0; i < howMany; i++)\r\n/* 33: */ {\r\n/* 34:61 */ int[] clusterV = g.genRandomClusterSize();\r\n/* 35:62 */ Cluster c = new Cluster(g, clusterV);\r\n/* 36:63 */ this.pop.addElement(c);\r\n/* 37: */ }\r\n/* 38: */ }", "@Override\n public void initialize() {\n numPlayers = game().numPlayers();\n haveSeen = new ArrayList<>();\n goldProb = new double[3];\n Probability = new double[numPlayers];\n oldBoard = game().board().copy();\n //sets all of the players to miners at first\n //the lower the value the higher the player is predicted as Saboteur\n for (int i = 0; i < numPlayers; i++) {\n Probability[i] = 0.5;\n haveSeen.add(new int[3]);\n }\n for(int i=0; i<3; i++) {\n //top is 0, middle is 1, bottom is 2\n goldProb[i]=0.1;\n }\n if(role() == Role.SABOTEUR) Probability[index()]=0;\n else if(role() == Role.GOLD_MINER) Probability[index()]=1;\n }", "public Population()\n{\n year = 0;\n fate = new Random();\n eligibleDuas = new ArrayList<Caldean>();\n eligibleDuises = new ArrayList<Caldean>();\n theHouses = new LinkedList<House>();\n}", "public Population InitSinglePopulation\n (int PopulationID, int NumberOfAgents, double MixedStrategy){\n \n MultiPopulation TempPopulation = new MultiPopulation();\n\n TempPopulation.setPopulationID(PopulationID);\n TempPopulation.setInitMixedStrategy(MixedStrategy);\n\n for(int j = 0; j < NumberOfAgents; j++){\n\n double TempDraw = rand.nextDouble();\n boolean TempAction = (TempDraw < MixedStrategy) ? true : false;\n MultiPopulationAgent TempAgentM = \n new MultiPopulationAgent(j,PopulationID,TempAction);\n \n TempPopulation.AgentList.add(TempAgentM);\n \n }\n \n TempPopulation.setActionList();\n return TempPopulation;\n }", "private static ArrayList<Chromosome> generatePopulation(ArrayList<City> cities, int pathLength, int populationSize) {\n // generating part of the initial population using a Nearest Neighbour Algorithm\n int nnPopulationSize = (int) (0.1*populationSize);\n // if the required number of chromosomes to be generated by the NN Algorithm is greater then the number of cities\n // then set the required number of chromosomes to the number of cities\n if (nnPopulationSize > cities.size()) {\n nnPopulationSize = cities.size();\n }\n ArrayList<Chromosome> nnPopulation = generateNearestNeighbourPopulation(pathLength, nnPopulationSize);\n\n // generating the rest of the initial population randomly\n int randomPopulationSize = populationSize - nnPopulationSize;\n ArrayList<Chromosome> randomPopulation = new ArrayList<>();\n randomPopulation.addAll( generateRandomPopulation(pathLength, randomPopulationSize) );\n\n // Combining the 2 parts of the population into one initial population\n ArrayList<Chromosome> population = new ArrayList<>();\n population.addAll(nnPopulation);\n population.addAll(randomPopulation);\n\n return population;\n }", "public void setPopulation(Integer population) {\n this.population = population;\n }", "public static void main(String[] args) {\n City city = new City(60, 200);\n\n City city2 = new City(180, 200);\n\n City city3 = new City(80, 180);\n City city4 = new City(140, 180);\n\n City city5 = new City(20, 160);\n\n City city6 = new City(100, 160);\n\n City city7 = new City(200, 160);\n\n City city8 = new City(140, 140);\n\n City city9 = new City(40, 120);\n\n City city10 = new City(100, 120);\n\n City city11 = new City(180, 100);\n\n City city12 = new City(60, 80);\n\n City city13 = new City(120, 80);\n City city14 = new City(180, 60);\n City city15 = new City(20, 40);\n\n City city16 = new City(100, 40);\n\n City city17 = new City(200, 40);\n City city18 = new City(20, 20);\n\n City city19 = new City(60, 20);\n City city20 = new City(160, 20);\n List<City> list=new ArrayList<City>();\n list.add(city);list.add(city2);\n list.add(city3);\n list.add(city4);\n list.add(city5);\n list.add(city6);\n list.add(city7);\n list.add(city8);\n list.add(city9);\n list.add(city10);\n list.add(city11);\n list.add(city12);\n list.add(city13);\n list.add(city14);\n list.add(city15);\n list.add(city16);\n list.add(city17);\n list.add(city18);\n list.add(city19);\n list.add(city20);\n\n // Initialize population\n Population pop = new Population(100, true,list);\n System.out.println(\"Initial distance: \" + pop.getBestTour().getDistance());\n\n // Evolve population for 100 generations\n pop = Ga.evolvePopulation(pop);\n for (int i = 0; i < 500; i++) {\n pop = Ga.evolvePopulation(pop);\n System.out.println(\"第\"+i+\"代\"+pop.getBestTour().getDistance());\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getBestTour().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getBestTour());\n }", "protected void onChange_InitPopulation() {\n onChange_InitPopulation_xjal( InitPopulation );\n }", "public PopulatedPlace(String zip, String town, String state,\n\t\t\t double latitude, double longitude, int population){\n\tsuper(zip, town, state, latitude, longitude);\n\tthis.population = population;\n }", "private void SetUp() {\n numbers.add(0);\n numbers.add(1);\n numbers.add(2);\n numbers.add(3);\n numbers.add(4);\n numbers.add(5);\n numbers.add(6);\n numbers.add(7);\n numbers.add(8);\n numbers.add(9);\n\n PuzzleSolve(10, empty, numbers);\n }", "public PopulationFilter(int nr)\n { \n super();\n inhabitants = nr;\n }", "public void randomInit() {\n Plain plain = new Plain(width + 2);\n grid = new Living[width + 2][width + 2];\n for (int i = 1; i < grid.length - 1; i++) {\n for (int j = 1; j < grid[i].length - 1; j++) {\n int randomNum = (int) (Math.random() * 5);\n switch (randomNum) {\n case 0:\n grid[i][j] = new Badger(plain, i, j, 0);\n break;\n case 1:\n grid[i][j] = new Empty(plain, i, j);\n break;\n case 2:\n grid[i][j] = new Fox(plain, i, j, 0);\n break;\n case 3:\n grid[i][j] = new Grass(plain, i, j);\n break;\n case 4:\n grid[i][j] = new Rabbit(plain, i, j, 0);\n break;\n }\n }\n }\n }", "public Rng() {\n\t\tr = new Random();\n\t}", "private void initializeDNA() {\n\t\tint numInputs = population.numInputs;\n\t\tint numOutputs = population.numOutputs;\n\t\tfor (int i = 1; i <= numInputs; i++) {\n\t\t\tsubmitNewNode(new NNode(i, NNode.INPUT));\n\t\t}\n\t\tfor (int j = numInputs + 1; j <= numInputs + numOutputs; j++) {\n\t\t\tsubmitNewNode(new NNode(j, NNode.OUTPUT));\n\t\t}\n\n\t\tfor (int i = 0; i < numInputs; i++) {\n\t\t\tfor (int j = 0; j < numOutputs; j++) {\n\t\t\t\tint start = i + 1;\n\t\t\t\tint end = numInputs + 1 + j;\n\t\t\t\tint innovation = population.getInnovation(start, end);\n\t\t\t\tGene g = new Gene(innovation, start, end, Braincraft\n\t\t\t\t\t\t.randomWeight(), true);\n\t\t\t\tpopulation.registerGene(g);\n\t\t\t\tsubmitNewGene(g);\n\t\t\t}\n\t\t}\n\t}", "private static State generateInitialState(double initialHeuristic) {\n ArrayList<List<Job>> jobList = new ArrayList<>(RecursionStore.getNumberOfProcessors());\n for (int i = 0; i < RecursionStore.getNumberOfProcessors(); i++) {\n jobList.add(new ArrayList<>());\n }\n int[] procDur = new int[RecursionStore.getNumberOfProcessors()];\n java.util.Arrays.fill(procDur, 0);\n return new State(jobList, procDur, initialHeuristic, 0);\n }", "public void buildModel() {\n space = new RabbitsGrassSimulationSpace(gridSize);\n space.setModel(this);\n space.spreadGrass(numInitGrass);\n\n for (int i = 0; i < numInitRabbits; i++) {\n addNewRandomRabbit();\n }\n }", "public interface PopulationInitialiser {\n\t/**\n\t * this generates an initial solution population from which to start optimisation\n\t *\n\t * @param cities the set of cities which are part of each solution\n\t * @param populationSize the number of solutions to be included in a population\n\t */\n\tSolutionPopulation initialise(ArrayList<City> cities, int populationSize);\n}", "void initial()\n\t{\n\t\tint i;\n\t\tfor(i=0;i<FoodNumber;i++)\n\t\t{\n\t\tinit(i);\n\t\t}\n\t\tGlobalMin=f[0];\n\t for(i=0;i<D;i++)\n\t GlobalParams[i]=Foods[0][i];\n\n\n\t}", "public PigHouse(int n){\r\n super(n,50, 17.5,50);\r\n }", "public Generator() {\n identificationNumbers = new int[100][31];\n }", "public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}", "public void generateNextGeneration() {\n int neighbours;\n int minimum = Integer.parseInt(PreferencesActivity\n .getMinimumVariable(this._context));\n int maximum = Integer.parseInt(PreferencesActivity\n .getMaximumVariable(this._context));\n int spawn = Integer.parseInt(PreferencesActivity\n .getSpawnVariable(this._context));\n\n minimum = 2;\n maximum = 3;\n spawn = 3;\n\n int[][] nextGenerationLifeGrid = new int[HEIGHT][WIDTH];\n\n\n\n for (int h = 0; h < HEIGHT; h++) {\n for (int w = 0; w < WIDTH; w++) {\n neighbours = calculateNeighbours(h, w);\n\n\n if (_lifeGrid[h][w] != 0) {\n if ((neighbours >= minimum) && (neighbours <= maximum)) {\n nextGenerationLifeGrid[h][w] = neighbours;\n }\n\n } else {\n if (neighbours == spawn) {\n nextGenerationLifeGrid[h][w] = spawn;\n\n }\n }\n\n }\n\n }\n\n copyGrid(nextGenerationLifeGrid, _lifeGrid);\n\n }", "public static void initialize(String[] args) {\n\n\t\tSystem.out.print(\"Please enter the number of People (n): \");\n\t\tSystem.out.println(args[0]);\n\t\tnumPeople = Integer.parseInt(args[0]);\n\t\tboard = new int[numPeople][numPeople];\n\t\tbestCombo = new int[numPeople];\n\t\tbestPossibleCombination = new int[numPeople];\n\t\t\n\t\tint i = 0;\n\t\tint j = 0;\n\n\t\t// Convert args to ints\n\t\tint size = args.length;\n\t\tint[] argsNums = new int[size - 1];\n\t\t// start at 1 because first int specifies size\n\t\tfor (i = 1; i < size; i++) {\n\t\t\targsNums[i - 1] = Integer.parseInt(args[i]);\n\t\t\t// System.out.println(argsNums[i-1]);\n\t\t}\n\n\t\t// Row Counter\n\t\tfor (i = 0; i < numPeople; i++) {\n\n\t\t\t// Column Counter\n\t\t\tfor (j = 0; j < numPeople; j++) {\n\t\t\t\tint num = argsNums[numPeople * i + j];\n\t\t\t\t//Initializes board\n\t\t\t\tboard[i][j] = num;\n\t\t\t\t//initializes bestPossibleCombination\n\t\t\t\tif(bestPossibleCombination[i]<num){\n\t\t\t\t\tbestPossibleCombination[i]=num;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\n\n\n\t}", "public Population(int capacity) {\r\n Validate.positive(capacity, \"capacity\");\r\n this.capacity = capacity;\r\n }", "private static ArrayList<Chromosome> generateNearestNeighbourPopulation(int pathLength, int nnPopulationSize){\n // declaring the arraylist of chromosomes which will store the\n ArrayList<Chromosome> nnPopualtion = new ArrayList<>();\n\n // declaring a set which will contain all the starting cities that will be used for the population\n Set<Integer> startingCities = new HashSet<>();\n // initialising the set of startingCities with random cities. It being a set no duplicates are allowed\n while (startingCities.size() < nnPopulationSize) {\n startingCities.add(ThreadLocalRandom.current().nextInt(0, pathLength));\n }\n\n // An ArrayList with all the cityIDs which can be copied to keep track of visited/unvisited cities\n ArrayList<Integer> cities = new ArrayList<>();\n for (int i = 0; i < pathLength; i++) {\n cities.add(i);\n }\n\n // for every starting city\n for (Integer startingCity : startingCities) {\n // set the currentCity as the Starting City\n int currentCity = startingCity;\n // Declare a new chromosome to store this new path\n Chromosome chromosome = new Chromosome(pathLength);\n // Set the first city in the path as the startingCity\n chromosome.path[0] = startingCity;\n\n // Declare a new Set of unvisitedCities, and initialise it as a copy of the ArrayList of cityIDs\n Set<Integer> unvisitedCities = new HashSet<>(cities);\n // remove the startingCity from the set of unvisitedCities\n unvisitedCities.remove(startingCity);\n\n // for the length of the path\n for (int i = 1; i < pathLength; i++) {\n // initially set the closestCity to a random city from the set of unvisitedCities\n int closestCity = unvisitedCities.iterator().next();\n // loop through every unvisitedCity to find the closestCity\n for (Integer city : unvisitedCities) {\n // if the distance between the currentCity and the unvisitedCity is < the distance between\n // the currentCity and the closestCity\n if (distanceMatrix[currentCity][city] < distanceMatrix[currentCity][closestCity]) {\n // set thet unvisitedCity as the closestCity\n closestCity = city;\n }\n }\n // add the closestCity as the next city in the path\n chromosome.path[i] = closestCity;\n // make the currentCity for the next iteration the current closestCity\n currentCity = closestCity;\n // remove the closestCity from the set of unvisitedCities\n unvisitedCities.remove(closestCity);\n }\n\n // add the generated chromosome to the ArrayList of the initial nnPopulation\n nnPopualtion.add(chromosome);\n }\n\n return nnPopualtion;\n }", "public void initialize() {\n\t\tinitialize(seedValue0, seedValue1);\n\t}", "private void initialParameters()\n\t{\n\t\tasteroidList = new ArrayList<Asteroid>();\n\t\tfor(int i = 0 ; i < INITIAL_ASTEROIDS ; i++)\n\t\t\tasteroidList.add(new Asteroid(getRandomLocationX(), getRandomLocationY(), SCREEN_WIDTH, SCREEN_HEIGHT));\n\t\t\n\t\t//========== Game Status ===========\n\t\trunning \t= true;\n\t\tisWin \t\t= false;\n\t\tisGameOver \t= false;\n\t\t\n\t\t//========== Game Craft ===========\t\t\n\t\tcraft = new Craft(SCREEN_WIDTH/2, SCREEN_HEIGHT/2, SCREEN_WIDTH, SCREEN_HEIGHT);\n\t}", "public NextGeneration(){\n this.born[3] = true;\n this.survives[2] = true;\n this.survives[3] = true;\n }", "public void setUpNewRound(){\n int newRound = getRoundNum() + 1;\n getRound().getPlayer(0).clearPiles();\n getRound().getPlayer(1).clearPiles();\n mRound = new Round(players);\n setRoundNum(newRound);\n mRound.beginRound();\n }", "@Override\r\n public void init(ArrayList<String> args) {\r\n n = Integer.parseInt(args.get(0));\r\n }", "public static void generateDefaults() {\n Building temp = BuildingList.getBuilding(0);\n SubAreas temp2 = temp.getSubArea(1);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(2);\n temp2.createMotionSensor();\n temp2 = temp.getSubArea(3);\n temp2.createMotionSensor();\n temp2.createFireSensor();\n temp2 = temp.getSubArea(5);\n temp2.createFireSensor();\n temp2 = temp.getSubArea(6);\n temp2.createFireSensor();\n temp2.createMotionSensor();\n }", "@Override\n\tprotected void onInitialAgentsCreation() {\n\t\tSystem.out.println(\"Création drones\");\n\t\tDrone drone = null;\n\t\tDroneBuilder droneBuilder;\n\t\tfor (int i = 0; i < INITIAL_DRONE_COUNT; i++) {\n\t\t\tdrone = new Drone(this, getEnvironment().getRandom().nextInt(World.WIDTH), getEnvironment().getRandom().nextInt(World.HEIGHT));\n\t\t\tdroneBuilder = new DroneBuilder();\n\t\t\tdroneBuilder.setDrone(drone);\n\t\t\tdroneBuilder.buildBehaviorStates();\n\t\t\tdroneBuilder.buildAgentPhase();\n\t\t}\n\t}", "public static void makeGrid (Species map[][], int numSheepStart, int numWolfStart, int numPlantStart, int sheepHealth, int plantHealth, int wolfHealth, int plantSpawnRate) {\n \n // Declare coordinates to randomly spawn species\n int y = 0;\n int x = 0;\n \n // Initialise plants\n Plant plant;\n \n // Spawn plants\n for (int i = 0; i < numPlantStart; i++) {\n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Choose a random plant (50% chance healthy, 25% poisonous or energizing)\n int plantChoice = (int) Math.ceil(Math.random() * 100);\n \n // Create the new plants\n if ((plantChoice <= 100) && (plantChoice >= 50)) {\n plant = new HealthyPlant(plantHealth, x, y, plantSpawnRate);\n } else if ((plantChoice < 50) && (plantChoice >= 25)) {\n plant = new EnergizingPlant(plantHealth, x, y, plantSpawnRate);\n } else {\n plant = new PoisonousPlant(plantHealth, x, y, plantSpawnRate);\n }\n \n // Set plant coordinates\n plant.setX(x);\n plant.setY(y);\n map[y][x] = plant;\n \n // No space\n } else { \n i -= 1;\n }\n \n }\n \n // Spawn sheep\n for (int i = 0; i < numSheepStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) {\n \n // Create new sheep\n Sheep sheep = new Sheep(sheepHealth, x, y, 5); \n \n // Set sheep coordinates\n sheep.setX(x);\n sheep.setY(y);\n map[y][x] = sheep;\n \n // No space\n } else { \n i -= 1; \n }\n \n }\n \n // Spawn wolves\n for (int i = 0; i < numWolfStart; i++) { \n \n // Choose random coordinates to spawn\n y = (int)(Math.random() * map[0].length); \n x = (int)(Math.random() * map.length);\n \n // Checks for an empty space\n if (map[y][x] == null) { \n \n // Create new wolf\n Wolf wolf = new Wolf(wolfHealth, x, y, 5); \n \n // Set wolf coordinates\n wolf.setX(x);\n wolf.setY(y);\n map[y][x] = wolf; \n \n // No space\n } else { \n i -= 1; \n }\n }\n \n }", "public void initialize(int size);", "private static void InitRandBag()\n {\n int k=(int)Math.floor(Math.random()*50);\n R[0]=k;\n\n //Generate the rest of the numbers\n for(int i=1;i<950;i++)\n {\n k=k+(int)Math.floor(Math.random()*50);\n R[i]=k;\n }\n\n //Shuffle the list\n for(int i=0;i<950;i++)\n {\n int temp = R[i];\n k = (int)Math.floor(Math.random()*950);\n R[i]=R[k];\n R[k]=temp;\n }\n }", "public void setRandomGenes(int i){\n if (i > populationSize){\n throw new IllegalArgumentException(\"The number of random genes per generation must not be greater than the population size\");\n }\n randGenes = i;\n }", "private void initMushrooms() {\n\t\tRandom r = new Random();\n\t\tint numMushrooms = 600;\n\t\tint topDist = 48;\n\t\tint leftDist = 80;\n\t\tint xCoord = 0;\n\t\tint yCoord = 0;\n\n\t\tfor (int i = 0; i < 14; i++) {//goes through each row 1-15\n\n\t\t\tint numShrooms = r.nextInt(6);\n\t\t\tfor (int j = 0; j < numShrooms; j++) {//goes through each column 1 - 15\n\t\t\t\tyCoord = i * 32 + topDist;\n\t\t\t\t//int k = 0;\n\t\t\t\tdo {\n\t\t\t\t\t//finds a new point and checks for good placement via a HashMap\n\t\t\t\t\txCoord = r.nextInt(15) * 32 + leftDist;\n\t\t\t\t\t//System.out.printf(\"%d x and %d y for %d line %d\\n\", xCoord, yCoord, k++, i);\n\t\t\t\t} while (!checkValidMushroom(xCoord, yCoord));\n\t\t\t\tmushrooms.add(new Mushroom(xCoord, yCoord));\n\t\t\t\tif (--numMushrooms == 0) {//breaks when max number of mushrooms has been reached\n\t\t\t\t\ti = 15;\n\t\t\t\t\tj = 6;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "public Floor(int floorNum)\n { System.out.print(\"Initializing Floor #\" + floorNum + \"...\\n\");\n this.floorNum= floorNum;\n this.occupants=0;\n }", "public Genepool(int numGenes) {\n\t\tgeneNumber = numGenes;\n\t\tgenepool = new ArrayList<Gene>();\n\t\toffspringPool = new ArrayList<Gene>();\n\t\tgenerateGenes();\n\t}", "public static void populate() {\n for (int i = 1; i <= 15; i++) {\n B.add(i);\n Collections.shuffle(B);\n\n }\n for (int i = 16; i <= 30; i++) {\n I.add(i);\n Collections.shuffle(I);\n }\n for (int n = 31; n <= 45; n++) {\n N.add(n);\n Collections.shuffle(N);\n }\n for (int g = 46; g <= 60; g++) {\n G.add(g);\n Collections.shuffle(G);\n }\n for (int o = 61; o <= 75; o++) {\n O.add(o);\n Collections.shuffle(O);\n }\n\n for (int i = 1; i <= 75; i++) {\n roll.add(i); // adds the numbers in the check list\n }\n }", "@Before\r\n\tpublic void init() {\n\t\tfinal List<Integer> container3 = createContainer((int) Math.pow(3, 2));\r\n\t\tcontainer3.set(container3.size() - 1, null);\r\n\t\tgoal3 = new BoardListImpl<>(3, container3);\r\n\r\n\t\t// 4 x 4 board\r\n\t\tfinal List<Integer> container4 = createContainer((int) Math.pow(4, 2));\r\n\t\tcontainer4.set(container4.size() - 1, null);\r\n\t\tgoal4 = new BoardListImpl<>(4, container4);\r\n\t}", "public static void runAGeneration() {\n //Breeds Population until max population size for genetic drift\n breedAll();\n\n //Genocides Population by fitness\n genocide();\n\n System.out.println(\"\\nPopulation: \");\n\n //prints population\n printPopulation();\n }", "public Population(int nVillages, int nFlocks, double[] parameters){\r\n\t\tthis.nFlocks = 0;\r\n\t\tthis.nVillages = nVillages;\r\n\t\tthis.vVillages = new Village[nVillages];\r\n\t\tfor(int i = 0; i < nVillages; i++){\r\n\t\t\tthis.vVillages[i] = new Village(nFlocks, parameters);\r\n\t\t\tthis.nFlocks += vVillages[i].getnFlocks();\r\n\t\t}\r\n\t\tthis.ndvPool = new Vector<NDInfection>();\r\n\t}", "public Room(int noOfWindows) {\n\t\tthis.windows = noOfWindows;\n\t\tthis.floor=\"\";\n\t\tthis.wall=\"\";\n\t}", "public void populateMap(int playerNumber){\n\t\tint factor = 1;\n\t\t\n\t\t\n\t}", "public Religion(int playerCount, int[] initial_religion_points){\n orderOfCult_3 = -1;\n orderOfCult_2_1 = -1;\n orderOfCult_2_2 = -1;\n orderOfCult_2_3 = -1;\n keyPlaced = false;\n playerPositions = new int[playerCount];\n setupReligion(playerCount,initial_religion_points);\n roundBasedPosition = new int[playerCount];\n }", "public static void randomInit(int r) { }", "private void initGP() {\n log.info(\"Initializing GP\");\n geneticProgram.addPopulationObserver(this);\n geneticProgram.initialize();\n frontRunner = geneticProgram.getProgram(0); // A safe default\n }", "protected void randInitialize(Variable variable) {\n if (variable instanceof Combining) {\n Combining comb = (Combining) variable;\n comb.setValue(pprng.nextInt(comb.getNumberOfAlternatives()));\n } else if (variable instanceof Assigning) {\n //this covers initialization for both assigning and connecting\n Assigning assign = (Assigning) variable;\n for (int i = 0; i < assign.getNumberOfLHS(); i++) {\n for (int j = 0; j < assign.getNumberOfRHS(); j++) {\n if(pprng.nextBoolean())\n assign.connect(i,j);\n }\n }\n// assign.connect(0,0);\n// assign.connect(6,0);\n// assign.connect(7,0);\n// assign.connect(11,0);\n// assign.connect(1,1);\n// assign.connect(6,1);\n// assign.connect(10,1);\n// assign.connect(5,2);\n// assign.connect(6,2);\n// assign.connect(4,3);\n// assign.connect(5,3);\n// assign.connect(11,3);\n// assign.connect(5,4);\n// assign.connect(7,4);\n// assign.connect(8,4);\n// assign.connect(9,4);\n// assign.connect(10,4);\n \n } else {\n System.err.println(\"can not initialize unknown type\");\n }\n }", "public void initialize() {\n\t\t// set seed, if defined\n\t\tif (randomSeed > Integer.MIN_VALUE) {\n\t\t\tapp.randomSeed(randomSeed);\n\t\t}\n\n\t\tfor (int x = 0; x < gridX; x++) {\n\t\t\tfor (int y = 0; y < gridY; y++) {\n\t\t\t\tCell c = new Cell(\n\t\t\t\t\tapp,\n\t\t\t\t\tcellSize,\n\t\t\t\t\tcolors[(int)app.random(colors.length)],\n\t\t\t\t\ttrue\n\t\t\t\t);\n\t\t\t\tc.position = PVector.add(offset, new PVector(x * cellSize, y * cellSize));\n\t\t\t\tcells[x + (y * gridX)] = c;\n\t\t\t\tnewCells[x + (y * gridX)] = c;\n\t\t\t}\n\t\t}\n\t}", "public void reproduce() {\n if (getSelfCount() >= getMinMates() && getLocation()\n .getEmptyCount() >= getMinEmpty()\n && getFoodCount() >= getMinFood() && dayCountDown != 0) {\n int index = RandomGenerator.nextNumber(getLocation()\n .getEmptyCount());\n Cell selectedCell = getLocation().getEmptyArray().get(index);\n createLife(selectedCell).init();\n \n }\n \n }", "public PopulationGrowth() {\n initComponents();\n }", "@Override\r\n public Solution[] initialize() {\r\n System.out.println(\"c Attempting feasible initialization\");\r\n Solution[] initial_pop = new Solution[populationSize];\r\n for (int i = 0; i < populationSize; ++i) {\r\n initial_pop[i] = problem.newSolution();\r\n attemptFeasibleInitialization(initial_pop[i]);\r\n }\r\n return initial_pop;\r\n }", "private Level produce() {\n\t\tint[][]grid = new int[row][column];\n\t\tArrayList<Point> goals = new ArrayList<Point>();\n\t\tint newRand = 0;\n\t\tfor (int x = 0; x < row; x++)\t{\n\t\t\tfor (int y = 0; y < column; y++)\t{\n\t\t\t\tnewRand = rand.nextInt(TOTAL);\n\t\t\t\tif (newRand < CAT_1)\t{\n\t\t\t\t\tgrid[x][y] = 1;\n\t\t\t\t} else if (newRand < CAT_2)\t{\n\t\t\t\t\tgrid[x][y] = 2;\n\t\t\t\t} else if (newRand < CAT_3)\t{\n\t\t\t\t\tgrid[x][y] = 3;\n\t\t\t\t} else if (newRand < CAT_4)\t{\n\t\t\t\t\tgrid[x][y] = 4;\n\t\t\t\t} else if (newRand < CAT_5)\t{\n\t\t\t\t\tgoals.add(new Point(x,y));\n\t\t\t\t} else if (newRand < TOTAL)\t{\n\t\t\t\t\tgrid[x][y] = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn new Level(grid, row, column, goals);\n\t}", "public static void populateTreeRandom(BinarySearchTree tree)\n {\n int currentNumber = 0;\n\n System.out.println(\"RANDOM NUMBERS PRE POPULATION: \" );\n\n for(int i = 1; i < 101; i++)\n {\n currentNumber = (int) (Math.random() * 100);\n\n System.out.printf(\"%3d \", currentNumber);\n\n if(i % 20 == 0)\n {\n System.out.println();\n }\n\n tree.add(currentNumber);\n }\n\n System.out.println();\n }", "RandomArrayGenerator(int defaultLaenge) {\n\tif (defaultLaenge < 10) {\n\t throw new IllegalArgumentException(\"Laenge muss mindestens 10 sein.\");\n\t}\n this.defaultLaenge = defaultLaenge;\n }", "public void reproduce() {\n\t\tOrganism newOrg;\n\t\t\n\t\tfor (int i=0; i < Utils.between(_nChildren,1,8); i++) {\n\t\t\tnewOrg = new Organism(_world);\n\t\t\tif (newOrg.inherit(this, i==0)) {\n\t\t\t\t// It can be created\n\t\t\t\t_nTotalChildren++;\n\t\t\t\t_world.addOrganism(newOrg,this);\n\t\t\t\t_infectedGeneticCode = null;\n\t\t\t}\n\t\t\t_timeToReproduce = 20;\n\t\t}\n\t}", "public void initStartPoint(GeoPointND p, int number);", "public static Schedule initializeSchedule(String[] args) {\n\n if (args.length == 5) { // Level 3\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[3]), Double.parseDouble(args[4]), 0);\n return new Schedule(r, args[1], args[2], \"1\", \"0\", \"0\", \"0\");\n } else if (args.length == 6) { // Level 4\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[4]), Double.parseDouble(args[5]), 0);\n return new Schedule(r, args[1], args[3], args[2], \"0\", \"0\", \"0\");\n } else if (args.length == 8) { // Level 5\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[4]), Double.parseDouble(args[5]), \n Double.parseDouble(args[6]));\n return new Schedule(r, args[1], args[3], args[2], args[7], \"0\", \"0\");\n } else if (args.length == 9) { // Level 6\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[5]), Double.parseDouble(args[6]), \n Double.parseDouble(args[7]));\n return new Schedule(r, args[1], args[4], args[3], args[8], args[2], \"0\");\n } else if (args.length == 10) { // Level 7\n RandomGenerator r = new RandomGenerator(Integer.parseInt(args[0]), \n Double.parseDouble(args[5]), Double.parseDouble(args[6]), \n Double.parseDouble(args[7]));\n return new Schedule(r, args[1], args[4], args[3], args[8], args[2], args[9]);\n } else {\n throw new IllegalArgumentException(\"Invalid Input\");\n }\n }", "public void reset(int baseNumberElements) {\n randomGenerator = new Random(seed);\n clearDataStructure();\n populate(baseNumberElements);\n }", "private UniqueChromosomeReconstructor() { }", "public ProbIA5Board(int []init) {\n board = new int[init.length];\n\n for (int i = 0; i< init.length; i++) {\n board[i] = init[i];\n }\n }", "public AsteroidManager(int numInitialAsteroids, ImageLoader imageLoader, AsteroidRunPanel asteroidRunPanel)\n {\n //Create the array of asteroids\n asteroids = new Asteroid[MAX_ASTEROIDS];\n numAsteroids = numInitialAsteroids;\n\n //Create the random number generator and an array of asteroid image names\n rng = new Random();\n String[] imagesNames = {\"Asteroid\", \"Asteroid 2\", \"Asteroid 3\"};\n\n //Populate the asteroids array with new asteroids\n for (int i = 0; i < numAsteroids; i++)\n {\n //Generate a random number to determine the type of asteroid, then create the asteroid\n asteroids[i] = new Asteroid(imagesNames[rng.nextInt(3)], \"Explosion\", imageLoader, this);\n }\n\n //Store the reference to the asteroidRunPanel\n this.asteroidRunPanel = asteroidRunPanel;\n }", "public Guppy() {\n this(DEFAULT_GENUS, DEFAULT_SPECIES, 0, true, 0,\n DEFAULT_HEALTH_COEFFICIENT);\n }", "Chromosome from(List<Chromosome> population);", "public void initialize() {\n if (coverage == 0 || coverage == 1) {\n pAttemptMovement = 1;\n pAttemptTransition = 1;\n } else {\n pAttemptTransition = 1.0f;\n pAttemptMovement = pmove * (1-coverage) / coverage;\n if (pAttemptMovement > 1.0f) {\n pAttemptTransition = 1 / pAttemptMovement;\n pAttemptMovement = 1.0f;\n }\n }\n // System.out.println(\"pAttemptMovement = \"+pAttemptMovement+\", pAttemptTransition = \"+pAttemptTransition);\n // accept - memoize the return values of exp for accept, because there are only a handful that get used\n map = new ExpMap(1024);\n }", "public BoardRandomizer()\n {\n //this is the default constructor for the BoardRandomizer\n System.out.println(number_of_tiles);\n\n }" ]
[ "0.7135957", "0.662469", "0.6221108", "0.6206276", "0.61650795", "0.5875123", "0.58705103", "0.58587474", "0.5836974", "0.57967585", "0.5790748", "0.5787049", "0.57620096", "0.57307404", "0.5705834", "0.56904685", "0.5675189", "0.5649528", "0.56351495", "0.56163454", "0.5609727", "0.560833", "0.560833", "0.55957913", "0.5577365", "0.5576641", "0.55598533", "0.55415344", "0.5534949", "0.55194443", "0.5492904", "0.54921526", "0.5489158", "0.5481506", "0.5473479", "0.5471705", "0.54613554", "0.54568917", "0.5438555", "0.5437951", "0.5418771", "0.5413726", "0.5377482", "0.53708136", "0.53519475", "0.5345255", "0.53401583", "0.5337155", "0.5335684", "0.5309407", "0.53053623", "0.5287369", "0.5284827", "0.5241581", "0.523591", "0.52303445", "0.5229622", "0.52096033", "0.51964504", "0.5188557", "0.51856345", "0.51842505", "0.5183562", "0.51815253", "0.51730794", "0.51697546", "0.5169538", "0.5168257", "0.5152269", "0.51491976", "0.5146864", "0.5145255", "0.5140795", "0.51271933", "0.5121846", "0.5121549", "0.51211184", "0.5119184", "0.5101463", "0.5096775", "0.509609", "0.5086826", "0.50855726", "0.50805134", "0.5080364", "0.5077277", "0.50746465", "0.50674945", "0.50555634", "0.5055235", "0.50522965", "0.5046129", "0.5045601", "0.504341", "0.50356346", "0.5033327", "0.50277567", "0.5024728", "0.50232977", "0.5023035" ]
0.80308425
0
Doubles population of roaches.
void breed() { roaches *= 2; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "RoachPopulation(int initial)\n {\n roaches = initial;\n }", "public static void main(String[] args) {\n City city = new City(60, 200);\n\n City city2 = new City(180, 200);\n\n City city3 = new City(80, 180);\n City city4 = new City(140, 180);\n\n City city5 = new City(20, 160);\n\n City city6 = new City(100, 160);\n\n City city7 = new City(200, 160);\n\n City city8 = new City(140, 140);\n\n City city9 = new City(40, 120);\n\n City city10 = new City(100, 120);\n\n City city11 = new City(180, 100);\n\n City city12 = new City(60, 80);\n\n City city13 = new City(120, 80);\n City city14 = new City(180, 60);\n City city15 = new City(20, 40);\n\n City city16 = new City(100, 40);\n\n City city17 = new City(200, 40);\n City city18 = new City(20, 20);\n\n City city19 = new City(60, 20);\n City city20 = new City(160, 20);\n List<City> list=new ArrayList<City>();\n list.add(city);list.add(city2);\n list.add(city3);\n list.add(city4);\n list.add(city5);\n list.add(city6);\n list.add(city7);\n list.add(city8);\n list.add(city9);\n list.add(city10);\n list.add(city11);\n list.add(city12);\n list.add(city13);\n list.add(city14);\n list.add(city15);\n list.add(city16);\n list.add(city17);\n list.add(city18);\n list.add(city19);\n list.add(city20);\n\n // Initialize population\n Population pop = new Population(100, true,list);\n System.out.println(\"Initial distance: \" + pop.getBestTour().getDistance());\n\n // Evolve population for 100 generations\n pop = Ga.evolvePopulation(pop);\n for (int i = 0; i < 500; i++) {\n pop = Ga.evolvePopulation(pop);\n System.out.println(\"第\"+i+\"代\"+pop.getBestTour().getDistance());\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getBestTour().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getBestTour());\n }", "public void cheat() {\r\n\t\t\t\tnourriture += population*10;\r\n\t\t\t\tarmee += population/2;\r\n\t\t\t\tpopulation += armee*tailleArmee;\r\n\t\t\t}", "public double getPopulation () { return n.getPopulation(); }", "public abstract List<Double> updatePopulations();", "public void reproduce(){\n\t\t// sort the population from strongest to weakest\n\t\tCollections.sort(population);\n\t\tCollections.reverse(population);\n\t\t\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i+=2){\n\t\t\t\n\t\t\t// get two random indexes for reproduction based on the exponential function\n\t\t\t// (1/1000) * (randInt)^2 = index\n\t\t\t// this function favors sequences with higher fitness scores\n\t\t\tint randIndex1 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\tint randIndex2 = randomGenerator.nextInt((int)Math.sqrt(1000*POPULATION_SIZE*(1-POPULATION_ACTION_PERCENT)));\n\t\t\t\n\t\t\trandIndex1 = (int) (Math.pow(randIndex1, 2) / 1000);\n\t\t\trandIndex2 = (int) (Math.pow(randIndex2, 2) / 1000);\n\t\t\t\n\t\t\t// get two pieces\n\t\t\tBuildingPiece[] array1 = population.get(randIndex1).getList();\n\t\t\tBuildingPiece[] array2 = population.get(randIndex2).getList();\n\t\t\t\n\t\t\t// find a splicing point\n\t\t\tint splicePoint = findSplicingPoint(array1, array2);\n\t\t\t\n\t\t\t// generate two new arrays based on the splicing point\n\t\t\tBuildingPiece[] newArray1 = generateNewArray(array1, array2, splicePoint);\n\t\t\tBuildingPiece[] newArray2 = generateNewArray(array2, array1, splicePoint);\n\t\t\t\n\t\t\t// make new buildings with the new arrays\n\t\t\tBuilding bp1 = new Building(newArray1, generation, possiblePieces);\n\t\t\tBuilding bp2 = new Building(newArray2, generation, possiblePieces);\n\t\t\t\n\t\t\t// mutate the new building sequences\n\t\t\tmutateArray(bp1);\n\t\t\tmutateArray(bp2);\n\t\t\t\n\t\t\t// add them into the population\n\t\t\tpopulation.add(randIndex1, bp1);\n\t\t\tpopulation.add(randIndex2, bp2);\n\t\t}\n\t}", "public static void main(String[] args) {\n City city = new City(60, 200);\n TourManager.addCity(city);\n City city2 = new City(180, 200);\n TourManager.addCity(city2);\n City city3 = new City(80, 180);\n TourManager.addCity(city3);\n City city4 = new City(140, 180);\n TourManager.addCity(city4);\n City city5 = new City(20, 160);\n TourManager.addCity(city5);\n City city6 = new City(100, 160);\n TourManager.addCity(city6);\n City city7 = new City(200, 160);\n TourManager.addCity(city7);\n City city8 = new City(140, 140);\n TourManager.addCity(city8);\n City city9 = new City(40, 120);\n TourManager.addCity(city9);\n City city10 = new City(100, 120);\n TourManager.addCity(city10);\n City city11 = new City(180, 100);\n TourManager.addCity(city11);\n City city12 = new City(60, 80);\n TourManager.addCity(city12);\n City city13 = new City(120, 80);\n TourManager.addCity(city13);\n City city14 = new City(180, 60);\n TourManager.addCity(city14);\n City city15 = new City(20, 40);\n TourManager.addCity(city15);\n City city16 = new City(100, 40);\n TourManager.addCity(city16);\n City city17 = new City(200, 40);\n TourManager.addCity(city17);\n City city18 = new City(20, 20);\n TourManager.addCity(city18);\n City city19 = new City(60, 20);\n TourManager.addCity(city19);\n City city20 = new City(160, 20);\n TourManager.addCity(city20);\n\n // Initialize population\n Population pop = new Population(50, true);\n System.out.println(\"Initial distance: \" + pop.getFittest().getDistance());\n\n // Evolve population for 100 generations\n pop = GA.evolvePopulation(pop);\n for (int i = 0; i < 100; i++) {\n pop = GA.evolvePopulation(pop);\n }\n\n // Print final results\n System.out.println(\"Finished\");\n System.out.println(\"Final distance: \" + pop.getFittest().getDistance());\n System.out.println(\"Solution:\");\n System.out.println(pop.getFittest());\n }", "public void evaluatePopulation() {\n // reset the total fitness score\n totalFitness = 0;\n\n for (int i = 0; i < populationSize; i++) {\n population.get(i).setRawFitness(\n FeederCollection.getFeeders().get(i).GetFitness());\n totalFitness += population.get(i).getRawFitness();\n }\n\n // set the normalized fitness for each population member\n for (Genotype g : population) {\n // normalized fitness = raw fitness / total fitness\n g.setNormalizedFitness((g.getRawFitness() / totalFitness));\n }\n\n // sort the popoulation\n Collections.sort(population, Genotype.FitnessOrder);\n\n highFitnesses.add(population.get(0).getRawFitness());\n avgFitnesses.add(totalFitness / population.size());\n\n\n }", "public void setPoputlation (double population) { n.setPopulation(population); }", "public static Population evolvePopulation(Population pop) {\n Population newPopulation = new Population(pop.populationSize(), false);\n\n // Keep our best individual if elitism is enabled\n int elitismOffset = 0;\n if (elitism) {\n newPopulation.saveTour(0, pop.getFittest());\n elitismOffset = 1;\n }\n\n // Crossover population\n // Loop over the new population's size and create individuals from\n // Current population\n for (int i = elitismOffset; i < newPopulation.populationSize(); i++) {\n // Select parents\n // Tour parent1 = tournamentSelection(pop);\n //Tour parent2 = tournamentSelection(pop);\n\n\n\n\n Tour[] temp_a = roullet( newPopulation);\n if( temp_a == null )\n {\n System.out.println(\"no a\");\n //r//eturn temp;\n }\n // Tour parent1 = tournamentSelection(pop);\n //Tour parent2 = tournamentSelection(pop);\n Tour parent1 = temp_a[0];\n Tour parent2 = temp_a[1];\n\n\n\n\n\n\n\n\n // Crossover parents\n Tour child = crossover(parent1, parent2);\n // Add child to new population\n newPopulation.saveTour(i, child);\n }\n\n // Mutate the new population a bit to add some new genetic material\n for (int i = elitismOffset; i < newPopulation.populationSize(); i++) {\n mutate(newPopulation.getTour(i));\n }\n\n return newPopulation;\n }", "public static void main(String args[]) {\n\t\t\n\t\tint populationSize = 5;\n\t\tint crossCount = (int)(populationSize * 0.9);\n\t\tint mutCount = (int)(populationSize * 0.05);\n\t\tint copyCount = populationSize - crossCount - mutCount;\n\n\t\t//90% through crossover\n\t\tfor(int i = 0; i < crossCount; i++) \n\t\t\tSystem.out.println(\"Cross: \" + i);\n\t\t\n\t\t//5% by copying\n\t\tfor(int i = crossCount; i < crossCount + copyCount; i++) \n\t\t\tSystem.out.println(\"Copy: \" + i);\n\t\t\n\t\t\n\t\t//5% by mutation\n\t\tfor(int i = crossCount + copyCount; i < populationSize; i++) \n\t\t\tSystem.out.println(\"Mut: \" + i);\n\t\t\n\t\tfor(int i = 0; i < 60; i++) {\n\t\t\t\n\t\t\tPoint p1 = new Point((int)(Math.random() * 600) , (int)(Math.random() * 600)); //bot's point\n\t\t\tPoint p2 = new Point((int)(Math.random() * 600) , (int)(Math.random() * 600)); //enemy point\n\t\t\twhile(p2.equals(p1))\n\t\t\t\tp2 = new Point((int)(Math.random() * 600) , (int)(Math.random() * 600));\n\t\t\t\n\t\t\tfloat angle = (float) Math.atan2(p2.y - p1.y, p2.x - p1.x);\n\t\t\tDecimalFormat df = new DecimalFormat(\"0.0000\");\n\t\t\tSystem.out.println(p1.x + \" \" + p1.y + \" \" + p2.x + \" \" + p2.y + \" \" + df.format(angle));\n\t\t\t\n\t\t}\n\t\t\n\t}", "int getRoaches()\n {\n return roaches;\n }", "private void mutate() {\n\t\tfor (int i = 0; i < population; ++i) {\n\t\t\tpopulationArray.set(i, populationArray.get(i).generateNeighbor());\n\t\t}\n\t}", "public static void GA(ArrayList<City> cities){\n int pathLength = cities.size();\n // the number of chromosomes which will be generated\n int populationSize = 100;\n // the number of chromosomes that will be generated from crossover as a percentage of the population\n double crossoverRate = 0.8;\n // the number of chromosomes that will be generated from crossover\n int crossoverSize = (int) (populationSize * crossoverRate);\n // the probability that a chromosome can have a random mutation\n double mutationRate = 0.05;\n // the number of generations\n int generations = 5000;\n\n // Initialising the distance matrix using the initialiseDistanceMatrix method\n initialiseDistanceMatrix(cities);\n\n // Generating the Initial Population\n ArrayList<Chromosome> population = generatePopulation(cities, pathLength, populationSize);\n\n // The following is done for each generation of the population\n for (int i = 0; i < generations; i++) {\n // calculating the fitness of every chromosome in the current generation\n calculateFitnessOfPopulation(population);\n // sort the population so that the chromosomes with the highest fitness are at the start of the list\n Collections.sort(population);\n // call the method which performs crossover on the population\n Set<Chromosome> children = crossoverPopulation(population, populationSize, crossoverSize);\n // carry out mutation on the children of the current population\n children.addAll( mutatePopulation(children, mutationRate) );\n\n // evolve the population\n population.addAll(children);\n ArrayList<Chromosome> currentGeneration = new ArrayList<>(population);\n ArrayList<Chromosome> nextGeneration = evolvePopulation(currentGeneration, populationSize, cities, pathLength);\n population = new ArrayList<>(nextGeneration);\n }\n\n // find the fittest chromosome\n Chromosome fittestChromosome = population.get(0);\n double maxFitness = population.get(0).fitness;\n for (Chromosome c : population) {\n if (c.fitness > maxFitness) {\n maxFitness = c.fitness;\n fittestChromosome = c;\n }\n }\n // display the path and distance of the fittest chromosome\n System.out.println(fittestChromosome.getPath());\n System.out.println(\"Total Route Distance: \" + routeDistance(fittestChromosome));\n\n //printPopulation(population);\n }", "private void nourrireLePeuple() {\n\t\t\tint totalDepense = (int)((population * 1) + (populationColoniale * 0.8) + ((armee + armeeDeployee()) * nourritureParArmee));\r\n\t\t\tnourriture -= totalDepense;\r\n\t\t\tenFamine = (nourriture > 0) ? false : true;\r\n\t\t}", "private void initializePopulation() {\n // reset the population\n population = new ArrayList<Genotype>();\n\n // set the population to an array of random genotypes\n for (int i = 0; i < populationSize; i++) {\n population.add(new Genotype(chromosomeSize));\n }\n\n // evaluate the population\n // evaluatePopulation();\n }", "public static void worldTimeStep() {\n\t\t//System.out.println(\"Time Step: \" + count);\n\t\tcount = count + 1;\n\t for (Critter A : Critter.population){\n\t if(A.energy<=0){\n\t\t\t\tA.isAlive = false;\n }\n else if(A.energy>0){\n\t A.isAlive=true;\n A.doTimeStep();\n if(A.energy<0){\n\t\t\t\t\tA.isAlive = false;\n\t\t\t\t}\n }\n\n }\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n encounters2();\n\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\n\t\tmapCheck();\n\t\t// we have add reproduction\n\n\t\t// we have to add algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i = i + 1){\n\t\t\t//Algae child = new Algae();\n\t\t\t//child.setEnergy(Params.start_energy);\n\t\t\t//makecritter takes care of anything\n\t\t\ttry{\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t}\n\t\t\tcatch(InvalidCritterException e){\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\n\t\t//deduct rest energy\n\t\tfor (Critter A : Critter.population){\n\t\t\tA.energy = A.getEnergy() - Params.rest_energy_cost;\n\t\t\tif(A.getEnergy()<=0){\n\t\t\t\tA.isAlive=false;\n\t\t\t}\n\t\t}\n\t\tfor (Iterator<Critter> iterator = Critter.population.iterator(); iterator.hasNext();){\n\t\t\tCritter tmp = iterator.next();\n\t\t\tif (tmp.isAlive == false){\n\t\t\t\titerator.remove();\n\t\t\t}\n\t\t}\n\t\t//babies add\n\t\tfor(Critter b: babies){\n\t\t\tb.isAlive=true;\n\t\t\tpopulation.add(b);\n\t\t}\n\t\t//not sure if this removes everything\n\t\tbabies.clear();\n\t}", "public static void generatePopulation() {\n population = setupArray(POP_SIZE, NUM_RULES, GENE_SIZE, COND_LEN);\n\n for (Individual individual : population) {\n for (int i = 0; i < individual.getGene().length; i++) {\n individual.gene[i] = bits.get(new Random().nextInt(2));\n }\n individual.generateRulebase();\n }\n }", "static double[] evolveWeights() throws Exception {\n\t\t// Create a random initial population\n\t\tRandom r = new Random();\n\t\t// Matrix is a two dimensional array, populationSize are rows, Genes are columns\n\t\tMatrix population = new Matrix(populationSize, numberofGenes);\n\t\tfor (int i = 0; i < 100; i++) {\n\t\t\t// returns elements(genes) of every row\n\t\t\t// Think of every row as a seperate chromosome of parent\n\t\t\tdouble[] chromosome = population.row(i);\n\t\t\t// create every gene for each chrosome in the population\n\t\t\tfor (int j = 0; j < chromosome.length; j++) {\n\t\t\t\tdouble gene = 0.03 * r.nextGaussian();\n\t\t\t\tchromosome[j] = gene;\n\t\t\t}\n\t\t}\n\n\t\tint generationNum = 0;\n\t\t// do battle with chromosomes until winning condition is found\n\t\t// Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t// NeuralAgent(population.row(0)))\n\t\twhile (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(0))) != -1) {\n\n\t\t\tSystem.out.println(\"Generation \" + (generationNum));\n\n\t\t\tint mightLive = r.nextInt(100);\n\n\t\t\tif (generationNum == 10)\n\t\t\t\tmutationRate -= 0.01;\n\t\t\tif (generationNum == 20)\n\t\t\t\tmutationRate -= 0.02;\n\t\t\tif (generationNum == 30)\n\t\t\t\tmutationRate -= 0.02;\n\n\t\t\t// Mutate the genes of the current population\n\t\t\tfor (int y = 0; y < populationSize; y++) {\n\t\t\t\tfor (int x = 0; x < numberofGenes; x++) {\n\t\t\t\t\tif (Math.random() <= mutationRate) {\n\t\t\t\t\t\tpopulation.changeGene(x, y, r.nextGaussian());\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Make random number of battles\n\t\t\tfor (int i = 0; i < 40; i++) {\n\t\t\t\t// Create two teams with two random chromosomes from the population\n\t\t\t\tint soldier_a = r.nextInt(population.rows());\n\t\t\t\tint soldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Ensure that both teams don't have the same chromosome\n\t\t\t\tif (soldier_a == soldier_b)\n\t\t\t\t\tsoldier_b = r.nextInt(population.rows());\n\n\t\t\t\t// Do Battle between teams and select winner\n\t\t\t\tif (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == 1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t}\n\n\t\t\t\telse if (Controller.doBattleNoGui(new NeuralAgent(population.row(soldier_a)),\n\t\t\t\t\t\tnew NeuralAgent(population.row(soldier_b))) == -1) {\n\t\t\t\t\t// Chooses if the winner survives\n\t\t\t\t\tif (mightLive < winnerSurvivalRate)\n\t\t\t\t\t\tpopulation.removeRow(soldier_a);\n\t\t\t\t\telse\n\t\t\t\t\t\tpopulation.removeRow(soldier_b);\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t// Reproduce for the population (This is where the magic happens)\n\t\t\t// int currentPopulation = population.rows();\n\t\t\twhile (population.rows() < 100) {\n\t\t\t\t// Retrieve random parent\n\t\t\t\tint parentID = r.nextInt(population.rows());\n\t\t\t\tdouble[] parent = population.row(parentID);\n\t\t\t\tint[] potentialPartners = new int[10];\n\t\t\t\tint abs_min_value = Integer.MIN_VALUE;\n\t\t\t\tBoolean foundpartner = false;\n\t\t\t\tint partner = 0;\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) {\n\t\t\t\t\tint potentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tif (parentID == potentialPartnerID)\n\t\t\t\t\t\tpotentialPartnerID = r.nextInt(population.rows());\n\t\t\t\t\tpotentialPartners[i] = potentialPartnerID;\n\t\t\t\t}\n\n\t\t\t\tfor (int i = 0; i < potentialPartners.length; i++) // Finding most compatiable parent #2.\n\t\t\t\t{\n\t\t\t\t\tint compatiablity = similarities(parent, population.row(potentialPartners[i]));\n\t\t\t\t\tif (compatiablity > abs_min_value) {\n\t\t\t\t\t\tpartner = potentialPartners[i];\n\t\t\t\t\t\tfoundpartner = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif (foundpartner == false)\n\t\t\t\t\tpartner = r.nextInt(population.rows());\n\n\t\t\t\tdouble[] secondParent = population.row(partner);\n\t\t\t\tdouble[] newChild = population.newRow();\n\t\t\t\tint splitpoint = r.nextInt((int) numberofGenes / 4);\n\n\t\t\t\tfor (int i = 0; i < splitpoint; i++) // logic to a for loop and two if statements\n\t\t\t\t\tnewChild[i] = parent[i];\n\t\t\t\tfor (int i = splitpoint; i < numberofGenes; i++)\n\t\t\t\t\tnewChild[i] = secondParent[i];\n\n\t\t\t\t// for (int i = 0; i < population.rows(); i++) {\n\t\t\t\t// if (Controller.doBattleNoGui(new ReflexAgent(), new\n\t\t\t\t// NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t// numOfWins++;\n\t\t\t\t// } else { }\n\n\t\t\t\t// Test for the best in the given population\n\t\t\t\t// win_Collection.add(numOfWins);\n\t\t\t\t// printWeights(population.row(0));\n\n\t\t\t}\n\t\t\tgenerationNum++;\n\t\t\tfor (int i = 0; i < population.rows(); i++) {\n\t\t\t\tif (Controller.doBattleNoGui(new ReflexAgent(), new NeuralAgent(population.row(i))) == -1) {\n\t\t\t\t\tnumOfWins++;\n\t\t\t\t\t// population.row(i) = population.newRow();\n\t\t\t\t} else {\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"Number of Winners: \" + numOfWins);\n\t\t\tnumOfWins = 0;\n\n\t\t}\n\t\tprintWeights(population.row(0));\n\t\treturn population.row(0);\n\t}", "public Population()\n{\n year = 0;\n fate = new Random();\n eligibleDuas = new ArrayList<Caldean>();\n eligibleDuises = new ArrayList<Caldean>();\n theHouses = new LinkedList<House>();\n}", "private void addPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (pgrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tpgrid[x][y] = 2;\n\t\t}\n\t}", "public long getPopulation() {\n return population;\n }", "public long getPopulation() {\n return population;\n }", "protected void getProbabilitiesStayInJail() {\t\t\r\n\t\tboard().dice().forEachPossibleRoll((roll, size) -> {\t\t\t\r\n\t\t\t//if doubles, we're forced to leave jail (but our doubles are accounted for, we don't roll again)\r\n\t\t\tif (roll.isDoubles())\r\n\t\t\t\tboard().nextSpace(board().getSpace(justVisitingID), roll.getTotal()).updateProbAndRoll(1, (double) 1 / size, false);\r\n\t\t\telse\r\n\t\t\t\tboard().getSpace(this.ID() + 1).updateProbAndRoll(0, (double)1 / size, false);\r\n\t\t});\r\n\t}", "public static void main(String[] args) {\r\n\t\t// TODO Auto-generated method stub\r\n\t\tfinal double ONE_BUG_VOLUME = 0.002;//Create double type local variable ONE_BUG_VOLUME, final is a way to create a constant, The constant can not be changed during execution\r\n\t\tfinal double GROWTH_RATE = 0.95;//Create double type local variable GROWTH_RATE, final is a way to create a constant, The constant can not be changed during execution\r\n\t\tdouble newBugVolume;//Create double type local variable newBugVolume\r\n\t\tdouble newBugs;//Create double type local variable newBugs\r\n\r\n\t\tScanner keyboard = new Scanner(System.in);//Create an object of the Scanner class\r\n\r\n\t\tSystem.out.print(\"Enter the total volume of your house in cubic feet:\");//Outputs the string literal \"Enter the total volume of your house in cubic feet:\"\r\n\t\tdouble houseVolume = keyboard.nextDouble();//Create double type local variable houseVolume, Take one double from the keyboard and place it in the houseVolume\r\n\r\n\t\tSystem.out.print(\"Enter the estimated number of roaches in your house:\");//Outputs the string literal \"Enter the estimated number of cockroaches in your house:\" \r\n\t\tint startPopulation = keyboard.nextInt();//Create integer type local variable startPopulation, Take one integer from the keyboard and place it in the startPopulation\r\n\r\n\t\tdouble population = startPopulation;//Create double type local variable population, put startPopulation in population\r\n\t\tdouble totalBugVolume = population *ONE_BUG_VOLUME;//Create double type local variable totalBugVolume, put the multiplication of population and ONE_BUG_VOLUME in totalBugVolume \r\n\t\tint countWeeks = 0;//Create integer type local variable countWeeks, put 0 in countWeeks\r\n\r\n\r\n\t\twhile(totalBugVolume < houseVolume)//repeat statements in {} until the value of the totalBugVolume is smaller than the value of houseVolume\r\n\t\t{\r\n\t\t\tnewBugs = population * GROWTH_RATE;//put the multiplication of population and GROWTH_RATE in newBugs\r\n\t\t\tnewBugVolume = newBugs * ONE_BUG_VOLUME;//put the multiplication of newBugs and ONE_BUG_VOLUME in newBugVolume\r\n\t\t\tpopulation += newBugs;//put the addition of population and newBugs in population, This is like 'population=population+newBugs'\r\n\t\t\ttotalBugVolume+=newBugVolume;//put the addition of totalBugVolume and newBugVolume in totalBugVolume, This is like 'totalBugVolume=totalBugVolume+newBugVolume'\r\n\t\t\tcountWeeks+=1;//put the addition of countWeeks and 1 in countWeeks, This is like 'countWeeks=countWeeks+1'\r\n\r\n\t\t}\r\n\r\n\t\tSystem.out.println(\"Starting with a roach population of \" + startPopulation);//Outputs \"Starting with a cockroach population of <the value of startPopulation>\"\r\n\t\tSystem.out.println(\"and a house with a volume of \" + houseVolume + \" cubic feet\");//Outputs \"and a house with a volume of <the value of houseVolume> cubic feet\"\r\n\t\tSystem.out.println(\"after \" + countWeeks+ \" weeks\");//Outputs <the value of countWeeks> weeks\"\r\n\t\tSystem.out.println(\"the house will be filled with \"+(int)population+\" roaches.\");//Outputs \"the house will be filled with < the value that changes the value of populaton to integer type> cockroaches.\" \r\n\t\tSystem.out.println(\"They will fill a volume of \" + (int)totalBugVolume+\" cubic feet\");//Outputs \"They will fill a volume of <the value that changes the value of totalBugVolume to integer type> cubic feet\"\r\n\t\tSystem.out.println(\"Better call Debugging Experts Inc\");//Outputs the string literal \"Better call Debugging Experts Inc\"\r\n\r\n\t\tkeyboard.close();//Close Scanner Object\r\n\r\n\t}", "public static void worldTimeStep() {\n\t\t\n\t//Do time step for all critters\n\t\tfor (Critter c: population) {\n\t\t\tc.doTimeStep();\t\t\t\n\t\t}\n\t\n\t\t\n\t//Resolve encounters\n\t\tIterator<Critter> it1 = population.iterator();\n\t\tfightMode = true;\n\t\twhile(it1.hasNext())\n\t\t{\n\t\t\tCritter c = it1.next();\n\t\t\tIterator<Critter> it2 = population.iterator();\n\t\t\twhile(it2.hasNext()&&(c.energy > 0)) \n\t\t\t{\t\n\t\t\t\tCritter a =it2.next();\n\t\t\t\tif((c != a)&&(a.x_coord==c.x_coord)&&(a.y_coord==c.y_coord))\n\t\t\t\t{\n\t\t\t\t\tboolean cFighting = c.fight(a.toString());\n\t\t\t\t\tboolean aFighting = a.fight(c.toString());\n\t\t\t\t//If they are both still in the same location and alive, then fight\n\t\t\t\t\tif ((a.x_coord == c.x_coord) && (a.y_coord == c.y_coord) && (a.energy > 0) && (c.energy > 0)) {\t\t\n\t\t\t\t\t\tint cFight=0;\n\t\t\t\t\t\tint aFight=0;\n\t\t\t\t\t\tif(cFighting)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tcFight = getRandomInt(100);\n\t\t\t\t\t\t\tcFight++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(aFighting)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\taFight =getRandomInt(100);\n\t\t\t\t\t\t\taFight++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(cFight>aFight)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tc.energy+=(a.energy/2);\n\t\t\t\t\t\t\t//it2.remove();\n\t\t\t\t\t\t\ta.energy=0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(aFight>cFight)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\ta.energy+=(c.energy/2);\n\t\t\t\t\t\t\t//it1.remove()\n\t\t\t\t\t\t\tc.energy=0;\t\t\t\t\t\t\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(aFight>50)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\ta.energy+=(c.energy/2);\n\t\t\t\t\t\t\t\t//it1.remove();\n\t\t\t\t\t\t\t\tc.energy=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tc.energy+=(a.energy);\n\t\t\t\t\t\t\t\t//it2.remove();\n\t\t\t\t\t\t\t\ta.energy=0;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfightMode = false;\n\t\t\n\t//Update rest energy and reset hasMoved\n\t\tfor (Critter c2: population) {\n\t\t\tc2.hasMoved = false;\n\t\t\tc2.energy -= Params.rest_energy_cost;\n\t\t}\n\t\t\n\t//Spawn offspring and add to population\n\t\tpopulation.addAll(babies);\n\t\tbabies.clear();\n\t\t\n\t\tIterator<Critter> it3 = population.iterator();\n\t\twhile(it3.hasNext())\n\t\t{\n\t\t\tif(it3.next().energy<=0)\n\t\t\t\tit3.remove();\n\t\t}\n\t//Create new algae\n\t\tfor (int i = 0; i < Params.refresh_algae_count; i++) {\n\t\t\ttry {\n\t\t\t\tmakeCritter(\"Algae\");\n\t\t\t} catch (InvalidCritterException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "public static void main(String[] args) {\n\t\tdouble currentPop = INITIALPOP;\n\t\tdouble targetPop = new C7Q6().getTargetPop();\n\n\t\tint i=0;\n\t\tfor (i=0; currentPop<targetPop; i++){ \n\t\t\tcurrentPop*=(1+GROWTHRATE);\n\t\t}\n\t\tSystem.out.println(STARTYEAR+i);\n\t}", "public static void runAGeneration() {\n //Breeds Population until max population size for genetic drift\n breedAll();\n\n //Genocides Population by fitness\n genocide();\n\n System.out.println(\"\\nPopulation: \");\n\n //prints population\n printPopulation();\n }", "public void setPopulation(int population) {\n this.population = population;\n }", "void spray(double percent)\n {\n roaches = (int) (roaches - (roaches * percent / 100));\n }", "public void populateGrid() {\n for (int i=0; i<5; i++) {\n int chance = (int) random(10);\n if (chance <= 3) {\n int hh = ((int) random(50) + 1) * pixelSize;\n int ww = ((int) random(30) + 1) * pixelSize;\n\n int x = ((int) random(((width/2)/pixelSize))) * pixelSize + width/4;\n int y = ((int) random((height-topHeight)/pixelSize)) * pixelSize + topHeight;\n\n new Wall(w/2, 190, hh, ww).render();\n }\n }\n\n int fewestNumberOfPowerUps = 3;\n int greatesNumberOfPowerUps = 6;\n int wSize = 2;\n int hSize = 2;\n\n powerUps = new ArrayList <PowerUp> ();\n createPowerUps (fewestNumberOfPowerUps, greatesNumberOfPowerUps, wSize, hSize);\n}", "public void cullPopulation(){\n\t\t// sort the population by the fitness function from low to high\n\t\tCollections.sort(population);\n\t\t\n\t\t// remove 10% of the weakest part of the population\n\t\tfor(int i = 0; i < (int)(POPULATION_SIZE*POPULATION_ACTION_PERCENT); i++){\n\t\t\tpopulation.remove(0);\n\t\t}\n\n\t}", "public org.drip.measure.continuous.R1 populationDistribution()\n\t{\n\t\treturn _distPopulation;\n\t}", "public static void main(String[] args) {\n int[][] rooms = new int[4][4];\n int INF = Integer.MAX_VALUE;\n int[] p0 = {INF, -1, 0, INF};\n int[] p1 = {INF, INF, INF, -1};\n int[] p2 = {INF, -1, INF, -1};\n int[] p3 = {0, -1, INF, INF};\n rooms[0] = p0;\n rooms[1] = p1;\n rooms[2] = p2;\n rooms[3] = p3;\n wallsAndGates(rooms);\n\n\n }", "public void setPopulation(int population) {\n\n this.population = population;\n }", "public static void main(String[] args) {\n\t\tint[] A={0,1,0,2,1,0,1,3,2,1};\n\t\tSystem.out.println(trapRainWater(A));\n\t}", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\tIdeone i = new Ideone();\n\t\t\n\t\tint[][] costs = new int[][] {{7,5,10},{3,6,1},{8,7,4},{6,2,9},{1,4,7},{2,3,6}};\n\t\t\n\t\tSystem.out.println(i.paintHouses(costs));\n\t}", "public void rgs() {\n\t\tArrayList<int[]> front = this.unknown;\n\t\tRandom rand = new Random();\n\t\tint index = rand.nextInt(front.size());\n\t\tint loc[] = front.get(index);\n\t\tprobe(loc[0], loc[1]);\n\t\trgsCount++;\n\t\tSystem.out.println(\"RGS: probe[\" +loc[0] + \",\" + loc[1] + \"]\");\n\t\tshowMap();\n\t}", "public static void breedAll() {\n int a, b; //Pointers to select parents\n\n //While loop to ensure full carrying capacity of population\n while (Population.size() <= maxPop) {\n //Sorts by Fitness level first\n sortByFitlvl();\n\n //Selects Two Random Parents\n a = (int) (Math.abs(Utilities.sharpGauss(4)) * Population.size());\n b = (int) (Math.abs(Utilities.sharpGauss(4)) * Population.size());\n //System.out.println(a+\"\\t\"+b+\"\\t\"+Population.size());\n\n // Between 1-2 children\n int children = rand.nextInt(2)+1;\n for (int i = 0; i < children; i++) {\n Population.add(Breeder.breed(Population.get(a), Population.get(b), 0.1));\n }\n\n //sortByFitlvl();\n }\n\n if (debug)\n printPopulation(true);\n }", "public void setpopulation(int population) {\n this.population = population;\n }", "private void LotsofGrasp()\n\t{\n\t\t\n\t\tArrayList<FirmlyGraspIt> myRuns = new ArrayList<FirmlyGraspIt>();\n\t\t\n\t\tArrayList<Integer> myNums = new ArrayList<Integer>();\n\t\t\n\t\t\n\t\tFirmlyGraspIt sampleRun = new FirmlyGraspIt();\n\t\tFirmlyGraspIt otherRun = new FirmlyGraspIt();\n\t\t\n\t\tmyRuns.add(sampleRun);\n\t\tmyRuns.add(sampleRun);\n\t\tmyRuns.add(otherRun);\n\t\t\n\t\tfor (int index =0; index < myRuns.size(); index +=1)\n\t\t\t\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, myRuns.get(index).getName());\n\t\t\t\n\t\t\tFirmlyGraspIt currentRun = myRuns.get(index);\n\t\t\tJOptionPane.showMessageDialog(null, currentRun.getName());\n\t\t\tcurrentRun.setName(\"The new name is \" + index + \"run\");\n\t\t\tcurrentRun.setDistance(index * (int) (Math.random() * 300));\n\t\t\t\n\t\t}\n\t\t\n\t\t{\n\t\t\t\n\t\t}\n\t\n\t\t\n\t\tfor (int index = myRuns.size() - 1; index >= 0; index -= 1)\n\t\t{\n\t\t\t\n\t\t}\n\t\t\n\t\tfor (FirmlyGraspIt current : myRuns)\n\t\t{\n\t\t\tJOptionPane.showMessageDialog(null, \"The run is named:\" + current.getName());\n\t\t}\n\t\t\n\t}", "void TruncPopulation(double percent){\n\t\t\tint i,j,t, numIndiviadual;\n\t\t\tnode[] _nm;\n\t\t \tint[] Sort=new int[poplen];\t \t\n\t\t \n\t\t \tfor(i=0; i<poplen; i++)\t{\n\t\t \t\tSort[i]=i;\t \t\t\n\t\t \t}\n\t\t \t\t \n\t\t \t// Sort giam dam\n\t\t \tfor(i=0; i<poplen-1; i++)\t{\n\t\t \t\tfor(j=i+1; j<poplen; j++){\t \t\t\n\t\t \t\t\tif(oldpop[Sort[i]].size<oldpop[Sort[j]].size){\n\t\t \t\t\t\tt=Sort[i];\n\t\t \t\t\t\tSort[i]=Sort[j];\n\t\t \t\t\t\tSort[j]=t;\n\t\t \t\t\t}\n\t\t \t\t}\n\t\t \t\t\n\t\t \t}\n\t\t\t\n\t\t \tnumIndiviadual=(int)(poplen*percent);\n\t\t \t\n//\t\t \tSystem.out.println(numIndiviadual);\n\t\t \t\n\t\t\tfor(i = 0; i < numIndiviadual; i++){\n\t\t\t\tindividual[] m_individual=new individual[1];\n\t\t\t\tint[] _mt=new int[1];\n\t\t\t\t_nm=new node[1];\n//\t\t\t\tSystem.out.println(\"Trước+\"+oldpop[i].size);\n\t\t\t\tif(this.TruncateTreeGrow(oldpop[Sort[i]], m_individual,_mt,_nm)==TRUE){\t\n\t\t\t\t\t\n\t\t\t\toldpop[Sort[i]]=new individual();\n\t\t\t\toldpop[Sort[i]].CopyIndividual(m_individual[0], TRUE);\t\t\t\n\t\t\t\toldpop[Sort[i]].evaluated=FALSE;\n//\t\t\t\tSystem.out.println(\"Sau+\"+oldpop[i].size);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t}", "public static void worldTimeStep() {\r\n \t\r\n \t//remake the hash map based on the x and y coordinates of the critters\r\n \tremakeMap(population);\r\n \t\r\n \t//Iterate through the grid positions in the population HashMap\r\n \tIterator<String> populationIter = population.keySet().iterator();\r\n \twhile (populationIter.hasNext()) { \r\n String pos = populationIter.next();\r\n ArrayList<Critter> critterList = population.get(pos);\r\n \r\n //Iterate through the critters ArrayList \r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \tthisCritter.hasMoved = false;\r\n \tthisCritter.doTimeStep();\r\n \tif(thisCritter.hasMoved || thisCritter.getEnergy() <= 0) {\r\n \t\tcurrCritter.remove();\r\n \t} else {\r\n \t\tcurrCritter.set(thisCritter);\r\n \t}\r\n }\r\n population.replace(pos, critterList);\r\n }\r\n \t\r\n \tfixPopulation();\r\n \tmergePopulationMoved(populationMoved);\r\n \t\r\n \tdoEncounters();\r\n \t\r\n \tfixPopulation();\r\n \tmergePopulationMoved(populationMoved); //Stage 1 Complete\r\n \r\n \t//deduct resting energy cost from all critters in the hash map\r\n \t//could do a FOR EACH loop instead of iterator -- fixed\r\n \tpopulationIter = population.keySet().iterator();\r\n \twhile(populationIter.hasNext()) {\r\n \t\tString pos = populationIter.next();\r\n ArrayList<Critter> critterList = population.get(pos);\r\n \r\n //Iterate through the Critters attached to the keys in the Hash Map\r\n ListIterator<Critter> currCritter = critterList.listIterator();\r\n while(currCritter.hasNext()) {\r\n \tCritter thisCritter = currCritter.next();\r\n \t//deduct the rest energy cost from each critter\r\n \tthisCritter.energy = thisCritter.energy - Params.REST_ENERGY_COST;\r\n \t//remove all critters that have died after reducing the rest energy cost\r\n \tif(thisCritter.getEnergy() <= 0) {\r\n \t\tcurrCritter.remove();\r\n \t} else {\r\n \t\tcurrCritter.set(thisCritter);\r\n \t}\r\n }\r\n population.replace(pos, critterList);\r\n \t}\r\n \t\r\n \tmergePopulationMoved(babies);\r\n \t\r\n \t\r\n \t//add the clovers in each refresh of the world \r\n \ttry {\r\n \t\tfor(int j = 0; j < Params.REFRESH_CLOVER_COUNT; j++) {\r\n \t\t\tcreateCritter(\"Clover\");\r\n \t\t}\r\n \t} catch(InvalidCritterException p) {\r\n \t\tp.printStackTrace();\r\n \t}\r\n }", "public static void main(String[] args) {\n\t\tP213_HouseRobber2 r = new P213_HouseRobber2();\n\t\tint i = r.rob(new int[] {2,3,2});\n\t\ti = r.rob(new int[] {1,2,3,1});\n\n\t}", "public static void main(String[] args) {\n\t\t//int n = Integer.parseInt(args[0]);\n\t\t//int trails = Integer.parseInt(args[1]);\n\t\tint size = Integer.parseInt(args[0]);\n\t\tint trails = Integer.parseInt(args[1]);\n\t\tPercolationStats percolationStats = new PercolationStats(size, trails);\n\t\tpercolationStats.simulate();\n\t\tSystem.out.println(percolationStats);\n\t}", "@Test\n public void testPopulationGrowthCalc () {\n captainPlanet.setPopulation(0);\n assertEquals (-1, captainPlanet.calculateTurnsToGrowth());\n captainPlanet.setPopulation(1);\n assertEquals(15, captainPlanet.calculateTurnsToGrowth());\n captainPlanet.setPopulation(8);\n assertEquals(3, captainPlanet.calculateTurnsToGrowth());\n }", "private void addMountains() {\n int randRow = 0;\n int randColumn = 0;\n int randValue = 0;\n do {\n randRow = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n randColumn = (int)(Math.round(Math.random()*(MAP_LENGTH-4))) + 2;\n for (int i = (randRow - 2); i < (randRow + 2); i++) {\n for (int j = (randColumn - 2); j < (randColumn + 2); j++) {\n if ((tileMap[i][j].getTerrain() instanceof Grass) && (tileMap[i][j].isEmpty())) {\n randValue = (int)(Math.round(Math.random()));\n if (randValue == 0) {\n tileMap[i][j] = new Space(new Mountain(i, j)); //Create a mountain\n }\n }\n }\n }\n } while (!checkMountainCoverage());\n }", "public void modifyFitness(Population population) {\n // prepare the calculation\n double[][] data = new double[population.size()][];\n for (int i = 0; i < data.length; i++) {\n data[i] = ((AbstractEAIndividual)population.get(i)).getFitness();\n }\n double min = Double.POSITIVE_INFINITY, fitnessSharing;\n double[] result = new double[data.length];\n AbstractEAIndividual tmpIndy;\n\n for (int x = 0; x < data[0].length; x++) {\n for (int i = 0; i < data.length; i++) data[i][x] = -data[i][x];\n for (int i = 0; i < data.length; i++) {\n if (data[i][x] < min) min = data[i][x];\n }\n\n for (int i = 0; i < data.length; i++) {\n // This will cause the worst individual to have no chance of being selected\n // also note that if all individual achieve equal fitness the sum will be zero\n result[i] = data[i][x] -min + 0.1;\n }\n\n for (int i = 0; i < population.size(); i++) {\n tmpIndy = (AbstractEAIndividual)population.get(i);\n fitnessSharing = 0;\n for (int j = 0; j < population.size(); j++) {\n if (this.m_SharingDistance < this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))) {\n fitnessSharing += 1 - (this.m_Metric.distance(tmpIndy, (AbstractEAIndividual)population.get(j))/this.m_SharingDistance);\n }\n }\n result[i] = result[i]/fitnessSharing;\n }\n\n for (int i = 0; i < population.size(); i++) {\n ((AbstractEAIndividual)population.get(i)).SetFitness(x, result[i]);\n }\n }\n }", "public double fitness()\n/* */ {\n/* 40 */ return 1.0D / (1.0D + this.distance);\n/* */ }", "void pluck()\n\t{\n\t\tfor(int i = 0; i < rb.length(); i++)\n\t\t{\n\t\t\tdouble random = (Math.random() - 0.5) * AMPLITUDE; //[-0.5,0.5)\n\t\t\trb.dequeue();\n\t\t\trb.enqueue(random);\n\t\t}\n\t}", "private List<Polygon2D> getDistrictsInRing(List<Voter> voters, Point2D innerVertex, Point2D outerVertex, int repPerDistrict, int party) {\n \t\tList<Polygon2D> results = new ArrayList<Polygon2D>();\n \t\tdouble step = 0.1;\n \t\tint dist_num = repPerDistrict == 3 ? 20 : 22;\n \t\tPolygon2D outerTri = getTriByVertex(outerVertex);\n \t\tPolygon2D innerTri = getTriByVertex(innerVertex);\n \t\tPoint2D currIn = innerVertex;\n \t\tPoint2D currOut = outerVertex;\n \t\tdouble lenRate = (outerVertex.getY()/2 - 250 * Math.sqrt(3) / 3) / (innerVertex.getY()/2 - 250 * Math.sqrt(3) / 3);\n \t\tint total_population = Run.countInclusion(voters, outerTri) - Run.countInclusion(voters, innerTri);\n \t\tboolean gmable = true;\n \t\tdouble popRate = 0;\n \t\tfor(int i = 0; i < 3; i++) {\n \t\t\tSystem.out.println(\"Edge: \" + Integer.toString(i));\n\t \t\twhile(results.size() < dist_num-1) {\n\t \t\t\tSystem.out.println(gmable);\n\t \t\t\tPolygon2D p;\n\t \t\t\tif(i == 1)\n\t \t\t\t\tp = findDist(currIn, currOut, innerTri.getPoints().get(i), innerTri.getPoints().get((i+1)%3),\n\t \t\t\t\t\touterTri.getPoints().get(i), outerTri.getPoints().get((i+1)%3), step, lenRate, voters, true, repPerDistrict, party, gmable, popRate);\n\t \t\t\telse\n\t \t\t\t\tp = findDist(currIn, currOut, innerTri.getPoints().get(i), innerTri.getPoints().get((i+1)%3),\n\t\t \t\t\t\t\touterTri.getPoints().get(i), outerTri.getPoints().get((i+1)%3), step, lenRate, voters, false, repPerDistrict, party, gmable, popRate);\n\t \t\t\tif(p == null) {\n\t \t\t\t\tif(i == 0) {\n\t \t\t\t\t\tSystem.out.println(\"1111\");\n\t \t\t\t\t\tp = findDistAtCorner(currIn, currOut, innerTri.getPoints().get(1), innerTri.getPoints().get(2),\n\t \t\t\t\t\t\touterTri.getPoints().get(1), outerTri.getPoints().get(2), step, lenRate, voters, true, repPerDistrict, party, gmable, popRate);\n\t \t\t\t\t\tif(p == null) {\n\t \t\t\t\t\t\tSystem.out.println(\"3333\");\n\t \t\t\t\t\t\tp = findDistAtTwoCorners(currIn, currOut, innerTri.getPoints().get(1), innerTri.getPoints().get(2), innerTri.getPoints().get(0),\n\t \t\t\t\t\t\touterTri.getPoints().get(1), outerTri.getPoints().get(2), outerTri.getPoints().get(0), step, lenRate, voters, repPerDistrict, party, gmable, popRate);\n\t \t\t\t\t\t\t i++;\n\t \t\t\t\t\t}\n\t \t\t\t\t\ttotal_population -= Run.countInclusion(voters, p);\n\t \t \t\t\t\tresults.add(p);\n\t \t \t\t\t\tif(gmable) {\n\t \t \t\t\t\t\tgmable = isGerryManderable(total_population, dist_num - results.size());\n\t \t \t\t\t\t\tif(!gmable)\n\t \t \t\t\t\t\t\tpopRate = (double)total_population/(dist_num - results.size());\n\t \t \t\t\t\t}\n\t \t\t\t\t\tcurrIn = p.getPoints().get(p.getPoints().size()-1);\n\t\t \t \t\t\tcurrOut = p.getPoints().get(p.getPoints().size()-2);\n\t\t \t \t\t\tSystem.out.println(\"Polygon num: \" + Integer.toString(results.size()));\n\t \t\t\t\t\tbreak;\n\t \t\t\t\t}\n\t \t\t\t\telse if(i == 1) {\n\t \t\t\t\t\tSystem.out.println(\"2222\");\n\t \t\t\t\t\tp = findDistAtCorner(currIn, currOut, innerTri.getPoints().get(2), innerTri.getPoints().get(0),\n\t\t \t\t\t\t\t\touterTri.getPoints().get(2), outerTri.getPoints().get(0), step, lenRate, voters, false, repPerDistrict, party, gmable, popRate);\n\t \t\t\t\t\tSystem.out.println(Run.countInclusion(voters, p));\n\t \t\t\t\t\ttotal_population -= Run.countInclusion(voters, p);\n\t\t \t\t\t\tresults.add(p);\n\t\t \t\t\t\tif(gmable) {\n \t \t\t\t\t\t\tgmable = isGerryManderable(total_population, dist_num - results.size());\n \t \t\t\t\t\t\tif(!gmable)\n\t \t \t\t\t\t\t\tpopRate = (double)total_population/(dist_num - results.size());\n\t\t \t\t\t\t}\n\t\t\t\t \t\tcurrIn = p.getPoints().get(5);\n\t\t\t\t \t\tcurrOut = p.getPoints().get(4);\n\t\t\t\t \t\tSystem.out.println(\"Polygon num: \" + Integer.toString(results.size()));\n\t\t\t\t \t\tbreak;\n\t \t\t\t\t}\n\t \t\t\t}\n \t\t\t\tcurrIn = p.getPoints().get(p.getPoints().size()-1);\n\t \t\t\tcurrOut = p.getPoints().get(p.getPoints().size()-2);\n\t \t\t\tSystem.out.println(Run.countInclusion(voters, p));\n\t \t\t\ttotal_population -= Run.countInclusion(voters, p);\n\t \t\t\tresults.add(p);\n\t \t\t\tif(gmable) {\n\t\t\t\t\t\tgmable = isGerryManderable(total_population, dist_num - results.size());\n\t\t\t\t\t\tif(!gmable)\n \t\t\t\t\t\tpopRate = (double)total_population/(dist_num - results.size());\n\t\t\t\t}\n\t \t\t\tSystem.out.println(\"Polygon num: \" + Integer.toString(results.size()));\n\t \t\t}\n \t\t}\n \t\t// We do not check population in the last polygon of a ring now. It should be a limitation for gerrymandering\n \t\tPolygon2D p = new Polygon2D();\n \t\tp.append(currIn);\n \t\tp.append(currOut);\n \t\tif(currIn.getX() > 500 && currIn.getY() > innerTri.getPoints().get(1).getY()) {\n \t\t\tp.append(outerTri.getPoints().get(1));\n \t\t\tp.append(outerTri.getPoints().get(2));\n \t\t\tp.append(outerTri.getPoints().get(0));\n \t\t\tp.append(innerTri.getPoints().get(0));\n \t\t\tp.append(innerTri.getPoints().get(2));\n \t\t\tp.append(innerTri.getPoints().get(1));\n \t\t}\n \t\telse if(currIn.getY() == innerTri.getPoints().get(1).getY()) {\n \t\t\tp.append(outerTri.getPoints().get(2));\n \t\t\tp.append(outerTri.getPoints().get(0));\n \t\tp.append(innerTri.getPoints().get(0));\n \t\tp.append(innerTri.getPoints().get(2));\n \t\t}\n \t\telse {\n \t\t\tp.append(outerTri.getPoints().get(0));\n \t\tp.append(innerTri.getPoints().get(0));\n \t\t}\n \t\tresults.add(p);\n \t\tSystem.out.println(\"Polygon num: \" + Integer.toString(results.size()));\n \t\treturn results;\n }", "public ArrayList<Tour> doSelection(Population population) {\n double totalFitness = 0;\n for(Tour tour : population.getTourList()){\n totalFitness = totalFitness + tour.getFitness();\n }\n\n //sort tours by relative fitness\n SortedMap<Double, Tour> totalFitnessRelativity = new TreeMap<>();\n for(Tour tour: population.getTourList()){\n double key = tour.getFitness()/totalFitness;\n totalFitnessRelativity.put(key, tour);\n }\n\n //put tours on a number bar\n SortedMap<Double, Tour> numberBar = new TreeMap<>();\n double previousProbability = 0;\n for(Map.Entry<Double, Tour> entry : totalFitnessRelativity.entrySet()){\n double currentProbability = previousProbability + entry.getKey();\n numberBar.put(currentProbability, entry.getValue());\n previousProbability = currentProbability;\n }\n\n //choose a tour randomly according to how near it is to\n ArrayList<Tour> rouletteWheelOrder = new ArrayList<>();\n do{\n double randomNumber = new random.MersenneTwisterFast().nextDouble(0, numberBar.lastKey());\n for(Map.Entry<Double, Tour> numberBarSection : numberBar.entrySet()){\n if(randomNumber <= numberBarSection.getKey() && !rouletteWheelOrder.contains(numberBarSection.getValue())){\n rouletteWheelOrder.add(numberBarSection.getValue());\n break;\n }\n }\n } while(rouletteWheelOrder.size() != population.getTourList().size());\n return rouletteWheelOrder;\n }", "public static void printPopulation() {\n printPopulation(false);\n }", "private void asignDoubleCheese() {\n\t\tpizza = new DoubleCheese();\n\t\tBaguette pz = new PizzaAdapter(pizza);\n\t\tSystem.out.println(pz.getDescription() + \". Total: $\" + pz.cost());\n\t}", "public ArrayList<Population> InitializePopulations (int NumberOfPopulations, int NumberOfAgents){\n \n ArrayList<Population> PopulationsList = new ArrayList();\n \n if(NumberOfPopulations == 1){\n \n PopulationsList.add(InitSinglePopulation(NumberOfAgents));\n \n }else{\n \n for(int i = 0; i < NumberOfPopulations; i++){ \n double temp = rand.nextDouble();\n PopulationsList.add(InitSinglePopulation(i, NumberOfAgents, temp));\n }\n \n }\n \n \n return PopulationsList;\n }", "public void Grasshopper(){\n this.hops = 2;\n this.hopLim = 3;\n }", "public void evalPopulation(Population population, City cities[]) {\n\t\tdouble totalPopulationFitness = 0;\n\t\tfor (Individual individual : population.getIndividuals()) {\n\t\t\ttotalPopulationFitness += this.calcFitness(individual, cities);\n\t\t}\n\n\t\tdouble avgFitness = totalPopulationFitness / population.size();\n\n\t\tpopulation.setAverageFitness(avgFitness);\n\t}", "@Test\n public void getRoads()\n {\n List<Road> noroads = new ArrayList<>();\n assertEquals(noroads, country1.getRoads(cityG));\n //List of roads starting in the city returned.\n List<Road> roads = new ArrayList<>(country1.getRoads(cityA));\n assertEquals(roads.get(0).getFrom(), cityA);\n assertEquals(roads.get(1).getFrom(), cityA);\n assertEquals(roads.get(2).getFrom(), cityA);\n assertEquals(roads.size(),3);\n //4 calls to addRoads with cityF in setUp, but only 3 roads starting in cityF\n roads = new ArrayList<>(country2.getRoads(cityF));\n assertEquals(roads.get(0).getFrom(), cityF);\n assertEquals(roads.get(1).getFrom(), cityF);\n assertEquals(roads.get(2).getFrom(), cityF);\n assertEquals(roads.size(),3);\n \n roads = new ArrayList<>(country2.getRoads(null));\n assertEquals(noroads, roads);\n }", "public Population updatePopulationValue(ArrayList<EvalResult> results, Population pop) {\n\t\tArrayList<EvalResult> resultsNoDraw = results;\r\n\r\n\t\t/*\r\n\t\t * System.out.println(\"Avaliações sem Draw\"); for (EvalResult evalResult\r\n\t\t * : resultsNoDraw) { evalResult.print(); }\r\n\t\t */\r\n\r\n\t\tfor (EvalResult evalResult : resultsNoDraw) {\r\n\t\t\tupdateChomoPopulation(evalResult, pop);\r\n\t\t}\r\n\r\n\t\treturn pop;\r\n\t}", "public AIAssign2(){\n \n Scanner console = new Scanner(System.in);\n \n System.out.print(\"Input population size \");\n popsize = console.nextInt();\n \n System.out.print(\"Input tournament size \");\n tournysize = console.nextInt();\n \n System.out.print(\"Input crossover chance (%) \");\n crossprob = console.nextDouble();\n \n System.out.print(\"Input mutation chance (%) \");\n mutaprob = console.nextDouble();\n \n System.out.print(\"Input max generation size \");\n maxgen = console.nextInt();\n \n System.out.print(\"Input problem width \");\n width = console.nextInt();\n \n System.out.print(\"Input problem height \");\n height = console.nextInt();\n \n System.out.print(\"Input start location x-1 \");\n startx = console.nextInt();\n \n System.out.print(\"Input start location y-1 \");\n starty = console.nextInt();\n \n System.out.print(\"Input seed value \");\n seed = console.nextLong();\n \n Random rnd = new Random(seed);\n \n population = new int[popsize][height*width];\n population2 = new int[popsize][height*width];\n popfitness = new int[popsize];\n \n for (int i = 0 ; i<popsize ; i++){\n for (int j = 0 ; j<population[0].length ; j++){\n population[i][j] = (rnd.nextInt(4));\n }\n }\n Print(population);\n \n //the generation loop\n for (int gen = 0 ; gen < maxgen ; gen++){\n \n //fitness of individuals is stored\n int btemp = 0;\n for (int i = 0 ; i < popsize ; i++){\n \n problem = new char[width][height];\n problem[startx][starty] = 'S';\n \n popfitness[i] = Fitness(population[i], problem, startx, starty, 0);\n \n if (popfitness[i] > btemp){ btemp = popfitness[i];}\n }\n bestavg = bestavg + btemp;\n \n String line=\"\";\n int avg=0;\n for (int i = 0 ; i < popsize ; i++){\n line = line + \"[\" + popfitness[i] + \"] \"; \n avg = avg + popfitness[i];\n }\n avg = avg/popsize;\n avgavg = avgavg + avg;\n bestavg = bestavg / (gen+1);\n avgavg = avgavg / (gen+1);\n System.out.println(\"Gen: \"+gen + \" Fitness: \"+ line + \" Avg: \"+ avg + \" BestAvg: \" + bestavg + \" AvgAvg: \" + avgavg);\n bestavg = bestavg * (gen+1);\n avgavg = avgavg * (gen+1);\n \n //Tournament selection\n for (int i = 0 ; i < popsize ; i++){\n int best = 0; \n int rand = (int)(rnd.nextInt(popsize));\n best = rand;\n \n for (int k = 0 ; k < tournysize ; k++){\n if (popfitness[rand] > popfitness[best]){\n best = rand;\n }\n \n rand = (int)(rnd.nextInt(popsize));\n }\n population2[i] = Copy(population[best]); \n }\n \n //single-focus-flip and block exchange mutations\n for (int i = 0 ; i < popsize-1 ; i++){\n if (crossprob > rnd.nextInt(100)){\n int temp; \n for (int a = 0 ; a < 5 ; a++){\n temp = population2[i][a];\n population2[i][a] = population2[i+1][a];\n population2[i+1][a] = temp;\n }\n }\n }\n \n for (int i = 0 ; i < popsize ; i++){\n if (mutaprob > rnd.nextInt(200)){\n int temp = (int) (rnd.nextInt(population2[0].length)); \n population2[i][temp] = (int)(rnd.nextInt(4));\n }\n else if (mutaprob > rnd.nextInt(200)){\n for (int j = 0 ; j < population2[0].length/2 ; j++){\n int temp = population2[i][j];\n population2[i][j] = population2[i][population2[0].length-1-j];\n population2[i][population2[0].length-1-j] = temp;\n }\n }\n }\n \n population = population2;\n population2 = new int[popsize][population[0].length];\n \n }\n \n bestavg = bestavg / maxgen;\n avgavg = avgavg / maxgen;\n Print(population);\n System.out.println(\"Best Avg: \" + bestavg + \" Average of Avg: \" + avgavg);\n }", "private void recolteNourriture() {\r\n\t\t\t//1pop recolte toute la case\r\n\t\t\tint tempNourr = 0;\r\n\t\t\tint totalPop = population + populationColoniale;\r\n\t\t\tint limite = (totalPop < caseOwned.size()) ? totalPop : caseOwned.size();\r\n\t\t\tfor(int id = 0; id < limite; id++) {\r\n\t\t\t\ttempNourr += caseOwned.get(id).getFood();\r\n\t\t\t}\r\n\t\t\t//animaux\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Bétail) * 10; //Ca mange de l'herbe, ça se tente.\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Cervidés) * 7.5; //CARIBOUUUUUUUUU !!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Crabe) * 2; //ca pique les pied, a mort!!\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Elephants) * 30; //polution sonore\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Moutons) * 5; //kébab landais\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Poissons) * 5; //croustibat\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Chevaux) * 7; //lasagnes\r\n\t\t\ttempNourr += howManyAnimal(Animaux.Baleines) * 50; //*bruit de baleine virile*\r\n\t\t\t//aplication des bonus\r\n\t\t\ttempNourr *= (1 + (0.15 * scienceLvl) + (0.05 * (bonheur - baseBonheur))); // +15% par scienceLvl +5% par bonheur excedentaire, -5% par bonheur négatif\r\n\t\t\t\r\n\t\t\tnourriture += tempNourr;\r\n\t\t\t//bonus de conservation grâce au sel\r\n\t\t\tif(howManyRessource(StrategicRessource.Sel) > 0 && nourriture > 0) nourriture *= 1.10;\r\n\t\t\t//limitation de stockage\r\n\t\t\tint stockageMax = caseOwned.size() * 100 * scienceLvl;\r\n\t\t\tif(nourriture > stockageMax) nourriture = stockageMax;\r\n\t\t}", "public int getPopulation() {\n return population;\n }", "private static void calculateFitnessOfPopulation(ArrayList<Chromosome> population) {\n for (Chromosome chromosome : population) {\n // if the fitness of the chromosome has not yet been calculated (i.e. is still -1)\n fitnessFunction(chromosome);\n }\n }", "public static void main(String[] args) {\n\t\tint [] houses= {6,7,1,30,8,2,4};\n\t\tint val=topDown(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tint [] houses1= {20,5,1,13,6,11,40};\n\t\tval=topDown(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\t\n\t\tval=botUp(houses, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t\tval=botUp(houses1, 0);\n\t\tSystem.out.println(\"Maximum stolen: \"+val);\n\t\tarr=null;\n\t}", "public int generatePassengers() {\n int passengersAdded = 0;\n int probSize = getProbs().size();\n int stopSize = this.getStops().size();\n int stopIndex = this.getStops().get(0).getId();\n int lastStopIndex = this.getStops().get(this.getStops().size() - 1).getId();\n int probCount = 0;\n int stopCount = 0;\n while (probCount < probSize && stopCount < stopSize) {\n // Get this stop's probability\n double initialGenerationProbability = getProbs().get(probCount);\n double currentGenerationProbability = initialGenerationProbability;\n // while there is still a (>.01%) chance of generating a passenger, try\n while (currentGenerationProbability > 0.0001 && stopIndex != lastStopIndex) {\n // Generate a random double value\n Random rand = new Random();\n double generationValue = 0;\n if (RandomPassengerGenerator.DETERMINISTIC) {\n generationValue = RandomPassengerGenerator.DETERMINISTIC_VALUE;\n } else {\n generationValue = rand.nextDouble();\n }\n if (generationValue < currentGenerationProbability) {\n Passenger p = PassengerFactory.generate(stopIndex, lastStopIndex);\n passengersAdded += this.getStops().get(stopCount).addPassengers(p);\n }\n currentGenerationProbability *= initialGenerationProbability;\n }\n stopIndex++;\n probCount++;\n stopCount++;\n }\n return passengersAdded;\n }", "public static void main(String[] args) {\r\n\t\t//double lat = 36.149 + (0.001 * Math.random());\r\n\t\t//double lon = -86.800 + (0.001 * Math.random());\r\n\t\t\r\n\t\t// Note: The game area must already be set for this to work!\r\n\t\t\r\n\t\t// This puts a land mine in the middle of the parking lot\r\n\t\t// between ISIS and 21st.\r\n\t\tdouble lat = 36.14923059940338;\r\n\t\tdouble lon = -86.79988324642181;\r\n\t\tdouble rad = 5.0;\r\n\t\tLandMine lm = new LandMine(lat, lon, rad);\r\n\t\t//doLandMinePost(lm);\r\n\t\tdoLandMineRemove(lm);\r\n\t}", "public MyPacMan optimise(List<double[]> dimensionList){\n for(int i = 0; i < POPULATION_SIZE; i++){\r\n MyPacMan individual = new MyPacMan(dimensionList);\r\n population.add(individual);\r\n \r\n } \r\n \r\n // try more than one iteration \r\n for(int iterationCount = 0; iterationCount < ITERATION_NO; iterationCount++){\r\n \r\n System.out.println(\"Iterazione n°: \" + Integer.toString(iterationCount));\r\n \r\n if(iterationCount%10 == 0 || iterationCount == ITERATION_NO-1){\r\n try {\r\n pw = new PrintWriter(new File(\"data/popoluation_\" + Integer.toString(iterationCount) +\".csv\"));\r\n } catch (FileNotFoundException ex) {\r\n \r\n } \r\n \r\n \r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n pw.write(\"v\" + Integer.toString(n));\r\n pw.write(\",\");\r\n }\r\n \r\n pw.write(\"fValue\");\r\n\r\n pw.write(\"\\n\");\r\n \r\n for (MyPacMan individual : population) {\r\n pw.write(individual.toString());\r\n pw.write(\",\");\r\n pw.write(Double.toString(fitFunction(individual)));\r\n pw.write(\"\\n\");\r\n }\r\n \r\n pw.flush();\r\n }\r\n \r\n int loop = 0;\r\n \r\n // main loop for evolution\r\n while(loop < population.size()){ \r\n\r\n MyPacMan original = null;\r\n MyPacMan candidate = null;\r\n boolean boundsHappy;\r\n\r\n do{\r\n boundsHappy = true;\r\n // pick an agent from the the population\r\n int x = loop;\r\n int a,b,c = -1;\r\n\r\n // pick three random agents from the population\r\n // make sure that they are not identical to selected agent from\r\n // the population \r\n\r\n do{\r\n a = random.nextInt(population.size());\r\n }while(x == a);\r\n do{\r\n b = random.nextInt(population.size());\r\n }while(b==x || b==a);\r\n do{\r\n c = random.nextInt(population.size());\r\n }while(c == x || c == a || c == b);\r\n\r\n // create three agent individuals\r\n MyPacMan individual1 = population.get(a);\r\n MyPacMan individual2 = population.get(b);\r\n MyPacMan individual3 = population.get(c);\r\n\r\n // create a noisy random candidate\r\n MyPacMan noisyRandomCandicate = new MyPacMan(dimensionList);\r\n\r\n // mutation process\r\n // if an element of the trial parameter vector is\r\n // found to violate the bounds after mutation and crossover, it is reset in such a way that the bounds\r\n // are respected (with the specific protocol depending on the implementation)\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n noisyRandomCandicate.dataValue[n] = (individual1.dataValue[n] + DIFFERENTIAL_WEIGHT * (individual2.dataValue[n] - individual3.dataValue[n])); \r\n } \r\n\r\n // Create a trial candicate \r\n original = population.get(x);\r\n candidate = new MyPacMan(dimensionList);\r\n\r\n // copy values from original agent to the candidate agent\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n candidate.dataValue[n] = original.dataValue[n];\r\n } \r\n\r\n // crossver process with the selected individual\r\n // pick a random dimension, which defintely takes the value from the noisy random candidate\r\n int R = random.nextInt(dimensionList.size());\r\n\r\n for(int n = 0; n < dimensionList.size(); n++){\r\n\r\n double crossoverProbability = random.nextDouble();\r\n\r\n if(crossoverProbability < CROSSOVER_PROBABILITY || n == R){\r\n candidate.dataValue[n] = noisyRandomCandicate.dataValue[n];\r\n }\r\n\r\n }\r\n\r\n // check here if the trial candiate satisfies bounds for each value\r\n for(int n = 0; n < dimensionList.size(); n++){ \r\n if(candidate.dataValue[n] < dimensionList.get(n)[0] || candidate.dataValue[n] > dimensionList.get(n)[1]){\r\n boundsHappy = false;\r\n }\r\n }\r\n\r\n }while(boundsHappy == false);\r\n\r\n //see if the candidate is better than original, if so replace it\r\n if(fitFunction(original) < fitFunction(candidate)){\r\n population.remove(original);\r\n population.add(candidate); \r\n }\r\n loop++;\r\n } \r\n }\r\n \r\n MyPacMan bestFitness = new MyPacMan(dimensionList);\r\n \r\n // selecting the final best agent from the the population\r\n for(int i = 0; i < population.size(); i++){\r\n MyPacMan individual = population.get(i);\r\n \r\n if(fitFunction(bestFitness) < fitFunction(individual)){\r\n \r\n try {\r\n bestFitness = (MyPacMan) individual.clone();\r\n } catch (CloneNotSupportedException ex) {\r\n \r\n }\r\n }\r\n }\r\n \r\n System.out.println(\"Fitness migliore: \" + fitFunction(bestFitness));\r\n return bestFitness;\r\n }", "ArrayList<ArrayList<Double>> initrandomTerrainHeights() {\n ArrayList<ArrayList<Double>> result = new ArrayList<ArrayList<Double>>();\n for (int i = 0; i < ForbiddenIslandWorld.ISLAND_SIZE + 1; i = i + 1) {\n ArrayList<Double> result2 = new ArrayList<Double>();\n for (int j = 0; j < ForbiddenIslandWorld.ISLAND_SIZE + 1; j = j + 1) {\n result2.add(0.0);\n }\n result.add(result2);\n }\n result.get(0).set(ForbiddenIslandWorld.ISLAND_SIZE / 2, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(0, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(ForbiddenIslandWorld.ISLAND_SIZE / 2,\n (double) (ForbiddenIslandWorld.ISLAND_SIZE / 2));\n result.get(ForbiddenIslandWorld.ISLAND_SIZE / 2).set(ForbiddenIslandWorld.ISLAND_SIZE, 1.0);\n result.get(ForbiddenIslandWorld.ISLAND_SIZE).set(ForbiddenIslandWorld.ISLAND_SIZE / 2, 1.0);\n return result;\n }", "private static void displayStat() {\n Collection<Zone> zones = Universe.getInstance().getCarte().getCarte().values();\r\n System.out.println(\"Nb de personnes créées : \" + Universe.getInstance().getCarte().getPopulation().size());\r\n\r\n\r\n System.out.println(\"Nb de personnes créées en mer : \" + getPopulationByTile(Zone.Tile.SEA));\r\n System.out.println(\"Nb de personnes créées en plaine : \" + getPopulationByTile(Zone.Tile.EARTH));\r\n System.out.println(\"Nb de personnes créées en foret : \" + getPopulationByTile(Zone.Tile.FOREST));\r\n System.out.println(\"Nb de personnes créées en ville : \" + getPopulationByTile(Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer : \" + getSurfaceByTile(zones, Zone.Tile.SEA));\r\n System.out.println(\"Surface plaine : \" + getSurfaceByTile(zones, Zone.Tile.EARTH));\r\n System.out.println(\"Surface foret : \" + getSurfaceByTile(zones, Zone.Tile.FOREST));\r\n System.out.println(\"Surface ville : \" + getSurfaceByTile(zones, Zone.Tile.TOWN));\r\n\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Densité mer : \" + new Double(getPopulationByTile(Zone.Tile.SEA) / getSurfaceByTile(zones, Zone.Tile.SEA)));\r\n System.out.println(\"Densité plaine : \" + new Double(getPopulationByTile(Zone.Tile.EARTH)) / new Double(getSurfaceByTile(zones, Zone.Tile.EARTH)));\r\n System.out.println(\"Densité foret : \" + new Double(getPopulationByTile(Zone.Tile.FOREST)) / new Double(getSurfaceByTile(zones, Zone.Tile.FOREST)));\r\n System.out.println(\"Densité ville : \" + new Double(getPopulationByTile(Zone.Tile.TOWN)) / new Double(getSurfaceByTile(zones, Zone.Tile.TOWN)));\r\n\r\n System.out.println(\"---------------\");\r\n System.out.println(\"Surface mer deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine deserte : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville deserte: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"---------------\");\r\n\r\n System.out.println(\"Surface mer habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.SEA) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface plaine habitée : \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.EARTH) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface foret habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.FOREST) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n System.out.println(\"Surface ville habitée: \" +zones.stream().filter(z-> z.getTile().equals(Zone.Tile.TOWN) && CollectionUtils.isNotEmpty(z.getHabitants())).collect(Collectors.toList()).size());\r\n }", "public static void main(String[] args) {\n\n List<Mine> mines = new ArrayList<>();\n mines.add(new CoalMine(40));\n mines.add(new CoalMine(40));\n mines.add(new CoalMine(40));\n mines.add(new CoalMine(40));\n mines.add(new UraniumMine(100));\n mines.add(new MoonMine(10));\n mines.add(new MoonMine(10));\n mines.add(new HadronCollider(1));\n\n List<EnergyPlant> energyPlants = new ArrayList<>();\n energyPlants.add(new CoalPlant(7));\n energyPlants.add(new CoalPlant(7));\n energyPlants.add(new SolarPlant(2));\n energyPlants.add(new SolarPlant(2));\n energyPlants.add(new NuclearPlant(10000));\n energyPlants.add(new NuclearPlant(10000));\n energyPlants.add(new FusionPlant(20000));\n energyPlants.add(new FusionPlant(20000));\n energyPlants.add(new AnnihilationPlant(25000));\n energyPlants.add(new AnnihilationPlant(25000));\n\n\n var simulation = new Simulation(null, mines, energyPlants);\n simulation.run();\n\n }", "public Population breedPopulation(EvolutionState state)\r\n {\n if( previousPopulation != null )\r\n {\r\n if( previousPopulation.subpops.length != state.population.subpops.length )\r\n state.output.fatal( \"The current population should have the same number of subpopulations as the previous population.\" );\r\n for( int i = 0 ; i < previousPopulation.subpops.length ; i++ )\r\n {\r\n if( state.population.subpops[i].individuals.length != previousPopulation.subpops[i].individuals.length )\r\n state.output.fatal( \"Subpopulation \" + i + \" should have the same number of individuals in all generations.\" );\r\n for( int j = 0 ; j < state.population.subpops[i].individuals.length ; j++ )\r\n if( previousPopulation.subpops[i].individuals[j].fitness.betterThan( state.population.subpops[i].individuals[j].fitness ) )\r\n state.population.subpops[i].individuals[j] = previousPopulation.subpops[i].individuals[j];\r\n }\r\n previousPopulation = null;\r\n }\r\n\r\n // prepare the breeder (some global statistics might need to be computed here)\r\n prepareDEBreeder(state);\r\n\r\n // create the new population\r\n Population newpop = (Population) state.population.emptyClone();\r\n\r\n // breed the children\r\n for( int subpop = 0 ; subpop < state.population.subpops.length ; subpop++ )\r\n {\r\n if (state.population.subpops[subpop].individuals.length < 4) // Magic number, sorry. createIndividual() requires at least 4 individuals in the pop\r\n state.output.fatal(\"Subpopulation \" + subpop + \" has fewer than four individuals, and so cannot be used with DEBreeder.\");\r\n \r\n Individual[] inds = state.population.subpops[subpop].individuals;\r\n for( int i = 0 ; i < inds.length ; i++ )\r\n {\r\n newpop.subpops[subpop].individuals[i] = createIndividual( state, subpop, inds, i, 0); // unthreaded for now\r\n }\r\n }\r\n\r\n // store the current population for competition with the new children\r\n previousPopulation = state.population;\r\n return newpop;\r\n }", "@Override\n\tpublic void getOil(ArrayList<Olive> olives) {\n\t\tint oil = 0;\n\t\t\n\t\tfor (Olive olive : olives) {\n\t\t\toil += olive.crush();\n\t\t}\n\t\t\n\t\tsetTotalOil(oil);\n\n\t}", "public static void main(String[] args) {\n // TODO code application logic here\n\n List<Double> l = new ArrayList<Double>();\n fill(l, 5);\n average(l);\n max(l);\n min(l);\n }", "public double getPriceOfPeaches() {\n return priceOfPeaches;\n }", "private static void mutate(IndividualList offspring) {\n for (Individual individual : offspring) {\n for (byte b : individual.getDNA()) {\n int i = Util.rand((int) Math.ceil(1 / mutaRate));\n if (i == 0) { //1 in x chance to randomly generate 0, therefore 1/x chance to mutate\n b = swap(b);\n }\n }\n individual.setFitness(individual.currentFitness());\n }\n }", "public ArrayList<Building> getPopulation(){\n\t\treturn population;\n\t}", "public void setPopulation(Integer population) {\n this.population = population;\n }", "private void populate()\n\t{\n\t\tages = new int[] { 15, 18, 16, 16, 15, 16 }; \n\t}", "private void addEnemyPowerUps() {\n\t\tfor (int i = 0; i < 4; i++) {\n\t\t\tint x = (int) (Math.random() * 10);\n\t\t\tint y = (int) (Math.random() * 10);\n\n\t\t\twhile (egrid[x][y] != 0) { // prevents overlaps\n\t\t\t\tx = (int) (Math.random() * 10);\n\t\t\t\ty = (int) (Math.random() * 10);\n\t\t\t}\n\n\t\t\tegrid[x][y] = 2;\n\t\t}\n\t}", "public static void main(String[] args) {\n Trip diving = new Trip(\"ScubaDiving\", new Money(2000.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n LocalDate.of(2021, 5, 3),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER)));\n\n // trip 2 - freediving trip\n // price per person\n Trip freeDiving = new Trip(\"FreeDiving\",\n new Money(500.00, Currency.GBP),\n new HashSet<Gear>(Arrays.asList(Gear.FREEDIVING_FINS, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_MASK)),\n LocalDate.of(2021, 8, 18),\n new HashSet<Qualification>(Arrays.asList(Qualification.AIDA_2)));\n\n // Lynn person detail\n Person lynn = new Person(\"Lynn\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS)),\n new Money(2000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 5, 1), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER)));\n\n // Tao person detail\n Person tao = new Person(\"TAO\",\n new HashSet<Gear>(Arrays.asList(Gear.BCD, Gear.DIVING_SUITS, Gear.FREEDIVING_MASK, Gear.FREEDIVING_WET_SUITS, Gear.FREEDIVING_FINS)),\n new Money(10000.00, Currency.GBP),\n new HashSet<LocalDate>(Arrays.asList(LocalDate.of(2021, 8, 18), LocalDate.of(2021, 5, 2),\n LocalDate.of(2021, 5, 3))),\n new HashSet<Qualification>(Arrays.asList(Qualification.PADI_ADVANCED_OPEN_WATER, Qualification.PADI_OPEN_WATER, Qualification.AIDA_2, Qualification.AIDA_3)));\n\n HashSet<Person> persons = new HashSet<>();\n HashSet<Trip> trips = new HashSet<>();\n\n persons.add(lynn);\n persons.add(tao);\n trips.add(diving);\n trips.add(freeDiving);\n\n// findTrip(persons, trips);\n\n Trip tripToGo = tripWithMaxPersons(persons, trips);\n\n System.out.println(\"Trip to go: \" + tripToGo.getName());\n System.out.println(\"=================================\");\n\n\n HashMap<Trip, HashSet<Person>> tripsAndPersons = findWhoReady(persons, trips);\n for(Trip trip: tripsAndPersons.keySet()){\n System.out.println(\"Trip \" + trip.getName() + \" ready: \" );\n HashSet<Person> personPerTrip = tripsAndPersons.get(trip);\n for(Person person: personPerTrip) {\n System.out.println(person.getName());\n }\n System.out.println(\"-------------------------------\");\n\n }\n\n\n // currency EURO\n // exchange rate?\n\n\n\n }", "@Override\r\n\tpublic ArrayList<Cell> behaviorClone() {\r\n\t\tenergy = (energy-20)/2;\r\n\t\tmass = mass/2;\r\n\t\tArrayList<Cell> newCell = new ArrayList<Cell>();\r\n\t\tnewCell.add(new Grazer(petri, rng, x, y, xVelocity, yVelocity, mass, energy));\r\n\t\treturn newCell;\r\n\t}", "public static void main(String[] args) {\n int[][] arr = new int[][]{\n {9,9,9,9,9,9,8,9,9,9,9},\n {9,0,0,0,0,0,1,0,0,0,9},\n {9,0,0,0,0,0,0,0,0,0,9},\n {9,0,0,0,0,0,0,0,0,0,9},\n {9,9,9,9,9,9,9,9,9,9,9}\n };\n\n System.out.print(new TrappingRainWater2().trapRainWater(arr));\n }", "public abstract int getPopulation(int west, int south, int east, int north);", "public static void main(String[] args) {\n\t\t\n double p = 3048;\n int i;\n\t\t\n\t\t\n\t\tfor (i=1; i <=40; i++) {\n\t\t\t\n\t\t p = p * 2 / 3;\n\t\t \n\t\t}\n\t\t\n\t\tSystem.out.println(\"La distancia que habra recorrido la bola al momento de realizar su rebote numero 40 es de : \"+ p+ \" mts\");\n\n\t}", "public int getPopulation() {\n\n return population;\n }", "public void stepPopulation(int day){\r\n\t\tthis.resetComps();\r\n\t\tthis.resetPool();\r\n\t\tfor(int i = 0; i < this.getnVillages(); i++){\r\n\t\t\tVillage curr = this.vVillages[i];\r\n\t\t\tcurr.stepVillage(day);\r\n\t\t\tthis.incrementComps(curr.getComps());\r\n\t\t\tthis.updatePool(curr.getMarketPool());\r\n\t\t}\t\t\r\n\t}", "public static void main(String[] args) {\n Room room1 = new Room(14, 6, 2, false);\n Room room2 = new Room(8, 6, 2, false);\n Room room3 = new Room(18, 6, 2, false);\n\n ArrayList<Room> rooms = new ArrayList<>();\n rooms.add(room1);\n rooms.add(room2);\n rooms.add(room3);\n\n\n House house = new House(8, 2, 140.00, rooms);\n\n\n\n\n System.out.println(\"Aantal stoelen \" + house.aantalStoelenInHetHuis());\n\n }", "public DoubleChromosome(int size) {\t\n\t\tfor(int g=0; g<size; g++){\n\t\t\tgenes.add(random.nextDouble()-0.5);\n\t\t}\n\t\tinit();\n\t}", "public static void main(String[] args) {\n\t\tint timeJump = 500;\n\t\tUser[] users = Snippet.DBBuilderUsers();\n\t\tUser agent = users[0];\n\t\tAuction a = new Auction();\n\t\tTime t = new Time();\n\t\tdouble reward = 0;\n\t\tdouble lastTenReward = 0;\n\t\tList<Double> rewards = new ArrayList<Double>();\n\t\tList<Double> trends = new ArrayList<Double>();\n\t\tString fileName = \"Avg_Performance (Value Iteration) (0.001, 0.9).xls\";\n\t\tint data = 1000;\n\t\tProbabilityDatabase DB = new ProbabilityDatabase(500);\n\t\tValueIteration DPAgent = new ValueIteration(0.001, 0.9);\n\t\t\n\t\tDB.generateDatabase(users);\n\t\tSystem.out.println(\"Probability Database Generated\");\n\t\tDPAgent.evaluateState(users, DB);\n\t\tSystem.out.println(\"State Evaluated\");\n\t\tfor (int row = 0; row < data; row++) {\n\t\t\trewards = new ArrayList<Double>();\n\t\t\ttrends = new ArrayList<Double>();\n\t\t\treward = 0;\n\t\t\tlastTenReward = 0;\n\t\t\tt = new Time();\n\t\t\tusers = Snippet.DBBuilderUsers();\n\t\t\tfor (int i = 0; i < users.length; i++) {\n\t\t\t\tif (users[i].getStrategy() == 6) {\n\t\t\t\t\tagent = users[i];\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (int i = 0; i < timeJump; i++) {\n\t\t\t\tt.advanceTime();\n\t\t\t\tSnippet.startOfDay(users, t);\n\t\t\t\ta.runDPAuction(users, t, DB, DPAgent);\n\t\t\t\tSnippet.endOfDay(users, t);\n\t\t\t\treward = agent.getPerformance().normalizedScore();\n\t\t\t\trewards.add(reward);\n\t\t\t\t\n\t\t\t\tlastTenReward = 0;\n\t\t\t\tif (t.getDay() > 6) {\n\t\t\t\t\tfor (int j = 1; j < 8; j++) {\n\t\t\t\t\t\tlastTenReward += rewards.get(rewards.size() - j);\n\t\t\t\t\t}\n\t\t\t\t\trewards.remove(0);\n\t\t\t\t\ttrends.add(lastTenReward/7);\n\t\t\t\t}\n\t\t\t}\n\t\t\ttry {\n\t // Assume default encoding.\n\t FileWriter fileWriter =\n\t new FileWriter(fileName, true);\n\n\t // Always wrap FileWriter in BufferedWriter.\n\t BufferedWriter bufferedWriter =\n\t new BufferedWriter(fileWriter);\n\n\t // Note that write() does not automatically\n\t // append a newline character.\n\t \n\t for (Double temp : trends) {\n\t \tbufferedWriter.write(temp + \"\\t\");\n\t\t\t\t}\n\t bufferedWriter.write(\"\\n\");\n\t // Always close files.\n\t bufferedWriter.close();\n\t } catch(IOException ex) {}\n\t\t}\n\t}", "public static void genocide() {\n //Assigns fitness levels\n evaluateFitnesses();\n\n //Sorts by fitness\n sortByFitlvl();\n\n //Simple genocide, kills off all until population size.\n for (int i = Population.size() - 1; i >= populationSize; i--) {\n Population.remove(i);\n }\n\n /*\n //Different kind of Genocide, selects organisms based on gaussian distribution\n\n while(Population.size() > populationSize){\n int randomOrganism = (int)(Population.size() - (Population.size()*Utilities.sharpGauss(2)));\n Population.remove(randomOrganism);\n }\n */\n }", "public void goldDropPoint()\r\n {\r\n System.out.println(\"goldDropPoint\");\r\n setManual(false);\r\n if (isCollectionPlane)\r\n {\r\n savePreviousPosition();\r\n setIsCollectionPlane(false);\r\n }\r\n if (motorJ1.getCurrentPosition() > GOLD_DROP_J1)\r\n {\r\n j1Power = -J1_POWER;\r\n }\r\n else if (motorJ1.getCurrentPosition() < GOLD_DROP_J1)\r\n {\r\n j1Power = J1_POWER;\r\n }\r\n\r\n if (motorJ2.getCurrentPosition() > GOLD_DROP_J2)\r\n {\r\n j2Power = -J2_POWER;\r\n }\r\n else if (motorJ2.getCurrentPosition() < GOLD_DROP_J2)\r\n {\r\n j2Power = J2_POWER;\r\n }\r\n\r\n if (motorJ3.getCurrentPosition() > GOLD_DROP_J3)\r\n {\r\n j3Power = -UP_POWER_J3;\r\n }\r\n else if (motorJ3.getCurrentPosition() < GOLD_DROP_J3)\r\n {\r\n j3Power = UP_POWER_J3;\r\n }\r\n toPosition(j1Power, j2Power, j3Power, GOLD_DROP_J1, GOLD_DROP_J2, GOLD_DROP_J3);\r\n j1Power = 0;\r\n j2Power = 0;\r\n j3Power = 0;\r\n }", "public static void main(String[] args) {\n\n int gridWidth, gridHeight, humanNumber, goblinNumber, positionX, positionY, strength;\n ArrayList<Player> humanList = new ArrayList<>();\n ArrayList<Player> goblinList = new ArrayList<>();\n Scanner input = new Scanner(System.in);\n\n System.out.println(\" Welcome to Human vs. Goblin\");\n System.out.println();\n\n // Get the size of the grid\n System.out.print(\"Width of the grid (1-500): \");\n gridWidth = input.nextInt();\n if (gridWidth<1 || gridWidth>500) {\n gridWidth = 10; // In case input is wrong, set 10 as default;\n }\n\n System.out.print(\"Height of the grid (1-500): \");\n gridHeight = input.nextInt();\n if (gridHeight<1 || gridHeight>500)\n gridHeight = 10; // In case input is wrong, set 10 as default;\n\n // Init Grid\n World grid = new World(gridWidth, gridHeight);\n System.out.println();\n\n // Get the number of Players\n System.out.print(\"Number of human (0-\"+grid.getArea()+\"): \");\n humanNumber = input.nextInt();\n\n if (humanNumber<0 || humanNumber>grid.getArea()){\n humanNumber = grid.getArea()/3; // In case input is wrong, set one third as default;\n }\n\n System.out.print(\"Number of goblin (0-\"+(grid.getArea())+\"): \");\n goblinNumber = input.nextInt();\n if (goblinNumber<0 || goblinNumber>grid.getArea()){\n goblinNumber = grid.getArea()/3; // In case input is wrong, set one third as default;\n }\n\n Coordinates coordinates = new Coordinates(ThreadLocalRandom.current().nextInt(grid.getArea() -1,grid.getArea()), ThreadLocalRandom.current().nextInt(grid.getArea() -1,grid.getArea()));\n // Fill Grid with creatures\n for(int i=0;i<humanNumber;i++){\n do {\n positionX = ThreadLocalRandom.current().nextInt(0,grid.getWidth()-1);\n positionY = ThreadLocalRandom.current().nextInt(0,grid.getHeight()-1);\n strength = ThreadLocalRandom.current().nextInt(1,10);\n Human human = new Human(\"human\",strength,1, coordinates);\n humanList.add(human);\n\n } while (grid.addPlayer(positionX, positionY, humanList.get(i)));\n }\n for(int i=0;i<goblinNumber;i++){\n do {\n positionX = ThreadLocalRandom.current().nextInt(0,grid.getWidth()-1);\n positionY = ThreadLocalRandom.current().nextInt(0,grid.getHeight()-1);\n strength = ThreadLocalRandom.current().nextInt(1,10);\n Goblin goblin = new Goblin(\"goblin\",strength,1, coordinates);\n goblinList.add(goblin);\n\n } while (grid.addPlayer(positionX, positionY, goblinList.get(i)));\n }\n\n System.out.println();\n System.out.print(\"You have just created Human vs Goblin grid size of \"+grid.getSizeString()+\" \");\n System.out.println(\"with \"+humanNumber+\" humans and \"+goblinNumber+\" Goblins!\");\n System.out.println();\n Timer timer = new Timer();\n timer.schedule(new PlayGame(grid, timer),0,500);\n }", "public static void reproduce (Species [][] map, int sheepHealth, int wolfHealth, int plantHealth) {\n \n // Place the baby\n int babyY, babyX;\n \n // Check if the baby has been placed\n int spawned = 0;\n \n for (int y = 0; y < map[0].length; y++){\n for (int x = 0; x < map.length; x++){\n \n boolean [][] breeding = breedChoice (map, x, y, plantHealth);\n \n // Sheep upwards to breed with\n if (breeding[0][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep downwards to breed with\n } else if (breeding[1][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the left to breed with\n } else if (breeding[2][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Sheep to the right to breed with\n } else if (breeding[3][0]) {\n ((Sheep)map[y][x]).reproduceHealthLost(10);\n ((Sheep)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby sheep\n Sheep sheep = new Sheep(sheepHealth, x, y);\n \n // Place the baby sheep\n do {\n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = sheep;\n spawned = 1;\n }\n } while (spawned == 0);\n \n // Wolf upwards to breed with\n } else if (breeding[0][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y-1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf downwards to breed with\n } else if (breeding[1][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y+1][x]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the left to breed with\n } else if (breeding[2][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x-1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n // Wolf to the right to breed with\n } else if (breeding[3][1]) {\n ((Wolf)map[y][x]).reproduceHealthLost(10);\n ((Wolf)map[y][x+1]).reproduceHealthLost(10);\n \n // Make baby wolf\n Wolf wolf = new Wolf(wolfHealth, x, y);\n \n // Place the baby wolf\n do { \n babyY = (int)(Math.random() * map.length);\n babyX = (int)(Math.random() * map.length);\n if (map[babyY][babyX] == null) {\n map[babyY][babyX] = wolf;\n spawned = 1; \n }\n } while (spawned == 0);\n \n }\n \n }\n }\n \n }", "public Location spread()\n {\n // plant needs to be alive, ready to reproduce (# of turns) \n // square needs to have fewer than 10 plants, BUT a tree can kill \n // a grass plant\n }", "public static void main(String args[]) {\r\n\t\tint minutesPerYear = 365 * 24 * 60; // uses 3 magic numbers\r\n\r\n\t\t// The following line of code is a little confusing and the number 6 has\r\n\t\t// no meaning to me - it actually returns a number between 1 and 6\r\n\t\tint side = (int) (Math.random() * 6) + 1;\r\n\r\n\t\t// This makes more sense and lets me know that the number 6 refers to\r\n\t\t// the number of sides on a die\r\n\t\tside = (int) (Math.random() * SIDES_PER_DIE + 1);\r\n\t}", "static void neighborhood()\r\n { \r\n // Puts the earth in a world and the three different color turtles in that world\r\n earth = new World();\r\n turtle1 = new Turtle(earth);\r\n turtle1.setColor(Color.BLUE);\r\n turtle2 = new Turtle(earth);\r\n turtle2.setColor(Color.RED);\r\n turtle3 = new Turtle(earth);\r\n turtle3.setColor(Color.GREEN);\r\n house(100, 100, turtle1);\r\n house(250, 100, turtle2);\r\n house(400, 100, turtle3);\r\n\r\n }", "public double populationStandardDeviation() {\n/* 242 */ return Math.sqrt(populationVariance());\n/* */ }", "public static void spreadDust() {\n newMap = new int[R][C];\n\n for (int i = 0; i < R; i++) {\n for (int j = 0; j < C; j++) {\n if (map[i][j] > 0) {\n int cnt = 0;\n for (int d = 0; d < 4; d++) {\n int ny = i + dy[d];\n int nx = j + dx[d];\n\n if (ny < 0 || ny > R - 1 || nx < 0 || nx > C - 1 || map[ny][nx] == -1)\n continue;\n\n newMap[ny][nx] += map[i][j] / 5;\n cnt++;\n }\n newMap[i][j] += map[i][j] - (map[i][j] / 5) * cnt;\n } else if (map[i][j] == -1) {// 공기청정기 위치.\n newMap[i][j] = -1;\n// airCleaner.add(new Point4(j, i));\n }\n }\n }\n\n for (int i = 0; i < R; i++) {\n map[i] = Arrays.copyOf(newMap[i], C);\n }\n\n cleanAir(airCleaner.get(0), airCleaner.get(1));\n\n }", "private static void fixPopulation() {\r\n \t//get a copy of the population hash map\r\n \tHashMap<String, ArrayList<Critter>> copy = new HashMap<String, ArrayList<Critter>>(population);\r\n \tIterator<String> populationIterator = copy.keySet().iterator();\r\n \twhile (populationIterator.hasNext()) { \r\n String pos = populationIterator.next();\r\n ArrayList<Critter> critterList = copy.get(pos);\r\n //clear the key if there is no more critters in that space\r\n if(critterList.size() == 0 || critterList == null) {\r\n \tpopulation.remove(pos);\r\n }\r\n \t}\r\n }", "@Override\n public void migrate(OccupiedLocations ols) {\n for (Population pop:ols.copyList()) {\n setCoordinate(pop.getCoordinate());\n\n Population migrating_pop = pop.collectMigrants(getRate());\n if (migrating_pop.getSize() > 0) {\n migrating_pop.setCoordinate(getPicker().pick());\n migrating_pop.setResource(0.0);\n\n // alter *actual* populations\n ols.addOrMix(migrating_pop);\n }\n }\n }" ]
[ "0.6741749", "0.61933154", "0.5926018", "0.5895407", "0.57495904", "0.572516", "0.5708134", "0.564253", "0.5597202", "0.5506299", "0.54780686", "0.5465958", "0.5431772", "0.5415112", "0.53793454", "0.5375534", "0.5336796", "0.53366625", "0.5334412", "0.533223", "0.5309783", "0.53049535", "0.53049535", "0.52962184", "0.5276114", "0.52702224", "0.5259518", "0.52481115", "0.52308106", "0.5202547", "0.5200752", "0.5196586", "0.517119", "0.5170506", "0.5168966", "0.51652765", "0.5156611", "0.51484585", "0.5146419", "0.5144585", "0.51440936", "0.5133558", "0.5114294", "0.5107747", "0.5104961", "0.5100915", "0.5087777", "0.50853133", "0.50611675", "0.50607705", "0.5054607", "0.5054586", "0.50492007", "0.50479686", "0.5019242", "0.5017085", "0.5015771", "0.5013425", "0.50048095", "0.50034964", "0.5002279", "0.4998064", "0.4993123", "0.4992818", "0.4989154", "0.49833485", "0.49751702", "0.49749303", "0.4952205", "0.49435085", "0.4941694", "0.49351507", "0.49316737", "0.49311417", "0.4928045", "0.49277264", "0.49209827", "0.49200827", "0.49179795", "0.49142036", "0.49117523", "0.4909721", "0.49078274", "0.49024928", "0.48981878", "0.48946568", "0.48934212", "0.48929644", "0.4891514", "0.48905167", "0.48895177", "0.48873597", "0.4880022", "0.4877183", "0.48719412", "0.48674208", "0.4862218", "0.48599267", "0.48597082", "0.48594895" ]
0.5988727
2
Reduces number of roaches by the given percent.
void spray(double percent) { roaches = (int) (roaches - (roaches * percent / 100)); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "private double fillPercent() {\n\t\tdouble percent = 0;\n\t\t\n\t\tfor (LinkedList<WordCode<K, V>> ll : myBuckets) {\n\t\t\tif (ll.size() != 0) percent++;\n\t\t}\n\t\treturn (percent / myBuckets.size()) * 100;\n\t}", "public double getPercentRem(){\n return ((double)freeSpace / (double)totalSpace) * 100d;\n }", "int getRemainderPercent();", "public double getPercentRem(long used){\n long left = freeSpace - used;\n return ((double)left / (double)totalSpace) * 100d;\n }", "public abstract void setPercentDead(double percent);", "public Polyline shrink(double percentage)\n {\n \tPoint centroid = this.getVisualCenter(1);\n \t\n \tPolyline output = new Polyline(this._isClosed, this._points, this._isFilled);\n \t\n \tint len = output._points.size();\n \tfor(int i = 0; i < len; i++)\n \t{\n \t\tPoint pt = output._points.get(i);\n \t\tpt = pt.multScalar(1 - percentage).add(centroid.multScalar(percentage));\n \t\toutput._points.set(i, pt);\n \t}\n\n \treturn output;\n }", "public int CalculateGeneModifications(int percent) {\n\t\treturn Math.floorDiv(percent * moveOrder.length, 100);\n\t}", "public void elevatorMove(double percent) {\n // percent = percent > 0 ? percent : 0.5 * percent; <- makes it go down slower\n var scaledValue = MathHelper.limit(percent + Constants.Elevator.HOLD_PERCENT, -1, 1);\n elevatorSpark.set(scaledValue);\n }", "double redPercentage();", "public static int calcPercentage(int remainingPercentage) {\n return randomizer.nextInt(remainingPercentage) + 1;\n }", "int getPercentageHeated();", "public void adjustPay(double percentage){\r\n this.commission = getCommission() + getCommission() * percentage;\r\n }", "public void setRedCarFaultPercentage(java.math.BigDecimal value);", "public void percentualGordura(){\n\n s0 = 4.95 / denscorp;\n s1 = s0 - 4.50;\n percentgord = s1 * 100;\n\n }", "public void repair(){\n if(health < 9) {\n this.health++;\n }\n }", "@Override\n\tpublic void UpdateReductin(int red, long shelfId) {\n\t\t\n\t\tshelfRepository.updateReductionPercentage(red, shelfId);\n\t}", "java.lang.String getPercentage();", "public int getPrayerPercentLeft() {\n\t\treturn 100 * getPrayerLeft() / methods.skills.getCurrentLevel(Skills.PRAYER);\n\t}", "public void getHitPercent(double hitPer) {\r\n\t\thitPercent = hitPer;\r\n\t}", "public void giveRaise(double percent) {\n\t\tif(percent > 0) \n\t\t\tmonthlySalary = monthlySalary + (monthlySalary * percent / 100);\n\t}", "public void setPercent(double percent) {\r\n\t\tthis.percent = percent;\r\n\t}", "public void increasePrice(int percentage);", "private void devolver100() {\n cambio = cambio - 100;\n de100--;\n cambio100++;\n }", "public void reduceCount()\n {\n minesLeft--;\n repaint();\n if (minesLeft == 0 && minesFound == numMines)\n {\n endGame(true);\n }\n }", "public void raiseSalary(double percent) {\n\t\tdouble raiseAmount = (annualSalary * percent);\n\t\tannualSalary += raiseAmount;\n\t}", "public void setChangeRateFactor(double percent) {\r\n\t\tchangeRateFactor = Math.abs(percent);\r\n\t}", "public void reduceHealth(int damage){\n health -= damage;\n }", "public abstract double getPercentDead();", "public void updateScore() {\n\t\tif (pellet.overlapsWith(avatar)) {\n\t\t\tavatar.addScore(1);\n\t\t\tpellet.removePellet(avatar.getLocation());\n\t\t\tSystem.out.println(\"collected pellet\");\n\t\t}\n\t}", "public void setPercentage() {\n\t\tif (this.winnumber == 0) {\n\t\t\tthis.percentage = 0;\n\t\t} else {\n\t\t\tthis.percentage = (double) this.winnumber * 100 / (double) this.gamenumber;\n\t\t}\n\t}", "public void applyMutation(int index, double a_percentage) {\n double range = (m_upperBound - m_lowerBound) * a_percentage;\n double newValue = floatValue() + range;\n setAllele(new Float(newValue));\n }", "private void percentageScaling() {\n switch (slot) {\n case Torso -> updateBonusStats(1);\n case Head -> updateBonusStats(0.8);\n case Legs -> updateBonusStats(0.6);\n }\n }", "@gw.internal.gosu.parser.ExtendedProperty\n public java.math.BigDecimal getRedCarFaultPercentage();", "public void reduceHealth() {\n\t}", "public void setPercent(float value) {\n this.percent = value;\n }", "private int roulette()\r\n {\r\n\treturn spinTheWheel();\r\n }", "public void setPercent(int percent) {\n\t\tdouble multiplier = Math.pow((double) percent, CURVE)\n\t\t\t\t/ Math.pow(100.00d, CURVE);\n\t\tLog.v(TAG, \"setting percent to: \" + percent + \" via multiplier: \"\n\t\t\t\t+ multiplier);\n\t\tsetMeters(((MAX_METERS - MIN_METERS) * multiplier) + MIN_METERS);\n\t}", "private void updateBonusStats(double percentage) {\n baseStats.setHealth((int) (baseStats.getHealth() * percentage));\n baseStats.setStrength((int) (baseStats.getStrength() * percentage));\n baseStats.setDexterity((int) (baseStats.getDexterity() * percentage));\n baseStats.setIntelligence((int) (baseStats.getIntelligence() * percentage));\n }", "public double calculateHpPercent();", "private void increaseScore() {\n this.game.getPlayers().values().forEach(ship -> {\n ship.increaseScore();\n if (ship.getScore() % 5 == 0) {\n this.asteroidsLimit++;\n }\n });\n }", "void removeWalls(Map<CreatureType, Integer> percentages, int totalPlayerArrows)\r\n throws UnsupportedOperationException,\r\n IllegalArgumentException, PlayerKilledException;", "private Double redo(Double N) {\n return (Math.rint(N * 100) / 100);\n }", "public void downGrade(){\n\t\tlevel -= level;\n\t\tConstants.FARMS -= 1;\n\t\tConstants.FOOD -= 20;\n\t}", "public double getPercent() { return this.percentage; }", "double updateValue(double value, double percentage){\n\t\treturn value+=(value*(.01*percentage));\r\n\t}", "public void reduceAnimalHealth() {\n\t\thealth -= 10;\n\t}", "public int deleteEdges(int percentEdges) {\n\t\tint rand;\n\t\tint numEdgesToDelete = this.actualTotalEdges * percentEdges / 100;\n\t\twhile (numEdgesToDelete > 0) {\n\t\t\trand = randomGen(this.vertices.size());\n\t\t\tif (vertices.get(rand).removeRandomEdge()) {\n\t\t\t\tnumEdgesToDelete--;\n\t\t\t\tthis.actualTotalEdges--;\n\t\t\t}\n\t\t}\n\t\treturn numEdgesToDelete;\n\t}", "public void setPercentComplete(double percentComplete) {\n\t\t\n\t}", "public int getPercentage() {\r\n return Percentage;\r\n }", "public final void mRULE_PERCENT() throws RecognitionException {\n try {\n int _type = RULE_PERCENT;\n int _channel = DEFAULT_TOKEN_CHANNEL;\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12835:14: ( '%' )\n // ../org.sqlproc.meta/src-gen/org/sqlproc/meta/parser/antlr/internal/InternalProcessorMeta.g:12835:16: '%'\n {\n match('%'); \n\n }\n\n state.type = _type;\n state.channel = _channel;\n }\n finally {\n }\n }", "public void setProgress(int percent) {\n setProgress((float) percent / 100);\n }", "public static float calculatePercent(float numOfSpecificTrees, float totalTrees){\n\t\tfloat percent= numOfSpecificTrees/totalTrees*100;\n\t\treturn percent;\n\t\t\n\t}", "public int getRemainderPercent() {\n return remainderPercent_;\n }", "public void raiseSalary(double byPercent) {\n double raise = salary * byPercent / 100;\n salary += raise;\n }", "public Builder setRemainderPercent(int value) {\n \n remainderPercent_ = value;\n onChanged();\n return this;\n }", "public int getRemainderPercent() {\n return remainderPercent_;\n }", "public int adjustForCrowding() {\n int deadGuppyCount = 0;\n\n Collections.sort(this.guppiesInPool, new Comparator<Guppy>() {\n @Override\n public int compare(Guppy g1, Guppy g2) {\n return Double.compare(g1.getHealthCoefficient(), g2.getHealthCoefficient());\n }\n });\n\n Guppy weakestGuppy;\n Iterator<Guppy> it = guppiesInPool.iterator();\n double volumeNeeded = this.getGuppyVolumeRequirementInLitres();\n\n while (it.hasNext() && volumeNeeded > this.getVolumeLitres()) {\n weakestGuppy = it.next();\n volumeNeeded -= (weakestGuppy.getVolumeNeeded() / ML_TO_L_CONVERSION);\n\n weakestGuppy.setIsAlive(false);\n\n\n deadGuppyCount++;\n\n }\n return deadGuppyCount;\n }", "public double usagePercentage() {\n return 1.0 * (this.rectangleCount() - 1) / (this.M * this.nodeCount()); // -1 in order to ignore de root\n }", "public void upgradeStats()\n {\n reload-=1;\n damage*=2;\n range+=50;\n }", "public void raiseSalary(double byPercent)\n\t{\n\t\tsalary = (salary * byPercent/100) + salary;\n\t}", "public static void zoomOutPage(int percent) {\r\n\t\tJavascriptExecutor js = (JavascriptExecutor) base.driver;\r\n\t\tjs.executeScript(\"document.body.style.zoom='\" + percent + \"%'\");\r\n\t}", "private float getPercentage(int count, int total) {\n return ((float) count / total) * 100;\n }", "public void setPlayerRoll20()\r\n {\r\n \r\n roll2 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE20 + LOWEST_DIE_VALUE20);\r\n \r\n }", "@Override\n\tpublic String StatistiqueNbrRisuqe(){\n float m= accountRepository.NbrStatus(\"a risque\");\n float s=accountRepository.NbrStatus(\"Stable\");\n float res =( m / s)*100;\n return res+\"%\";\n\n\t}", "public void reduct() {\n\t\tint divider = bunmo;\n\t\tif(bunja < bunmo){\n\t\t\tdivider = bunja;\n\t\t}\n\t\twhile(divider > 1){\n//\t\twhile(!util.Uitl.isPrime(bunmo)||!util.Uitl.isPrime(bunja)){\n\t\t\tboolean canDivide = (bunmo%divider==0)&&(bunja%divider==0);\n\t\t\tif(canDivide){\n\t\t\t\tbunja/=divider;\n\t\t\t\tbunmo/=divider;\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tdivider--;\n\t\t\t}\n\t\t}\n\t}", "public void incrementScore(int hole) {\n\t\tif (hole < 1 || hole > 18) return;\n\t\tscores[hole - 1]++;\n\t}", "public void utilization() {\r\n\t\tfloat fAktuell = this.aktuelleLast;\r\n\t\tfloat fMax = this.raumsonde.getMaxNutzlast();\r\n\t\tfloat prozent = fAktuell / fMax * 100;\r\n\r\n\t\tSystem.out.println(\" \" + fAktuell + \"/\" + fMax + \" (\" + prozent + \"%)\");\r\n\t}", "public void setWinPercentage(int winPercentage) {\n this.winPercentage = winPercentage;\n }", "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}", "public void reduceHealth(int ammo_damage){\n this.health -= ammo_damage;\n }", "public double toPercent(double x){\n\t\treturn x/ 100;\n\t}", "public void increaseRepDegree() {\r\n\t\tactualRepDegree++;\r\n\r\n\t}", "public double getPercentMutants() {\n\t\tdouble count = (double) getNumMutants();\n\t\tdouble pSize = (double) this.getPopSize();\n\n\t\treturn count*100.0 / pSize;\n\t}", "public void update(float percent){\n\t\tint sFrame = state[stateIndex].startframe;\n\t\tint eFrame = state[stateIndex].endFrame;\n\n\t\tinterpol += percent;\n\t\tif(interpol >= 1.0){\n\t\t\tinterpol -= 1.0f;\n\t\t\tcFrame++;\n\t\t\tif(cFrame >= eFrame)\n\t\t\t\tcFrame = sFrame;\n\t\t\tnFrame = cFrame + 1;\n\t\t\tif(nFrame >= eFrame)\n\t\t\t\tnFrame = sFrame;\n\t\t}\n\t}", "Float getFedAnimalsPercentage();", "float getPercentHealth();", "private double calcScorePercent() {\n\t\tdouble adjustedLab = totalPP * labWeight;\n\t\tdouble adjustedProj = totalPP * projWeight;\n\t\tdouble adjustedExam = totalPP * examWeight;\n\t\tdouble adjustedCodeLab = totalPP * codeLabWeight;\n\t\tdouble adjustedFinal = totalPP * finalWeight;\n\n\t\tlabScore = (labScore / labPP) * adjustedLab;\n\t\tprojScore = (projScore / projPP) * adjustedProj;\n\t\texamScore = (examScore / examPP) * adjustedExam;\n\t\tcodeLabScore = (codeLabScore / codeLabPP) * adjustedCodeLab;\n\t\tfinalExamScore = (finalExamScore / finalExamPP) * adjustedFinal;\n\n//\t\tdouble labPercent = labScore / adjustedLab;\n//\t\tdouble projPercent = projScore / adjustedProj;\n//\t\tdouble examPercent = examScore / adjustedExam;\n//\t\tdouble codeLabPercent = codeLabScore / adjustedCodeLab;\n//\t\tdouble finalPercent = finalExamScore / adjustedFinal;\n\n\t\tdouble totalPercent = (labScore + projScore + examScore + codeLabScore + finalExamScore) / totalPP;\n\t\t\n\t\tscorePercent = totalPercent;\n\t\t\n\t\treturn totalPercent;\n\t}", "public void reduce()\n\t{\n\t\tint divider = getGCD(myNumerator, myDenominator);\n\t\tmyNumerator /= divider;\n\t\tmyDenominator /= divider;\n\t}", "public void addPercentageToCost(JTextField textField, double percent){\n\t\t//CardGrade Properties\t\t\n\t\tdouble origGradeCost = Double.valueOf(textField.getText());\n\t\t\n\t\tdouble sum = (origGradeCost * percent / 100) + origGradeCost; \n\n\t\tsum = Math.round(sum * 100);\n\t\tsum = sum/100;\n\t\t\n\t\ttextField.setText(String.valueOf(sum));\n\t}", "public void setExecutionPercentage(double percentage);", "public void setOverallProgressPercent(int value) {\n this.overallProgressPercent = value;\n }", "private void reduce() {\n int gcd = gcd(this.numerator, this.denominator);\n this.numerator = this.numerator / gcd;\n this.denominator = this.denominator / gcd;\n }", "public static String percentBar(double hpPercent) {\r\n\t\tif (hpPercent > 0 && hpPercent <= 5) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"|\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||||||||\";\r\n\t\t} else if (hpPercent > 5 && hpPercent <= 10) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||||||||\";\r\n\t\t} else if (hpPercent > 10 && hpPercent <= 15) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"|||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||||||\";\r\n\t\t} else if (hpPercent > 15 && hpPercent <= 20) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||||||\";\r\n\t\t} else if (hpPercent > 20 && hpPercent <= 25) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"|||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||||\";\r\n\t\t} else if (hpPercent > 25 && hpPercent <= 30) {\r\n\t\t\treturn ChatColor.RED + \"\" + ChatColor.BOLD + \"||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||||\";\r\n\t\t} else if (hpPercent > 30 && hpPercent <= 35) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"|||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||||\";\r\n\t\t} else if (hpPercent > 35 && hpPercent <= 40) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||||\";\r\n\t\t} else if (hpPercent > 40 && hpPercent <= 45) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"|||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||||\";\r\n\t\t} else if (hpPercent > 45 && hpPercent <= 50) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||||\";\r\n\t\t} else if (hpPercent > 50 && hpPercent <= 55) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"|||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||||\";\r\n\t\t} else if (hpPercent > 55 && hpPercent <= 60) {\r\n\t\t\treturn ChatColor.YELLOW + \"\" + ChatColor.BOLD + \"||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||||\";\r\n\t\t} else if (hpPercent > 60 && hpPercent <= 65) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||||\";\r\n\t\t} else if (hpPercent > 65 && hpPercent <= 70) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||||\";\r\n\t\t} else if (hpPercent > 70 && hpPercent <= 75) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||||\";\r\n\t\t} else if (hpPercent > 75 && hpPercent <= 80) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||||\";\r\n\t\t} else if (hpPercent > 80 && hpPercent <= 85) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|||\";\r\n\t\t} else if (hpPercent > 85 && hpPercent <= 90) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||\";\r\n\t\t} else if (hpPercent > 90 && hpPercent <= 95) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"||||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"||\";\r\n\t\t} else if (hpPercent > 95 && hpPercent <= 100) {\r\n\t\t\treturn ChatColor.GREEN + \"\" + ChatColor.BOLD + \"|||||||||||||||||||\" + ChatColor.GRAY + ChatColor.BOLD + \"|\";\r\n\t\t} else {\r\n\t\t\treturn ChatColor.GRAY + \"\" + ChatColor.BOLD + \"||||||||||||||||||||\";\r\n\t\t}\r\n\t}", "protected void adjustScore() {\r\n scoreMultiplier = (int) (mineField.getDensity() * 100);\r\n maxScore = scoreMultiplier * (int) Math.pow( mineField.getFieldLength(), 2.0 );\r\n }", "public void removeMissiles(){\n nunMissiles--;\n }", "public void setPercentage(Number value) {\n setAttributeInternal(PERCENTAGE, value);\n }", "double greenPercentage();", "public int getPercentage() {\r\n\r\n\t\treturn (getAmount() - offeredQuantity) / 100;\r\n\r\n\t}", "public void reduce() {\n\tint g = this.gcd();\n\tif ( g != 0 ) {\n\t numerator /= g;\n\t denominator /= g;\n\t}\n }", "public void setPlayerRoll10()\r\n {\r\n \r\n roll1 = ((int)(Math.random() * 100) % HIGHEST_DIE_VALUE10 + LOWEST_DIE_VALUE10);\r\n }", "public static double termPercentage(final int aantalTermijnen, final double percentage)\n\t{\n\t\tdouble p = 1 + percentage * EEN_PERCENT;\n\t\tdouble m = 1 / (double) aantalTermijnen;\n\t\treturn (Math.pow(p, m) - 1d) * HON_PERCENT;\n\t}", "public void generatePercentage(Breakdown breakdown, double total) {\n\n ArrayList<HashMap<String, Breakdown>> list1 = breakdown.getBreakdown();\n for (HashMap<String, Breakdown> map : list1) {\n\n int count = Integer.parseInt(map.get(\"count\").getMessage());\n int percent = (int) Math.round((count * 100) / total);\n map.put(\"percent\", new Breakdown(\"\" + percent));\n\n }\n\n }", "private static void reduceFraction() {\n\t\tint temp=gcd(num,den);\n\t\tden=den/temp;\n\t\tnum=num/temp;\n\t}", "@Override\n public int getRent() {\n int total = 0;\n for (Property P : this.owner.getProperties()) {\n if (P.group_color.equals(this.group_color)) {\n total++;\n }\n }\n if (total == 2) {\n return RENT * 2;\n }\n else if (total == 3) {\n return RENT * 3;\n }\n else if (total == 4) {\n return RENT * 4;\n }\n else {\n return RENT;\n }\n }", "public void drive(double percorso) {\n\n\t\tdouble resaReale = 0;\n\n\t\tfor (int i = 0; i < percorso; i++) {\n\t\t\t\n\t\t\tif (serbatoio > 0) {\n\t\t\t\t\n\n\t\t\tresaReale = (ruote.getPressioneRuote() * resa) / MAX_PRESSIONE;\n\t\t\tserbatoio = serbatoio - (1 / resaReale);\n\t\t\truote.setStatoRuote(1);\n\t\t\truote.setPressioneRuote(1);\n\t\t\t\n\t\t\t}\n\t\t\tif (serbatoio < 0) serbatoio = 0;\n\t\t}\n\t}", "private void percent()\n\t{\n\t\tDouble percent;\t\t//holds the right value percentage of the left value\n\t\tString newText = \"\";//Holds the updated text \n\t\tif(calc.getLeftValue ( ) != 0.0 && Fun != null)\n\t\t{\n\t\t\tsetRightValue();\n\t\t\tpercent = calc.getRightValue() * 0.01 * calc.getLeftValue();\n\t\t\tleftValue = calc.getLeftValue();\n\t\t\tnewText += leftValue;\n\t\t\tswitch (Fun)\n\t\t\t{\n\t\t\t\tcase ADD:\n\t\t\t\t\tnewText += \" + \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase SUBTRACT:\n\t\t\t\t\tnewText += \" - \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase DIVIDE:\n\t\t\t\t\tnewText += \" / \";\n\t\t\t\t\tbreak;\n\t\t\t\tcase MULTIPLY:\n\t\t\t\t\tnewText += \" * \";\n\t\t\t\t\tbreak;\n\t\t\t}//end switch\n\t\t\t\n\t\t\tnewText += \" \" + percent;\n\t\t\tentry.setText(newText);\n\t\t\t\n\t\t}//end if\n\t\t\n\t}", "void reduceStarsBy(final int amount);", "private void reduce(int amount){\n while(colours.size() > amount){\n rgb curColour = colours.get(colours.size() - 1);\n double closest = -1;\n int id = -1;\n boolean notChanged = true;\n\n for(int i = 0; i < colours.size() - 1; i++){\n double dist = getDist(colours.get(i), curColour);\n if(dist < 0){\n colours.get(i).anotherFew(curColour.getAmount());\n notChanged = false;\n break;\n }else if(closest == -1 || dist < closest){\n closest = dist;\n id = i;\n }\n }\n if(notChanged){\n colours.get(id).anotherFew(curColour.getAmount());\n }\n colours.remove(colours.size() - 1);\n reinsert(id);\n }\n }", "private void updateUnrestChangeFromSlider(int progress) {\n\t\tplayer.setUnrestSpreadChange(progress / 10);\n\t}", "public void decreaseRepDegree() {\r\n\t\tactualRepDegree--;\r\n\r\n\t}" ]
[ "0.595768", "0.59567213", "0.5899873", "0.57642704", "0.56819487", "0.56704825", "0.5668451", "0.5574817", "0.5559014", "0.55549735", "0.55317634", "0.5509195", "0.54168224", "0.5381996", "0.53762865", "0.5360541", "0.5347987", "0.52827823", "0.52808654", "0.52779716", "0.52702004", "0.52635056", "0.52607334", "0.5257681", "0.5251629", "0.5245784", "0.5231389", "0.5203061", "0.51881427", "0.5177382", "0.5172594", "0.5165729", "0.5142256", "0.5137745", "0.51340616", "0.51201886", "0.5116781", "0.51032317", "0.5094962", "0.5085985", "0.5078042", "0.5054587", "0.5046593", "0.5045035", "0.50360477", "0.50356174", "0.5023587", "0.50217813", "0.50200367", "0.50200325", "0.5019496", "0.5016791", "0.50138587", "0.50054425", "0.5001978", "0.49682704", "0.49521935", "0.49504742", "0.49503314", "0.49488166", "0.49486768", "0.49463025", "0.49426886", "0.49375635", "0.4933688", "0.4930237", "0.4925012", "0.49167654", "0.4910004", "0.49082452", "0.49061996", "0.4899057", "0.4897948", "0.48948377", "0.4894374", "0.48930398", "0.48903218", "0.489032", "0.48879302", "0.48751023", "0.4874421", "0.48714104", "0.4865184", "0.48617622", "0.48612317", "0.4859331", "0.48569348", "0.48504183", "0.48315868", "0.48268926", "0.48221272", "0.48163733", "0.48039392", "0.48038658", "0.47975186", "0.47972497", "0.47892082", "0.47843578", "0.47803807", "0.4775341" ]
0.7732946
0
Gets the current number of roaches.
int getRoaches() { return roaches; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public int getNumRoads() {\n \t\treturn roads.size();\n \t}", "int getReaultCount();", "public int getReaultCount() {\n return reault_.size();\n }", "public int rodCount ();", "public int getReaultCount() {\n if (reaultBuilder_ == null) {\n return reault_.size();\n } else {\n return reaultBuilder_.getCount();\n }\n }", "public int getNumOfRooms() {\n return internalList.size();\n }", "public int getNumberOfRooms() {\n\t\t\n\t\treturn numberOfRooms;\n\t}", "@Override\n public Long getNumberOfWalkers() {\n return walkerRepo.countById();\n }", "public int getTotRuptures();", "public int getTotalPassengers() {\n return totalPassengers;\n }", "public long length() {\n return kmers_num;\n }", "public int getNumberUnplayedRoads() {\n\t\t return playerPieces.getNumberUnplayedRoads();\n\t }", "public int checkNoOfRapelPlayerHolds () { return noOfRapels; }", "public int getRingCount() {\r\n\t\treturn mRingCount;\r\n\t}", "public int getNumOfRoom() {\n\t\t\treturn RoomDetails.size();\r\n\t\t}", "public int passengers(){\n return currentCapacity(); \n }", "public int getActiveRunwaysCount();", "public int getLives() {\r\n\t\treturn lives;\r\n\t}", "int getWayCount();", "protected int getTotalEnrolledMorning() {\n return getMorningRoster().size();\n }", "public final int getLives() {\n\t\treturn lives;\n\t}", "public int getNumberOfPeopleInElevator(int elevator) {\r\n /*\r\n switch(elevator) {\r\n case 1: return 1;\r\n case 2: return 4;\r\n default: return 0;\r\n }\r\n */\r\n int i = 0;\r\n try {\r\n ElevatorScene.personCountMutex.acquire();\r\n i = numberOfSpacesInElevator;\r\n ElevatorScene.personCountMutex.release();\r\n } catch (InterruptedException e) {\r\n // TODO Auto-generated catch block\r\n e.printStackTrace();\r\n } \r\n return i;\r\n }", "public int getElevatorCount() { return this.elevators == null ? 0 : this.elevators.length; }", "public int getNumRobots() {\n return ((Integer)numRobotsSpinner.getValue()).intValue();\n }", "public int lireCount() {\n\t\treturn cpt;\n\t}", "public int getTotalPeopleLeft() {\n\t\treturn totalPeopleLeft;\n\t}", "public int getNumberOfRolls()\n {\n return this.numberOfRolls;\n }", "public int getNumberOfCurrentLoans() {\n\t\treturn loans.size();\r\n\t}", "public int numberOfBalls() {\n this.numberOfBalls = 4;\n return 4;\n }", "public int getmRallyTroops() {\n\t\treturn mRallyTroops;\n\t}", "public int getLives() {\n return lives;\n }", "public Number getTotalAlocRolls() {\n return (Number)getAttributeInternal(TOTALALOCROLLS);\n }", "public int getCurrRuptures();", "public int getNumberOfArmies() {\r\n\t\treturn numberOfArmies;\r\n\t}", "public int getNumOfLegs() {\n return numOfLegs;\n }", "public int getlives(){\n\t\treturn this.lives;\n\t}", "@PrivateAPI\n\tpublic int getReferenceCount() {\n\t\treturn this.referencesFromCapacityMap.get();\n\t}", "public int getNumberShips();", "public Integer getNumOfWalls() {\n return numOfWalls;\n }", "public Integer getNumLoteLanc() {\n\t\treturn numLoteLanc;\n\t}", "public int getRosterRowCount(){\r\n\t\treturn rosterRowCount;\r\n\t}", "@Column(name = \"num_revives\", precision = 10)\n\t@Override\n\tpublic Integer getNumRevives() {\n\t\treturn (Integer) getValue(6);\n\t}", "public int getRound() {\n\t\treturn myHistory.size() + opponentHistory.size();\n\t}", "@Override\n\tpublic int getNumberOfRooms() {\n\t\treturn 0;\n\t}", "public int getRunningCount() {\r\n return root.getRunningCount();\r\n }", "public abstract int getCntRod();", "public Counter getNumberOfLives() {\r\n return this.numberOfLives;\r\n }", "int getNumberOfArtillery();", "public int getHitsLeft(){\n return hitsLeft;\n }", "public int getNumFlights() {\n return itinerary.size();\n }", "public int getNumberOfPeopleInElevator(int elevator) {\n\t\treturn elevators.get(elevator).getPeopleCount();\n\t}", "public int getRobotsDestroyed () {\r\n\t\treturn this.robotsDestroyed;\r\n\t}", "public int getShipsAlive() {\n return this.numberOfShips;\n }", "public int getWinnings() {\n\t\tBufferedReader reader;\n\t\ttry {\n\t\t\treader = new BufferedReader(new FileReader(\"data/winnings\"));\n\t\t\tString line = reader.readLine();\n\t\t\t_winnings = Integer.parseInt(line.trim());\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn _winnings;\n\t}", "public int numHouses() {\n\t\treturn buildings;\n\t}", "public int getWaypointsCount() {\n if (waypointsBuilder_ == null) {\n return waypoints_.size();\n } else {\n return waypointsBuilder_.getCount();\n }\n }", "public int getPassengers(){\n return this.passengers;\n }", "public int getNoOfratings() {\n\treturn noofratings;\n}", "public int getNumTimesEntered() {\n return numTimesEntered;\n }", "public int getLives()\n {\n return lives;\n }", "int getAoisCount();", "public int getNumberOfAgents()\n {\n return this.numberOfAgents;\n }", "public int getNumberOfRestraunts(){\n \n return numberOfRestraunts; \n }", "public int getLegs() {\n return legs;\n }", "public int getNumIdle();", "public int getNumTroops(){\n return this.troops;\n }", "public int getNumberOfCameras() {\r\n int num = 1;\r\n try {\r\n if (mMethodGetNumberOfCamerasLevel9 != null) {\r\n Integer integer = (Integer) mMethodGetNumberOfCamerasLevel9.invoke(null);\r\n num = integer.intValue();\r\n }\r\n } catch (Exception e) {\r\n Log.w(LOG_TAG, \"CameraHideMethods:mMethodGetNumberOfCamerasLevel9()\", e);\r\n }\r\n\r\n return num;\r\n }", "public static int getLunchCounter() {\n return lunchCounter;\n }", "public int getLaps() {\n\t\treturn meanTimes.size() + 1;\n\t}", "public int getNumberOfRadialBuffers() {\n\t\treturn ((Integer) radialBufferSpinner.getValue()).intValue();\n\t}", "public int getMaximumNumberOfLightsToTurnOn() {\n\t\t\n\t\treturn this.maxLightsToTurnOnPerRoom;\n\t}", "@Override\n\tpublic int roomCount1() {\n\t\treturn roomDAO.roomCount1();\n\t}", "public int getNumPeople(){\r\n int num = 0;\r\n return num;\r\n }", "public int getRoadLength() {\n \t\treturn roadLength;\n \t}", "public int getNumberOfShips() {\r\n\t\treturn numberOfShips;\r\n\t}", "public int rectangleCount() {\n return this.root.rectangleCount();\n }", "public int getNumVisits() {\n return this.numVisits;\n }", "public int getDraws() {\n return draws;\n }", "public int getRunCount() {\n return runCount;\n }", "public int getAvailDoorCount() {\n int count = 0;\n for (Door d: getDoors()) {\n if (!d.getUsed()) {\n count++;\n }\n }\n return count;\n }", "public int getFreezers ()\n {\n return (freezers);\n }", "public int getNumberOfCameras() {\n\t\treturn numberOfCameras;\n\t}", "public int getRepel()\n\t{\n\t\treturn m_repel;\n\t}", "public int getNumberOfPlaces()\n {\n return this.numberOfPlaces;\n }", "public int getTurnsSinceLastFire () {\r\n\t\treturn this.turnsSinceLastFire;\r\n\t}", "public int getNumBalls() {\n return numBalls;\n }", "public int getRingNumber() {\n return _holeLines.size() + 1;\n }", "private int getAttemptsPerTurn() {\n return attemptsPerTurn;\n }", "public int getD_CurrentNumberOfTurns() {\n return d_CurrentNumberOfTurns;\n }", "public int getVisits() {\n return visits;\n }", "public int numOfEmptyRooms() {\n return (int) IntStream.rangeClosed(0, numOfRooms - 1)\n .mapToObj(x -> internalList.get(x)).filter(room -> !room.isOccupied()).count();\n }", "public int getCount() {\n\t\treturn this.countRound;\n\t}", "public int getNumberOfMoves() {\r\n return numberOfMoves;\r\n }", "private int currentCapacity(){\n int total = 0;\n \n for(int i = Elevator.MIN_FLOOR; i <= Elevator.MAX_FLOOR; i++){\n total += destinedPassengers[i];\n }\n \n return total;\n }", "int getNumOfPlayers() {\n return this.numOfPlayers;\n }", "public int getDraws() {\n return draws;\n }", "public int getCurrentPace() {\n\t\treturn this.currentPace = maxPace - load;\n\t}", "public int getSpins() {\n return spinsLeft;\n }", "public long getVehicleCount() {\n return send(\"\", HttpMethod.GET, VEHICLES_GET_URL, Map.of(), Long.class);\n }", "public int getNumTimes();" ]
[ "0.74432695", "0.6923869", "0.67783976", "0.66859263", "0.66448003", "0.6643148", "0.6621213", "0.658692", "0.65598756", "0.6434353", "0.639049", "0.63487595", "0.6316521", "0.6313347", "0.6291889", "0.62918806", "0.6287294", "0.6277435", "0.627115", "0.6250078", "0.6234517", "0.6225192", "0.6196232", "0.6194159", "0.6162406", "0.614677", "0.61293083", "0.6129227", "0.6117759", "0.61166525", "0.60896885", "0.60608983", "0.6059877", "0.6050021", "0.6042503", "0.6035482", "0.60288465", "0.60262275", "0.602294", "0.6017621", "0.6016559", "0.60128677", "0.6011732", "0.6007304", "0.6002026", "0.59914666", "0.5981355", "0.5978823", "0.5974991", "0.5970193", "0.5965047", "0.5963912", "0.59530765", "0.5952758", "0.5940049", "0.59399855", "0.593619", "0.5915366", "0.59147674", "0.59043354", "0.58997685", "0.58987325", "0.5897123", "0.5891416", "0.5890136", "0.5889865", "0.58802575", "0.58783287", "0.5875686", "0.58741933", "0.58671224", "0.5862142", "0.58556396", "0.5851238", "0.58347136", "0.58310014", "0.582908", "0.58286494", "0.5826059", "0.58213997", "0.5813098", "0.5811578", "0.5811495", "0.58104134", "0.5808434", "0.57979083", "0.579668", "0.57935417", "0.57925135", "0.5790927", "0.5788712", "0.57876647", "0.57843906", "0.5783023", "0.57810104", "0.57809824", "0.57790387", "0.5777701", "0.5774747", "0.5772393" ]
0.7721627
0
generierte getter/setter Ende Interfaceroutinen
@Override public String getXmlClassTag() { return xmlClassTag; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n String get();", "public Value makeGetter() {\n Value r = new Value(this);\n r.getters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "public T get() {\n return value;\n }", "@Override\n public void get() {}", "public String get();", "public abstract String get();", "public Genero getGenero()\r\n/* 143: */ {\r\n/* 144:261 */ return this.genero;\r\n/* 145: */ }", "public String getValor()\n/* 17: */ {\n/* 18:27 */ return this.valor;\n/* 19: */ }", "public Empleado getEmpleado()\r\n/* 183: */ {\r\n/* 184:337 */ return this.empleado;\r\n/* 185: */ }", "public void get() {\n }", "public Value makeSetter() {\n Value r = new Value(this);\n r.setters = object_labels;\n r.object_labels = null;\n return canonicalize(r);\n }", "@Override\n Derived get();", "public interface Getter<T>\n{\n /**\n * Returns the data.\n * \n * @return data\n */\n public T get();\n}", "public int geti(){\r\n return i;\r\n}", "public V get() {\n return value;\n }", "public Empresa getEmpresa()\r\n/* 84: */ {\r\n/* 85:131 */ return this.empresa;\r\n/* 86: */ }", "public String getGetter() {\n return \"get\" + getCapName();\n }", "public String setter() {\n\t\treturn prefix(\"set\");\n\t}", "public String getSetter() {\n return \"set\" + getCapName();\n }", "@Override\r\n\tpublic void get() {\n\t\t\r\n\t}", "public Value restrictToGetterSetter() {\n checkNotPolymorphicOrUnknown();\n if (!isMaybePrimitive() && !isMaybeObjectOrSymbol())\n return this;\n Value r = new Value(this);\n r.flags &= ~PRIMITIVE;\n r.num = null;\n r.str = null;\n r.object_labels = null;\n r.excluded_strings = r.included_strings = null;\n return canonicalize(r);\n }", "Objet getObjetAlloue();", "public Enqueteur getEnqueteur()\r\n/* */ {\r\n/* 57 */ return this.enqueteur;\r\n/* */ }", "public int getTipoAtaque(){return tipoAtaque;}", "public MotivoLlamadoAtencion getMotivoLlamadoAtencion()\r\n/* 114: */ {\r\n/* 115:123 */ return this.motivoLlamadoAtencion;\r\n/* 116: */ }", "public Value restrictToGetter() {\n checkNotPolymorphicOrUnknown();\n if (getters == null)\n return theNone;\n Value r = new Value();\n r.getters = getters;\n return canonicalize(r);\n }", "public String getAutorizacion()\r\n/* 134: */ {\r\n/* 135:226 */ return this.autorizacion;\r\n/* 136: */ }", "String getEmpresa() {\n return empresa; //To change body of generated methods, choose Tools | Templates.\n }", "public interface Getter {\r\n\tObject get();\r\n}", "private GetProperty(Builder builder) {\n super(builder);\n }", "@Override\n\tpublic T somme() {\n\t\treturn val;\n\t}", "public String getNombre()\r\n/* 113: */ {\r\n/* 114:204 */ return this.nombre;\r\n/* 115: */ }", "public String getTelefono() {\r\n\treturn telefono;\r\n}", "public T get() {\n return this.elemento;\n }", "public String getIdentificacion()\r\n/* 123: */ {\r\n/* 124:223 */ return this.identificacion;\r\n/* 125: */ }", "public Object get()\n {\n return m_internalValue;\n }", "public String getNombre()\r\n/* 17: */ {\r\n/* 18:41 */ return this.nombre;\r\n/* 19: */ }", "@Override\n public T getObjRaiz() {\n return (super.getObjRaiz());\n }", "public T get() {\n return object;\n }", "public String getNombre()\r\n/* 60: */ {\r\n/* 61: 67 */ return this.nombre;\r\n/* 62: */ }", "@Override\n void onValueWrite(SerializerElem e, Object o) {\n\n }", "public AutorizacionAutoimpresorSRI getAutorizacionAutoimpresorSRI()\r\n/* 120: */ {\r\n/* 121:146 */ return this.autorizacionAutoimpresorSRI;\r\n/* 122: */ }", "public Method getGetter() {\n return this.getter;\n }", "String get();", "String get();", "ProxyValue createProxyValue();", "public Ejercicio getEjercicio()\r\n/* 145: */ {\r\n/* 146:183 */ return this.ejercicio;\r\n/* 147: */ }", "public StringBuilder createrSetterGetter(StringBuilder fileData, int flag, String select) {\n\t\tif(flag==0 || flag==1 || flag==5) {\n\t\t\tfileData.append(\"\tString \"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\tpublic void set\"+varPrefix+select+\"(String \"+varPrefix+select+\")\"+\"{\\n\");\n\t\t\tfileData.append(\"\t\tthis.\"+varPrefix+select+\"=\"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\t}\\n\");\n\t\t\tfileData.append(\"\tpublic String get\"+varPrefix+select+\"()\"+\"{\\n\");\n\t\t\tfileData.append(\"\t\treturn \"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\t}\\n\");\n\t\t}\n\t\telse if(flag==-5) {\n\t\t\tfileData.append(\"\tDouble \"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\tpublic void set\"+varPrefix+select+\"(Double \"+varPrefix+select+\")\"+\"{\\n\");\n\t\t\tfileData.append(\"\t\tthis.\"+varPrefix+select+\"=\"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\t}\\n\");\n\t\t\tfileData.append(\"\tpublic Double get\"+varPrefix+select+\"()\"+\"{\\n\");\n\t\t\tfileData.append(\"\t\treturn \"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\t}\\n\");\n\t\t}\n\t\telse {\n\t\t\tfileData.append(\"\tint \"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\tpublic void set\"+varPrefix+select+\"(int \"+varPrefix+select+\")\"+\"{\\n\");\n\t\t\tfileData.append(\"\t\tthis.\"+varPrefix+select+\"=\"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\t}\\n\");\n\t\t\tfileData.append(\"\tpublic int get\"+varPrefix+select+\"()\"+\"{\\n\");\n\t\t\tfileData.append(\"\t\treturn \"+varPrefix+select+\";\\n\");\n\t\t\tfileData.append(\"\t}\\n\");\n\t\t}\n\t\t\n\t\treturn fileData;\n\t}", "Object getValor();", "PropertyRealization createPropertyRealization();", "public void setValor(String valor)\n/* 22: */ {\n/* 23:34 */ this.valor = valor;\n/* 24: */ }", "public String getTelefono(){\n return telefono;\n }", "public java.lang.String getObservacion(){\n return localObservacion;\n }", "public String getnombre(){\n return nombre;\n }", "String setValue();", "public int getAge() {return age;}", "public interface ValueSetter<TEntity, T> {\n void setValue(TEntity entity, T value);\n}", "public static void providePOJOsIdGetterSetter(final FileWriterWrapper writer)\n throws IOException {\n writer.write(\" private Integer id = null;\\n\\n\");\n\n writer.write(\" public Integer getId() {\\n\");\n writer.write(\" return id;\\n\");\n writer.write(\" }\\n\\n\");\n\n writer.write(\" public void setId(Integer newId) {\\n\");\n writer.write(\" id = newId;\\n\");\n writer.write(\" }\\n\\n\");\n }", "protected T getManusia(){\r\n return Manusia;\r\n }", "@Override\n\n // <editor-fold defaultstate=\"collapsed\" desc=\" UML Marker \"> \n // #[regen=yes,id=DCE.E1700BD9-298C-DA86-4BFF-194B41A6CF5E]\n // </editor-fold> \n protected String getProperties() {\n\n return \"Size = \" + size + \", Index = \" + value;\n\n }", "@Override\n\tpublic void generateSetter(PrintWriter writer)\n\t{\n\t\tgenerateSetter(writer, \"int\", String.format(\"buffer.data[offset+%d] = (byte)value;\", annotation.offset()));\n\t}", "public String getValue() {\n/* 99 */ return this.value;\n/* */ }", "public String get()\n {\n return this.string;\n }", "public int getArmadura(){return armadura;}", "private interface Valuable extends Base {\n\t\tString getValue();\n\t\tvoid setValue(String value);\n\t}", "@FameProperty(name = \"accessors\", derived = true)\n public Collection<TWithAccesses> getAccessors() {\n throw new UnsupportedOperationException(\"Not yet implemented!\"); \n }", "T get();", "T get();", "T get();", "T get();", "public java.lang.String getCodigo(){\n return localCodigo;\n }", "public int getx(){\r\n return z;\r\n}", "public String getEstablecimiento()\r\n/* 114: */ {\r\n/* 115:188 */ return this.establecimiento;\r\n/* 116: */ }", "T getNewValue();", "@Override // Métodos que fazem a anulação\n\tpublic void getBonificação() {\n\t\t\n\t}", "public interface IGQLDynamicAttributeGetterSetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE, SETTER_ATTRIBUTE_TYPE>\n\t\textends\n\t\t\tIGQLDynamicAttributeGetter<ENTITY_TYPE, GETTER_ATTRIBUTE_TYPE>,\n\t\t\tIGQLDynamicAttributeSetter<ENTITY_TYPE, SETTER_ATTRIBUTE_TYPE> {\n\n}", "public String getNombre(){\n return nombre;\n }", "@Override\r\n\tpublic String get() {\n\t\treturn null;\r\n\t}", "private ReadProperty()\r\n {\r\n\r\n }", "@Override\n\tpublic String get() {\n\t\treturn null;\n\t}", "public ValoresCalculo getValorCalculo()\r\n/* 88: */ {\r\n/* 89:107 */ return this.valorCalculo;\r\n/* 90: */ }", "public String getNombre(){\n return nombre;\n }", "public String get()\n {\n return val;\n }", "public void setEnqueteur(Enqueteur enqueteur)\r\n/* */ {\r\n/* 65 */ this.enqueteur = enqueteur;\r\n/* */ }", "public CuentaContable getCuentaContableCierre()\r\n/* 98: */ {\r\n/* 99:115 */ return this.cuentaContableCierre;\r\n/* 100: */ }", "@Override\n //Method for getting output from String declaration\n //First set of accessor/mutator that returns value as String\n public String toString(){\n return \"[\"+name+\",\"+type+\",\"+value+\"]\";\n }", "String attributeToGetter(String name);", "public int getAge(){\n return age;\n }", "public String getEtiqueta()\n/* 27: */ {\n/* 28:41 */ return this.etiqueta;\n/* 29: */ }", "public String getEdificio ()\r\n {\r\n return this.edificio;\r\n }", "Property createProperty();", "protected abstract Set method_1559();", "public void setGenero(Genero genero)\r\n/* 148: */ {\r\n/* 149:271 */ this.genero = genero;\r\n/* 150: */ }", "void setMyProperty1(Integer a) {}", "@Deprecated\n final Method setter() {\n return this.setter;\n }", "public void setM_Locator_ID (int M_Locator_ID)\n{\nset_Value (\"M_Locator_ID\", new Integer(M_Locator_ID));\n}", "public java.lang.String getOrigen(){\n return localOrigen;\n }", "@Override\n\tpublic IPropertySetter getPropertySetter() {\n\t\treturn null;\n\t}", "public interface IComponent {\n \n double getCosto();\n void setCosto(double valor);\n String getFunciona();\n \n}" ]
[ "0.64158463", "0.6386735", "0.6268154", "0.6263064", "0.6263064", "0.6210023", "0.6116941", "0.60759264", "0.6071982", "0.59997237", "0.5983024", "0.5897087", "0.5892023", "0.58909154", "0.5886214", "0.5880357", "0.5879406", "0.5874814", "0.58603585", "0.58424306", "0.58376735", "0.5835387", "0.58220094", "0.5815311", "0.58063173", "0.57892776", "0.5782347", "0.5774183", "0.57612324", "0.5746601", "0.5743723", "0.57419217", "0.5731885", "0.56916964", "0.56819355", "0.5666118", "0.5659928", "0.565439", "0.5652576", "0.5650262", "0.5648578", "0.56444997", "0.563986", "0.56201077", "0.5616776", "0.5609097", "0.5609097", "0.56088376", "0.5599045", "0.55877227", "0.55841005", "0.5583655", "0.55679065", "0.55650914", "0.55603844", "0.5549785", "0.55455136", "0.55448556", "0.55395216", "0.5537577", "0.5536934", "0.5535838", "0.5521555", "0.5513802", "0.55111533", "0.5511037", "0.5503729", "0.54985476", "0.54955614", "0.54955614", "0.54955614", "0.54955614", "0.54909146", "0.54825085", "0.54824495", "0.5477254", "0.5470236", "0.5468155", "0.5466079", "0.5461958", "0.5461358", "0.5450075", "0.544435", "0.5436685", "0.5431633", "0.5425608", "0.5419943", "0.54195654", "0.5417608", "0.541563", "0.5412094", "0.54077053", "0.5406165", "0.54057455", "0.5405703", "0.5404733", "0.5403225", "0.5402088", "0.53942573", "0.53926957", "0.53924483" ]
0.0
-1
Gets the bearer code.
public String getBearerCode() { return bearerCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getAuthCode()\n\t{\n\t\tif(response.containsKey(\"AUTH_CODE\")) {\n\t\t\treturn response.get(\"AUTH_CODE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public int getAuthorizationCode();", "public String getAuthCode() {\n return authCode;\n }", "public String generateAuthCode() {\n return authCodeGenerator.generate().toString();\n }", "public String getAuthCode() {\n\t\treturn authCode;\n\t}", "Code getCode();", "public String getCode() {\n return (String) get(\"code\");\n }", "java.lang.String getCode();", "java.lang.String getCode();", "public String getAuthAppCode()\n\t{\n\t\treturn authAppCode;\n\t}", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "String getCode();", "@Override\r\n\tpublic String authorizationCode() throws OAuthSystemException {\n\t\treturn null;\r\n\t}", "String getAccessToken();", "String getAccessToken();", "private String retrieveToken(String accessCode) throws IOException {\n OAuthApp app = new OAuthApp(asanaCredentials.getClientId(), asanaCredentials.getClientSecret(),\n asanaCredentials.getRedirectUri());\n Client.oauth(app);\n String accessToken = app.fetchToken(accessCode);\n\n //check if user input is valid by testing if accesscode given by user successfully authorises the application\n if (!(app.isAuthorized())) {\n throw new IllegalArgumentException();\n }\n\n return accessToken;\n }", "public String getAuthorisationCode() {\n return authorisationCode;\n }", "public void setBearerCode(String bearerCode) {\r\n\t\tthis.bearerCode = bearerCode;\r\n\t}", "@RequestMapping(value = \"/oauth/authorize/callback\", method = RequestMethod.GET)\n public String getCodeAndGetToken(@RequestParam(\"code\") String code) {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n HttpEntity<OAuthEntity> entity = new HttpEntity<>(new OAuthEntity(this.clientId, this.clientSecret, code), headers);\n ResponseEntity<Token> token = this.restTemplate.exchange(this.urlAccessToken, HttpMethod.POST, entity, Token.class);\n this.token = new Token(Objects.requireNonNull(token.getBody()).getAccess_token(), token.getBody().getToken_type(), token.getBody().getScope());\n return \"index\";\n }", "String getAuthorizerAccessToken(String appId);", "public String getAccessToken();", "public String getAccessToken()\n {\n if (accessToken == null)\n {\n if (DEBUG)\n {\n System.out.println(\"Access token is empty\");\n }\n try\n {\n FileReader fileReader = new FileReader(getCache(\"token\"));\n BufferedReader bufferedReader = new BufferedReader(fileReader);\n accessToken = bufferedReader.readLine();\n if (DEBUG)\n {\n System.out.println(\"BufferReader line: \" + accessToken);\n }\n } catch (FileNotFoundException e)\n {\n e.printStackTrace();\n } catch (IOException e)\n {\n e.printStackTrace();\n }\n }\n return accessToken;\n }", "String getEACCode();", "public String extractingcode()\r\n\t{\r\n\t\tString localresponseJSONString = responseJSONString;\r\n\t\tJSONObject jsonResult = new JSONObject(localresponseJSONString);\r\n\t\tString getbookingscode;\r\n\t\tJSONArray getbookingsArray = jsonResult.getJSONObject(\"hotelogix\").getJSONObject(\"response\").getJSONArray(\"bookings\");\r\n\t\tJSONObject bookingscode = getbookingsArray.getJSONObject(0);\r\n\t\tgetbookingscode = bookingscode.getString(\"code\");\r\n\t\tSystem.out.println(\":getbookings code:\"+getbookingscode);\r\n\t\treturn getbookingscode;\r\n\t}", "public String getCode();", "public String getCode();", "public AuthorizationResponseCode getResponseCode()\n {\n return responseCode;\n }", "public String getAccessToken(){\n //return \"3be8b617e076b96b2b0fa6369b6c72ed84318d72\";\n return MobileiaAuth.getInstance(mContext).getCurrentUser().getAccessToken();\n }", "public String getCode() {\n return _code;\n }", "@Test\n public void testAuthorizationCode() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .authToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }", "public AuthenticationResult getTokenForCode(String code) throws IOException, AuthenticationException {\n final String methodName = \":getTokenForCode\";\n final String requestMessage;\n if (mWebRequestHandler == null) {\n throw new IllegalArgumentException(\"webRequestHandler\");\n }\n\n // Token request message\n try {\n requestMessage = buildTokenRequestMessage(code);\n } catch (UnsupportedEncodingException encoding) {\n Logger.e(TAG + methodName,\n ADALError.ENCODING_IS_NOT_SUPPORTED.getDescription(),\n encoding.getMessage(),\n ADALError.ENCODING_IS_NOT_SUPPORTED,\n encoding);\n return null;\n }\n\n final Map<String, String> headers = getRequestHeaders();\n\n Logger.v(TAG + methodName, \"Sending request to redeem token with auth code.\");\n return postMessage(requestMessage, headers);\n }", "public java.lang.String getCode() {\r\n return code;\r\n }", "public String getCode()\n {\n return code;\n }", "public long getCode() {\n return code;\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\r\n return code;\r\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode()\n {\n return fCode;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public String getCode() {\n return code;\n }", "public static String getAccessToken(String theCode) throws IOException {\n\t\tString authURL = getAccessTokenURL(theCode);\n\t\tURL token = new URL(authURL);\n\t\tString result = HTTP.readHttpURL(token);\n\t\tString accessToken = null;\n\t\tInteger expires = null;\n\t\tString[] pairs = result.split(\"&\");\n\t\tfor (String pair : pairs) {\n\t\t\tString[] kv = pair.split(\"=\");\n\t\t\tif (kv.length != 2) {\n\t\t\t\tSystem.out\n\t\t\t\t\t\t.println(\"Unexpected response in Facebook.getAccessToken()\");\n\t\t\t\treturn (\"Unexpected response\");\n\t\t\t} else {\n\t\t\t\tif (kv[0].equals(\"access_token\")) {\n\t\t\t\t\taccessToken = kv[1];\n\t\t\t\t}\n\t\t\t\tif (kv[0].equals(\"expires\")) {\n\t\t\t\t\texpires = Integer.valueOf(kv[1]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (accessToken != null && expires != null) {\n\t\t\tSystem.out.println(\"Access token:\" + accessToken);\n\t\t\tSystem.out.println(\"Expires:\" + expires);\n\t\t}\n\t\tSystem.out\n\t\t\t\t.println(\"Access token retreived by Facebook.getAccessToken():\"\n\t\t\t\t\t\t+ accessToken);\n\t\treturn accessToken;\n\t}", "public Long getCode() {\n return code;\n }", "public Long getCode() {\n return code;\n }", "public String code() {\n return this.code;\n }", "public String code() {\n return this.code;\n }", "public CurrencyCode getAuthorizationCurrencyCode() {\n return authorizationCurrencyCode;\n }", "public String getCode()\r\n\t{\r\n\t\treturn code;\r\n\t}", "public String generateActivationCode() throws CryptoProviderException {\n try {\n // Generate 10 random bytes.\n byte[] randomBytes = keyGenerator.generateRandomBytes(ACTIVATION_CODE_RANDOM_BYTES_LENGTH);\n return generateActivationCode(randomBytes);\n } catch (GenericCryptoException ex) {\n logger.warn(ex.getMessage(), ex);\n // Exception cannot occur, the random code length is specified correctly\n return null;\n }\n }", "public static String getAccessToken() {\n return accessToken;\n }", "Integer getCode();", "public String getCode () {\r\n\t\treturn code;\r\n\t}", "public int getCode() {\n return code_;\n }", "public int getCode() {\n return code_;\n }", "public String getCode(){\n\t\treturn code;\n\t}", "public String getCode() { \n\t\treturn getCodeElement().getValue();\n\t}", "public String getAccessToken() {\n readLock.lock();\n try {\n return accessToken;\n } finally {\n readLock.unlock();\n }\n }", "public long getCode () {\r\n\t\treturn code;\r\n\t}", "public String getUserCode() {\n return userCode;\n }", "@RequestMapping(value = \"/authorization\", method = GET)\n AuthorizationCode getAuthorizationCodeUri();", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public String getCode() {\r\n\t\treturn code;\r\n\t}", "public AuthorizationCodeRequest() {\n setGrantType(ClientConfig.AUTHORIZATION_CODE);\n Map<String, Object> tokenConfig = ClientConfig.get().getTokenConfig();\n if(tokenConfig != null) {\n setServerUrl((String)tokenConfig.get(ClientConfig.SERVER_URL));\n setProxyHost((String)tokenConfig.get(ClientConfig.PROXY_HOST));\n int port = tokenConfig.get(ClientConfig.PROXY_PORT) == null ? 443 : (Integer)tokenConfig.get(ClientConfig.PROXY_PORT);\n setProxyPort(port);\n setServiceId((String)tokenConfig.get(ClientConfig.SERVICE_ID));\n Object object = tokenConfig.get(ClientConfig.ENABLE_HTTP2);\n setEnableHttp2(object != null && (Boolean) object);\n Map<String, Object> acConfig = (Map<String, Object>) tokenConfig.get(ClientConfig.AUTHORIZATION_CODE);\n if(acConfig != null) {\n setClientId((String)acConfig.get(ClientConfig.CLIENT_ID));\n if(acConfig.get(ClientConfig.CLIENT_SECRET) != null) {\n setClientSecret((String)acConfig.get(ClientConfig.CLIENT_SECRET));\n } else {\n logger.error(new Status(CONFIG_PROPERTY_MISSING, \"authorization_code client_secret\", \"client.yml\").toString());\n }\n setUri((String)acConfig.get(ClientConfig.URI));\n setScope((List<String>)acConfig.get(ClientConfig.SCOPE));\n setRedirectUri((String)acConfig.get(ClientConfig.REDIRECT_URI));\n }\n }\n }", "public byte getCode();", "public String getCode() {\n\t\treturn codeText.getText().toString();\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public String getCode() {\n\t\treturn code;\n\t}", "public int getCode() {\n\t\treturn adaptee.getCode();\n\t}" ]
[ "0.70166737", "0.667333", "0.6494777", "0.64764917", "0.6400406", "0.63181365", "0.63121593", "0.6287001", "0.6287001", "0.6258845", "0.6224103", "0.6224103", "0.6224103", "0.6224103", "0.6224103", "0.6189589", "0.6175425", "0.6175425", "0.61686885", "0.6162913", "0.6148576", "0.6108392", "0.60559195", "0.6051669", "0.5992705", "0.5981964", "0.59478456", "0.5945908", "0.5945908", "0.59330326", "0.5924369", "0.59127116", "0.59103453", "0.59026027", "0.58740133", "0.5854153", "0.5840464", "0.58325285", "0.58325285", "0.58325285", "0.58325285", "0.58325285", "0.58325285", "0.58325285", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58246344", "0.58234453", "0.5814552", "0.5814552", "0.5814552", "0.5814552", "0.57996655", "0.57833785", "0.57833785", "0.5765097", "0.5765097", "0.57635474", "0.5760413", "0.57533616", "0.5742357", "0.5740589", "0.57395506", "0.57380164", "0.57380164", "0.5730262", "0.57279843", "0.57270664", "0.5716913", "0.57151693", "0.57069814", "0.57003504", "0.57003504", "0.56968015", "0.56914914", "0.56892836", "0.56864184", "0.56864184", "0.56864184", "0.56864184", "0.56864184", "0.56864184", "0.5682073" ]
0.8008545
0
Sets the bearer code.
public void setBearerCode(String bearerCode) { this.bearerCode = bearerCode; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getBearerCode() {\r\n\t\treturn bearerCode;\r\n\t}", "public void setAuthorizationCode(int authorizationCode);", "public void setAuthorizationCode(String ac) throws IOException {\n setAuthorizationCode(ac, redirectURI);\n }", "void setCode(String code);", "public void setBearer(String bearer)\t{\n\t\tmBearer = bearer;\n\t}", "@Test\n public void testAuthorizationCode() {\n ApplicationContext context =\n TEST_DATA_RESOURCE\n .getSecondaryApplication()\n .getBuilder()\n .client(ClientType.AuthorizationGrant, true)\n .authToken()\n .build();\n OAuthToken t = context.getToken();\n\n String header = authHeaderBearer(t.getId());\n\n Response r = target(\"/token/private\")\n .request()\n .header(AUTHORIZATION, header)\n .get();\n\n assertEquals(Status.UNAUTHORIZED.getStatusCode(), r.getStatus());\n }", "public void setOAuthAccessCode(String code, String clientId, String clientSecret, String redirectURI) throws OnshapeException {\n WebTarget target = client.target(\"https://oauth.onshape.com/oauth/token\");\n MultivaluedMap<String, String> formData = new MultivaluedHashMap<>();\n formData.add(\"grant_type\", \"authorization_code\");\n formData.add(\"code\", code);\n formData.add(\"client_id\", clientId);\n formData.add(\"client_secret\", clientSecret);\n formData.add(\"redirect_uri\", redirectURI);\n Response response = target.request().post(Entity.form(formData));\n switch (response.getStatusInfo().getFamily()) {\n case SUCCESSFUL:\n setOAuthTokenResponse(response.readEntity(OAuthTokenResponse.class), new Date(), clientId, clientSecret);\n return;\n default:\n throw new OnshapeException(response.getStatusInfo().getReasonPhrase());\n }\n\n }", "public void setAuthCode(String authCode) {\n this.authCode=authCode;\n }", "public void setCode(final int code) {\n this.code = code;\n commited = true;\n }", "public void setCode(Code code) {\n this.Code = code;\n }", "public AuthorizationCodeRequest() {\n setGrantType(ClientConfig.AUTHORIZATION_CODE);\n Map<String, Object> tokenConfig = ClientConfig.get().getTokenConfig();\n if(tokenConfig != null) {\n setServerUrl((String)tokenConfig.get(ClientConfig.SERVER_URL));\n setProxyHost((String)tokenConfig.get(ClientConfig.PROXY_HOST));\n int port = tokenConfig.get(ClientConfig.PROXY_PORT) == null ? 443 : (Integer)tokenConfig.get(ClientConfig.PROXY_PORT);\n setProxyPort(port);\n setServiceId((String)tokenConfig.get(ClientConfig.SERVICE_ID));\n Object object = tokenConfig.get(ClientConfig.ENABLE_HTTP2);\n setEnableHttp2(object != null && (Boolean) object);\n Map<String, Object> acConfig = (Map<String, Object>) tokenConfig.get(ClientConfig.AUTHORIZATION_CODE);\n if(acConfig != null) {\n setClientId((String)acConfig.get(ClientConfig.CLIENT_ID));\n if(acConfig.get(ClientConfig.CLIENT_SECRET) != null) {\n setClientSecret((String)acConfig.get(ClientConfig.CLIENT_SECRET));\n } else {\n logger.error(new Status(CONFIG_PROPERTY_MISSING, \"authorization_code client_secret\", \"client.yml\").toString());\n }\n setUri((String)acConfig.get(ClientConfig.URI));\n setScope((List<String>)acConfig.get(ClientConfig.SCOPE));\n setRedirectUri((String)acConfig.get(ClientConfig.REDIRECT_URI));\n }\n }\n }", "public void setCode (String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String value) {\n setAttributeInternal(CODE, value);\n }", "@Accessor(qualifier = \"code\", type = Accessor.Type.SETTER)\n\tpublic void setCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(CODE, value);\n\t}", "public void setCode(String code)\n {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "public void setCode(int code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code) {\n this.code = code;\n }", "public void setCode(String code){\n\t\tthis.code = code;\n\t}", "public void setCode(java.lang.String code) {\r\n this.code = code;\r\n }", "public AuthorizationInfo withCode(String code) {\n this.code = code;\n return this;\n }", "public final void setCode(java.lang.String code)\n\t{\n\t\tsetCode(getContext(), code);\n\t}", "public Builder setCode(int value) {\n bitField0_ |= 0x00000001;\n code_ = value;\n onChanged();\n return this;\n }", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(String code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(BizCodeEnum code) {\n this.code = code;\n }", "public void setCode(String code) {\n\t\tCode = code;\n\t}", "public void setCode(byte[] code);", "public void setAuthAppCode(String authAppCode)\n\t{\n\t\tthis.authAppCode = Toolbox.trim(authAppCode, 3);\n\t}", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public void setCode(String code) {\n\t\tthis.code = code;\n\t}", "public Builder setCode(int value) {\n\n code_ = value;\n onChanged();\n return this;\n }", "public Builder setCode(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n code_ = value;\n onChanged();\n return this;\n }", "void setCode(Integer aCode);", "public void setCode(long value) {\n this.code = value;\n }", "public int set_code(String b);", "public String getAuthorisationCode() {\n return authorisationCode;\n }", "public void code (String code) throws LuchthavenException\r\n\t{\r\n\t\tluchthaven.setCode(code);\r\n\t}", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public void setAuthCode(String authCode) {\n\t\tthis.authCode = authCode == null ? null : authCode.trim();\n\t}", "public void setCode(java.lang.String value) {\n __getInternalInterface().setFieldValueForCodegen(CODE_PROP.get(), value);\n }", "public void setRequestCode(String requestCode);", "public String getAuthCode() {\n return authCode;\n }", "protected void setCode(@Code int code) {\n\t\tthis.mCode = code;\n\t}", "public String getAuthCode() {\n\t\treturn authCode;\n\t}", "public void setCode(Integer code) {\n this.code = code;\n }", "public void setCode (java.lang.Long code) {\r\n\t\tthis.code = code;\r\n\t}", "public void setCode(Long code) {\n this.code = code;\n }", "public void setCode(Long code) {\n this.code = code;\n }", "public void setResponseCode(java.lang.CharSequence value) {\n this.ResponseCode = value;\n }", "public String getAuthCode()\n\t{\n\t\tif(response.containsKey(\"AUTH_CODE\")) {\n\t\t\treturn response.get(\"AUTH_CODE\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "@Override\n public User authorize(String code) {\n return User.of(new Random().nextInt(100000) + 1, \"test@mail.ru\", UUID.randomUUID().toString(), 43800);\n }", "public int getAuthorizationCode();", "void setAccessToken(String accessToken);", "public final void setCode(com.mendix.systemwideinterfaces.core.IContext context, java.lang.String code)\n\t{\n\t\tgetMendixObject().setValue(context, MemberNames.Code.toString(), code);\n\t}", "public void setCode(String code) {\n\t\tthis.code = code == null ? null : code.trim();\n\t}", "public void setCode(OAIPMHErrorcodeType code) {\r\n this.code = code;\r\n }", "public void setAthleteCode(java.lang.Integer value) {\n\t\tsetValue(org.jooq.examples.cubrid.demodb.tables.Record.RECORD.ATHLETE_CODE, value);\n\t}", "public void setCode(String cod){\n\t\tcodeService = cod;\n\t}", "public void setStateCode(String value) {\n setAttributeInternal(STATECODE, value);\n }", "public void setCodeset (String codeset)\r\n\t{\r\n\t\tthis.codeset = codeset;\r\n\t}", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public void setCode(String code) {\n this.code = code == null ? null : code.trim();\n }", "public String getAuthAppCode()\n\t{\n\t\treturn authAppCode;\n\t}", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "public void setCode(String code) {\r\n this.code = code == null ? null : code.trim();\r\n }", "public AuthorizationResponseCode getResponseCode()\n {\n return responseCode;\n }", "@RequestMapping(value = \"/oauth/authorize/callback\", method = RequestMethod.GET)\n public String getCodeAndGetToken(@RequestParam(\"code\") String code) {\n HttpHeaders headers = new HttpHeaders();\n headers.setAccept(Collections.singletonList(MediaType.APPLICATION_JSON));\n HttpEntity<OAuthEntity> entity = new HttpEntity<>(new OAuthEntity(this.clientId, this.clientSecret, code), headers);\n ResponseEntity<Token> token = this.restTemplate.exchange(this.urlAccessToken, HttpMethod.POST, entity, Token.class);\n this.token = new Token(Objects.requireNonNull(token.getBody()).getAccess_token(), token.getBody().getToken_type(), token.getBody().getScope());\n return \"index\";\n }", "public sparqles.avro.discovery.DGETInfo.Builder setResponseCode(java.lang.CharSequence value) {\n validate(fields()[5], value);\n this.ResponseCode = value;\n fieldSetFlags()[5] = true;\n return this; \n }", "public AuditDataBuilder responseCode(final String responseCode) {\n this.responseCode = responseCode;\n return this;\n }", "public void setCompCode(String value) {\n setAttributeInternal(COMPCODE, value);\n }", "public void setAppCode(String appCode)\n\t{\n\t\tthis.appCode = Toolbox.trim(appCode, 3);\n\t}", "public void setCode(org.hl7.fhir.CodeableConcept code)\n {\n generatedSetterHelperImpl(code, CODE$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void setCompletionCode(String completionCode) {\n\t\tthis.completionCode = completionCode;\n\t}", "public Type setCode(BoundCodeDt<DataTypeEnum> theValue) {\n\t\tmyCode = theValue;\n\t\treturn this;\n\t}", "@Override\n\tpublic void setTypeCode(java.lang.String typeCode) {\n\t\t_permissionType.setTypeCode(typeCode);\n\t}", "public static void setAccessToken(String accessToken) {\n }", "public void setVerificationCode(String OTP) {\n\t\thelper.findElementById(otpFieldId).sendKeys(OTP);\n\t}", "@RequestMapping(\"/slack/authorize\")\r\n public ResponseEntity authorize(@RequestParam String code) {\r\n\r\n HttpHeaders headers = new HttpHeaders();\r\n headers.setContentType(MediaType.APPLICATION_FORM_URLENCODED);\r\n\r\n MultiValueMap<String, String> map = new LinkedMultiValueMap<>();\r\n map.add(\"client_id\", clientId);\r\n map.add(\"client_secret\", clientSecret);\r\n map.add(\"code\", code); HttpEntity<MultiValueMap<String, String>> entity = new HttpEntity<>(map, headers);\r\n\r\n RestTemplate rt = new RestTemplate();\r\n String response = rt.postForObject(\"https://slack.com/api/oauth.access\", entity, String.class);\r\n\r\n return ResponseEntity.ok(response);\r\n }", "@Test\n\tpublic void testGetAndSetCode() {\n\t\tContainerCode code = new ContainerCode( \"CSQU3054383\" ) ;\n\t\tAssert.assertEquals( \"CSQU3054383\" , code.getCode() ) ;\n\t\t\n\t\tcode.setCode( \"TOLU4734787\" ) ;\n\t\tAssert.assertEquals( \"TOLU4734787\" , code.getCode() ) ;\n\t\t\n\t\tcode.setCode( \"TOLU473478\" ) ;\n\t\tAssert.assertEquals( \"TOLU473478\" , code.getCode() ) ;\n\t}", "public void setResponseCode(java.lang.String responseCode) {\n this.responseCode = responseCode;\n }", "@Override\n\t\t\t\t\tpublic void run() {\n\t\t\t\t\t\tgetAccessTokenFromGoogle(code);\n\t\t\t\t\t}", "void setAuthorizerRefreshToken(String appId, String authorizerRefreshToken);", "public void setOauth_token(java.lang.String param){\r\n \r\n if (param != null){\r\n //update the setting tracker\r\n localOauth_tokenTracker = true;\r\n } else {\r\n localOauth_tokenTracker = false;\r\n \r\n }\r\n \r\n this.localOauth_token=param;\r\n \r\n\r\n }", "@ApiModelProperty(value = \"The code used by the customer to purchase against this gift certificate.\")\n public String getCode() {\n return code;\n }", "@Accessor(qualifier = \"voucherCode\", type = Accessor.Type.SETTER)\n\tpublic void setVoucherCode(final String value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(VOUCHERCODE, value);\n\t}" ]
[ "0.71814877", "0.71810186", "0.6676986", "0.64317733", "0.61933213", "0.6177575", "0.6167713", "0.611268", "0.60935396", "0.6069715", "0.6022189", "0.5987629", "0.59868306", "0.59848404", "0.59792817", "0.5920834", "0.5920834", "0.59035176", "0.59035176", "0.59035176", "0.59035176", "0.59035176", "0.59035176", "0.5900057", "0.5871931", "0.5848574", "0.58426166", "0.5840706", "0.5832281", "0.5832281", "0.5832281", "0.58322155", "0.5793068", "0.57929826", "0.5775584", "0.5759691", "0.5759691", "0.57396173", "0.57317114", "0.5725091", "0.57210296", "0.5708228", "0.569743", "0.5684086", "0.565334", "0.5645598", "0.5641612", "0.564097", "0.5629262", "0.5625009", "0.5610708", "0.56015503", "0.55719054", "0.5556877", "0.5556877", "0.5528189", "0.54977936", "0.5489152", "0.54516566", "0.5443492", "0.54301596", "0.5401854", "0.5394876", "0.53571117", "0.5346964", "0.5327889", "0.5322155", "0.5305014", "0.5305014", "0.5305014", "0.5305014", "0.5305014", "0.5305014", "0.5305014", "0.5305014", "0.5305014", "0.5303865", "0.5291743", "0.5291743", "0.5291743", "0.52735406", "0.52622974", "0.52622235", "0.52575266", "0.52427065", "0.52357465", "0.5224112", "0.52211475", "0.5215905", "0.51996666", "0.51820534", "0.51792306", "0.5172134", "0.5151509", "0.5141964", "0.51347995", "0.5128084", "0.51237845", "0.5119198", "0.51189786" ]
0.74521744
0
Gets the sender charges.
public List<SenderCharge> getSenderCharges() { return senderCharges; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public void setSenderCharges(List<SenderCharge> senderCharges) {\r\n\t\tthis.senderCharges = senderCharges;\r\n\t}", "@Override\n\tpublic List<Charge> getCharges() {\n\t\tList<Charge> list = chargeMapper.getCharges();\n\t\treturn list;\n\t}", "public String getReceiverChargesAmount() {\r\n\t\treturn receiverChargesAmount;\r\n\t}", "public java.math.BigDecimal getOtherCharges () {\n\t\treturn otherCharges;\n\t}", "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "public ViewCharges viewCharges() {\n return this.viewCharges;\n }", "public double getCharges()\r\n {\r\n //variables\r\n double charges = 0.0;\r\n double parts = 0.0;\r\n double hours = 0.0;\r\n\r\n //get user input and change double\r\n parts = Double.parseDouble(chargeField.getText());\r\n hours = Double.parseDouble(hourField.getText());\r\n\r\n //math for charges\r\n charges = hours * LABOR_RATE + parts;\r\n return charges;\r\n }", "public String getChargePerson() {\n return chargePerson;\n }", "public FIPA.AgentID[] getSenderAgentID() {\n FIPA.AgentID allSenders[] = new FIPA.AgentID[1];\n allSenders[0] = sender.getAgentID();\n return (allSenders);\n }", "private OtherChargesDTO[] getOtherCharges() {\n\t\tOtherChargesDTO[] others = null;\t\t\n\t\tif (lrcDTO != null) {\n\t\t\tif (gscDTO != null) {\n\t\t\t\t//Combine LRC GSC\n\t\t\t\tothers = combineLrcGsc(lrcDTO, gscDTO);\n\t\t\t} else {\n\t\t\t\tothers = lrcDTO;\n\t\t\t}\n\t\t} else if (gscDTO != null) {\n\t\t\tothers = gscDTO;\n\t\t}\t\t\n\t\tif(others == null){\n\t\t\t/*if(quotationDTO.getOtherCharges() != null){\n\t\t\tfor(int i = 0; i < quotationDTO.getOtherCharges().length; i++){\n\t\t\t\tSystem.out.println(\"Avail Staions==>\" + quotationDTO.getOtherCharges()[i].getStationCode());\n\t\t\t\tSystem.out.println(\"Avail LRC==>\" + quotationDTO.getOtherCharges()[i].getLrCharge());\n\t\t\t\tSystem.out.println(\"Avail GSC==>\" + quotationDTO.getOtherCharges()[i].getGsc());\n\t\t\t}}*/\n\t\t\treturn quotationDTO.getOtherCharges();\n\t\t}else{\n\t\t\tif(quotationDTO != null)\n\t\t\t\totherChargesDTO = quotationDTO.getOtherCharges();\n\t\t\tif(otherChargesDTO != null){\t\t\t\n\t\t\t\t//Update OtherChargesDTO with existing DTO\n\t\t\t\totherChargesDTO = updateOtherCharges(others, otherChargesDTO);\t\t\t\t\n\t\t\t\t/*for(int i = 0; i < otherChargesDTO.length; i++){\n\t\t\t\t\tSystem.out.println(\"Updated Staions==>\" + otherChargesDTO[i].getStationCode());\n\t\t\t\t\tSystem.out.println(\"Updated LRC==>\" + otherChargesDTO[i].getLrCharge());\n\t\t\t\t\tSystem.out.println(\"Updated GSC==>\" + otherChargesDTO[i].getGsc());\n\t\t\t\t}*/\n\t\t\treturn otherChargesDTO;\n\t\t\t}else{\n\t\t\t\tOtherChargesDTO[] othersAllStations = null;\n\t\t\t\ttry {\n\t\t\t\t\tothersAllStations = convertOthersAllStations(others);\n\t\t\t\t} catch (Exception e) {\t\t\t\t\t\n\t\t\t\t\te.printStackTrace();\n\t\t\t\t}\n\t\t\t\treturn othersAllStations;\n\t\t\t}\n\t\t}\t\t\n\t}", "public static Sender getSender() {\n return sender;\n }", "public java.lang.Float getCharge() {\n\t\treturn charge;\n\t}", "private void populateCharges() {\n\t\tseenCharges.clear();\n\n\t\t// add bots and LEDs\n\t\tfor (int i = 0; i < seenBots.size(); i++) {\n\t\t\t// add the bot\n\t\t\tseenCharges.add(seenBots.get(i));\n\t\t\t// go through LEDs of bot and add\n\t\t\tfor (int j = 0; j < seenBots.get(i).getNoOfLEDs(); j++) {\n\t\t\t\tseenCharges.add(seenBots.get(i).LEDs.get(j));\n\t\t\t}\n\t\t}\n\t}", "@objid (\"022e5c44-f663-4da4-8639-9b68dd8c72fb\")\n EList<SendSignalAction> getSender();", "public BigDecimal getCHARGE() {\r\n return CHARGE;\r\n }", "public String getSender() {\n return this.sender;\n }", "public java.lang.String getChargecurrency() {\n\treturn chargecurrency;\n}", "public List<Object> getUsageCharges(Map<String, Object> condition)\n\t\t\tthrows Exception {\n\t\treturn null;\n\t}", "public BICorIBAN getSender() {\n\n // Get the sender of the missive document\n return this.missiveHeader.getSnd();\n }", "public JingtumCurrency getPay() {\n\t\tif (this.taker_gets == null && order != null){\n\t\t\treturn order.getTaker_gets();\n\t\t}\n\t\treturn taker_gets;\n\t}", "public String getSender() {\n\t\treturn senderId;\n\t}", "public String getMessageAmounts()\n\t{\n\t\treturn messageAmounts;\n\t}", "public BigDecimal getCHARGE_AMOUNT() {\r\n return CHARGE_AMOUNT;\r\n }", "public java.lang.String getSenderQualifier() {\r\n return senderQualifier;\r\n }", "public float getRefundedCredits() {\n return this.refundedCredits;\n }", "public double getReceivable() {\n return receivable;\n }", "public final Player getSender() {\n return sender;\n }", "public java.lang.String getSenderId() {\r\n return senderId;\r\n }", "public String getSender() {\n return sender;\n }", "public ChargeComponent getCharge() {\r\n return charge;\r\n }", "public String getFromSenderName() {\n return fromSenderName;\n }", "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 }", "@objid (\"ced63337-39ce-42f8-90bd-d077dff7d70f\")\n <T extends SendSignalAction> List<T> getSender(java.lang.Class<T> filterClass);", "com.google.protobuf.ByteString\n getSenderBytes();", "com.google.protobuf.ByteString\n getSenderBytes();", "com.google.protobuf.ByteString\n getSenderBytes();", "com.google.protobuf.ByteString\n getSenderBytes();", "com.google.protobuf.ByteString\n getSenderBytes();", "com.google.protobuf.ByteString\n getSenderBytes();", "com.google.protobuf.ByteString\n getSenderBytes();", "public java.math.BigDecimal getOriginalSendAmount() {\r\n return originalSendAmount;\r\n }", "public String getSender ()\r\n\t{\r\n\t\treturn sender;\r\n\t}", "public Mailbox getSender() {\n return getMailbox(FieldName.SENDER);\n }", "@ApiModelProperty(value = \"If the transaction is a money transfer, pre-paid load, or credit card bill pay, and if the sender intends to fund the transaction with a non-financial instrument (for example, cash), a reference number unique to the sender is required.<br><br>If the transaction is a funds disbursement, the field is required.<br><br> This field is required if senderAccountNumber is not sent.\")\n public String getSenderReference() {\n return senderReference;\n }", "public String getSender() {\n\t\treturn sender;\n\t}", "public String getShippingSender() {\n return shippingSender;\n }", "public String getSender() {\n return Sender;\n }", "@Override\n\tpublic String toString() {\n\t\treturn getSenderPk()+\":\"+getAmount()+\":\"+getReceiverPk();\n\t}", "@ApiModelProperty(required = true, value = \"The amount of the purchase. The tax was calculated on this amount.\")\n public BigDecimal getChargeAmount() {\n return chargeAmount;\n }", "public java.util.List<TransferSerial> getTransferSerials() {\n return TransferSerials;\n }", "public AccelerometerGs getAccelerometerGs()\n {\n return finchController.getAccelerometerGs();\n }", "public double getGrt() {\n\t\treturn _tempNoTiceShipMessage.getGrt();\n\t}", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n if (deliveredBuilder_ == null) {\n return java.util.Collections.unmodifiableList(delivered_);\n } else {\n return deliveredBuilder_.getMessageList();\n }\n }", "public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources getSender() {\n return sender_;\n }", "public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources getSender() {\n return sender_;\n }", "List<Worker<?, ?>> getRecipients() {\n\t\tList<Worker<?, ?>> retval = Collections.unmodifiableList(recipients);\n\t\treturn retval;\n\t}", "public List<ReconhecimentoGPDTO> getAllReconhecimentoGP(String emailFreelancer) throws SQLException {\n List<ReconhecimentoGPDTO> reconhecimentosGPDTO = new ArrayList<>();\n List<ReconhecimentoGP> reconhecimentosGP = repositorioFreelancer.getAllReconhecimentoGP(emailFreelancer);\n\n for (ReconhecimentoGP reconhecimentoGP : reconhecimentosGP) {\n reconhecimentosGPDTO.add((ReconhecimentoGPDTO) reconhecimentoGP.toDTO());\n }\n return reconhecimentosGPDTO;\n }", "public java.lang.String getOriginalSendCurrency() {\r\n return originalSendCurrency;\r\n }", "public int getSenderId() {\n return senderId;\n }", "@Override\n\tpublic void getCosts() {\n\t\tString renterIDString = String.valueOf(this.renter.getRenterID());\n\t\tString damageChargeString = String.valueOf(this.damageCharge);\n\t\tSystem.out.print(\"The amount owed in damages for renter with ID of: \" + renterIDString + \" is: \" + damageChargeString+\"\\n\");\n\t}", "public java.util.List<TransferSerial> getTransferSerials() {\n return TransferSerials;\n }", "public ChargesInformation(BearerCode bearerCode, List<SenderCharge> senderCharges, Double receiverChargesAmount,\n Currency receiverChargesCurrency) {\n this.bearerCode = bearerCode;\n this.senderCharges = senderCharges;\n this.receiverChargesAmount = receiverChargesAmount;\n this.receiverChargesCurrency = receiverChargesCurrency;\n }", "public List<GcGrouperSyncMember> getGcGrouperSyncMembers() {\r\n return gcGrouperSyncMembers;\r\n }", "public double getCharge() {\n\t\treturn chargedEnergy;\n\t}", "public String getSenderXML() {\n return sender.toXML();\n }", "public String getSendRawAmount() {\n return sendRawAmount;\n }", "public List<GcGrouperSyncMember> retrieveGcGrouperSyncMembers() {\n List<GcGrouperSyncMember> result = new ArrayList<GcGrouperSyncMember>();\n for (ProvisioningEntityWrapper provisioningEntityWrapper : this.provisioningEntityWrappers) {\n GcGrouperSyncMember gcGrouperSyncMember = provisioningEntityWrapper.getGcGrouperSyncMember();\n if (gcGrouperSyncMember != null) {\n result.add(gcGrouperSyncMember);\n }\n }\n return result;\n }", "public APIgetRecipientsRequest getRecipients() {\n return new APIgetRecipientsRequest();\n }", "public java.math.BigDecimal getOriginalSendFee() {\r\n return originalSendFee;\r\n }", "public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResourcesOrBuilder getSenderOrBuilder() {\n return sender_;\n }", "public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResourcesOrBuilder getSenderOrBuilder() {\n return sender_;\n }", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "java.lang.String getSender();", "public java.lang.String getPatChargeListResult() {\r\n return localPatChargeListResult;\r\n }", "public MMDecimal getGrossAmount() {\r\n if (this.grossAmount == null) {\r\n return getSubTotalAmount();\r\n }\r\n return this.grossAmount;\r\n }", "@Override\n public String toString() {\n return senderName;\n }", "public static List<TypeCharge> getListeTypeCharge() \t{\r\n\t\treturn s.createQuery(\"from TypeCharge\").list();\r\n\t\t\t\t\t}", "public java.math.BigDecimal getReceiveAmount() {\r\n return receiveAmount;\r\n }", "public List<ReturnShippingCarrier> getAvailableShippingCarriers() {\n return (List<ReturnShippingCarrier>) get(\"available_shipping_carriers\");\n }", "public jkt.hms.masters.business.MasChargeType getChargeType() {\n\t\treturn chargeType;\n\t}", "public int getSenderId() {\r\n\t\treturn senderId;\r\n\t}", "public Integer getDonationsReceived()\n\t{\n\t\treturn donationsReceived;\n\t}", "public String getIdCharge() {\n return idCharge;\n }", "public int getcharge(int position){\n\t\treturn charges.get(position);\n\t}", "public List<Customer> getCustomers()\n {\n List<Customer> customers = new ArrayList<>();\n\n customers.add(new Customer(\"Recipient\", \"One\", \"recipient1@example.com\", \"Green\"));\n customers.add(new Customer(\"Recipient\", \"Two\", \"recipient2@example.com\", \"Red\"));\n customers.add(new Customer(\"Recipient\", \"Three\", \"recipient3@example.com\", \"Blue\"));\n customers.add(new Customer(\"Recipient\", \"Four\", \"recipient4@example.com\", \"Orange\"));\n\n return customers;\n }", "public AccountPurchase getGifterAccount() {\n return this.gifterAccount;\n }", "public Long getSendRequestTimes()\r\n {\r\n return sendRequestTimes;\r\n }", "public java.util.List<WorldUps.UDeliveryMade> getDeliveredList() {\n return delivered_;\n }", "public BigDecimal getGiftAccount() {\r\n return giftAccount;\r\n }", "public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources getSender() {\n if (senderBuilder_ == null) {\n return sender_;\n } else {\n return senderBuilder_.getMessage();\n }\n }", "public com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources getSender() {\n if (senderBuilder_ == null) {\n return sender_;\n } else {\n return senderBuilder_.getMessage();\n }\n }", "public SimulcastSenderManager getSimulcastSenderManager()\n {\n return simulcastSenderManager;\n }", "public String senderId() {\n return senderId;\n }", "public static Collection getCostingRates() throws EnvoyServletException\n {\n try\n {\n return ServerProxy.getCostingEngine().getRates();\n }\n catch (Exception e)\n {\n throw new EnvoyServletException(e);\n }\n }", "@Override\r\n\tpublic float getCharge() {\n\t\treturn 0;\r\n\t}", "public static com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders> getPendingObjects()\n {\n return (com.sybase.collections.GenericList<ru.terralink.mvideo.sap.Orders>)(Object)DELEGATE.getPendingObjects();\n }" ]
[ "0.6736565", "0.6500952", "0.62148553", "0.59508157", "0.5800761", "0.56869143", "0.5668175", "0.5485352", "0.5427405", "0.54100686", "0.5323401", "0.5319636", "0.52494276", "0.52464056", "0.5227328", "0.5221539", "0.5190111", "0.5179985", "0.5178391", "0.5150444", "0.5136979", "0.5135344", "0.51256394", "0.512397", "0.5121539", "0.51123506", "0.5108078", "0.51072884", "0.51037174", "0.5087729", "0.5078706", "0.50777656", "0.5052342", "0.5049504", "0.5049504", "0.5049504", "0.5049504", "0.5049504", "0.5049504", "0.5049504", "0.5046141", "0.503443", "0.5034264", "0.5033127", "0.50311834", "0.50249636", "0.5023185", "0.5022315", "0.5015783", "0.5003549", "0.5000971", "0.49849766", "0.49703252", "0.49501187", "0.49501187", "0.49478614", "0.4947267", "0.49455687", "0.49433652", "0.4933001", "0.4931694", "0.49222466", "0.4922062", "0.49195072", "0.49167112", "0.49077952", "0.4903864", "0.49018547", "0.48977137", "0.48971006", "0.48971006", "0.4890734", "0.4890734", "0.4890734", "0.4890734", "0.4890734", "0.4890734", "0.48851928", "0.48843697", "0.48829573", "0.48749444", "0.48604956", "0.4853671", "0.48526713", "0.48423967", "0.4840862", "0.48351395", "0.4830731", "0.4830176", "0.48272324", "0.48177755", "0.48131862", "0.48031694", "0.4797203", "0.4797203", "0.4796355", "0.4794231", "0.47942168", "0.479415", "0.47929838" ]
0.84055036
0
Sets the sender charges.
public void setSenderCharges(List<SenderCharge> senderCharges) { this.senderCharges = senderCharges; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public List<SenderCharge> getSenderCharges() {\r\n\t\treturn senderCharges;\r\n\t}", "public void setSender(String sender) {\n Sender = sender;\n }", "public PaymentRequest setSender(Sender sender) {\r\n this.sender = sender;\r\n return this;\r\n }", "public void setSender(String sender) {\n this.sender = sender;\n }", "public void setSender(String sender){\n this.sender = sender;\n }", "public void setSender(BICorIBAN sender) {\n\n // Set the sender of the missive document\n this.missiveHeader.setSnd(sender);\n\n // Build the missive\n this.build();\n }", "public SenderCharge(Double amount, Currency currency) {\n this.amount = amount;\n this.currency = currency;\n }", "public final void setSender(final Player newSender) {\n this.sender = newSender;\n }", "public void setSender(Mailbox sender) {\n setMailbox(FieldName.SENDER, sender);\n }", "public void setSender(boolean besender) {\n if (this.sender != besender) {\n SSRCCache sSRCCache;\n if (besender) {\n sSRCCache = this.cache;\n sSRCCache.sendercount++;\n setAlive(true);\n } else {\n sSRCCache = this.cache;\n sSRCCache.sendercount--;\n }\n this.sender = besender;\n }\n }", "public void setCharge(ChargeComponent charge) {\r\n this.charge = charge;\r\n }", "@Override\r\n\tpublic void fundTransfer(String sender, String reciever, double amount) {\n\t\t\r\n\t\tString name, newMobileNo;\r\n\t\tfloat age;\r\n\t\tdouble amountFund;\r\n\t\t\r\n\t\tCustomer custSender = custMap.get(sender);\r\n\t\tCustomer custReciever = custMap.get(reciever);\r\n\t\t\r\n\t\tdouble recieverAmount = custReciever.getInitialBalance();\r\n\t\tdouble senderAmount = custSender.getInitialBalance();\r\n\t\tif(senderAmount - amount > 500){\r\n\t\t\trecieverAmount += amount;\r\n\t\t\tsenderAmount -= amount;\r\n\t\t\tSystem.out.println(\"Fund Transferred\");\r\n\t\t}\r\n\t\tname = custSender.getName();\r\n\t\tnewMobileNo = custSender.getMobileNo();\r\n\t\tage = custSender.getAge();\r\n\t\tamountFund = senderAmount;\r\n\t\t\r\n\t\tcustSender.setAge(age);\r\n\t\tcustSender.setInitialBalance(senderAmount);\r\n\t\tcustSender.setMobileNo(newMobileNo);\r\n\t\tcustSender.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custSender);\r\n\t\t\r\n\t\tname = custReciever.getName();\r\n\t\tnewMobileNo = custReciever.getMobileNo();\r\n\t\tage = custReciever.getAge();\r\n\t\tamountFund = recieverAmount;\r\n\t\t\r\n\t\tcustReciever.setAge(age);\r\n\t\tcustReciever.setInitialBalance(recieverAmount);\r\n\t\tcustReciever.setMobileNo(newMobileNo);\r\n\t\tcustReciever.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custReciever);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void setOtherCharges (java.math.BigDecimal otherCharges) {\n\t\tthis.otherCharges = otherCharges;\n\t}", "public void setSender( Term sender ) {\n this.sender = sender;\n }", "public void setSender(String sender) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tgetSwiftMessage().getBlock1().setSender(sender);\t\t\n\t}", "protected void setServiceCharge(double amount) {\n if (amount < 0) throw new IllegalArgumentException(\"Amount cannot be negative\");\n serviceCharge = amount;\n }", "Order setAsInCharge(Order order, User user);", "void setSenderId(int id) {\n this.senderId = id;\n }", "public void addSender(String sender) {\n\t\tthis.sender = sender;\n\t}", "public void setCHARGE(BigDecimal CHARGE) {\r\n this.CHARGE = CHARGE;\r\n }", "public void setChargesInformation(ChargesInformation chargesInformation) {\n this.chargesInformation = chargesInformation;\n }", "public void setSender(Processor process) {\n System.out.println(\"Setting sender as: \" + process.id);\n this.senderProcess = process;\n }", "public void setReceiverChargesAmount(String receiverChargesAmount) {\r\n\t\tthis.receiverChargesAmount = receiverChargesAmount;\r\n\t}", "public void setTokens() {\n\t\tgetOwner().setAmount(getOwner().getAmount() + 1000);\n\t}", "private void setupSender() {\r\n\t\ttheSender = new AutoSender();\r\n\t}", "public void setCharge(java.lang.Float charge) {\n\t\tthis.charge = charge;\n\t}", "public void setSenderId(int senderId) {\r\n\t\tthis.senderId = senderId;\r\n\t}", "public ChargesInformation(BearerCode bearerCode, List<SenderCharge> senderCharges, Double receiverChargesAmount,\n Currency receiverChargesCurrency) {\n this.bearerCode = bearerCode;\n this.senderCharges = senderCharges;\n this.receiverChargesAmount = receiverChargesAmount;\n this.receiverChargesCurrency = receiverChargesCurrency;\n }", "public void setUser(UserModel user) {\n this.sender = user;\n }", "void setAsInCharge(User user, Project project, Date date);", "@ApiModelProperty(value = \"If the transaction is a money transfer, pre-paid load, or credit card bill pay, and if the sender intends to fund the transaction with a non-financial instrument (for example, cash), a reference number unique to the sender is required.<br><br>If the transaction is a funds disbursement, the field is required.<br><br> This field is required if senderAccountNumber is not sent.\")\n public String getSenderReference() {\n return senderReference;\n }", "public void setSender(BIC bic) {\n\t\tif (getSwiftMessage() == null) {\n\t\t\tthis.m = new SwiftMessage(true);\n\t\t}\n\t\tgetSwiftMessage().getBlock1().setLogicalTerminal(bic);\n\t}", "public void setDelivery(double pDelivery) {\n mDelivery = pDelivery;\n }", "public void setSenderId(java.lang.String senderId) {\r\n this.senderId = senderId;\r\n }", "public void setSenderQualifier(java.lang.String senderQualifier) {\r\n this.senderQualifier = senderQualifier;\r\n }", "@ApiModelProperty(value = \"If the transaction is a money transfer and cross-border or U.S. domestic, this field must contain the sender's name.<br><br>If the transaction is a funds disbursement and cross-border or U.S. domestic, this field must contain either the name of the merchant or government entity sending the funds disbursement.<br><br>If the transaction is a pre-paid load or credit card bill pay and U.S. domestic, this field must contain the sender's name.<br><br>Recommended Format: Last Name/Family Surname 1 + Space + Last Name/Family Surname 2 (optional) + Space + First Name/Given Name + Space + Middle Initial or Middle name (optional) + space<br><br>Example: Doe John A\")\n public String getSenderName() {\n return senderName;\n }", "public void resetAmountBought() {\n //System.out.println(\"Resetting amount bought for \" + clientName + \"...\");\n amountBought = 0;\n }", "public void setSendBy(String value) {\n setAttributeInternal(SENDBY, value);\n }", "public void setAmount(double amount){\n try{\n if(amount>=0.0){\n this.amount=amount;\n }\n else {\n this.amount = 1;\n throw new SupplyOrderException(\"Invalid amount, resetted to 1\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }", "public Builder setSender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "public Builder setSender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "public Builder setSender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "public Builder setSender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "public Builder setSender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "public Builder setSender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "public Builder setSender(\n java.lang.String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "private void populateCharges() {\n\t\tseenCharges.clear();\n\n\t\t// add bots and LEDs\n\t\tfor (int i = 0; i < seenBots.size(); i++) {\n\t\t\t// add the bot\n\t\t\tseenCharges.add(seenBots.get(i));\n\t\t\t// go through LEDs of bot and add\n\t\t\tfor (int j = 0; j < seenBots.get(i).getNoOfLEDs(); j++) {\n\t\t\t\tseenCharges.add(seenBots.get(i).LEDs.get(j));\n\t\t\t}\n\t\t}\n\t}", "@Benchmark\n @BenchmarkMode(Mode.Throughput)\n public void send()\n {\n _sender1.send(_account);\n }", "public Builder setSender(com.lvl6.proto.UserProto.MinimumUserProto value) {\n if (senderBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n sender_ = value;\n onChanged();\n } else {\n senderBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public Builder setSender(com.lvl6.proto.UserProto.MinimumUserProto value) {\n if (senderBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n sender_ = value;\n onChanged();\n } else {\n senderBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public Builder setSender(com.lvl6.proto.UserProto.MinimumUserProto value) {\n if (senderBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n sender_ = value;\n onChanged();\n } else {\n senderBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public Builder setSender(com.lvl6.proto.UserProto.MinimumUserProto value) {\n if (senderBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n sender_ = value;\n onChanged();\n } else {\n senderBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000001;\n return this;\n }", "public String getReceiverChargesAmount() {\r\n\t\treturn receiverChargesAmount;\r\n\t}", "public void setReceiverChargesCurrency(String receiverChargesCurrency) {\r\n\t\tthis.receiverChargesCurrency = receiverChargesCurrency;\r\n\t}", "public void setSenderAddress(final String value) {\n setProperty(SENDER_ADDRESS_KEY, value);\n }", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "public void toSetCard() {\n this.notifyTimeToSetCard(availableGods, getCurrentTurn().getCurrentPlayer());\n this.notifySetCard(availableGods, getCurrentTurn().getCurrentPlayer().getNickname(), chosenGodList);\n\n }", "public void setAmount(int moneyOption);", "public Builder setSender(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n \n sender_ = value;\n onChanged();\n return this;\n }", "private void sendBucks() {\n\t\tconsole.printUsers(userService.getAll(currentUser.getToken()));\n\t\tSystem.out.println(\"\");\n\n\t\tBoolean validResponse = false;\n\t\tint selectedUserId = -1;\n\t\tBigDecimal transferAmount = new BigDecimal(0);\n\t\tBigDecimal zero = new BigDecimal(0);\n\t\tBigDecimal currentBalance = (accountService.getAccountBalance(currentUser.getToken()));\n\t\tTransfer transfer = new Transfer();\n\n\t\twhile (true) {\n\t\t\t// ask which user you want to send money to or exit\n\t\t\tselectedUserId = console.getUserInputInteger(\"Enter ID of user you are sending to (0 to cancel)\");\n\t\t\tif (selectedUserId == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tif (selectedUserId > 0 && selectedUserId <= userService.getAll(currentUser.getToken()).length) {\n\t\t\t\t// prompt for amount to send\n\t\t\t\ttransferAmount = console.getUserInputBigDecimal(\"Enter amount\");\n\t\t\t\t// transfer money\n\n\t\t\t\tif (transferAmount.compareTo(zero) == 1 && transferAmount.compareTo(currentBalance) <= 0) {\n\n\t\t\t\t\ttransfer.setFromUserId(currentUser.getUser().getId());\n\t\t\t\t\ttransfer.setToUserId(selectedUserId);\n\t\t\t\t\ttransfer.setTransferAmount(transferAmount);\n\t\t\t\t\ttransfer.setStatusOfTransferId(2);\n\t\t\t\t\ttransfer.setTypeOfTransferId(2);\n\n\t\t\t\t\t\n\t\t\t\t\ttransferService.createTransfer(currentUser.getToken(), transfer);\n\t\t\t\t\tSystem.out.println(\"\\nTransfer Complete!\");\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\\nInsufficient Funds! Please try again.\\n\");\n\n\t\t\t}\n\t\t}\n\n\t}", "public void setAmount(double amount) {\n this.amount = amount;\n }", "public void setAmount(double amount) {\n this.amount = amount;\n }", "public void setBuyer(String buyer) {\n this.buyer = buyer;\n }", "public Builder clearSender() {\n if (senderBuilder_ == null) {\n sender_ = com.lvl6.proto.UserProto.MinimumUserProto.getDefaultInstance();\n onChanged();\n } else {\n senderBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public Builder clearSender() {\n if (senderBuilder_ == null) {\n sender_ = com.lvl6.proto.UserProto.MinimumUserProto.getDefaultInstance();\n onChanged();\n } else {\n senderBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public Builder clearSender() {\n if (senderBuilder_ == null) {\n sender_ = com.lvl6.proto.UserProto.MinimumUserProto.getDefaultInstance();\n onChanged();\n } else {\n senderBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public Builder clearSender() {\n if (senderBuilder_ == null) {\n sender_ = com.lvl6.proto.UserProto.MinimumUserProto.getDefaultInstance();\n onChanged();\n } else {\n senderBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public void setCHARGE_AMOUNT(BigDecimal CHARGE_AMOUNT) {\r\n this.CHARGE_AMOUNT = CHARGE_AMOUNT;\r\n }", "public void setAmount(Float amount) {\n\t\tthis.amount = amount;\n\t}", "public void setShippingSender(String shippingSender) {\n this.shippingSender = shippingSender == null ? null : shippingSender.trim();\n }", "public void setSenderName(String senderName) {\r\n\t\tthis.senderName = senderName;\r\n\t}", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "public Builder clearSender() {\n \n sender_ = getDefaultInstance().getSender();\n onChanged();\n return this;\n }", "@ApiModelProperty(required = true, value = \"The amount of the purchase. The tax was calculated on this amount.\")\n public BigDecimal getChargeAmount() {\n return chargeAmount;\n }", "public void charge(Room toRoom) {\n this.toRoom = toRoom;\n }", "public void setRefundedCredits(float val) {\n // ProtectBlock setRefundedCredits\n // ProtectBlock End\n this.refundedCredits = val;\n }", "@Override\n public void makeTransfer(BigInteger sender, BigInteger recipient, BigDecimal amount)\n throws InsufficientFundsException, GenericBankNowException {\n if (isTheSameAccount(sender, recipient)) {\n throw new GenericBankNowException(\"Sender and recipient are the same accounts\");\n } else {\n Account accountSender = accountDao.getAccountByIban(sender);\n if (hasEfficientFunds(accountSender, amount)) {\n throw new InsufficientFundsException(\"Insufficient funds to proceed transfer\");\n } else {\n Account accountRecipient = accountDao.getAccountByIban(recipient);\n accountSender.setBalance(accountSender.getBalance().subtract(amount));\n accountRecipient.setBalance(accountRecipient.getBalance().add(amount));\n\n accountDao.updateAccount(accountSender);\n accountDao.updateAccount(accountRecipient);\n\n transactionDao.storeTransaction(new Transaction(sender, recipient, amount, TransactionType.TRANSFER));\n }\n }\n }", "@ReactMethod\n public void peopleTrackCharge(double charge) {\n mixpanel.getPeople().trackCharge(charge, null);\n }", "public final void setChargeable(final boolean chargeable)\r\n {\r\n this.chargeable_ = chargeable;\r\n }", "public void setAmount (double amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public Builder clearSender() {\n if (senderBuilder_ == null) {\n sender_ = com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources.getDefaultInstance();\n onChanged();\n } else {\n senderBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "public Builder clearSender() {\n if (senderBuilder_ == null) {\n sender_ = com.lvl6.proto.UserProto.MinimumUserProtoWithMaxResources.getDefaultInstance();\n onChanged();\n } else {\n senderBuilder_.clear();\n }\n bitField0_ = (bitField0_ & ~0x00000001);\n return this;\n }", "private void doChargeSet(int newSetting)\r\n {\r\n requestQueue.add( new ChargerHTTPConn( weakContext,\r\n CHARGE_NODE_HTML_DATA,\r\n CONTROL_URL,\r\n SN_HOST,\r\n makeChargeControl(newSetting),\r\n cookieData,\r\n false,\r\n token,\r\n secret ) ); \r\n }", "public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }", "public void setChargeUnit(String ChargeUnit) {\n this.ChargeUnit = ChargeUnit;\n }", "public void setPrayerPoints(double amount) {\r\n prayerPoints = amount;\r\n if (entity instanceof Player) {\r\n PacketRepository.send(SkillLevel.class, new SkillContext((Player) entity, PRAYER));\r\n }\r\n }", "public void setRequester(User requester) {\n this.requester = requester;\n }", "public void setAmount(double value) {\n this.amount = value;\n }", "public void transferMoney(float amount, String transferToNumber) {}", "@Override\n\tpublic void setMarketCustomerDeliveryPaymentPerson() {\n\t\t\n\t}", "public void setFromSenderName(String fromSenderName) {\n this.fromSenderName = fromSenderName;\n }", "public void setSendingReferrersAsNotSent() {\n }", "public void setAmount(int amount) {\n this.amount = amount;\n }", "private void sendBucks() {\n\t\ttry {\n\t\t\tSystem.out.println(\"Please choose a user to send TE Bucks to:\");\n\t\t\tUser toUser;\n\t\t\tboolean isValidUser;\n\t\t\tdo {\n\t\t\t\ttoUser = (User)console.getChoiceFromOptions(userService.getUsers());\n\t\t\t\tisValidUser = ( toUser\n\t\t\t\t\t\t\t\t.getUsername()\n\t\t\t\t\t\t\t\t.equalsIgnoreCase(currentUser.getUser().getUsername())\n\t\t\t\t\t\t\t ) ? false : true;\n\n\t\t\t\tif(!isValidUser) {\n\t\t\t\t\tSystem.out.println(\"You can not send money to yourself\");\n\t\t\t\t}\n\t\t\t} while (!isValidUser);\n\t\t\t\n\t\t\t// Select an amount\n\t\t\tBigDecimal amount = new BigDecimal(\"0.00\");\n\t\t\tboolean isValidAmount = false;\n\t\t\tdo {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tamount = new BigDecimal(console.getUserInput(\"Enter An Amount (0 to cancel):\\n \"));\n\t\t\t\t\t} catch (NumberFormatException e) {\n\t\t\t\t\t\tSystem.out.println(\"Please enter a numerical value\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tisValidAmount = amount.doubleValue() < userService\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.getBalance(currentUserId)\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t.doubleValue();\n\t\t\t\tif(!isValidAmount) {\n\t\t\t\t\tSystem.out.println(\"You can not send more money than you have available!\");\n\t\t\t\t}\n\t\t\t\tif(amount.doubleValue() < 0.99 && amount.doubleValue() > 0.00) {\n\t\t\t\t\tSystem.out.println(\"You must send at least $0.99 TEB\");\n\t\t\t\t\tisValidAmount = false;\n\t\t\t\t} else if (amount.doubleValue() == 0.00) {\n\t\t\t\t\tmainMenu();\n\t\t\t\t}\n\t\t\t} while(!isValidAmount);\n\n\t\t\t// Create transfer object\n\t\t\tboolean confirmedAmount = false;\n\t\t\tString confirm = \"\";\n\t\t\tTransfer transfer = null;\n\t\t\twhile (!confirmedAmount) {\n\t\t\t\tconfirm = console.getUserInput(\"You entered: \" + amount.toPlainString() + \" TEB. Is this correct? (y/n)\");\n\t\t\t\tif (confirm.toLowerCase().startsWith(\"y\")) {\n\t\t\t\t\t// transferService to POST to server db\n\t\t\t\t\ttransfer = createTransferObj(\"Send\", \"Approved\", currentUserId, toUser.getId(), amount);\n\t\t\t\t\tboolean hasSent = transferService.sendBucks(currentUserId, toUser.getId(), transfer);\n\t\t\t\t\tif (hasSent) {\n\t\t\t\t\t\t// TODO :: Test this\n\t\t\t\t\t\tSystem.out.println(\"The code executed\");\n\t\t\t\t\t}\n\t\t\t\t\tconfirmedAmount = true;\n\t\t\t\t\tcontinue;\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"Send canceled.\");\n\t\t\t\t\tconfirmedAmount = true;\n\t\t\t\t\tcontinue;\n\t\t\t\t} \n\t\t\t}\n\t\t}catch(UserServiceException ex) {\n\t\t\tSystem.out.println(\"User Service Exception\");\n\t\t}catch(TransferServiceException ex) {\n\t\t\tSystem.out.println(\"Transfer Service Exception\");\n\t\t}\n\t\t\n\t}", "public void setSendingTime(Date sendingTime) {\n this.sendingTime = sendingTime;\n }" ]
[ "0.6521712", "0.5980154", "0.5950235", "0.59471273", "0.58789814", "0.58550453", "0.58178675", "0.5742769", "0.5723023", "0.54895973", "0.54584694", "0.54420906", "0.5424254", "0.5390365", "0.5354061", "0.53293014", "0.5251784", "0.523957", "0.52096575", "0.5180067", "0.5176141", "0.51536125", "0.5152772", "0.5110492", "0.5084012", "0.5076865", "0.5060798", "0.50219387", "0.49974543", "0.49846572", "0.49710858", "0.4932359", "0.49274904", "0.49233666", "0.4918464", "0.49009115", "0.48684356", "0.48663995", "0.48593235", "0.48495877", "0.48152968", "0.48152968", "0.48152968", "0.48152968", "0.48152968", "0.48152968", "0.4808839", "0.48085108", "0.4798084", "0.4798084", "0.4798084", "0.4798084", "0.47974706", "0.4796738", "0.479393", "0.47930667", "0.47898835", "0.478932", "0.47772354", "0.47751912", "0.47713903", "0.47713903", "0.476635", "0.4761118", "0.4761118", "0.4761118", "0.4761118", "0.47553164", "0.47553053", "0.4752866", "0.4751291", "0.47488934", "0.47488934", "0.47488934", "0.47488934", "0.47488934", "0.47488934", "0.47488934", "0.47450528", "0.47345254", "0.47298384", "0.47280052", "0.4727725", "0.47255346", "0.47226977", "0.4719642", "0.4719642", "0.47177836", "0.47092327", "0.4705146", "0.46947965", "0.46842545", "0.4682142", "0.46819094", "0.4675232", "0.46724865", "0.46651402", "0.46612826", "0.46585676", "0.46585017" ]
0.79195625
0
Gets the receiver charges amount.
public String getReceiverChargesAmount() { return receiverChargesAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.math.BigDecimal getReceiveAmount() {\r\n return receiveAmount;\r\n }", "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "public BigDecimal getCHARGE_AMOUNT() {\r\n return CHARGE_AMOUNT;\r\n }", "public String getAmountCredited() {\n\t\twaitForControl(driver, LiveGuru99.WithdrawallPage.GET_AMOUNT_DEPOSIT, timeWait);\n\t\tString amount = getText(driver, LiveGuru99.WithdrawallPage.GET_AMOUNT_DEPOSIT);\n\t\treturn amount;\n\t}", "public BigDecimal getRechargeMoney() {\n return rechargeMoney;\n }", "public java.math.BigDecimal getOtherCharges () {\n\t\treturn otherCharges;\n\t}", "public io.lightcone.data.types.Amount getAmount() {\n if (amountBuilder_ == null) {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n } else {\n return amountBuilder_.getMessage();\n }\n }", "public String getCurrentAmount() {\n\t\twaitForControl(driver, LiveGuru99.WithdrawallPage.GET_CURRENT_AMOUNT, timeWait);\n\t\tString currentAmount = getText(driver, LiveGuru99.WithdrawallPage.GET_CURRENT_AMOUNT);\n\t\treturn currentAmount;\n\t}", "public float getAmount() {\n System.out.println(\"Account Balance:\" + amount);\n return amount;\n }", "public Number getRentAmount() {\n return (Number) getAttributeInternal(RENTAMOUNT);\n }", "public double getAmount() \r\n {\r\n assert(true);\r\n return amount;\r\n }", "public BigDecimal getRechargeFee() {\n return rechargeFee;\n }", "public static int getAmount() {\n\t\treturn amount;\n\t}", "public String getRebillAmount()\n\t{\n\t\tif(response.containsKey(\"reb_amount\")) {\n\t\t\treturn response.get(\"reb_amount\");\n\t\t} else {\n\t\t\treturn null;\n\t\t}\n\t}", "public java.math.BigDecimal getIndicativeReceiveAmount() {\r\n return indicativeReceiveAmount;\r\n }", "public double getPaymentAmount() {\n\t\tdouble amount = 0.0;\n\t\tString content = \"\";\n\t\t\n\t\tWebElement temp = (new WebDriverWait(driver, waitTime))\n\t\t\t\t.until(ExpectedConditions.presenceOfElementLocated(By.id(\"totalAmt\")));\t\t\n\t\tcontent = temp.findElement(By.xpath(\"span[2]\")).getAttribute(\"innerHTML\");\n\t\tamount = Double.parseDouble(content);\n\t\treturn amount;\n\t}", "public String getLocalCurrencyAmount() {\n return sendLocalCurrencyAmount;\n }", "public java.math.BigDecimal getAmount () {\r\n\t\treturn amount;\r\n\t}", "public BigDecimal getTotalAmount() {\n return totalAmount;\n }", "ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getAmount();", "public io.lightcone.data.types.Amount getAmount() {\n return amount_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }", "public java.math.BigDecimal getAmount() {\n return amount;\n }", "float getAmount();", "public double calculateAdditionalCharge() {\n return 5.0;\n }", "public List<SenderCharge> getSenderCharges() {\r\n\t\treturn senderCharges;\r\n\t}", "public double getBillTotal(){\n\t\treturn user_cart.getBillTotal();\n\t}", "public BigDecimal getAmount() \r\n {\t\r\n \treturn amount;\t\r\n }", "public double getAmount() {\r\n\t\treturn amount;\r\n\t}", "public double getAmount() {\r\n\t\treturn amount;\r\n\t}", "public BigDecimal getCHARGE() {\r\n return CHARGE;\r\n }", "public double getReceivable() {\n return receivable;\n }", "public double getAmount() {\n\t\treturn amount;\n\t}", "public double getAmount() {\n\t\treturn amount;\n\t}", "public double getAmount() {\n\t\treturn amount;\n\t}", "public double getAmount () {\r\n\t\treturn amount;\r\n\t}", "public double getCharges()\r\n {\r\n //variables\r\n double charges = 0.0;\r\n double parts = 0.0;\r\n double hours = 0.0;\r\n\r\n //get user input and change double\r\n parts = Double.parseDouble(chargeField.getText());\r\n hours = Double.parseDouble(hourField.getText());\r\n\r\n //math for charges\r\n charges = hours * LABOR_RATE + parts;\r\n return charges;\r\n }", "public java.math.BigDecimal getGrnAmount () {\n\t\treturn grnAmount;\n\t}", "public int getMoney() {\n return wallet.getMoney();\n }", "public BigDecimal getAmount() {\n return this.amount;\n }", "public BigDecimal getTotalTransactrateMoney() {\n return totalTransactrateMoney;\n }", "@java.lang.Override\n public long getAmount() {\n return instance.getAmount();\n }", "public Float getAmount() {\n\t\treturn amount;\n\t}", "public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n if (amountBuilder_ != null) {\n return amountBuilder_.getMessageOrBuilder();\n } else {\n return amount_ == null ?\n io.lightcone.data.types.Amount.getDefaultInstance() : amount_;\n }\n }", "public double getAmount() {\n return this.amount;\n }", "public String getRequestedAmount() {\n\t\treturn this.token.get(\"requestAmount\").toString();\n\t}", "public double getAmount()\n {\n return m_Amount;\n }", "public double getDepositAmount()\n\t{\n\t\treturn this.getFlightCosts() + this.totalPrice * this.half;\n\t}", "public int getAmount() {\n return amount_;\n }", "public java.math.BigDecimal getCardMoney() {\r\n return localCardMoney;\r\n }", "public String getRequisitionTotalAmount() {\r\n return requisitionTotalAmount;\r\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public double getAmount() {\n return amount;\n }", "public BigDecimal getAMOUNT() {\r\n return AMOUNT;\r\n }", "public io.lightcone.data.types.AmountOrBuilder getAmountOrBuilder() {\n return getAmount();\n }", "public BigDecimal getCalculateAmt() {\n return calculateAmt;\n }", "public long getAmount() {\r\n return amount;\r\n }", "public BigDecimal getAmount() {\r\n return amount;\r\n }", "public long getAmount() {\n\t\treturn amount;\n\t}", "public BigDecimal getAdditionalAmount() {\n return additionalAmount;\n }", "public double getMoney() {\n\t\treturn totalMoney;\n\t}", "BigDecimal getAmount();", "public BigDecimal getFreceivepricerate() {\n return freceivepricerate;\n }", "public int getDealerTotal() {\n\t\t\treturn dealerTotal;\n\t\t}", "public long getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public BigDecimal getAmount() {\n return amount;\n }", "public Number getAmount() {\n return (Number) getAttributeInternal(AMOUNT);\n }", "public ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount getAmount()\n {\n synchronized (monitor())\n {\n check_orphaned();\n ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount target = null;\n target = (ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount)get_store().find_element_user(AMOUNT$6, 0);\n if (target == null)\n {\n return null;\n }\n return target;\n }\n }", "public String getAmount() {\n\n return amount.getText();\n }", "public BigDecimal getAmount()\n {\n return amount;\n }", "public Double getAmount() {\r\n return amount;\r\n }", "public int getChargeRate();", "public int getAmount() {\n return amount_;\n }", "public java.math.BigDecimal getCrvComittedAmount () {\n\t\treturn crvComittedAmount;\n\t}", "public BigDecimal getAmount() {\n return this.amount;\n }", "long getAmount();", "public double getAmount() {\n return amount;\n }", "BigDecimal getSystemAmount() {\n return systemAmount;\n }", "public java.math.BigDecimal getAmt() {\r\n return localAmt;\r\n }", "public MMDecimal getGrossAmount() {\r\n if (this.grossAmount == null) {\r\n return getSubTotalAmount();\r\n }\r\n return this.grossAmount;\r\n }", "public BigDecimal getTotalFee() {\n return totalFee;\n }", "public io.lightcone.data.types.Amount getAmountF() {\n if (amountFBuilder_ == null) {\n return amountF_ == null ? io.lightcone.data.types.Amount.getDefaultInstance() : amountF_;\n } else {\n return amountFBuilder_.getMessage();\n }\n }", "public int amount() {\n return amount;\n }", "public double getAmount() {\r\n\t\treturn investmentAmount;\r\n\t}", "@Override\n\tpublic Integer getRefundTotalFee() {\n\t\treturn getRealRegFee() + getRealTreatFee();\n\t}", "public Integer getRefundMoney() {\n return refundMoney;\n }", "public BigDecimal getAgentMoney() {\n return agentMoney;\n }", "int getAmount();", "public long getAmount();" ]
[ "0.71099025", "0.710713", "0.68534803", "0.668757", "0.66611093", "0.65761125", "0.6545459", "0.6404867", "0.6393482", "0.6386985", "0.6314927", "0.6304993", "0.6298276", "0.62950295", "0.62836856", "0.62764", "0.6275713", "0.62712294", "0.6265695", "0.6254715", "0.6249736", "0.62457067", "0.62064797", "0.62058026", "0.61971813", "0.6180571", "0.6178843", "0.6173309", "0.6173309", "0.61648434", "0.615957", "0.6148731", "0.6148731", "0.6148731", "0.61266017", "0.61144364", "0.6101343", "0.60956305", "0.609442", "0.60925096", "0.60882723", "0.60825115", "0.6082196", "0.60806096", "0.60670567", "0.6056876", "0.60508835", "0.6043319", "0.60413194", "0.60368663", "0.60359704", "0.60359704", "0.60359704", "0.60359704", "0.60359704", "0.60359704", "0.60359704", "0.6027273", "0.6026116", "0.6021604", "0.60156584", "0.60155284", "0.6015245", "0.6012388", "0.6012284", "0.6010015", "0.60094756", "0.60029745", "0.5996131", "0.5992907", "0.5992907", "0.5992907", "0.5992907", "0.5992907", "0.5992907", "0.5992907", "0.5992907", "0.59928966", "0.59926367", "0.59844196", "0.5974232", "0.59703606", "0.59641075", "0.59637237", "0.59593606", "0.5958327", "0.59566396", "0.5955788", "0.5949265", "0.5936117", "0.5935574", "0.593557", "0.59349835", "0.59263307", "0.59255683", "0.5924765", "0.5913118", "0.5910854", "0.5908881", "0.5908801" ]
0.8195943
0
Sets the receiver charges amount.
public void setReceiverChargesAmount(String receiverChargesAmount) { this.receiverChargesAmount = receiverChargesAmount; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReceiverChargesAmount() {\r\n\t\treturn receiverChargesAmount;\r\n\t}", "void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount);", "protected void setServiceCharge(double amount) {\n if (amount < 0) throw new IllegalArgumentException(\"Amount cannot be negative\");\n serviceCharge = amount;\n }", "public void setSenderCharges(List<SenderCharge> senderCharges) {\r\n\t\tthis.senderCharges = senderCharges;\r\n\t}", "public void setOtherCharges (java.math.BigDecimal otherCharges) {\n\t\tthis.otherCharges = otherCharges;\n\t}", "public void setReceiveAmount(java.math.BigDecimal receiveAmount) {\r\n this.receiveAmount = receiveAmount;\r\n }", "public void setAmount (double amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public void setAmount(double value) {\n this.amount = value;\n }", "public void setAmount(double amount){\n try{\n if(amount>=0.0){\n this.amount=amount;\n }\n else {\n this.amount = 1;\n throw new SupplyOrderException(\"Invalid amount, resetted to 1\");\n }\n } catch(SupplyOrderException soe){\n soe.getMessage();\n }\n }", "public void setAmount(double amount) {\n this.amount = amount;\n }", "public void setAmount(double amount) {\n this.amount = amount;\n }", "public void setRentAmount(Number value) {\n setAttributeInternal(RENTAMOUNT, value);\n }", "public void setAmount(double value) {\n this.amount = value;\n }", "public SenderCharge(Double amount, Currency currency) {\n this.amount = amount;\n this.currency = currency;\n }", "public void setAmount(double amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public Builder setAmount(int value) {\n bitField0_ |= 0x00000002;\n amount_ = value;\n onChanged();\n return this;\n }", "public void setAmount(double value) {\r\n\t\tthis.amount = value;\r\n\t}", "public void setAmount(int moneyOption);", "public void setAmount(Double amount) {\r\n this.amount = amount;\r\n }", "public void setAmount (java.math.BigDecimal amount) {\r\n\t\tthis.amount = amount;\r\n\t}", "public void setAmount(double amount) {\n\t\tthis.amount = amount;\n\t}", "public void setCHARGE_AMOUNT(BigDecimal CHARGE_AMOUNT) {\r\n this.CHARGE_AMOUNT = CHARGE_AMOUNT;\r\n }", "public void setAmount(int to) {\n\n if(to>99){\n bankView.setTextSize(100);\n }\n\n bankView.setText(Integer.toString(to));\n // This will never be called when getView() is null\n //noinspection ConstantConditions\n getView().findViewById(R.id.btnArm).setEnabled(to != 0);\n }", "void setCurrentAmount(double newAmount) {\n this.currentAmount = newAmount;\n }", "public void setAmount(Double amount) {\n this.amount = amount;\n }", "public void setAmount(int amount) {\n this.amount = amount;\n }", "public void setCHARGE(BigDecimal CHARGE) {\r\n this.CHARGE = CHARGE;\r\n }", "public void setAmount(int amount) {\n\t\tif (amount > 0) { // checks if amount is valid - larger than 0\n\t\t\tLocateRequest.amount = amount;\n\t\t} else {\n\t\t\tSystem.err.print(\"The amount provided is not valid\"); // print message that input is not valid\n\t\t}\n\t}", "public void setAmount(Float amount) {\n\t\tthis.amount = amount;\n\t}", "public void setReceiverChargesCurrency(String receiverChargesCurrency) {\r\n\t\tthis.receiverChargesCurrency = receiverChargesCurrency;\r\n\t}", "public void setRefundedCredits(float val) {\n // ProtectBlock setRefundedCredits\n // ProtectBlock End\n this.refundedCredits = val;\n }", "public void setAmount(BigDecimal amount) {\r\n this.amount = amount;\r\n }", "public void setAmount(double amount) {\nloanAmount = amount;\n}", "public void setRechargeMoney(BigDecimal rechargeMoney) {\n this.rechargeMoney = rechargeMoney;\n }", "public void setAmount(java.math.BigDecimal amount) {\n this.amount = amount;\n }", "public void setRentAmount(double rentAmount) {\n\t\tthis.rentAmount=rentAmount;\n\t}", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal amount) {\n this.amount = amount;\n }", "public void setAmount(final double newAmount) {\n this.amount = newAmount;\n }", "public void setAmount(long amount);", "public void setAmount( BigDecimal amount ) {\n this.amount = amount;\n }", "public void setAmount(BigDecimal value) {\n this.amount = value;\n }", "private void setAmount(long value) {\n bitField0_ |= 0x00000001;\n amount_ = value;\n }", "public void setReceivable(double receivable) {\n this.receivable = receivable;\n }", "public void setAmount(Number value) {\n setAttributeInternal(AMOUNT, value);\n }", "public EdgeNeon setAmount(double value) throws ParameterOutOfRangeException\n {\n\t\tif(value > 100.00 || value < 0.00)\n\t {\n\t throw new ParameterOutOfRangeException(value, 0.00, 100.00);\n\t }\n\n m_Amount = value;\n setProperty(\"amount\", value);\n return this;\n }", "public void setMoney(int moneyAmount) {\n\t\tsuper.setMoney(moneyAmount);\n\t}", "public void changeAmount(double newAmount) {\n this.amount = newAmount;\n }", "public void setAmount(double amount) {\r\n\t\tthis.investmentAmount = amount;\r\n\t}", "@Override\r\n\tpublic void fundTransfer(String sender, String reciever, double amount) {\n\t\t\r\n\t\tString name, newMobileNo;\r\n\t\tfloat age;\r\n\t\tdouble amountFund;\r\n\t\t\r\n\t\tCustomer custSender = custMap.get(sender);\r\n\t\tCustomer custReciever = custMap.get(reciever);\r\n\t\t\r\n\t\tdouble recieverAmount = custReciever.getInitialBalance();\r\n\t\tdouble senderAmount = custSender.getInitialBalance();\r\n\t\tif(senderAmount - amount > 500){\r\n\t\t\trecieverAmount += amount;\r\n\t\t\tsenderAmount -= amount;\r\n\t\t\tSystem.out.println(\"Fund Transferred\");\r\n\t\t}\r\n\t\tname = custSender.getName();\r\n\t\tnewMobileNo = custSender.getMobileNo();\r\n\t\tage = custSender.getAge();\r\n\t\tamountFund = senderAmount;\r\n\t\t\r\n\t\tcustSender.setAge(age);\r\n\t\tcustSender.setInitialBalance(senderAmount);\r\n\t\tcustSender.setMobileNo(newMobileNo);\r\n\t\tcustSender.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custSender);\r\n\t\t\r\n\t\tname = custReciever.getName();\r\n\t\tnewMobileNo = custReciever.getMobileNo();\r\n\t\tage = custReciever.getAge();\r\n\t\tamountFund = recieverAmount;\r\n\t\t\r\n\t\tcustReciever.setAge(age);\r\n\t\tcustReciever.setInitialBalance(recieverAmount);\r\n\t\tcustReciever.setMobileNo(newMobileNo);\r\n\t\tcustReciever.setName(name);\r\n\t\t\r\n\t\tcustMap.put(newMobileNo, custReciever);\r\n\t\t\r\n\t\t\r\n\t\t\r\n\t}", "public void setRechargeFee(BigDecimal rechargeFee) {\n this.rechargeFee = rechargeFee;\n }", "public void setDelivery(double pDelivery) {\n mDelivery = pDelivery;\n }", "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "public void setBalance(){\n balance.setBalance();\n }", "public void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount)\n {\n generatedSetterHelperImpl(amount, AMOUNT$6, 0, org.apache.xmlbeans.impl.values.XmlObjectBase.KIND_SETTERHELPER_SINGLETON);\n }", "public void setAmount(String amount) {\r\n this.amount = amount;\r\n }", "public Builder setAmount(io.lightcone.data.types.Amount value) {\n if (amountBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n amount_ = value;\n onChanged();\n } else {\n amountBuilder_.setMessage(value);\n }\n\n return this;\n }", "public void setTokens() {\n\t\tgetOwner().setAmount(getOwner().getAmount() + 1000);\n\t}", "public void setCardMoney(java.math.BigDecimal param) {\r\n this.localCardMoney = param;\r\n }", "public void setFreceivepricerate(BigDecimal freceivepricerate) {\n this.freceivepricerate = freceivepricerate;\n }", "public void setAmount(Integer amount) {\n this.amount = amount;\n }", "public void setReceiver(Receiver receiver) {\n\t this.receiver = receiver;\n\t }", "public void setAmount(long value) {\r\n this.amount = value;\r\n }", "@Override\r\n public void setPostpaidLimit(BigDecimal postpaidLimit) {\n }", "public void credit(double amount) {\n this.balance += amount;\n }", "public void setAmount(String amount) {\n this.amount = amount;\n }", "@Override\n\tpublic void setAmount(long amount) {\n\t\tthis.amount = amount;\n\t}", "public void setCharge(ChargeComponent charge) {\r\n this.charge = charge;\r\n }", "Order setAsInCharge(Order order, User user);", "public void setCapAmount(int capAmount){\r\n\t\t//saves the variable in capAmount\r\n\t\tthis.capAmount=capAmount;\r\n\t}", "public void setFee(Number value) {\n setAttributeInternal(FEE, value);\n }", "public void setAmt(java.math.BigDecimal param) {\r\n this.localAmt = param;\r\n }", "void setExpenses(double amount);", "public void setBalance() {\n System.out.print(\"Set the balance of your credit card: \");\n this.balance = Double.parseDouble(scanner.nextLine());\n }", "public void setMass(double amount)\n\t{\n\t\tthis.mass = amount;\n\t}", "@ApiModelProperty(required = true, value = \"The transaction amount to be delivered to the recipient.\")\n public Double getAmount() {\n return amount;\n }", "public void setBalance(double bal){\n balance = bal;\r\n }", "public void setReceiver (Receiver receiver) {\n\t\t_receiver = receiver;\n\t}", "void setShowReportAmount(String amount);", "public void setAmount(long amount) {\n\t\tthis.amount = amount;\n\t}", "public void setTotal(BigDecimal amount){\r\n\t\ttotal = amount.doubleValue();\r\n\t}", "public void setsaleamt(BigDecimal value) {\n setAttributeInternal(SALEAMT, value);\n }", "public void refill(int amount) {\n myAmount = myAmount + amount;\n }", "public void setBaseFareAmount(int value) {\n this.baseFareAmount = value;\n }", "public void setPayAmt (BigDecimal PayAmt);", "public synchronized void applyFee() {\r\n balance -= FEE;\r\n }", "@Override\n public void setAmount(Asset amount) {\n this.amount = setIfNotNull(amount, \"The amount can't be null.\");\n }", "public void setRemainingSms(int value) {\n this.remainingSms = value;\n }", "public void transferTo(double dollarAmount) {\r\n\t\tthis.accountBalance = this.accountBalance + dollarAmount;\r\n\t}", "public void setMoney(MoneyManager money) {\n\tthis.money = money;\n }", "public void credit(float amount){\n\t\taccount.credit(amount);\n\t\tSystem.out.println(\"\\t+ \"+ this + \" account is credited with \" + amount + \" euros; its balance is now \" + account );\n\t}", "@Accessor(qualifier = \"redemptionQuantityLimitPerUser\", type = Accessor.Type.SETTER)\n\tpublic void setRedemptionQuantityLimitPerUser(final Integer value)\n\t{\n\t\tgetPersistenceContext().setPropertyValue(REDEMPTIONQUANTITYLIMITPERUSER, value);\n\t}", "public void setAMOUNT(BigDecimal AMOUNT) {\r\n this.AMOUNT = AMOUNT;\r\n }", "public void setFreeMoney(BigDecimal freeMoney) {\r\n this.freeMoney = freeMoney;\r\n }", "void chargeTf(double amount);", "public void setMoney(double money) {\n this.money = money;\n }", "void setBalance(double value);", "public void setBalance(float value)\n {\n balanceCtrl.setValue(value);\n }", "public Builder setMoney(double value) {\n \n money_ = value;\n onChanged();\n return this;\n }" ]
[ "0.62905633", "0.617178", "0.61481607", "0.6057121", "0.6044387", "0.6017528", "0.6005719", "0.5994549", "0.5939498", "0.5918385", "0.5918385", "0.5876361", "0.5873812", "0.5852652", "0.5851214", "0.5812568", "0.58094776", "0.5777637", "0.5770048", "0.57577467", "0.5735961", "0.5733653", "0.5727059", "0.57241654", "0.5708299", "0.56987184", "0.5685896", "0.5639352", "0.5632588", "0.56187993", "0.55981207", "0.5597666", "0.55930454", "0.5591614", "0.55846757", "0.55790925", "0.5575324", "0.5575324", "0.5575324", "0.5550549", "0.5546513", "0.5539388", "0.55345577", "0.55220526", "0.5520012", "0.55134094", "0.54892135", "0.5463477", "0.54366076", "0.53864795", "0.5378824", "0.5378489", "0.5373519", "0.53729147", "0.5347646", "0.5346713", "0.53340626", "0.532647", "0.5319107", "0.53139514", "0.5308056", "0.53006464", "0.5279995", "0.5269636", "0.52661145", "0.52629685", "0.52628285", "0.5251626", "0.52490467", "0.5246021", "0.52443683", "0.522228", "0.5219928", "0.5201508", "0.5199139", "0.5189147", "0.51765424", "0.51765406", "0.5168484", "0.5138042", "0.51238", "0.51223016", "0.51183945", "0.51112497", "0.51103735", "0.5107497", "0.5101299", "0.5097845", "0.5095713", "0.50835824", "0.50787747", "0.5077739", "0.50698966", "0.5062037", "0.5060961", "0.5060731", "0.5057045", "0.5054638", "0.50539225", "0.50538635" ]
0.6634548
0
Gets the receiver charges currency.
public String getReceiverChargesCurrency() { return receiverChargesCurrency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getChargecurrency() {\n\treturn chargecurrency;\n}", "public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }", "public java.lang.String getCurrency() {\n return currency;\n }", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getReceiverChargesAmount() {\r\n\t\treturn receiverChargesAmount;\r\n\t}", "public String getCurrency() {\r\n return currency;\r\n }", "protected String getCurrency() {\n return currency;\n }", "public java.lang.String getIndicativeReceiveCurrency() {\r\n return indicativeReceiveCurrency;\r\n }", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "Currency getCurrency();", "public java.lang.String getCurrency()\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(CURRENCY$10, 0);\n if (target == null)\n {\n return null;\n }\n return target.getStringValue();\n }\n }", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "String getTradeCurrency();", "public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 tradeCurrency_ = s;\n }\n return s;\n }\n }", "public BigDecimal getCURRENCY() {\r\n return CURRENCY;\r\n }", "public String getCurrency() {\n return (String) getAttributeInternal(CURRENCY);\n }", "com.google.ads.googleads.v6.resources.CurrencyConstant getCurrencyConstant();", "public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 tradeCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public java.lang.String payCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).payCurrency();\n\t}", "public String getCurrency() {\n return this.currency;\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency getCurrency () {\r\n\t\treturn currency;\r\n\t}", "public Object getCurrency() {\n\t\treturn null;\n\t}", "String getSettlementCurrency();", "@Override\npublic Currency getCurrency() {\n\treturn balance.getCurrency();\n}", "public Pokemon.Currency getCurrency() {\n return currency_;\n }", "public String getUserCurrency() {\n return sessionData.getUserCurrency();\n }", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\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 settlementCurrency_ = s;\n }\n return s;\n }\n }", "public java.lang.String getBillingCurrency() {\r\n return billingCurrency;\r\n }", "public Currency getCurrency();", "public java.lang.String couponCurrency()\n\t{\n\t\treturn _lsPeriod.get (_lsPeriod.size() - 1).couponCurrency();\n\t}", "public Currency getCurrency() {\n return currencyCode;\n }", "public Currency getCurrency2() {\n return _underlyingForex.getCurrency2();\n }", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "public Pokemon.CurrencyOrBuilder getCurrencyOrBuilder() {\n if (currencyBuilder_ != null) {\n return currencyBuilder_.getMessageOrBuilder();\n } else {\n return currency_;\n }\n }", "public java.lang.String getOriginalSendCurrency() {\r\n return originalSendCurrency;\r\n }", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\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 settlementCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getTradeCurrencyBytes() {\n Object ref = tradeCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n tradeCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public java.math.BigDecimal getCardMoney() {\r\n return localCardMoney;\r\n }", "public String getLocalCurrencyAmount() {\n return sendLocalCurrencyAmount;\n }", "public static Currency getReferenceCurrency() {\n return REFERENCE.get();\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "@Override\n public String getCurrency() {\n return currency != null ? currency : App.getContext().getString(R.string.example_currency);\n }", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "public BigDecimal getCHARGE_AMOUNT() {\r\n return CHARGE_AMOUNT;\r\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "public String getCurrencyPair() {\n return _ccyPair;\n }", "public BigDecimal getCurrency2() {\n\treturn currency2;\n}", "public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }", "public java.math.BigDecimal getOtherCharges () {\n\t\treturn otherCharges;\n\t}", "public String getCurrencyCode()\r\n {\r\n return (m_currencyCode);\r\n }", "public String getCurrencyCd() {\n return (String) getAttributeInternal(CURRENCYCD);\n }", "public void setReceiverChargesCurrency(String receiverChargesCurrency) {\r\n\t\tthis.receiverChargesCurrency = receiverChargesCurrency;\r\n\t}", "com.google.protobuf.ByteString\n getTradeCurrencyBytes();", "public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Currency getCurrency1() {\n return _underlyingForex.getCurrency1();\n }", "public String getCurrencyCode() {\n return currencyCode;\n }", "public String getSplitCurrency() {\r\n\treturn fxndf.getSplitCurrency();\r\n }", "public java.math.BigDecimal getCrvComittedAmount () {\n\t\treturn crvComittedAmount;\n\t}", "public BigDecimal getExchangeRate() {\n return exchangeRate;\n }", "public String getCurrencyCode() {\n return mCurrencyCode;\n }", "public String getCurrencies() {\n\n\t\treturn getJson(API_VERSION, PUBLIC, \"getcurrencies\");\n\t}", "private BigDecimal getConversion(String toCurrency) {\n Map<String, String> urlPathVariable = new HashMap<>();\n urlPathVariable.put(\"from\", baseCurrency);\n urlPathVariable.put(\"to\", toCurrency);\n\n ResponseEntity<CurrencyConversion> responseEntity = restTemplate.getForEntity(\"http://currency-conversion/api/v1/from/{from}/to/{to}\", CurrencyConversion.class, urlPathVariable);\n return responseEntity.getBody().getConversionRate();\n }", "public BigDecimal getCHARGE() {\r\n return CHARGE;\r\n }", "public BigDecimal getRechargeMoney() {\n return rechargeMoney;\n }", "public org.apache.xmlbeans.XmlString xgetCurrency()\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(CURRENCY$10, 0);\n return target;\n }\n }", "com.google.ads.googleads.v6.resources.CurrencyConstantOrBuilder getCurrencyConstantOrBuilder();", "public java.math.BigDecimal getReceiveAmount() {\r\n return receiveAmount;\r\n }", "public Number getCurrencyDigits()\r\n {\r\n return (m_currencyDigits);\r\n }", "public BigDecimal getCurrency1() {\n\treturn currency1;\n}", "public String getCurrencyCode() {\n\t\treturn currencyCode;\n\t}", "public String getCurrency1() {\r\n\t\treturn currency1;\r\n\t}", "public java.math.BigDecimal getValue_Foreign_Currency() {\r\n return value_Foreign_Currency;\r\n }", "com.google.protobuf.ByteString\n getSettlementCurrencyBytes();", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public Pair<Currency, Currency> getCurrencyPair() {\n return _currencyPair;\n }", "public ArmCurrency getPrice() {\n return (getPrice(true));\n }", "public KualiDecimal getCurrencyTotal(CashDrawer drawer);", "public CurrencyVO getCurrency() {\n\treturn currency;\n}", "public Currency getCurrency() {\n return _iborIndex.getCurrency();\n }", "public String getCurrencyID() {\n return currencyID;\n }", "public BigDecimal getCHARGE_CODE() {\r\n return CHARGE_CODE;\r\n }", "protected String getCurrencyFromParameters(final FlightPriceRQ flightPriceRQ)\n\t{\n\t\treturn flightPriceRQ.getParameters().getCurrCodes().getCurrCode().get(0).getValue();\n\t}", "public String getCurrencyID() {\n return currencyID;\n }", "@Override\n\tpublic Currency getCurrency() {\n\t\treturn null;\n\t}", "public java.lang.Integer getBasecurrency() {\n\treturn basecurrency;\n}", "public String centsToDollar() {\n return partieEntier + \".\" +\n String.format(\"%02d\", partieFractionnaire) + \"$\";\n }", "public float getBusC() {\r\n return costs.get(Transports.BUS);\r\n }", "public ArmCurrency getLoyaltyBalanceInCurrencyFormat() {\n\t double loyaltyPointsBalance = getLoyaltyBalance();\n\t ArmCurrency rtnVal = new ArmCurrency(loyaltyPointsBalance);\n\t return (rtnVal);\n }", "public String getFromCurrencyCode() {\n return fromCurrencyCode;\n }" ]
[ "0.75130814", "0.75130814", "0.71405274", "0.7123406", "0.69418913", "0.6919962", "0.68596226", "0.68549913", "0.68549913", "0.68549913", "0.68549913", "0.6846804", "0.6825264", "0.6816776", "0.6808347", "0.679189", "0.67901164", "0.6787753", "0.6764233", "0.6743923", "0.67135626", "0.67068213", "0.6703597", "0.66776484", "0.66738373", "0.66431606", "0.66301507", "0.66227853", "0.6607865", "0.66070974", "0.65944993", "0.6548472", "0.654", "0.6510766", "0.64981425", "0.648727", "0.64811534", "0.64780515", "0.64741063", "0.64690757", "0.6468438", "0.6440523", "0.64354306", "0.6415154", "0.6399472", "0.6395029", "0.63946676", "0.63813937", "0.6370702", "0.6370702", "0.6370702", "0.635611", "0.63474965", "0.63086754", "0.6261117", "0.6255157", "0.6250947", "0.624268", "0.6221499", "0.6220107", "0.6203163", "0.62029475", "0.619574", "0.61776423", "0.6162635", "0.61607075", "0.6150509", "0.61427695", "0.6115057", "0.6114984", "0.61053306", "0.6094475", "0.6079556", "0.6067708", "0.6029779", "0.60228527", "0.6010667", "0.60103196", "0.600819", "0.59885556", "0.59853613", "0.59820807", "0.5981521", "0.59811676", "0.5976447", "0.5976447", "0.5962033", "0.5944203", "0.5942485", "0.59322923", "0.5916329", "0.5902351", "0.5895649", "0.58801275", "0.5878609", "0.5872016", "0.5869053", "0.5864515", "0.5863948", "0.58515614" ]
0.86031055
0
Sets the receiver charges currency.
public void setReceiverChargesCurrency(String receiverChargesCurrency) { this.receiverChargesCurrency = receiverChargesCurrency; }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "public String getReceiverChargesCurrency() {\r\n\t\treturn receiverChargesCurrency;\r\n\t}", "void setCurrency(Currency currency);", "public void setCurrency(CurrencyUnit currency) {\r\n this.currency = currency;\r\n }", "protected void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setCurrency( String phone )\r\n {\r\n currency = phone;\r\n }", "public void setReceiveCurrency(java.lang.String receiveCurrency) {\r\n this.receiveCurrency = receiveCurrency;\r\n }", "public void setReceiveCurrency(java.lang.String receiveCurrency) {\r\n this.receiveCurrency = receiveCurrency;\r\n }", "public void setCURRENCY(BigDecimal CURRENCY) {\r\n this.CURRENCY = CURRENCY;\r\n }", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setCurrency(String currency) {\n this.currency = currency;\n }", "public void setCurrency (de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency currency) {\r\n\t\tthis.currency = currency;\r\n\t}", "void setEditTransactionCurrency(String currency);", "public void setCardMoney(java.math.BigDecimal param) {\r\n this.localCardMoney = param;\r\n }", "public void setCurrency(java.lang.String currency)\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(CURRENCY$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(CURRENCY$10);\n }\n target.setStringValue(currency);\n }\n }", "public void setCurrency(Currency usd) {\n\t\t\n\t}", "public SenderCharge(Double amount, Currency currency) {\n this.amount = amount;\n this.currency = currency;\n }", "public void setCurrency(java.lang.String currency) {\r\n this.currency = currency;\r\n }", "public void setCurrency(String value) {\n setAttributeInternal(CURRENCY, value);\n }", "public void setCurrency(java.lang.String currency) {\n this.currency = currency;\n }", "public void setChargecurrency(java.lang.String newChargecurrency) {\n\tchargecurrency = newChargecurrency;\n}", "public String getPaymentCurrency() {\n return _paymentCurrency;\n }", "public String getCurrency() {\r\n return currency;\r\n }", "protected String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "public String getCurrency() {\n return currency;\n }", "void setAddTransactionCurrency(String currency);", "public void setCurrencyRate(String currencyCode, BigDecimal value)\n {\n currencyRates.put(currencyCode, value);\n }", "public String getCurrency() {\n return this.currency;\n }", "public abstract void setCurrencyType(String currencyType);", "public void setCurrency1(BigDecimal newCurrency1) {\n\tcurrency1 = newCurrency1;\n}", "public void setCurrency(CurrencyVO newCurrency) {\n\tcurrency = newCurrency;\n}", "public String getCurrency()\r\n {\r\n return currency;\r\n }", "public void xsetCurrency(org.apache.xmlbeans.XmlString currency)\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(CURRENCY$10, 0);\n if (target == null)\n {\n target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(CURRENCY$10);\n }\n target.set(currency);\n }\n }", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public java.lang.String getReceiveCurrency() {\r\n return receiveCurrency;\r\n }", "public static void setReferenceCurrency(Currency currency) {\n REFERENCE.set(currency);\n TO_REFERENCE.clear();\n TO_REFERENCE.put(currency.getCode(), 1.0);\n }", "public void setCurrency2(BigDecimal newCurrency2) {\n\tcurrency2 = newCurrency2;\n}", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\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 settlementCurrency_ = s;\n }\n return s;\n }\n }", "public synchronized void setUsdConversionRate(Currency currency, BigDecimal rate) {\n usdConversionRateMap.put(currency, rate);\n }", "public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }", "public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }", "public void setCURRENCY_CODE(BigDecimal CURRENCY_CODE) {\r\n this.CURRENCY_CODE = CURRENCY_CODE;\r\n }", "public void setPaymentCurrency(String paymentCurrency) {\n _paymentCurrency = paymentCurrency;\n }", "public void setReceiverChargesAmount(String receiverChargesAmount) {\r\n\t\tthis.receiverChargesAmount = receiverChargesAmount;\r\n\t}", "public String getCurrency()\n\t{\n\t\treturn this.currency;\n\t}", "public String getSettlementCurrency() {\n Object ref = settlementCurrency_;\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 settlementCurrency_ = s;\n }\n return s;\n } else {\n return (String) ref;\n }\n }", "public void setCurrency(String currency) {\n this.currency = currency == null ? null : currency.trim();\n }", "void setCurrencyCalculatorConfig(CurrencyCalculatorConfig config);", "public void setCurrency(String currency) {\r\n this.currency = currency == null ? null : currency.trim();\r\n }", "public void setCHARGE_AMOUNT(BigDecimal CHARGE_AMOUNT) {\r\n this.CHARGE_AMOUNT = CHARGE_AMOUNT;\r\n }", "void setAmount(ch.crif_online.www.webservices.crifsoapservice.v1_00.Amount amount);", "public void setCurrencyID(String value) {\n this.currencyID = value;\n }", "public void setReceiveAmount(java.math.BigDecimal receiveAmount) {\r\n this.receiveAmount = receiveAmount;\r\n }", "public Builder setSettlementCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00020000;\n settlementCurrency_ = value;\n onChanged();\n return this;\n }", "public BigDecimal getCURRENCY() {\r\n return CURRENCY;\r\n }", "public void setCHARGE(BigDecimal CHARGE) {\r\n this.CHARGE = CHARGE;\r\n }", "public java.lang.String getCurrency() {\r\n return currency;\r\n }", "public Builder setTradeCurrency(\n String value) {\n if (value == null) {\n throw new NullPointerException();\n }\n bitField0_ |= 0x00010000;\n tradeCurrency_ = value;\n onChanged();\n return this;\n }", "public final PurchasedGiftCardDetailsBuilder<BLDRT> currency(final String currency) {\r\n\t\t\tpurchasedGiftCardDetails.setCurrency(currency);\r\n\t\t\treturn this;\r\n\t\t}", "public java.lang.String getCurrency() {\n return currency;\n }", "@Override\n public Currency getCurrency() {\n return currency;\n }", "public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public void setAmount(int C_Currency_ID, BigDecimal payAmt) {\n if (C_Currency_ID == 0) {\n C_Currency_ID = MClient.get(getCtx()).getC_Currency_ID();\n }\n setC_Currency_ID(C_Currency_ID);\n setPayAmt(payAmt);\n }", "public void setRechargeMoney(BigDecimal rechargeMoney) {\n this.rechargeMoney = rechargeMoney;\n }", "public com.google.protobuf.ByteString\n getSettlementCurrencyBytes() {\n Object ref = settlementCurrency_;\n if (ref instanceof String) {\n com.google.protobuf.ByteString b =\n com.google.protobuf.ByteString.copyFromUtf8(\n (String) ref);\n settlementCurrency_ = b;\n return b;\n } else {\n return (com.google.protobuf.ByteString) ref;\n }\n }", "public Builder setCurrencyID(String value) {\n validate(fields()[10], value);\n this.currencyID = value;\n fieldSetFlags()[10] = true;\n return this; \n }", "public java.lang.String getBillingCurrency() {\r\n return billingCurrency;\r\n }", "public Builder clearSettlementCurrency() {\n bitField0_ = (bitField0_ & ~0x00020000);\n settlementCurrency_ = getDefaultInstance().getSettlementCurrency();\n onChanged();\n return this;\n }", "public java.lang.String getChargecurrency() {\n\treturn chargecurrency;\n}", "@Override\n\tpublic String getCurrency(){\n\t\treturn MARLAY_CURR;\n\t}", "public Builder setCurrency(Pokemon.Currency value) {\n if (currencyBuilder_ == null) {\n if (value == null) {\n throw new NullPointerException();\n }\n currency_ = value;\n onChanged();\n } else {\n currencyBuilder_.setMessage(value);\n }\n bitField0_ |= 0x00000400;\n return this;\n }", "public void setLocalCurrencyAmount(String localCurrencyAmount) {\n this.sendLocalCurrencyAmount = sanitize(localCurrencyAmount);\n if (localCurrencyAmount.length() > 0) {\n if (localCurrencyAmount.equals(\".\")) {\n this.sendLocalCurrencyAmount = \"0.\";\n }\n\n // keep decimal length at 10 total\n String regex = getDecimalSeparator().equals(\".\") ? \"\\\\.\" : \",\";\n String[] split = this.sendLocalCurrencyAmount.split(regex);\n if (split.length > 1) {\n String whole = split[0];\n String decimal = split[1];\n decimal = decimal.substring(0, Math.min(decimal.length(), 2));\n this.sendLocalCurrencyAmount = whole + getDecimalSeparator() + decimal;\n }\n\n this.sendNanoAmount = convertLocalCurrencyToNano(this.sendLocalCurrencyAmount);\n } else {\n this.sendNanoAmount = \"\";\n }\n validateSendAmount();\n }", "public void setOtherCharges (java.math.BigDecimal otherCharges) {\n\t\tthis.otherCharges = otherCharges;\n\t}", "public String getReceiverChargesAmount() {\r\n\t\treturn receiverChargesAmount;\r\n\t}", "public void setC_Currency_ID (int C_Currency_ID);", "public CurrencyUnit getCurrency() {\r\n return currency;\r\n }", "String getSettlementCurrency();", "public Currency getCurrency() {\n return currencyCode;\n }", "public void setCurrencyCode(String currencyCode)\r\n {\r\n m_currencyCode = currencyCode;\r\n }", "public Price currencyCode(String currencyCode) {\n this.currencyCode = currencyCode;\n return this;\n }", "public void setLBR_TaxRateCredit (BigDecimal LBR_TaxRateCredit);", "public void setOriginalSendCurrency(java.lang.String originalSendCurrency) {\r\n this.originalSendCurrency = originalSendCurrency;\r\n }", "public void setCurrencyDigits(Number currDigs)\r\n {\r\n m_currencyDigits = currDigs;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public void setMoney(BigDecimal money) {\r\n this.money = money;\r\n }", "public java.lang.String getOriginalSendCurrency() {\r\n return originalSendCurrency;\r\n }", "public de.htwg_konstanz.ebus.framework.wholesaler.vo.Currency getCurrency () {\r\n\t\treturn currency;\r\n\t}", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public void setMoney(BigDecimal money) {\n this.money = money;\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public BigDecimal getCURRENCY_CODE() {\r\n return CURRENCY_CODE;\r\n }", "public String getAccountCurrencyCode() {\r\n return accountCurrencyCode;\r\n }", "public String getTradeCurrency() {\n Object ref = tradeCurrency_;\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 tradeCurrency_ = s;\n }\n return s;\n }\n }", "public void setExchangeRate(ExchangeRateVO exchangeRateVO)\n throws RemoteException, ExchangeRateException;", "public Pokemon.Currency getCurrency() {\n if (currencyBuilder_ == null) {\n return currency_;\n } else {\n return currencyBuilder_.getMessage();\n }\n }" ]
[ "0.7167032", "0.6693447", "0.6673167", "0.65215987", "0.64798033", "0.62430745", "0.62430745", "0.6237987", "0.6226148", "0.6226148", "0.61772424", "0.6135657", "0.6081719", "0.60784215", "0.60705775", "0.604009", "0.6028293", "0.60058844", "0.6004159", "0.59892535", "0.59598833", "0.5921543", "0.5896863", "0.5877097", "0.5877097", "0.5877097", "0.5877097", "0.58579284", "0.58343124", "0.5813989", "0.58079296", "0.5805018", "0.5770181", "0.5769646", "0.57680726", "0.5767111", "0.5767111", "0.5763001", "0.57606447", "0.57586443", "0.5751424", "0.57189685", "0.57189685", "0.57189685", "0.5702367", "0.5690638", "0.56851876", "0.56717825", "0.5660355", "0.5631412", "0.56288975", "0.56178856", "0.55908304", "0.55748665", "0.55616933", "0.5538857", "0.5537713", "0.5527556", "0.55197245", "0.5519605", "0.5511905", "0.55023", "0.54985", "0.5496453", "0.5475852", "0.5444508", "0.54441917", "0.54423326", "0.5416912", "0.5408568", "0.5408303", "0.5398088", "0.5385948", "0.5384584", "0.5361762", "0.5360594", "0.5349806", "0.53462857", "0.53382874", "0.5335635", "0.5330247", "0.5299645", "0.5298489", "0.52866644", "0.5258156", "0.52534556", "0.52534556", "0.52534556", "0.5249385", "0.52430314", "0.5231252", "0.5231252", "0.5231252", "0.5225881", "0.5225881", "0.5225881", "0.52242124", "0.522033", "0.52060753", "0.51852983" ]
0.7100759
1
Created by maoqi on 2018/6/2.
public interface IBaseView { void toastAlert(String info); void toastSucc(String info); void toastFailed(String info); void toastNetError(); void showProgress(); void removeProgress(); void tokenTimeout(); <T> ObservableTransformer<T, T> initNetLifecycler(); }
{ "objective": { "self": [], "paired": [], "triplet": [ [ "query", "document", "negatives" ] ] } }
[ "@Override\n public void perish() {\n \n }", "private stendhal() {\n\t}", "@Override\n\tpublic void comer() {\n\t\t\n\t}", "@Override\n\tpublic void grabar() {\n\t\t\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "@Override\r\n\tpublic void bicar() {\n\t\t\r\n\t}", "private static void cajas() {\n\t\t\n\t}", "@Override\r\n\tpublic void tires() {\n\t\t\r\n\t}", "@Override\n\tprotected void getExras() {\n\n\t}", "private void poetries() {\n\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 public void init() {\n\n }", "public final void mo51373a() {\n }", "@Override\n\tpublic void anular() {\n\n\t}", "@Override\n\tpublic void nadar() {\n\t\t\n\t}", "@Override\n\tpublic void entrenar() {\n\t\t\n\t}", "@Override\n protected void initialize() {\n\n \n }", "@Override\r\n\tpublic void dormir() {\n\t\t\r\n\t}", "@Override\n void init() {\n }", "@Override\n public void init() {\n }", "@Override\r\n\tpublic void rozmnozovat() {\n\t}", "@Override\n\tpublic void gravarBd() {\n\t\t\n\t}", "@Override\r\n\t\t\tpublic void ayuda() {\n\r\n\t\t\t}", "@Override\n protected void getExras() {\n }", "public void mo38117a() {\n }", "@Override\n\tprotected void interr() {\n\t}", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "@Override\n protected void initialize() {\n }", "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\r\n\t\t\tpublic void annadir() {\n\r\n\t\t\t}", "@Override\n\tpublic void sacrifier() {\n\t\t\n\t}", "@Override\r\n\t\tpublic void init() {\n\t\t\t\r\n\t\t}", "@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 public void memoria() {\n \n }", "@Override\n\tpublic void nghe() {\n\n\t}", "public void mo4359a() {\n }", "@Override\n public void inizializza() {\n\n super.inizializza();\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {\n\n }", "@Override\n public void init() {}", "@Override\n public int describeContents() { return 0; }", "@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 jugar() {\n\t\t\n\t}", "@Override\n protected void init() {\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() {}", "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}", "@Override\r\n\tpublic void anularFact() {\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}", "private void kk12() {\n\n\t}", "public void mo6081a() {\n }", "@Override\n\tpublic void einkaufen() {\n\t}", "@Override\n\tprotected void initialize() {\n\n\t}", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "public void mo55254a() {\n }", "private void m50366E() {\n }", "public void gored() {\n\t\t\n\t}", "@Override\n public void initialize() { \n }", "private void strin() {\n\n\t}", "@Override\n\tpublic void init()\n\t{\n\n\t}", "@Override\n\tpublic void init() {\n\t}", "@Override\n\tpublic void one() {\n\t\t\n\t}", "@Override\r\n\tpublic void init()\r\n\t{\n\t}", "Petunia() {\r\n\t\t}", "@Override\r\n\tprotected void initialize() {\r\n\t\t\r\n\t\t\r\n\t}", "@Override\n public void initialize() {\n \n }", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "@Override\n public void initialize() {}", "private void init() {\n\n\n\n }", "@Override\n\tpublic void emprestimo() {\n\n\t}", "@Override\n\tpublic void ligar() {\n\t\t\n\t}", "@Override\n public void init() {\n }", "@Override\n\t\tpublic void init() {\n\t\t}", "public Pitonyak_09_02() {\r\n }", "@Override\r\n\tprotected void initialize() {\n\r\n\t}" ]
[ "0.60455275", "0.590878", "0.57354134", "0.5698226", "0.5681727", "0.5681727", "0.5646472", "0.56068254", "0.5594389", "0.55865014", "0.5582121", "0.5578751", "0.5570273", "0.5567355", "0.5535106", "0.5524017", "0.55237424", "0.5519721", "0.5513691", "0.5506753", "0.548991", "0.5482515", "0.54785347", "0.54714143", "0.5459305", "0.5457472", "0.5456672", "0.545342", "0.545342", "0.545342", "0.545342", "0.545342", "0.545342", "0.54376864", "0.5436763", "0.5436763", "0.5436763", "0.5436763", "0.5436763", "0.5431851", "0.5430539", "0.5428141", "0.5417254", "0.54063743", "0.54063743", "0.5406327", "0.5402754", "0.5402739", "0.53807956", "0.5375824", "0.5375824", "0.53749436", "0.53673834", "0.53671616", "0.53671616", "0.53671616", "0.5366314", "0.53497916", "0.53272283", "0.53272283", "0.5326027", "0.53242683", "0.532098", "0.532098", "0.532098", "0.53139", "0.53061426", "0.53061426", "0.53061426", "0.53056604", "0.5302932", "0.52944064", "0.52853185", "0.52820003", "0.52820003", "0.52820003", "0.52820003", "0.52820003", "0.52820003", "0.52820003", "0.5281782", "0.52764016", "0.5273025", "0.5268005", "0.52668846", "0.52590525", "0.52560115", "0.524227", "0.523678", "0.5227587", "0.520831", "0.52050036", "0.52050036", "0.52050036", "0.51964676", "0.5192305", "0.5187093", "0.51748323", "0.517165", "0.5168009", "0.5163971" ]
0.0
-1